You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
621 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(un,cn,e){var fn;!function(e,t){"use strict";"object"==typeof un.exports?un.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(k,e){"use strict";function g(e,t,n){var r,i,o=(n=n||Bt).createElement("script");if(o.text=e,t)for(r in nn)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function v(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Kt[$t.call(e)]||"object":typeof e}function s(e){var t=!!e&&"length"in e&&e.length,n=v(e);return!en(e)&&!tn(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function u(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function t(e,n,r){return en(n)?on.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?on.grep(e,function(e){return e===n!==r}):"string"!=typeof n?on.grep(e,function(e){return-1<Vt.call(n,e)!==r}):on.filter(n,e,r)}function n(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function c(e){return e}function f(e){throw e}function l(e,t,n,r){var i;try{e&&en(i=e.promise)?i.call(e).done(t).fail(n):e&&en(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function r(){Bt.removeEventListener("DOMContentLoaded",r),k.removeEventListener("load",r),on.ready()}function i(e,t){return t.toUpperCase()}function h(e){return e.replace(ce,"ms-").replace(fe,i)}function o(){this.expando=on.expando+o.uid++}function d(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ve,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ge.test(e)?JSON.parse(e):e)}(n)}catch(e){}pe.set(e,t,n)}else n=void 0;return n}function p(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return on.css(e,t,"")},l=s(),u=n&&n[3]||(on.cssNumber[t]?"":"px"),c=e.nodeType&&(on.cssNumber[t]||"px"!==u&&+l)&&ye.exec(on.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)on.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,on.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}function m(e,t){for(var n,r,i,o,a,s,l,u=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(u[c]=de.get(r,"display")||null,u[c]||(r.style.display="")),""===r.style.display&&ke(r)&&(u[c]=(l=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(l=Ce[s])||(o=a.body.appendChild(a.createElement(s)),l=on.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),Ce[s]=l)))):"none"!==n&&(u[c]="none",de.set(r,"display",n)));for(c=0;c<f;c++)null!=u[c]&&(e[c].style.display=u[c]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&u(e,t)?on.merge([e],n):n}function b(e,t){for(var n=0,r=e.length;n<r;n++)de.set(e[n],"globalEval",!t||de.get(t[n],"globalEval"))}function w(e,t,n,r,i){for(var o,a,s,l,u,c,f=t.createDocumentFragment(),h=[],d=0,p=e.length;d<p;d++)if((o=e[d])||0===o)if("object"===v(o))on.merge(h,o.nodeType?[o]:o);else if(De.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(Oe.exec(o)||["",""])[1].toLowerCase(),l=Me[s]||Me._default,a.innerHTML=l[1]+on.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;on.merge(h,a.childNodes),(a=f.firstChild).textContent=""}else h.push(t.createTextNode(o));for(f.textContent="",d=0;o=h[d++];)if(r&&-1<on.inArray(o,r))i&&i.push(o);else if(u=xe(o),a=y(f.appendChild(o),"script"),u&&b(a),n)for(c=0;o=a[c++];)Ee.test(o.type||"")&&n.push(o);return f}function a(){return!0}function x(){return!1}function _(e,t){return e===function(){try{return Bt.activeElement}catch(e){}}()==("focus"===t)}function S(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)S(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=x;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return on().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=on.guid++)),e.each(function(){on.event.add(this,t,i,r,n)})}function C(e,i,o){o?(de.set(e,i,!1),on.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=de.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(on.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=qt.call(arguments),de.set(this,i,r),t=o(this,i),this[i](),r!==(n=de.get(this,i))||t?de.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(de.set(this,i,{value:on.event.trigger(on.extend(r[0],on.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===de.get(e,i)&&on.event.add(e,i,a)}function T(e,t){return u(e,"table")&&u(11!==t.nodeType?t:t.firstChild,"tr")&&on(e).children("tbody")[0]||e}function O(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function E(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function M(e,t){var n,r,i,o,a,s,l,u;if(1===t.nodeType){if(de.hasData(e)&&(o=de.access(e),a=de.set(t,o),u=o.events))for(i in delete a.handle,a.events={},u)for(n=0,r=u[i].length;n<r;n++)on.event.add(t,i,u[i][n]);pe.hasData(e)&&(s=pe.access(e),l=on.extend({},s),pe.set(t,l))}}function D(n,r,i,o){r=Gt.apply([],r);var e,t,a,s,l,u,c=0,f=n.length,h=f-1,d=r[0],p=en(d);if(p||1<f&&"string"==typeof d&&!Zt.checkClone&&je.test(d))return n.each(function(e){var t=n.eq(e);p&&(r[0]=d.call(this,e,t.html())),D(t,r,i,o)});if(f&&(t=(e=w(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=on.map(y(e,"script"),O)).length;c<f;c++)l=e,c!==h&&(l=on.clone(l,!0,!0),s&&on.merge(a,y(l,"script"))),i.call(n[c],l,c);if(s)for(u=a[a.length-1].ownerDocument,on.map(a,E),c=0;c<s;c++)l=a[c],Ee.test(l.type||"")&&!de.access(l,"globalEval")&&on.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?on._evalUrl&&!l.noModule&&on._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):g(l.textContent.replace(Re,""),l,u))}return n}function A(e,t,n){for(var r,i=t?on.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||on.cleanData(y(r)),r.parentNode&&(n&&xe(r)&&b(y(r,"script")),r.parentNode.removeChild(r));return e}function L(e,t,n){var r,i,o,a,s=e.style;return(n=n||ze(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||xe(e)||(a=on.style(e,t)),!Zt.pixelBoxStyles()&&Fe.test(a)&&He.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function P(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function N(e){var t=on.cssProps[e]||Ue[e];return t||(e in Be?e:Ue[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=We.length;n--;)if((e=We[n]+t)in Be)return e}(e)||e)}function I(e,t,n){var r=ye.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function j(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=on.css(e,n+be[a],!0,i)),r?("content"===n&&(l-=on.css(e,"padding"+be[a],!0,i)),"margin"!==n&&(l-=on.css(e,"border"+be[a]+"Width",!0,i))):(l+=on.css(e,"padding"+be[a],!0,i),"padding"!==n?l+=on.css(e,"border"+be[a]+"Width",!0,i):s+=on.css(e,"border"+be[a]+"Width",!0,i));return!r&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function R(e,t,n){var r=ze(e),i=(!Zt.boxSizingReliable()||n)&&"border-box"===on.css(e,"boxSizing",!1,r),o=i,a=L(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Fe.test(a)){if(!n)return a;a="auto"}return(!Zt.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===on.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===on.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+j(e,t,n||(i?"border":"content"),o,r,a)+"px"}function F(e,t,n,r,i){return new F.prototype.init(e,t,n,r,i)}function z(){$e&&(!1===Bt.hidden&&k.requestAnimationFrame?k.requestAnimationFrame(z):k.setTimeout(z,on.fx.interval),on.fx.tick())}function H(){return k.setTimeout(function(){Ke=void 0}),Ke=Date.now()}function W(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=be[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function B(e,t,n){for(var r,i=(U.tweeners[t]||[]).concat(U.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function U(o,e,t){var n,a,r=0,i=U.prefilters.length,s=on.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var e=Ke||H(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),r=0,i=u.tweens.length;r<i;r++)u.tweens[r].run(n);return s.notifyWith(o,[u,n,t]),n<1&&i?t:(i||s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u]),!1)},u=s.promise({elem:o,props:on.extend({},e),opts:on.extend(!0,{specialEasing:{},easing:on.easing._default},t),originalProperties:e,originalOptions:t,startTime:Ke||H(),duration:t.duration,tweens:[],createTween:function(e,t){var n=on.Tween(o,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)u.tweens[t].run(1);return e?(s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u,e])):s.rejectWith(o,[u,e]),this}}),c=u.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=h(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=on.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);r<i;r++)if(n=U.prefilters[r].call(u,o,c,u.opts))return en(n.stop)&&(on._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return on.map(c,B,u),en(u.opts.start)&&u.opts.start.call(o,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),on.fx.timer(on.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u}function q(e){return(e.match(ae)||[]).join(" ")}function G(e){return e.getAttribute&&e.getAttribute("class")||""}function Y(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(ae)||[]}function V(n,e,r,i){var t;if(Array.isArray(e))on.each(e,function(e,t){r||lt.test(n)?i(n,t):V(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==v(e))i(n,e);else for(t in e)V(n+"["+t+"]",e[t],r,i)}function K(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(ae)||[];if(en(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function $(t,i,o,a){function s(e){var r;return l[e]=!0,on.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||l[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),s(n),!1)}),r}var l={},u=t===wt;return s(i.dataTypes[0])||!l["*"]&&s("*")}function X(e,t){var n,r,i=on.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r=r||{})[n]=t[n]);return r&&on.extend(!0,e,r),e}var J,Q,Z,ee,te,ne,re,ie,oe,ae,se,le,ue,ce,fe,he,de,pe,ge,ve,me,ye,be,we,xe,_e,ke,Se,Ce,Te,Oe,Ee,Me,De,Ae,Le,Pe,Ne,Ie,je,Re,Fe,ze,He,We,Be,Ue,qe,Ge,Ye,Ve,Ke,$e,Xe,Je,Qe,Ze,et,tt,nt,rt,it,ot,at,st,lt,ut,ct,ft,ht,dt,pt,gt,vt,mt,yt,bt,wt,xt,_t,kt,St,Ct,Tt,Ot,Et,Mt,Dt,At,Lt,Pt,Nt,It,jt,Rt,Ft,zt,Ht,Wt=[],Bt=k.document,Ut=Object.getPrototypeOf,qt=Wt.slice,Gt=Wt.concat,Yt=Wt.push,Vt=Wt.indexOf,Kt={},$t=Kt.toString,Xt=Kt.hasOwnProperty,Jt=Xt.toString,Qt=Jt.call(Object),Zt={},en=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},tn=function(e){return null!=e&&e===e.window},nn={type:!0,src:!0,nonce:!0,noModule:!0},rn="3.4.1",on=function(e,t){return new on.fn.init(e,t)},an=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function sn(){if(Rt){jt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Rt.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",we.appendChild(jt).appendChild(Rt);var e=k.getComputedStyle(Rt);At="1%"!==e.top,It=12===ln(e.marginLeft),Rt.style.right="60%",Nt=36===ln(e.right),Lt=36===ln(e.width),Rt.style.position="absolute",Pt=12===ln(Rt.offsetWidth/3),we.removeChild(jt),Rt=null}}function ln(e){return Math.round(parseFloat(e))}return on.fn=on.prototype={jquery:rn,constructor:on,length:0,toArray:function(){return qt.call(this)},get:function(e){return null==e?qt.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=on.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return on.each(this,e)},map:function(n){return this.pushStack(on.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(qt.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(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:Yt,sort:Wt.sort,splice:Wt.splice},on.extend=on.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||en(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(on.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||on.isPlainObject(n)?n:{},i=!1,a[t]=on.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},on.extend({expando:"jQuery"+(rn+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]"!==$t.call(e))&&(!(t=Ut(e))||"function"==typeof(n=Xt.call(t,"constructor")&&t.constructor)&&Jt.call(n)===Qt)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){g(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(s(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(an,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(s(Object(e))?on.merge(n,"string"==typeof e?[e]:e):Yt.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:Vt.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!=a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(s(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return Gt.apply([],a)},guid:1,support:Zt}),"function"==typeof Symbol&&(on.fn[Symbol.iterator]=Wt[Symbol.iterator]),on.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){Kt["[object "+t+"]"]=t.toLowerCase()}),J=function(n){function w(t,e,n,r){var i,o,a,s,l,u,c,f=e&&e.ownerDocument,h=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==h&&9!==h&&11!==h)return n;if(!r&&((e?e.ownerDocument||e:B)!==N&&P(e),e=e||N,j)){if(11!==h&&(l=we.exec(t)))if(i=l[1]){if(9===h){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&H(e,a)&&a.id===i)return n.push(a),n}else{if(l[2])return ee.apply(n,e.getElementsByTagName(t)),n;if((i=l[3])&&k.getElementsByClassName&&e.getElementsByClassName)return ee.apply(n,e.getElementsByClassName(i)),n}if(k.qsa&&!K[t+" "]&&(!R||!R.test(t))&&(1!==h||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===h&&he.test(t)){for((s=e.getAttribute("id"))?s=s.replace(ke,Se):e.setAttribute("id",s=W),o=(u=O(t)).length;o--;)u[o]="#"+s+" "+p(u[o]);c=u.join(","),f=xe.test(t)&&d(e.parentNode)||e}try{return ee.apply(n,f.querySelectorAll(c)),n}catch(e){K(t,!0)}finally{s===W&&e.removeAttribute("id")}}}return M(t.replace(ue,"$1"),e,n,r)}function e(){var r=[];return function e(t,n){return r.push(t+" ")>S.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function l(e){return e[W]=!0,e}function i(e){var t=N.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function t(e,t){for(var n=e.split("|"),r=n.length;r--;)S.attrHandle[n[r]]=t}function u(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function r(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function o(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function a(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&&Ce(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function s(a){return l(function(o){return o=+o,l(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function d(e){return e&&void 0!==e.getElementsByTagName&&e}function c(){}function p(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function f(s,e,t){var l=e.dir,u=e.next,c=u||l,f=t&&"parentNode"===c,h=q++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[U,h];if(n){for(;e=e[l];)if((1===e.nodeType||f)&&s(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||f)if(i=(o=e[W]||(e[W]={}))[e.uniqueID]||(o[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[l]||e;else{if((r=i[c])&&r[0]===U&&r[1]===h)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function h(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function x(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function y(d,p,g,v,m,e){return v&&!v[W]&&(v=y(v)),m&&!m[W]&&(m=y(m,e)),l(function(e,t,n,r){var i,o,a,s=[],l=[],u=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)w(e,t[r],n);return n}(p||"*",n.nodeType?[n]:n,[]),f=!d||!e&&p?c:x(c,s,d,n,r),h=g?m||(e?d:u||v)?[]:t:f;if(g&&g(f,h,n,r),v)for(i=x(h,l),v(i,[],n,r),o=i.length;o--;)(a=i[o])&&(h[l[o]]=!(f[l[o]]=a));if(e){if(m||d){if(m){for(i=[],o=h.length;o--;)(a=h[o])&&i.push(f[o]=a);m(null,h=[],i,r)}for(o=h.length;o--;)(a=h[o])&&-1<(i=m?ne(e,a):s[o])&&(e[i]=!(t[i]=a))}}else h=x(h===t?h.splice(u,h.length):h),m?m(null,t,h,r):ee.apply(t,h)})}function g(e){for(var i,t,n,r=e.length,o=S.relative[e[0].type],a=o||S.relative[" "],s=o?1:0,l=f(function(e){return e===i},a,!0),u=f(function(e){return-1<ne(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==D)||((i=t).nodeType?l(e,t,n):u(e,t,n));return i=null,r}];s<r;s++)if(t=S.relative[e[s].type])c=[f(h(c),t)];else{if((t=S.filter[e[s].type].apply(null,e[s].matches))[W]){for(n=++s;n<r&&!S.relative[e[n].type];n++);return y(1<s&&h(c),1<s&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ue,"$1"),t,s<n&&g(e.slice(s,n)),n<r&&g(e=e.slice(n)),n<r&&p(e))}c.push(t)}return h(c)}function v(v,m){function e(e,t,n,r,i){var o,a,s,l=0,u="0",c=e&&[],f=[],h=D,d=e||b&&S.find.TAG("*",i),p=U+=null==h?1:Math.random()||.1,g=d.length;for(i&&(D=t===N||t||i);u!==g&&null!=(o=d[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument===N||(P(o),n=!j);s=v[a++];)if(s(o,t||N,n)){r.push(o);break}i&&(U=p)}y&&((o=!s&&o)&&l--,e&&c.push(o))}if(l+=u,y&&u!==l){for(a=0;s=m[a++];)s(c,f,t,n);if(e){if(0<l)for(;u--;)c[u]||f[u]||(f[u]=Q.call(r));f=x(f)}ee.apply(r,f),i&&!e&&0<f.length&&1<l+m.length&&w.uniqueSort(r)}return i&&(U=p,D=h),c}var y=0<m.length,b=0<v.length;return y?l(e):e}function m(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}function b(){P()}var _,k,S,C,T,O,E,M,D,A,L,P,N,I,j,R,F,z,H,W="sizzle"+1*new Date,B=n.document,U=0,q=0,G=e(),Y=e(),V=e(),K=e(),$=function(e,t){return e===t&&(L=!0),0},X={}.hasOwnProperty,J=[],Q=J.pop,Z=J.push,ee=J.push,te=J.slice,ne=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},re="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ie="[\\x20\\t\\r\\n\\f]",oe="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ae="\\["+ie+"*("+oe+")(?:"+ie+"*([*^$|!~]?=)"+ie+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+oe+"))|)"+ie+"*\\]",se=":("+oe+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ae+")*)|.*)\\)|)",le=new RegExp(ie+"+","g"),ue=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g"),ce=new RegExp("^"+ie+"*,"+ie+"*"),fe=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),he=new RegExp(ie+"|>"),de=new RegExp(se),pe=new RegExp("^"+oe+"$"),ge={ID:new RegExp("^#("+oe+")"),CLASS:new RegExp("^\\.("+oe+")"),TAG:new RegExp("^("+oe+"|[*])"),ATTR:new RegExp("^"+ae),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+re+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},ve=/HTML$/i,me=/^(?:input|select|textarea|button)$/i,ye=/^h\d$/i,be=/^[^{]+\{\s*\[native \w/,we=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xe=/[+~]/,_e=new RegExp("\\\\([\\da-f]{1,6}"+ie+"?|("+ie+")|.)","ig"),ke=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Se=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ce=f(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{ee.apply(J=te.call(B.childNodes),B.childNodes),J[B.childNodes.length].nodeType}catch(e){ee={apply:J.length?function(e,t){Z.apply(e,te.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}for(_ in k=w.support={},T=w.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!ve.test(t||n&&n.nodeName||"HTML")},P=w.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==N&&9===r.nodeType&&r.documentElement&&(I=(N=r).documentElement,j=!T(N),B!==N&&(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",b,!1):n.attachEvent&&n.attachEvent("onunload",b)),k.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),k.getElementsByTagName=i(function(e){return e.appendChild(N.createComment("")),!e.getElementsByTagName("*").length}),k.getElementsByClassName=be.test(N.getElementsByClassName),k.getById=i(function(e){return I.appendChild(e).id=W,!N.getElementsByName||!N.getElementsByName(W).length}),k.getById?(S.filter.ID=function(e){var t=e.replace(_e,m);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if(void 0!==t.getElementById&&j){var n=t.getElementById(e);return n?[n]:[]}}):(S.filter.ID=function(e){var n=e.replace(_e,m);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},S.find.ID=function(e,t){if(void 0!==t.getElementById&&j){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),S.find.TAG=k.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):k.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},S.find.CLASS=k.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&j)return t.getElementsByClassName(e)},F=[],R=[],(k.qsa=be.test(N.querySelectorAll))&&(i(function(e){I.appendChild(e).innerHTML="<a id='"+W+"'></a><select id='"+W+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+ie+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||R.push("\\["+ie+"*(?:value|"+re+")"),e.querySelectorAll("[id~="+W+"-]").length||R.push("~="),e.querySelectorAll(":checked").length||R.push(":checked"),e.querySelectorAll("a#"+W+"+*").length||R.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=N.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&R.push("name"+ie+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),I.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),R.push(",.*:")})),(k.matchesSelector=be.test(z=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&i(function(e){k.disconnectedMatch=z.call(e,"*"),z.call(e,"[s!='']:x"),F.push("!=",se)}),R=R.length&&new RegExp(R.join("|")),F=F.length&&new RegExp(F.join("|")),t=be.test(I.compareDocumentPosition),H=t||be.test(I.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},$=t?function(e,t){if(e===t)return L=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!k.sortDetached&&t.compareDocumentPosition(e)===n?e===N||e.ownerDocument===B&&H(B,e)?-1:t===N||t.ownerDocument===B&&H(B,t)?1:A?ne(A,e)-ne(A,t):0:4&n?-1:1)}:function(e,t){if(e===t)return L=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===N?-1:t===N?1:i?-1:o?1:A?ne(A,e)-ne(A,t):0;if(i===o)return u(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?u(a[r],s[r]):a[r]===B?-1:s[r]===B?1:0}),N},w.matches=function(e,t){return w(e,null,null,t)},w.matchesSelector=function(e,t){if((e.ownerDocument||e)!==N&&P(e),k.matchesSelector&&j&&!K[t+" "]&&(!F||!F.test(t))&&(!R||!R.test(t)))try{var n=z.call(e,t);if(n||k.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){K(t,!0)}return 0<w(t,N,null,[e]).length},w.contains=function(e,t){return(e.ownerDocument||e)!==N&&P(e),H(e,t)},w.attr=function(e,t){(e.ownerDocument||e)!==N&&P(e);var n=S.attrHandle[t.toLowerCase()],r=n&&X.call(S.attrHandle,t.toLowerCase())?n(e,t,!j):void 0;return void 0!==r?r:k.attributes||!j?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},w.escape=function(e){return(e+"").replace(ke,Se)},w.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},w.uniqueSort=function(e){var t,n=[],r=0,i=0;if(L=!k.detectDuplicates,A=!k.sortStable&&e.slice(0),e.sort($),L){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return A=null,e},C=w.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},(S=w.selectors={cacheLength:50,createPseudo:l,match:ge,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(_e,m),e[3]=(e[3]||e[4]||e[5]||"").replace(_e,m),"~="===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]||w.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]&&w.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ge.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=O(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(_e,m).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=G[e+" "];return t||(t=new RegExp("(^|"+ie+")"+e+"("+ie+"|$)"))&&G(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=w.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(le," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,g,v){var m="nth"!==p.slice(0,3),y="last"!==p.slice(-4),b="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,l,u=m!=y?"nextSibling":"previousSibling",c=e.parentNode,f=b&&e.nodeName.toLowerCase(),h=!n&&!b,d=!1;if(c){if(m){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&h){for(d=(s=(r=(i=(o=(a=c)[W]||(a[W]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===U&&r[1])&&r[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(d=s=0)||l.pop();)if(1===a.nodeType&&++d&&a===e){i[p]=[U,s,d];break}}else if(h&&(d=s=(r=(i=(o=(a=e)[W]||(a[W]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===U&&r[1]),!1===d)for(;(a=++s&&a&&a[u]||(d=s=0)||l.pop())&&((b?a.nodeName.toLowerCase()!==f:1!==a.nodeType)||!++d||(h&&((i=(o=a[W]||(a[W]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]=[U,d]),a!==e)););return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=S.pseudos[e]||S.setFilters[e.toLowerCase()]||w.error("unsupported pseudo: "+e);return a[W]?a(o):1<a.length?(t=[e,e,"",o],S.setFilters.hasOwnProperty(e.toLowerCase())?l(function(e,t){for(var n,r=a(e,o),i=r.length;i--;)e[n=ne(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:l(function(e){var r=[],i=[],s=E(e.replace(ue,"$1"));return s[W]?l(function(e,t,n,r){for(var i,o=s(e,null,r,[]),a=e.length;a--;)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:l(function(t){return function(e){return 0<w(t,e).length}}),contains:l(function(t){return t=t.replace(_e,m),function(e){return-1<(e.textContent||C(e)).indexOf(t)}}),lang:l(function(n){return pe.test(n||"")||w.error("unsupported lang: "+n),n=n.replace(_e,m).toLowerCase(),function(e){var t;do{if(t=j?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===I},focus:function(e){return e===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!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!S.pseudos.empty(e)},header:function(e){return ye.test(e.nodeName)},input:function(e){return me.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:s(function(){return[0]}),last:s(function(e,t){return[t-1]}),eq:s(function(e,t,n){return[n<0?n+t:n]}),even:s(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:s(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:s(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:s(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=S.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[_]=r(_);for(_ in{submit:!0,reset:!0})S.pseudos[_]=o(_);return c.prototype=S.filters=S.pseudos,S.setFilters=new c,O=w.tokenize=function(e,t){var n,r,i,o,a,s,l,u=Y[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=S.preFilter;a;){for(o in n&&!(r=ce.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=fe.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ue," ")}),a=a.slice(n.length)),S.filter)!(r=ge[o].exec(a))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?w.error(e):Y(e,s).slice(0)},E=w.compile=function(e,t){var n,r=[],i=[],o=V[e+" "];if(!o){for(n=(t=t||O(e)).length;n--;)(o=g(t[n]))[W]?r.push(o):i.push(o);(o=V(e,v(i,r))).selector=e}return o},M=w.select=function(e,t,n,r){var i,o,a,s,l,u="function"==typeof e&&e,c=!r&&O(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&j&&S.relative[o[1].type]){if(!(t=(S.find.ID(a.matches[0].replace(_e,m),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=ge.needsContext.test(e)?0:o.length;i--&&(a=o[i],!S.relative[s=a.type]);)if((l=S.find[s])&&(r=l(a.matches[0].replace(_e,m),xe.test(o[0].type)&&d(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&p(o)))return ee.apply(n,r),n;break}}return(u||E(e,c))(r,t,!j,n,!t||xe.test(e)&&d(t.parentNode)||t),n},k.sortStable=W.split("").sort($).join("")===W,k.detectDuplicates=!!L,P(),k.sortDetached=i(function(e){return 1&e.compareDocumentPosition(N.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||t("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),k.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||t("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||t(re,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),w}(k),on.find=J,on.expr=J.selectors,on.expr[":"]=on.expr.pseudos,on.uniqueSort=on.unique=J.uniqueSort,on.text=J.getText,on.isXMLDoc=J.isXML,on.contains=J.contains,on.escapeSelector=J.escape,Q=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&on(e).is(n))break;r.push(e)}return r},Z=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},ee=on.expr.match.needsContext,te=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,on.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?on.find.matchesSelector(r,e)?[r]:[]:on.find.matches(e,on.grep(t,function(e){return 1===e.nodeType}))},on.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(on(e).filter(function(){for(t=0;t<r;t++)if(on.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)on.find(e,i[t],n);return 1<r?on.uniqueSort(n):n},filter:function(e){return this.pushStack(t(this,e||[],!1))},not:function(e){return this.pushStack(t(this,e||[],!0))},is:function(e){return!!t(this,"string"==typeof e&&ee.test(e)?on(e):e||[],!1).length}}),re=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,(on.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||ne,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):en(e)?void 0!==n.ready?n.ready(e):e(on):on.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:re.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 on?t[0]:t,on.merge(this,on.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:Bt,!0)),te.test(r[1])&&on.isPlainObject(t))for(r in t)en(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=Bt.getElementById(r[2]))&&(this[0]=i,this.length=1),this}).prototype=on.fn,ne=on(Bt),ie=/^(?:parents|prev(?:Until|All))/,oe={children:!0,contents:!0,next:!0,prev:!0},on.fn.extend({has:function(e){var t=on(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(on.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&on(e);if(!ee.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&on.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?on.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?Vt.call(on(e),this[0]):Vt.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(on.uniqueSort(on.merge(this.get(),on(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),on.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Q(e,"parentNode")},parentsUntil:function(e,t,n){return Q(e,"parentNode",n)},next:function(e){return n(e,"nextSibling")},prev:function(e){return n(e,"previousSibling")},nextAll:function(e){return Q(e,"nextSibling")},prevAll:function(e){return Q(e,"previousSibling")},nextUntil:function(e,t,n){return Q(e,"nextSibling",n)},prevUntil:function(e,t,n){return Q(e,"previousSibling",n)},siblings:function(e){return Z((e.parentNode||{}).firstChild,e)},children:function(e){return Z(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(u(e,"template")&&(e=e.content||e),on.merge([],e.childNodes))}},function(r,i){on.fn[r]=function(e,t){var n=on.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=on.filter(t,n)),1<this.length&&(oe[r]||on.uniqueSort(n),ie.test(r)&&n.reverse()),this.pushStack(n)}}),ae=/[^\x20\t\r\n\f]+/g,on.Callbacks=function(r){r="string"==typeof r?function(e){var n={};return on.each(e.match(ae)||[],function(e,t){n[t]=!0}),n}(r):on.extend({},r);function n(){for(o=o||r.once,t=i=!0;s.length;l=-1)for(e=s.shift();++l<a.length;)!1===a[l].apply(e[0],e[1])&&r.stopOnFalse&&(l=a.length,e=!1);r.memory||(e=!1),i=!1,o&&(a=e?[]:"")}var i,e,t,o,a=[],s=[],l=-1,u={add:function(){return a&&(e&&!i&&(l=a.length-1,s.push(e)),function n(e){on.each(e,function(e,t){en(t)?r.unique&&u.has(t)||a.push(t):t&&t.length&&"string"!==v(t)&&n(t)})}(arguments),e&&!i&&n()),this},remove:function(){return on.each(arguments,function(e,t){for(var n;-1<(n=on.inArray(t,a,n));)a.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<on.inArray(e,a):0<a.length},empty:function(){return a=a&&[],this},disable:function(){return o=s=[],a=e="",this},disabled:function(){return!a},lock:function(){return o=s=[],e||i||(a=e=""),this},locked:function(){return!!o},fireWith:function(e,t){return o||(t=[e,(t=t||[]).slice?t.slice():t],s.push(t),i||n()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!t}};return u},on.extend({Deferred:function(e){var o=[["notify","progress",on.Callbacks("memory"),on.Callbacks("memory"),2],["resolve","done",on.Callbacks("once memory"),on.Callbacks("once memory"),0,"resolved"],["reject","fail",on.Callbacks("once memory"),on.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var i=arguments;return on.Deferred(function(r){on.each(o,function(e,t){var n=en(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&en(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){function l(i,o,a,s){return function(){function e(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,en(t)?s?t.call(e,l(u,o,c,s),l(u,o,f,s)):(u++,t.call(e,l(u,o,c,s),l(u,o,f,s),l(u,o,c,o.notifyWith))):(a!==c&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}}var n=this,r=arguments,t=s?e:function(){try{e()}catch(e){on.Deferred.exceptionHook&&on.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==f&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(on.Deferred.getStackHook&&(t.stackTrace=on.Deferred.getStackHook()),k.setTimeout(t))}}var u=0;return on.Deferred(function(e){o[0][3].add(l(0,e,en(r)?r:c,e.notifyWith)),o[1][3].add(l(0,e,en(t)?t:c)),o[2][3].add(l(0,e,en(n)?n:f))}).promise()},promise:function(e){return null!=e?on.extend(e,a):a}},s={};return on.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){i[t]=this,o[t]=1<arguments.length?qt.call(arguments):e,--n||a.resolveWith(i,o)}}var n=arguments.length,r=n,i=Array(r),o=qt.call(arguments),a=on.Deferred();if(n<=1&&(l(e,a.done(t(r)).resolve,a.reject,!n),"pending"===a.state()||en(o[r]&&o[r].then)))return a.then();for(;r--;)l(o[r],t(r),a.reject);return a.promise()}}),se=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,on.Deferred.exceptionHook=function(e,t){k.console&&k.console.warn&&e&&se.test(e.name)&&k.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},on.readyException=function(e){k.setTimeout(function(){throw e})},le=on.Deferred(),on.fn.ready=function(e){return le.then(e).catch(function(e){on.readyException(e)}),this},on.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--on.readyWait:on.isReady)||(on.isReady=!0)!==e&&0<--on.readyWait||le.resolveWith(Bt,[on])}}),on.ready.then=le.then,"complete"===Bt.readyState||"loading"!==Bt.readyState&&!Bt.documentElement.doScroll?k.setTimeout(on.ready):(Bt.addEventListener("DOMContentLoaded",r),k.addEventListener("load",r)),ue=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===v(n))for(s in i=!0,n)ue(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,en(r)||(a=!0),u&&(t=a?(t.call(e,r),null):(u=t,function(e,t,n){return u.call(on(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},ce=/^-ms-/,fe=/-([a-z])/g,he=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},o.uid=1,o.prototype={cache:function(e){var t=e[this.expando];return t||(t={},he(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[h(t)]=n;else for(r in t)i[h(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][h(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,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(h):(t=h(t))in r?[t]:t.match(ae)||[]).length;for(;n--;)delete r[t[n]]}void 0!==t&&!on.isEmptyObject(r)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!on.isEmptyObject(t)}},de=new o,pe=new o,ge=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ve=/[A-Z]/g,on.extend({hasData:function(e){return pe.hasData(e)||de.hasData(e)},data:function(e,t,n){return pe.access(e,t,n)},removeData:function(e,t){pe.remove(e,t)},_data:function(e,t,n){return de.access(e,t,n)},_removeData:function(e,t){de.remove(e,t)}}),on.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){pe.set(this,n)}):ue(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=pe.get(o,n))?t:void 0!==(t=d(o,n))?t:void 0;this.each(function(){pe.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(i=pe.get(o),1===o.nodeType&&!de.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=h(r.slice(5)),d(o,r,i[r]));de.set(o,"hasDataAttrs",!0)}return i},removeData:function(e){return this.each(function(){pe.remove(this,e)})}}),on.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=de.get(e,t),n&&(!r||Array.isArray(n)?r=de.access(e,t,on.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=on.queue(e,t),r=n.length,i=n.shift(),o=on._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){on.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return de.get(e,n)||de.access(e,n,{empty:on.Callbacks("once memory").add(function(){de.remove(e,[t+"queue",n])})})}}),on.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?on.queue(this[0],t):void 0===n?this:this.each(function(){var e=on.queue(this,t,n);on._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&on.dequeue(this,t)})},dequeue:function(e){return this.each(function(){on.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--i||o.resolveWith(a,[a])}var r,i=1,o=on.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(r=de.get(a[s],e+"queueHooks"))&&r.empty&&(i++,r.empty.add(n));return n(),o.promise(t)}}),me=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ye=new RegExp("^(?:([+-])=|)("+me+")([a-z%]*)$","i"),be=["Top","Right","Bottom","Left"],we=Bt.documentElement,xe=function(e){return on.contains(e.ownerDocument,e)},_e={composed:!0},we.getRootNode&&(xe=function(e){return on.contains(e.ownerDocument,e)||e.getRootNode(_e)===e.ownerDocument}),ke=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&xe(e)&&"none"===on.css(e,"display")},Se=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i},Ce={},on.fn.extend({show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ke(this)?on(this).show():on(this).hide()})}}),Te=/^(?:checkbox|radio)$/i,Oe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ee=/^$|^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,"",""]}).optgroup=Me.option,Me.tbody=Me.tfoot=Me.colgroup=Me.caption=Me.thead,Me.th=Me.td,De=/<|&#?\w+;/,Mt=Bt.createDocumentFragment().appendChild(Bt.createElement("div")),(Dt=Bt.createElement("input")).setAttribute("type","radio"),Dt.setAttribute("checked","checked"),Dt.setAttribute("name","t"),Mt.appendChild(Dt),Zt.checkClone=Mt.cloneNode(!0).cloneNode(!0).lastChild.checked,Mt.innerHTML="<textarea>x</textarea>",Zt.noCloneChecked=!!Mt.cloneNode(!0).lastChild.defaultValue,Ae=/^key/,Le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Pe=/^([^.]*)(?:\.(.+)|)/,on.event={global:{},add:function(t,e,n,r,i){var o,a,s,l,u,c,f,h,d,p,g,v=de.get(t);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&on.find.matchesSelector(we,i),n.guid||(n.guid=on.guid++),(l=v.events)||(l=v.events={}),(a=v.handle)||(a=v.handle=function(e){return void 0!==on&&on.event.triggered!==e.type?on.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(ae)||[""]).length;u--;)d=g=(s=Pe.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),d&&(f=on.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=on.event.special[d]||{},c=on.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&on.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=l[d])||((h=l[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),on.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,h,d,p,g,v=de.hasData(e)&&de.get(e);if(v&&(l=v.events)){for(u=(t=(t||"").match(ae)||[""]).length;u--;)if(d=g=(s=Pe.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),d){for(f=on.event.special[d]||{},h=l[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(e,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,p,v.handle)||on.removeEvent(e,d,v.handle),delete l[d])}else for(d in l)on.event.remove(e,d+t[u],n,r,!0);on.isEmptyObject(l)&&de.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=on.event.fix(e),l=new Array(arguments.length),u=(de.get(this,"events")||{})[s.type]||[],c=on.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=on.event.handlers.call(this,s,u),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((on.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<on(i,this).index(u):on.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(t,e){Object.defineProperty(on.Event.prototype,t,{enumerable:!0,configurable:!0,get:en(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[on.expando]?e:new on.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Te.test(t.type)&&t.click&&u(t,"input")&&C(t,"click",a),!1},trigger:function(e){var t=this||e;return Te.test(t.type)&&t.click&&u(t,"input")&&C(t,"click"),!0},_default:function(e){var t=e.target;return Te.test(t.type)&&t.click&&u(t,"input")&&de.get(t,"click")||u(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},on.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},on.Event=function(e,t){if(!(this instanceof on.Event))return new on.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?a:x,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&&on.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[on.expando]=!0},on.Event.prototype={constructor:on.Event,isDefaultPrevented:x,isPropagationStopped:x,isImmediatePropagationStopped:x,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=a,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=a,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=a,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},on.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&&Ae.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Le.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},on.event.addProp),on.each({focus:"focusin",blur:"focusout"},function(e,t){on.event.special[e]={setup:function(){return C(this,e,_),!1},trigger:function(){return C(this,e),!0},delegateType:t}}),on.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){on.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||on.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),on.fn.extend({on:function(e,t,n,r){return S(this,e,t,n,r)},one:function(e,t,n,r){return S(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,on(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=x),this.each(function(){on.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i]);return this}}),Ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ie=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,on.extend({htmlPrefilter:function(e){return e.replace(Ne,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,l,u,c=e.cloneNode(!0),f=xe(e);if(!(Zt.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||on.isXMLDoc(e)))for(a=y(c),r=0,i=(o=y(e)).length;r<i;r++)s=o[r],l=a[r],void 0,"input"===(u=l.nodeName.toLowerCase())&&Te.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||y(e),a=a||y(c),r=0,i=o.length;r<i;r++)M(o[r],a[r]);else M(e,c);return 0<(a=y(c,"script")).length&&b(a,!f&&y(e,"script")),c},cleanData:function(e){for(var t,n,r,i=on.event.special,o=0;void 0!==(n=e[o]);o++)if(he(n)){if(t=n[de.expando]){if(t.events)for(r in t.events)i[r]?on.event.remove(n,r):on.removeEvent(n,r,t.handle);n[de.expando]=void 0}n[pe.expando]&&(n[pe.expando]=void 0)}}}),on.fn.extend({detach:function(e){return A(this,e,!0)},remove:function(e){return A(this,e)},text:function(e){return ue(this,function(e){return void 0===e?on.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 D(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||T(this,e).appendChild(e)})},prepend:function(){return D(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return D(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&&(on.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return on.clone(this,e,t)})},html:function(e){return ue(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ie.test(e)&&!Me[(Oe.exec(e)||["",""])[1].toLowerCase()]){e=on.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(on.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return D(this,arguments,function(e){var t=this.parentNode;on.inArray(this,n)<0&&(on.cleanData(y(this)),t&&t.replaceChild(e,this))},n)}}),on.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){on.fn[e]=function(e){for(var t,n=[],r=on(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),on(r[o])[a](t),Yt.apply(n,t.get());return this.pushStack(n)}}),Fe=new RegExp("^("+me+")(?!px)[a-z%]+$","i"),ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=k),t.getComputedStyle(e)},He=new RegExp(be.join("|"),"i"),jt=Bt.createElement("div"),(Rt=Bt.createElement("div")).style&&(Rt.style.backgroundClip="content-box",Rt.cloneNode(!0).style.backgroundClip="",Zt.clearCloneStyle="content-box"===Rt.style.backgroundClip,on.extend(Zt,{boxSizingReliable:function(){return sn(),Lt},pixelBoxStyles:function(){return sn(),Nt},pixelPosition:function(){return sn(),At},reliableMarginLeft:function(){return sn(),It},scrollboxSize:function(){return sn(),Pt}})),We=["Webkit","Moz","ms"],Be=Bt.createElement("div").style,Ue={},qe=/^(none|table(?!-c[ea]).+)/,Ge=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Ve={letterSpacing:"0",fontWeight:"400"},on.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=L(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,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=h(t),l=Ge.test(t),u=e.style;if(l||(t=N(s)),a=on.cssHooks[t]||on.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"===(o=typeof n)&&(i=ye.exec(n))&&i[1]&&(n=p(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(on.cssNumber[s]?"":"px")),Zt.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=h(t);return Ge.test(t)||(t=N(s)),(a=on.cssHooks[t]||on.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=L(e,t,r)),"normal"===i&&t in Ve&&(i=Ve[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),on.each(["height","width"],function(e,l){on.cssHooks[l]={get:function(e,t,n){if(t)return!qe.test(on.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?R(e,l,n):Se(e,Ye,function(){return R(e,l,n)})},set:function(e,t,n){var r,i=ze(e),o=!Zt.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===on.css(e,"boxSizing",!1,i),s=n?j(e,l,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(i[l])-j(e,l,"border",!1,i)-.5)),s&&(r=ye.exec(t))&&"px"!==(r[3]||"px")&&(e.style[l]=t,t=on.css(e,l)),I(0,t,s)}}}),on.cssHooks.marginLeft=P(Zt.reliableMarginLeft,function(e,t){if(t)return(parseFloat(L(e,"marginLeft"))||e.getBoundingClientRect().left-Se(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),on.each({margin:"",padding:"",border:"Width"},function(i,o){on.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+be[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(on.cssHooks[i+o].set=I)}),on.fn.extend({css:function(e,t){return ue(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=ze(e),i=t.length;a<i;a++)o[t[a]]=on.css(e,t[a],!1,r);return o}return void 0!==n?on.style(e,t,n):on.css(e,t)},e,t,1<arguments.length)}}),((on.Tween=F).prototype={constructor:F,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||on.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(on.cssNumber[n]?"":"px")},cur:function(){var e=F.propHooks[this.prop];return e&&e.get?e.get(this):F.propHooks._default.get(this)},run:function(e){var t,n=F.propHooks[this.prop];return this.options.duration?this.pos=t=on.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):F.propHooks._default.set(this),this}}).init.prototype=F.prototype,(F.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=on.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){on.fx.step[e.prop]?on.fx.step[e.prop](e):1!==e.elem.nodeType||!on.cssHooks[e.prop]&&null==e.elem.style[N(e.prop)]?e.elem[e.prop]=e.now:on.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=F.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},on.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},on.fx=F.prototype.init,on.fx.step={},Xe=/^(?:toggle|show|hide)$/,Je=/queueHooks$/,on.Animation=on.extend(U,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return p(n.elem,e,ye.exec(t),n),n}]},tweener:function(e,t){for(var n,r=0,i=(e=en(e)?(t=e,["*"]):e.match(ae)).length;r<i;r++)n=e[r],U.tweeners[n]=U.tweeners[n]||[],U.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,u,c,f="width"in t||"height"in t,h=this,d={},p=e.style,g=e.nodeType&&ke(e),v=de.get(e,"fxshow");for(r in n.queue||(null==(a=on._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,on.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],Xe.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||on.style(e,r)}if((l=!on.isEmptyObject(t))||!on.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=v&&v.display)&&(u=de.get(e,"display")),"none"===(c=on.css(e,"display"))&&(u?c=u:(m([e],!0),u=e.style.display||u,c=on.css(e,"display"),m([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===on.css(e,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,d)l||(v?"hidden"in v&&(g=v.hidden):v=de.access(e,"fxshow",{display:u}),o&&(v.hidden=!g),g&&m([e],!0),h.done(function(){for(r in g||m([e]),de.remove(e,"fxshow"),d)on.style(e,r,d[r])})),l=B(g?v[r]:0,r,h),r in v||(v[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?U.prefilters.unshift(e):U.prefilters.push(e)}}),on.speed=function(e,t,n){var r=e&&"object"==typeof e?on.extend({},e):{complete:n||!n&&t||en(e)&&e,duration:e,easing:n&&t||t&&!en(t)&&t};return on.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in on.fx.speeds?r.duration=on.fx.speeds[r.duration]:r.duration=on.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){en(r.old)&&r.old.call(this),r.queue&&on.dequeue(this,r.queue)},r},on.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ke).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){function i(){var e=U(this,on.extend({},t),a);(o||de.get(this,"finish"))&&e.stop(!0)}var o=on.isEmptyObject(t),a=on.speed(e,n,r);return i.finish=i,o||!1===a.queue?this.each(i):this.queue(a.queue,i)},stop:function(i,e,o){function a(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=on.timers,r=de.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&Je.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||on.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=de.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=on.timers,o=n?n.length:0;for(t.finish=!0,on.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),on.each(["toggle","show","hide"],function(e,r){var i=on.fn[r];on.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(W(r,!0),e,t,n)}}),on.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){on.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),on.timers=[],on.fx.tick=function(){var e,t=0,n=on.timers;for(Ke=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||on.fx.stop(),Ke=void 0},on.fx.timer=function(e){on.timers.push(e),on.fx.start()},on.fx.interval=13,on.fx.start=function(){$e||($e=!0,z())},on.fx.stop=function(){$e=null},on.fx.speeds={slow:600,fast:200,_default:400},on.fn.delay=function(r,e){return r=on.fx&&on.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=k.setTimeout(e,r);t.stop=function(){k.clearTimeout(n)}})},Ft=Bt.createElement("input"),zt=Bt.createElement("select").appendChild(Bt.createElement("option")),Ft.type="checkbox",Zt.checkOn=""!==Ft.value,Zt.optSelected=zt.selected,(Ft=Bt.createElement("input")).value="t",Ft.type="radio",Zt.radioValue="t"===Ft.value,Ze=on.expr.attrHandle,on.fn.extend({attr:function(e,t){return ue(this,on.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){on.removeAttr(this,e)})}}),on.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?on.prop(e,t,n):(1===o&&on.isXMLDoc(e)||(i=on.attrHooks[t.toLowerCase()]||(on.expr.match.bool.test(t)?Qe:void 0)),void 0!==n?null===n?void on.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=on.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!Zt.radioValue&&"radio"===t&&u(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(ae);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Qe={set:function(e,t,n){return!1===t?on.removeAttr(e,n):e.setAttribute(n,n),n}},on.each(on.expr.match.bool.source.match(/\w+/g),function(e,t){var a=Ze[t]||on.find.attr;Ze[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=Ze[o],Ze[o]=r,r=null!=a(e,t,n)?o:null,Ze[o]=i),r}}),et=/^(?:input|select|textarea|button)$/i,tt=/^(?:a|area)$/i,on.fn.extend({prop:function(e,t){return ue(this,on.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[on.propFix[e]||e]})}}),on.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&on.isXMLDoc(e)||(t=on.propFix[t]||t,i=on.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=on.find.attr(e,"tabindex");return t?parseInt(t,10):et.test(e.nodeName)||tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),Zt.optSelected||(on.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)}}),on.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){on.propFix[this.toLowerCase()]=this}),on.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,l=0;if(en(t))return this.each(function(e){on(this).addClass(t.call(this,e,G(this)))});if((e=Y(t)).length)for(;n=this[l++];)if(i=G(n),r=1===n.nodeType&&" "+q(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=q(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,l=0;if(en(t))return this.each(function(e){on(this).removeClass(t.call(this,e,G(this)))});if(!arguments.length)return this.attr("class","");if((e=Y(t)).length)for(;n=this[l++];)if(i=G(n),r=1===n.nodeType&&" "+q(i)+" "){for(a=0;o=e[a++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(s=q(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"==o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):en(i)?this.each(function(e){on(this).toggleClass(i.call(this,e,G(this),t),t)}):this.each(function(){var e,t,n,r;if(a)for(t=0,n=on(this),r=Y(i);e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==i&&"boolean"!=o||((e=G(this))&&de.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":de.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+q(G(n))+" ").indexOf(t))return!0;return!1}}),nt=/\r/g,on.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=en(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,on(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=on.map(t,function(e){return null==e?"":e+""})),(r=on.valHooks[this.type]||on.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=on.valHooks[t.type]||on.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(nt,""):null==e?"":e:void 0}}),on.extend({valHooks:{option:{get:function(e){var t=on.find.attr(e,"value");return null!=t?t:q(on.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!u(n.parentNode,"optgroup"))){if(t=on(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=on.makeArray(t),a=i.length;a--;)((r=i[a]).selected=-1<on.inArray(on.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),on.each(["radio","checkbox"],function(){on.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<on.inArray(on(e).val(),t)}},Zt.checkOn||(on.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),Zt.focusin="onfocusin"in k,rt=/^(?:focusinfocus|focusoutblur)$/,it=function(e){e.stopPropagation()},on.extend(on.event,{trigger:function(e,t,n,r){var i,o,a,s,l,u,c,f,h=[n||Bt],d=Xt.call(e,"type")?e.type:e,p=Xt.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||Bt,3!==n.nodeType&&8!==n.nodeType&&!rt.test(d+on.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),l=d.indexOf(":")<0&&"on"+d,(e=e[on.expando]?e:new on.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:on.makeArray(t,[e]),c=on.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!tn(n)){for(s=c.delegateType||d,rt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)h.push(o),a=o;a===(n.ownerDocument||Bt)&&h.push(a.defaultView||a.parentWindow||k)}for(i=0;(o=h[i++])&&!e.isPropagationStopped();)f=o,e.type=1<i?s:c.bindType||d,(u=(de.get(o,"events")||{})[e.type]&&de.get(o,"handle"))&&u.apply(o,t),(u=l&&o[l])&&u.apply&&he(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),t)||!he(n)||l&&en(n[d])&&!tn(n)&&((a=n[l])&&(n[l]=null),on.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,it),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,it),on.event.triggered=void 0,a&&(n[l]=a)),e.result}},simulate:function(e,t,n){var r=on.extend(new on.Event,n,{type:e,isSimulated:!0});on.event.trigger(r,null,t)}}),on.fn.extend({trigger:function(e,t){return this.each(function(){on.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return on.event.trigger(e,t,n,!0)}}),Zt.focusin||on.each({focus:"focusin",blur:"focusout"},function(n,r){function i(e){on.event.simulate(r,e.target,on.event.fix(e))}on.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=de.access(e,r);t||e.addEventListener(n,i,!0),de.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=de.access(e,r)-1;t?de.access(e,r,t):(e.removeEventListener(n,i,!0),de.remove(e,r))}}}),ot=k.location,at=Date.now(),st=/\?/,on.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new k.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||on.error("Invalid XML: "+e),t},lt=/\[\]$/,ut=/\r?\n/g,ct=/^(?:submit|button|image|reset|file)$/i,ft=/^(?:input|select|textarea|keygen)/i,on.param=function(e,t){function n(e,t){var n=en(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)}var r,i=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!on.isPlainObject(e))on.each(e,function(){n(this.name,this.value)});else for(r in e)V(r,e[r],t,n);return i.join("&")},on.fn.extend({serialize:function(){return on.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=on.prop(this,"elements");return e?on.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!on(this).is(":disabled")&&ft.test(this.nodeName)&&!ct.test(e)&&(this.checked||!Te.test(e))}).map(function(e,t){var n=on(this).val();return null==n?null:Array.isArray(n)?on.map(n,function(e){return{name:t.name,value:e.replace(ut,"\r\n")}}):{name:t.name,value:n.replace(ut,"\r\n")}}).get()}}),ht=/%20/g,dt=/#.*$/,pt=/([?&])_=[^&]*/,gt=/^(.*?):[ \t]*([^\r\n]*)$/gm,vt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,mt=/^(?:GET|HEAD)$/,yt=/^\/\//,bt={},wt={},xt="*/".concat("*"),(_t=Bt.createElement("a")).href=ot.href,on.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ot.href,type:"GET",isLocal:vt.test(ot.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xt,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":on.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?X(X(e,on.ajaxSettings),t):X(on.ajaxSettings,e)},ajaxPrefilter:K(bt),ajaxTransport:K(wt),ajax:function(e,t){function n(e,t,n,r){var i,o,a,s,l,u=t;p||(p=!0,d&&k.clearTimeout(d),c=void 0,h=r||"",_.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a=a||i}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(v,_,n)),s=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(v,s,_,i),i?(v.ifModified&&((l=_.getResponseHeader("Last-Modified"))&&(on.lastModified[f]=l),(l=_.getResponseHeader("etag"))&&(on.etag[f]=l)),204===e||"HEAD"===v.type?u="nocontent":304===e?u="notmodified":(u=s.state,o=s.data,i=!(a=s.error))):(a=u,!e&&u||(u="error",e<0&&(e=0))),_.status=e,_.statusText=(t||u)+"",i?b.resolveWith(m,[o,u,_]):b.rejectWith(m,[_,u,a]),_.statusCode(x),x=void 0,g&&y.trigger(i?"ajaxSuccess":"ajaxError",[_,v,i?o:a]),w.fireWith(m,[_,u]),g&&(y.trigger("ajaxComplete",[_,v]),--on.active||on.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,h,r,d,i,p,g,o,a,v=on.ajaxSetup({},t),m=v.context||v,y=v.context&&(m.nodeType||m.jquery)?on(m):on.event,b=on.Deferred(),w=on.Callbacks("once memory"),x=v.statusCode||{},s={},l={},u="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(p){if(!r)for(r={};t=gt.exec(h);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return p?h:null},setRequestHeader:function(e,t){return null==p&&(e=l[e.toLowerCase()]=l[e.toLowerCase()]||e,s[e]=t),this},overrideMimeType:function(e){return null==p&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)_.always(e[_.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),n(0,t),this}};if(b.promise(_),v.url=((e||v.url||ot.href)+"").replace(yt,ot.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(ae)||[""],null==v.crossDomain){i=Bt.createElement("a");try{i.href=v.url,i.href=i.href,v.crossDomain=_t.protocol+"//"+_t.host!=i.protocol+"//"+i.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=on.param(v.data,v.traditional)),$(bt,v,t,_),p)return _;for(o in(g=on.event&&v.global)&&0==on.active++&&on.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!mt.test(v.type),f=v.url.replace(dt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(ht,"+")):(a=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(st.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(pt,"$1"),a=(st.test(f)?"&":"?")+"_="+at+++a),v.url=f+a),v.ifModified&&(on.lastModified[f]&&_.setRequestHeader("If-Modified-Since",on.lastModified[f]),on.etag[f]&&_.setRequestHeader("If-None-Match",on.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&_.setRequestHeader("Content-Type",v.contentType),_.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+xt+"; q=0.01":""):v.accepts["*"]),v.headers)_.setRequestHeader(o,v.headers[o]);if(v.beforeSend&&(!1===v.beforeSend.call(m,_,v)||p))return _.abort();if(u="abort",w.add(v.complete),_.done(v.success),_.fail(v.error),c=$(wt,v,t,_)){if(_.readyState=1,g&&y.trigger("ajaxSend",[_,v]),p)return _;v.async&&0<v.timeout&&(d=k.setTimeout(function(){_.abort("timeout")},v.timeout));try{p=!1,c.send(s,n)}catch(e){if(p)throw e;n(-1,e)}}else n(-1,"No Transport");return _},getJSON:function(e,t,n){return on.get(e,t,n,"json")},getScript:function(e,t){return on.get(e,void 0,t,"script")}}),on.each(["get","post"],function(e,i){on[i]=function(e,t,n,r){return en(t)&&(r=r||n,n=t,t=void 0),on.ajax(on.extend({url:e,type:i,dataType:r,data:t,success:n},on.isPlainObject(e)&&e))}}),on._evalUrl=function(e,t){return on.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){on.globalEval(e,t)}})},on.fn.extend({wrapAll:function(e){var t;return this[0]&&(en(e)&&(e=e.call(this[0])),t=on(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(n){return en(n)?this.each(function(e){on(this).wrapInner(n.call(this,e))}):this.each(function(){var e=on(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=en(t);return this.each(function(e){on(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){on(this).replaceWith(this.childNodes)}),this}}),on.expr.pseudos.hidden=function(e){return!on.expr.pseudos.visible(e)},on.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},on.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(e){}},kt={0:200,1223:204},St=on.ajaxSettings.xhr(),Zt.cors=!!St&&"withCredentials"in St,Zt.ajax=St=!!St,on.ajaxTransport(function(i){var o,a;if(Zt.cors||St&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(kt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&k.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),on.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),on.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 on.globalEval(e),e}}}),on.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),on.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=on("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),Bt.head.appendChild(r[0])},abort:function(){i&&i()}}}),Ct=[],Tt=/(=)\?(?=&|$)|\?\?/,on.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ct.pop()||on.expando+"_"+at++;return this[e]=!0,e}}),on.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Tt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Tt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=en(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Tt,"$1"+r):!1!==e.jsonp&&(e.url+=(st.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||on.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=k[r],k[r]=function(){o=arguments},n.always(function(){void 0===i?on(k).removeProp(r):k[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Ct.push(r)),o&&en(i)&&i(o[0]),o=i=void 0}),"script"}),Zt.createHTMLDocument=((Ht=Bt.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ht.childNodes.length),on.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(Zt.createHTMLDocument?((r=(t=Bt.implementation.createHTMLDocument("")).createElement("base")).href=Bt.location.href,t.head.appendChild(r)):t=Bt),o=!n&&[],(i=te.exec(e))?[t.createElement(i[1])]:(i=w([e],t,o),o&&o.length&&on(o).remove(),on.merge([],i.childNodes)));var r,i,o},on.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=q(e.slice(s)),e=e.slice(0,s)),en(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&on.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?on("<div>").append(on.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},on.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){on.fn[t]=function(e){return this.on(t,e)}}),on.expr.pseudos.animated=function(t){return on.grep(on.timers,function(e){return t===e.elem}).length},on.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=on.css(e,"position"),c=on(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=on.css(e,"top"),l=on.css(e,"left"),i=("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(a=(r=c.position()).top,r.left):(a=parseFloat(o)||0,parseFloat(l)||0),en(t)&&(t=t.call(e,n,on.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},on.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){on.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===on.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===on.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=on(e).offset()).top+=on.css(e,"borderTopWidth",!0),i.left+=on.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-on.css(r,"marginTop",!0),left:t.left-i.left-on.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===on.css(e,"position");)e=e.offsetParent;return e||we})}}),on.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;on.fn[t]=function(e){return ue(this,function(e,t,n){var r;if(tn(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),on.each(["top","left"],function(e,n){on.cssHooks[n]=P(Zt.pixelPosition,function(e,t){if(t)return t=L(e,n),Fe.test(t)?on(e).position()[n]+"px":t})}),on.each({Height:"height",Width:"width"},function(a,s){on.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){on.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return ue(this,function(e,t,n){var r;return tn(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?on.css(e,t,i):on.style(e,t,n,i)},s,n?e:void 0,n)}})}),on.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,n){on.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),on.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),on.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),on.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),en(e))return r=qt.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(qt.call(arguments)))}).guid=e.guid=e.guid||on.guid++,i},on.holdReady=function(e){e?on.readyWait++:on.ready(!0)},on.isArray=Array.isArray,on.parseJSON=JSON.parse,on.nodeName=u,on.isFunction=en,on.isWindow=tn,on.camelCase=h,on.type=v,on.now=Date.now,on.isNumeric=function(e){var t=on.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(fn=function(){return on}.apply(cn,[]))||(un.exports=fn),Ot=k.jQuery,Et=k.$,on.noConflict=function(e){return k.$===on&&(k.$=Et),e&&k.jQuery===on&&(k.jQuery=Ot),on},e||(k.jQuery=k.$=on),on})},,,,,,,,,function(e,t,n){var g=n(20),v=n(79),m=n(53),y=n(54),b=n(80),w="prototype",x=function(e,t,n){var r,i,o,a,s=e&x.F,l=e&x.G,u=e&x.S,c=e&x.P,f=e&x.B,h=l?g:u?g[t]||(g[t]={}):(g[t]||{})[w],d=l?v:v[t]||(v[t]={}),p=d[w]||(d[w]={});for(r in l&&(n=t),n)o=((i=!s&&h&&void 0!==h[r])?h:n)[r],a=f&&i?b(o,g):c&&"function"==typeof o?b(Function.call,o):o,h&&y(h,r,o,e&x.U),d[r]!=o&&m(d,r,a),c&&p[r]!=o&&(p[r]=o)};g.core=v,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128,e.exports=x},,,,,,,,,,function(e,t,n){var r=n(24);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,,function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},,,,function(e,t,n){var r=n(179)("wks"),i=n(103),o=n(20).Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},,,,,,,,function(e,t,n){e.exports=!n(21)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(19),i=n(260),o=n(72),a=Object.defineProperty;t.f=n(36)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},,,function(e,t,n){var r=n(92),i=Math.min;e.exports=function(e){return 0<e?i(r(e),9007199254740991):0}},,,,,function(e,t,n){var r=n(67);e.exports=function(e){return Object(r(e))}},,,,function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},,,function(e,t,n){var r,i,o;i=[n(0)],void 0===(o="function"==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r=n(37),i=n(90);e.exports=n(36)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(20),a=n(53),s=n(49),l=n(103)("src"),r="toString",i=Function[r],u=(""+i).split(r);n(79).inspectSource=function(e){return i.call(e)},(e.exports=function(e,t,n,r){var i="function"==typeof n;i&&(s(n,"name")||a(n,"name",t)),e[t]!==n&&(i&&(s(n,l)||a(n,l,e[t]?""+e[t]:u.join(String(t)))),e===o?e[t]=n:r?e[t]?e[t]=n:a(e,t,n):(delete e[t],a(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[l]||i.call(this)})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(148),i=n(67);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(9),i=n(21),a=n(67),s=/"/g,o=function(e,t,n,r){var i=String(a(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+String(r).replace(s,"&quot;")+'"'),o+">"+i+"</"+t+">"};e.exports=function(t,e){var n={};n[t]=e(o),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length}),"String",n)}},function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,g=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),x=n||r||i,_=x&&(n?document.documentMode||6:+(i||r)[1]),v=!i&&/WebKit\//.test(e),o=v&&/Qt\/\d+\.\d+/.test(e),a=!i&&/Chrome\//.test(e),m=/Opera\//.test(e),s=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),u=/PhantomJS/.test(e),c=!i&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),f=/Android/.test(e),h=c||f||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=c||/Mac/.test(t),d=/\bCrOS\b/.test(e),p=/win/i.test(t),b=m&&e.match(/Version\/(\d*\.\d*)/);if(b){b=Number(b[1])}if(b&&b>=15){m=false;v=true}var w=y&&(o||m&&(b==null||b<12.11)),k=g||x&&_>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C=function(e,t){var n=e.className;var r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}},T;function O(e){for(var t=e.childNodes.length;t>0;--t){e.removeChild(e.firstChild)}return e}function E(e,t){return O(e).appendChild(t)}function A(e,t,n,r){var i=document.createElement(e);if(n){i.className=n}if(r){i.style.cssText=r}if(typeof t=="string"){i.appendChild(document.createTextNode(t))}else if(t){for(var o=0;o<t.length;++o){i.appendChild(t[o])}}return i}function M(e,t,n,r){var i=A(e,t,n,r);i.setAttribute("role","presentation");return i}if(document.createRange){T=function(e,t,n,r){var i=document.createRange();i.setEnd(r||e,n);i.setStart(e,t);return i}}else{T=function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}r.collapse(true);r.moveEnd("character",n);r.moveStart("character",t);return r}}function D(e,t){if(t.nodeType==3){t=t.parentNode}if(e.contains){return e.contains(t)}do{if(t.nodeType==11){t=t.host}if(t==e){return true}}while(t=t.parentNode)}function L(){var t;try{t=document.activeElement}catch(e){t=document.body||null}while(t&&t.shadowRoot&&t.shadowRoot.activeElement){t=t.shadowRoot.activeElement}return t}function P(e,t){var n=e.className;if(!S(t).test(n)){e.className+=(n?" ":"")+t}}function N(e,t){var n=e.split(" ");for(var r=0;r<n.length;r++){if(n[r]&&!S(n[r]).test(t)){t+=" "+n[r]}}return t}var I=function(e){e.select()};if(c){I=function(e){e.selectionStart=0;e.selectionEnd=e.value.length}}else if(x){I=function(e){try{e.select()}catch(e){}}}function j(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function R(e,t,n){if(!t){t={}}for(var r in e){if(e.hasOwnProperty(r)&&(n!==false||!t.hasOwnProperty(r))){t[r]=e[r]}}return t}function F(e,t,n,r,i){if(t==null){t=e.search(/[^\s\u00a0]/);if(t==-1){t=e.length}}for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t){return a+(t-o)}a+=s-o;a+=n-a%n;o=s+1}}var z=function(){this.id=null};function H(e,t){for(var n=0;n<e.length;++n){if(e[n]==t){return n}}return-1}z.prototype.set=function(e,t){clearTimeout(this.id);this.id=setTimeout(t,e)};var W=30,B={toString:function(){return"CodeMirror.Pass"}},U={scroll:false},q={origin:"*mouse"},G={origin:"+move"};function Y(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);if(o==-1){o=e.length}var a=o-r;if(o==e.length||i+a>=t){return r+Math.min(a,t-i)}i+=o-r;i+=n-i%n;r=o+1;if(i>=t){return r}}}var V=[""];function K(e){while(V.length<=e){V.push($(V)+" ")}return V[e]}function $(e){return e[e.length-1]}function X(e,t){var n=[];for(var r=0;r<e.length;r++){n[r]=t(e[r],r)}return n}function J(e,t,n){var r=0,i=n(t);while(r<e.length&&n(e[r])<=i){r++}e.splice(r,0,t)}function Q(){}function Z(e,t){var n;if(Object.create){n=Object.create(e)}else{Q.prototype=e;n=new Q}if(t){R(t,n)}return n}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){if(!t){return te(e)}if(t.source.indexOf("\\w")>-1&&te(e)){return true}return t.test(e)}function re(e){for(var t in e){if(e.hasOwnProperty(t)&&e[t]){return false}}return true}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){while((n<0?t>0:t<e.length)&&oe(e.charAt(t))){t+=n}return t}function se(e,t,n){var r=t>n?-1:1;for(;;){if(t==n){return t}var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t){return e(o)?t:n}if(e(o)){n=o}else{t=o+r}}}function le(e,t,n){var r=this;this.input=n;r.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler");r.scrollbarFiller.setAttribute("cm-not-content","true");r.gutterFiller=A("div",null,"CodeMirror-gutter-filler");r.gutterFiller.setAttribute("cm-not-content","true");r.lineDiv=M("div",null,"CodeMirror-code");r.selectionDiv=A("div",null,null,"position: relative; z-index: 1");r.cursorDiv=A("div",null,"CodeMirror-cursors");r.measure=A("div",null,"CodeMirror-measure");r.lineMeasure=A("div",null,"CodeMirror-measure");r.lineSpace=M("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var i=M("div",[r.lineSpace],"CodeMirror-lines");r.mover=A("div",[i],null,"position: relative");r.sizer=A("div",[r.mover],"CodeMirror-sizer");r.sizerWidth=null;r.heightForcer=A("div",null,null,"position: absolute; height: "+W+"px; width: 1px;");r.gutters=A("div",null,"CodeMirror-gutters");r.lineGutter=null;r.scroller=A("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll");r.scroller.setAttribute("tabIndex","-1");r.wrapper=A("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror");if(x&&_<8){r.gutters.style.zIndex=-1;r.scroller.style.paddingRight=0}if(!v&&!(g&&h)){r.scroller.draggable=true}if(e){if(e.appendChild){e.appendChild(r.wrapper)}else{e(r.wrapper)}}r.viewFrom=r.viewTo=t.first;r.reportedViewFrom=r.reportedViewTo=t.first;r.view=[];r.renderedView=null;r.externalMeasured=null;r.viewOffset=0;r.lastWrapHeight=r.lastWrapWidth=0;r.updateLineNumbers=null;r.nativeBarWidth=r.barHeight=r.barWidth=0;r.scrollbarsClipped=false;r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null;r.alignWidgets=false;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null;r.maxLine=null;r.maxLineLength=0;r.maxLineChanged=false;r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null;r.shift=false;r.selForContextMenu=null;r.activeTouch=null;n.init(r)}function ue(e,t){t-=e.first;if(t<0||t>=e.size){throw new Error("There is no line "+(t+e.first)+" in the document.")}var n=e;while(!n.lines){for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}}return n.lines[t]}function ce(e,n,r){var i=[],o=n.line;e.iter(n.line,r.line+1,function(e){var t=e.text;if(o==r.line){t=t.slice(0,r.ch)}if(o==n.line){t=t.slice(n.ch)}i.push(t);++o});return i}function fe(e,t,n){var r=[];e.iter(t,n,function(e){r.push(e.text)});return r}function he(e,t){var n=t-e.height;if(n){for(var r=e;r;r=r.parent){r.height+=n}}}function de(e){if(e.parent==null){return null}var t=e.parent,n=H(t.lines,e);for(var r=t.parent;r;t=r,r=r.parent){for(var i=0;;++i){if(r.children[i]==t){break}n+=r.children[i].chunkSize()}}return n+t.first}function pe(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o;n+=i.chunkSize()}return n}while(!e.lines);var a=0;for(;a<e.lines.length;++a){var s=e.lines[a],l=s.height;if(t<l){break}t-=l}return n+a}function ge(e,t){return t>=e.first&&t<e.first+e.size}function ve(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function me(e,t,n){if(n===void 0)n=null;if(!(this instanceof me)){return new me(e,t,n)}this.line=e;this.ch=t;this.sticky=n}function ye(e,t){return e.line-t.line||e.ch-t.ch}function be(e,t){return e.sticky==t.sticky&&ye(e,t)==0}function we(e){return me(e.line,e.ch)}function xe(e,t){return ye(e,t)<0?t:e}function _e(e,t){return ye(e,t)<0?e:t}function ke(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Se(e,t){if(t.line<e.first){return me(e.first,0)}var n=e.first+e.size-1;if(t.line>n){return me(n,ue(e,n).text.length)}return Ce(t,ue(e,t.line).text.length)}function Ce(e,t){var n=e.ch;if(n==null||n>t){return me(e.line,t)}else if(n<0){return me(e.line,0)}else{return e}}function Te(e,t){var n=[];for(var r=0;r<t.length;r++){n[r]=Se(e,t[r])}return n}var Oe=false,Ee=false;function Me(){Oe=true}function De(){Ee=true}function Ae(e,t,n){this.marker=e;this.from=t;this.to=n}function Le(e,t){if(e){for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t){return r}}}}function Pe(e,t){var n;for(var r=0;r<e.length;++r){if(e[r]!=t){(n||(n=[])).push(e[r])}}return n}function Ne(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t];t.marker.attachLine(e)}function Ie(e,t,n){var r;if(e){for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;var s=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);if(s||o.from==t&&a.type=="bookmark"&&(!n||!o.marker.insertLeft)){var l=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Ae(a,o.from,l?null:o.to))}}}return r}function je(e,t,n){var r;if(e){for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;var s=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);if(s||o.from==t&&a.type=="bookmark"&&(!n||o.marker.insertLeft)){var l=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Ae(a,l?null:o.from-t,o.to==null?null:o.to-t))}}}return r}function Re(e,t){if(t.full){return null}var n=ge(e,t.from.line)&&ue(e,t.from.line).markedSpans;var r=ge(e,t.to.line)&&ue(e,t.to.line).markedSpans;if(!n&&!r){return null}var i=t.from.ch,o=t.to.ch,a=ye(t.from,t.to)==0;var s=Ie(n,i,a);var l=je(r,o,a);var u=t.text.length==1,c=$(t.text).length+(u?i:0);if(s){for(var f=0;f<s.length;++f){var h=s[f];if(h.to==null){var d=Le(l,h.marker);if(!d){h.to=i}else if(u){h.to=d.to==null?null:d.to+c}}}}if(l){for(var p=0;p<l.length;++p){var g=l[p];if(g.to!=null){g.to+=c}if(g.from==null){var v=Le(s,g.marker);if(!v){g.from=c;if(u){(s||(s=[])).push(g)}}}else{g.from+=c;if(u){(s||(s=[])).push(g)}}}}if(s){s=Fe(s)}if(l&&l!=s){l=Fe(l)}var m=[s];if(!u){var y=t.text.length-2,b;if(y>0&&s){for(var w=0;w<s.length;++w){if(s[w].to==null){(b||(b=[])).push(new Ae(s[w].marker,null,null))}}}for(var x=0;x<y;++x){m.push(b)}m.push(l)}return m}function Fe(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.from!=null&&n.from==n.to&&n.marker.clearWhenEmpty!==false){e.splice(t--,1)}}if(!e.length){return null}return e}function ze(e,t,n){var r=null;e.iter(t.line,n.line+1,function(e){if(e.markedSpans){for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;if(n.readOnly&&(!r||H(r,n)==-1)){(r||(r=[])).push(n)}}}});if(!r){return null}var i=[{from:t,to:n}];for(var o=0;o<r.length;++o){var a=r[o],s=a.find(0);for(var l=0;l<i.length;++l){var u=i[l];if(ye(u.to,s.from)<0||ye(u.from,s.to)>0){continue}var c=[l,1],f=ye(u.from,s.from),h=ye(u.to,s.to);if(f<0||!a.inclusiveLeft&&!f){c.push({from:u.from,to:s.from})}if(h>0||!a.inclusiveRight&&!h){c.push({from:s.to,to:u.to})}i.splice.apply(i,c);l+=c.length-3}}return i}function He(e){var t=e.markedSpans;if(!t){return}for(var n=0;n<t.length;++n){t[n].marker.detachLine(e)}e.markedSpans=null}function We(e,t){if(!t){return}for(var n=0;n<t.length;++n){t[n].marker.attachLine(e)}e.markedSpans=t}function Be(e){return e.inclusiveLeft?-1:0}function Ue(e){return e.inclusiveRight?1:0}function qe(e,t){var n=e.lines.length-t.lines.length;if(n!=0){return n}var r=e.find(),i=t.find();var o=ye(r.from,i.from)||Be(e)-Be(t);if(o){return-o}var a=ye(r.to,i.to)||Ue(e)-Ue(t);if(a){return a}return t.id-e.id}function Ge(e,t){var n=Ee&&e.markedSpans,r;if(n){for(var i=void 0,o=0;o<n.length;++o){i=n[o];if(i.marker.collapsed&&(t?i.from:i.to)==null&&(!r||qe(r,i.marker)<0)){r=i.marker}}}return r}function Ye(e){return Ge(e,true)}function Ve(e){return Ge(e,false)}function Ke(e,t,n,r,i){var o=ue(e,t);var a=Ee&&o.markedSpans;if(a){for(var s=0;s<a.length;++s){var l=a[s];if(!l.marker.collapsed){continue}var u=l.marker.find(0);var c=ye(u.from,n)||Be(l.marker)-Be(i);var f=ye(u.to,r)||Ue(l.marker)-Ue(i);if(c>=0&&f<=0||c<=0&&f>=0){continue}if(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ye(u.to,n)>=0:ye(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ye(u.from,r)<=0:ye(u.from,r)<0)){return true}}}}function $e(e){var t;while(t=Ye(e)){e=t.find(-1,true).line}return e}function Xe(e){var t;while(t=Ve(e)){e=t.find(1,true).line}return e}function Je(e){var t,n;while(t=Ve(e)){e=t.find(1,true).line;(n||(n=[])).push(e)}return n}function Qe(e,t){var n=ue(e,t),r=$e(n);if(n==r){return t}return de(r)}function Ze(e,t){if(t>e.lastLine()){return t}var n=ue(e,t),r;if(!et(e,n)){return t}while(r=Ve(n)){n=r.find(1,true).line}return de(n)+1}function et(e,t){var n=Ee&&t.markedSpans;if(n){for(var r=void 0,i=0;i<n.length;++i){r=n[i];if(!r.marker.collapsed){continue}if(r.from==null){return true}if(r.marker.widgetNode){continue}if(r.from==0&&r.marker.inclusiveLeft&&tt(e,t,r)){return true}}}}function tt(e,t,n){if(n.to==null){var r=n.marker.find(1,true);return tt(e,r.line,Le(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length){return true}for(var i=void 0,o=0;o<t.markedSpans.length;++o){i=t.markedSpans[o];if(i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(i.to==null||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&tt(e,t,i)){return true}}}function nt(e){e=$e(e);var t=0,n=e.parent;for(var r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e){break}else{t+=i.height}}for(var o=n.parent;o;n=o,o=n.parent){for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n){break}else{t+=s.height}}}return t}function rt(e){if(e.height==0){return 0}var t=e.text.length,n,r=e;while(n=Ye(r)){var i=n.find(0,true);r=i.from.line;t+=i.from.ch-i.to.ch}r=e;while(n=Ve(r)){var o=n.find(0,true);t-=r.text.length-o.from.ch;r=o.to.line;t+=r.text.length-o.to.ch}return t}function it(e){var n=e.display,t=e.doc;n.maxLine=ue(t,t.first);n.maxLineLength=rt(n.maxLine);n.maxLineChanged=true;t.iter(function(e){var t=rt(e);if(t>n.maxLineLength){n.maxLineLength=t;n.maxLine=e}})}function ot(e,t,n,r){if(!e){return r(t,n,"ltr",0)}var i=false;for(var o=0;o<e.length;++o){var a=e[o];if(a.from<n&&a.to>t||t==n&&a.to==t){r(Math.max(a.from,t),Math.min(a.to,n),a.level==1?"rtl":"ltr",o);i=true}}if(!i){r(t,n,"ltr")}}var at=null;function st(e,t,n){var r;at=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t){return i}if(o.to==t){if(o.from!=o.to&&n=="before"){r=i}else{at=i}}if(o.from==t){if(o.from!=o.to&&n!="before"){r=i}else{at=i}}}return r!=null?r:at}var lt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN";var n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function R(e){if(e<=247){return t.charAt(e)}else if(1424<=e&&e<=1524){return"R"}else if(1536<=e&&e<=1785){return n.charAt(e-1536)}else if(1774<=e&&e<=2220){return"r"}else if(8192<=e&&e<=8203){return"w"}else if(e==8204){return"b"}else{return"L"}}var F=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;var z=/[stwN]/,H=/[LRr]/,W=/[Lb1n]/,B=/[1n]/;function U(e,t,n){this.level=e;this.from=t;this.to=n}return function(e,t){var n=t=="ltr"?"L":"R";if(e.length==0||t=="ltr"&&!F.test(e)){return false}var r=e.length,i=[];for(var o=0;o<r;++o){i.push(R(e.charCodeAt(o)))}for(var a=0,s=n;a<r;++a){var l=i[a];if(l=="m"){i[a]=s}else{s=l}}for(var u=0,c=n;u<r;++u){var f=i[u];if(f=="1"&&c=="r"){i[u]="n"}else if(H.test(f)){c=f;if(f=="r"){i[u]="R"}}}for(var h=1,d=i[0];h<r-1;++h){var p=i[h];if(p=="+"&&d=="1"&&i[h+1]=="1"){i[h]="1"}else if(p==","&&d==i[h+1]&&(d=="1"||d=="n")){i[h]=d}d=p}for(var g=0;g<r;++g){var v=i[g];if(v==","){i[g]="N"}else if(v=="%"){var m=void 0;for(m=g+1;m<r&&i[m]=="%";++m){}var y=g&&i[g-1]=="!"||m<r&&i[m]=="1"?"1":"N";for(var b=g;b<m;++b){i[b]=y}g=m-1}}for(var w=0,x=n;w<r;++w){var _=i[w];if(x=="L"&&_=="1"){i[w]="L"}else if(H.test(_)){x=_}}for(var k=0;k<r;++k){if(z.test(i[k])){var S=void 0;for(S=k+1;S<r&&z.test(i[S]);++S){}var C=(k?i[k-1]:n)=="L";var T=(S<r?i[S]:n)=="L";var O=C==T?C?"L":"R":n;for(var E=k;E<S;++E){i[E]=O}k=S-1}}var M=[],D;for(var A=0;A<r;){if(W.test(i[A])){var L=A;for(++A;A<r&&W.test(i[A]);++A){}M.push(new U(0,L,A))}else{var P=A,N=M.length;for(++A;A<r&&i[A]!="L";++A){}for(var I=P;I<A;){if(B.test(i[I])){if(P<I){M.splice(N,0,new U(1,P,I))}var j=I;for(++I;I<A&&B.test(i[I]);++I){}M.splice(N,0,new U(2,j,I));P=I}else{++I}}if(P<A){M.splice(N,0,new U(1,P,A))}}}if(t=="ltr"){if(M[0].level==1&&(D=e.match(/^\s+/))){M[0].from=D[0].length;M.unshift(new U(0,0,D[0].length))}if($(M).level==1&&(D=e.match(/\s+$/))){$(M).to-=D[0].length;M.push(new U(0,r-D[0].length,r))}}return t=="rtl"?M.reverse():M}}();function ut(e,t){var n=e.order;if(n==null){n=e.order=lt(e.text,t)}return n}var ct=[],ft=function(e,t,n){if(e.addEventListener){e.addEventListener(t,n,false)}else if(e.attachEvent){e.attachEvent("on"+t,n)}else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ct).concat(n)}};function ht(e,t){return e._handlers&&e._handlers[t]||ct}function dt(e,t,n){if(e.removeEventListener){e.removeEventListener(t,n,false)}else if(e.detachEvent){e.detachEvent("on"+t,n)}else{var r=e._handlers,i=r&&r[t];if(i){var o=H(i,n);if(o>-1){r[t]=i.slice(0,o).concat(i.slice(o+1))}}}}function pt(e,t){var n=ht(e,t);if(!n.length){return}var r=Array.prototype.slice.call(arguments,2);for(var i=0;i<n.length;++i){n[i].apply(null,r)}}function gt(e,t,n){if(typeof t=="string"){t={type:t,preventDefault:function(){this.defaultPrevented=true}}}pt(e,n||t.type,e,t);return xt(t)||t.codemirrorIgnore}function vt(e){var t=e._handlers&&e._handlers.cursorActivity;if(!t){return}var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]);for(var r=0;r<t.length;++r){if(H(n,t[r])==-1){n.push(t[r])}}}function mt(e,t){return ht(e,t).length>0}function yt(e){e.prototype.on=function(e,t){ft(this,e,t)};e.prototype.off=function(e,t){dt(this,e,t)}}function bt(e){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}}function wt(e){if(e.stopPropagation){e.stopPropagation()}else{e.cancelBubble=true}}function xt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==false}function _t(e){bt(e);wt(e)}function kt(e){return e.target||e.srcElement}function St(e){var t=e.which;if(t==null){if(e.button&1){t=1}else if(e.button&2){t=3}else if(e.button&4){t=2}}if(y&&e.ctrlKey&&t==1){t=3}return t}var Ct=function(){if(x&&_<9){return false}var e=A("div");return"draggable"in e||"dragDrop"in e}(),Tt,Ot;function Et(e){if(Tt==null){var t=A("span","");E(e,A("span",[t,document.createTextNode("x")]));if(e.firstChild.offsetHeight!=0){Tt=t.offsetWidth<=1&&t.offsetHeight>2&&!(x&&_<8)}}var n=Tt?A("span",""):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");n.setAttribute("cm-text","");return n}function Mt(e){if(Ot!=null){return Ot}var t=E(e,document.createTextNode("AخA"));var n=T(t,0,1).getBoundingClientRect();var r=T(t,1,2).getBoundingClientRect();O(e);if(!n||n.left==n.right){return false}return Ot=r.right-n.right<3}var Dt="\n\nb".split(/\n/).length!=3?function(e){var t=0,n=[],r=e.length;while(t<=r){var i=e.indexOf("\n",t);if(i==-1){i=e.length}var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i);var a=o.indexOf("\r");if(a!=-1){n.push(o.slice(0,a));t+=a+1}else{n.push(o);t=i+1}}return n}:function(e){return e.split(/\r\n?|\n/)},At=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return false}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}if(!t||t.parentElement()!=e){return false}return t.compareEndPoints("StartToEnd",t)!=0},Lt=function(){var e=A("div");if("oncopy"in e){return true}e.setAttribute("oncopy","return;");return typeof e.oncopy=="function"}(),Pt=null;function Nt(e){if(Pt!=null){return Pt}var t=E(e,A("span","x"));var n=t.getBoundingClientRect();var r=T(t,0,1).getBoundingClientRect();return Pt=Math.abs(n.left-r.left)>1}var It={},jt={};function Rt(e,t){if(2<arguments.length)t.dependencies=Array.prototype.slice.call(arguments,2);It[e]=t}function Ft(e,t){jt[e]=t}function zt(e){if(typeof e=="string"&&jt.hasOwnProperty(e)){e=jt[e]}else if(e&&typeof e.name=="string"&&jt.hasOwnProperty(e.name)){var t=jt[e.name];if(typeof t=="string"){t={name:t}}e=Z(t,e);e.name=t.name}else if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e)){return zt("application/xml")}else if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e)){return zt("application/json")}if(typeof e=="string"){return{name:e}}else{return e||{name:"null"}}}function Ht(e,t){t=zt(t);var n=It[t.name];if(!n){return Ht(e,"text/plain")}var r=n(e,t);if(Wt.hasOwnProperty(t.name)){var i=Wt[t.name];for(var o in i){if(!i.hasOwnProperty(o)){continue}if(r.hasOwnProperty(o)){r["_"+o]=r[o]}r[o]=i[o]}}r.name=t.name;if(t.helperType){r.helperType=t.helperType}if(t.modeProps){for(var a in t.modeProps){r[a]=t.modeProps[a]}}return r}var Wt={};function Bt(e,t){var n=Wt.hasOwnProperty(e)?Wt[e]:Wt[e]={};R(t,n)}function Ut(e,t){if(t===true){return t}if(e.copyState){return e.copyState(t)}var n={};for(var r in t){var i=t[r];if(i instanceof Array){i=i.concat([])}n[r]=i}return n}function qt(e,t){var n;while(e.innerMode){n=e.innerMode(t);if(!n||n.mode==e){break}t=n.state;e=n.mode}return n||{mode:e,state:t}}function Gt(e,t,n){return e.startState?e.startState(t,n):true}var Yt=function(e,t,n){this.pos=this.start=0;this.string=e;this.tabSize=t||8;this.lastColumnPos=this.lastColumnValue=0;this.lineStart=0;this.lineOracle=n};Yt.prototype.eol=function(){return this.pos>=this.string.length},Yt.prototype.sol=function(){return this.pos==this.lineStart},Yt.prototype.peek=function(){return this.string.charAt(this.pos)||undefined},Yt.prototype.next=function(){if(this.pos<this.string.length){return this.string.charAt(this.pos++)}},Yt.prototype.eat=function(e){var t=this.string.charAt(this.pos);var n;if(typeof e=="string"){n=t==e}else{n=t&&(e.test?e.test(t):e(t))}if(n){++this.pos;return t}},Yt.prototype.eatWhile=function(e){var t=this.pos;while(this.eat(e)){}return this.pos>t},Yt.prototype.eatSpace=function(){var e=this;var t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos))){++e.pos}return this.pos>t},Yt.prototype.skipToEnd=function(){this.pos=this.string.length},Yt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1){this.pos=t;return true}},Yt.prototype.backUp=function(e){this.pos-=e},Yt.prototype.column=function(){if(this.lastColumnPos<this.start){this.lastColumnValue=F(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue);this.lastColumnPos=this.start}return this.lastColumnValue-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},Yt.prototype.indentation=function(){return F(this.string,null,this.tabSize)-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},Yt.prototype.match=function(e,t,n){if(typeof e=="string"){var r=function(e){return n?e.toLowerCase():e};var i=this.string.substr(this.pos,e.length);if(r(i)==r(e)){if(t!==false){this.pos+=e.length}return true}}else{var o=this.string.slice(this.pos).match(e);if(o&&o.index>0){return null}if(o&&t!==false){this.pos+=o[0].length}return o}},Yt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Yt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Yt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Yt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Vt=function(e,t){this.state=e;this.lookAhead=t},Kt=function(e,t,n,r){this.state=t;this.doc=e;this.line=n;this.maxLookAhead=r||0;this.baseTokens=null;this.baseTokenPos=1};function $t(t,n,r,e){var l=[t.state.modeGen],i={};on(t,n.text,t.doc.mode,r,function(e,t){return l.push(e,t)},i,e);var u=r.state;var o=function(e){r.baseTokens=l;var o=t.state.overlays[e],a=1,s=0;r.state=true;on(t,n.text,o.mode,r,function(e,t){var n=a;while(s<e){var r=l[a];if(r>e){l.splice(a,1,e,l[a+1],r)}a+=2;s=Math.min(e,r)}if(!t){return}if(o.opaque){l.splice(n,a-n,e,"overlay "+t);a=n+2}else{for(;n<a;n+=2){var i=l[n+1];l[n+1]=(i?i+" ":"")+"overlay "+t}}},i);r.state=u;r.baseTokens=null;r.baseTokenPos=1};for(var a=0;a<t.state.overlays.length;++a)o(a);return{styles:l,classes:i.bgClass||i.textClass?i:null}}function Xt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Jt(e,de(t));var i=t.text.length>e.options.maxHighlightLength&&Ut(e.doc.mode,r.state);var o=$t(e,t,r);if(i){r.state=i}t.stateAfter=r.save(!i);t.styles=o.styles;if(o.classes){t.styleClasses=o.classes}else if(t.styleClasses){t.styleClasses=null}if(n===e.doc.highlightFrontier){e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier)}}return t.styles}function Jt(n,r,e){var t=n.doc,i=n.display;if(!t.mode.startState){return new Kt(t,true,r)}var o=an(n,r,e);var a=o>t.first&&ue(t,o-1).stateAfter;var s=a?Kt.fromSaved(t,a,o):new Kt(t,Gt(t.mode),o);t.iter(o,r,function(e){Qt(n,e.text,s);var t=s.line;e.stateAfter=t==r-1||t%5==0||t>=i.viewFrom&&t<i.viewTo?s.save():null;s.nextLine()});if(e){t.modeFrontier=s.line}return s}function Qt(e,t,n,r){var i=e.doc.mode;var o=new Yt(t,e.options.tabSize,n);o.start=o.pos=r||0;if(t==""){Zt(i,n.state)}while(!o.eol()){en(i,o,n.state);o.start=o.pos}}function Zt(e,t){if(e.blankLine){return e.blankLine(t)}if(!e.innerMode){return}var n=qt(e,t);if(n.mode.blankLine){return n.mode.blankLine(n.state)}}function en(e,t,n,r){for(var i=0;i<10;i++){if(r){r[0]=qt(e,n).mode}var o=e.token(t,n);if(t.pos>t.start){return o}}throw new Error("Mode "+e.name+" failed to advance stream.")}Kt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);if(t!=null&&e>this.maxLookAhead){this.maxLookAhead=e}return t},Kt.prototype.baseToken=function(e){var t=this;if(!this.baseTokens){return null}while(this.baseTokens[this.baseTokenPos]<=e){t.baseTokenPos+=2}var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Kt.prototype.nextLine=function(){this.line++;if(this.maxLookAhead>0){this.maxLookAhead--}},Kt.fromSaved=function(e,t,n){if(t instanceof Vt){return new Kt(e,Ut(e.mode,t.state),n,t.lookAhead)}else{return new Kt(e,Ut(e.mode,t),n)}},Kt.prototype.save=function(e){var t=e!==false?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Vt(t,this.maxLookAhead):t};var tn=function(e,t,n){this.start=e.start;this.end=e.pos;this.string=e.current();this.type=t||null;this.state=n};function nn(e,t,n,r){var i=e.doc,o=i.mode,a;t=Se(i,t);var s=ue(i,t.line),l=Jt(e,t.line,n);var u=new Yt(s.text,e.options.tabSize,l),c;if(r){c=[]}while((r||u.pos<t.ch)&&!u.eol()){u.start=u.pos;a=en(o,u,l.state);if(r){c.push(new tn(u,a,Ut(i.mode,l.state)))}}return r?c:new tn(u,a,l.state)}function rn(e,t){if(e){for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n){break}e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";if(t[r]==null){t[r]=n[2]}else if(!new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])){t[r]+=" "+n[2]}}}return e}function on(e,t,n,r,i,o,a){var s=n.flattenSpans;if(s==null){s=e.options.flattenSpans}var l=0,u=null;var c=new Yt(t,e.options.tabSize,r),f;var h=e.options.addModeClass&&[null];if(t==""){rn(Zt(n,r.state),o)}while(!c.eol()){if(c.pos>e.options.maxHighlightLength){s=false;if(a){Qt(e,t,r,c.pos)}c.pos=t.length;f=null}else{f=rn(en(n,c,r.state,h),o)}if(h){var d=h[0].name;if(d){f="m-"+(f?d+" "+f:d)}}if(!s||u!=f){while(l<c.start){l=Math.min(c.start,l+5e3);i(l,u)}u=f}c.start=c.pos}while(l<c.pos){var p=Math.min(c.pos,l+5e3);i(p,u);l=p}}function an(e,t,n){var r,i,o=e.doc;var a=n?-1:t-(e.doc.mode.innerMode?1e3:100);for(var s=t;s>a;--s){if(s<=o.first){return o.first}var l=ue(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof Vt?u.lookAhead:0)<=o.modeFrontier)){return s}var c=F(l.text,null,e.options.tabSize);if(i==null||r>c){i=s-1;r=c}}return i}function sn(e,t){e.modeFrontier=Math.min(e.modeFrontier,t);if(e.highlightFrontier<t-10){return}var n=e.first;for(var r=t-1;r>n;r--){var i=ue(e,r).stateAfter;if(i&&(!(i instanceof Vt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}var ln=function(e,t,n){this.text=e;We(this,t);this.height=n?n(this):1};function un(e,t,n,r){e.text=t;if(e.stateAfter){e.stateAfter=null}if(e.styles){e.styles=null}if(e.order!=null){e.order=null}He(e);We(e,n);var i=r?r(e):1;if(i!=e.height){he(e,i)}}function cn(e){e.parent=null;He(e)}ln.prototype.lineNo=function(){return de(this)},yt(ln);var fn={},hn={};function dn(e,t){if(!e||/^\s*$/.test(e)){return null}var n=t.addModeClass?hn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function pn(e,t){var n=M("span",null,null,v?"padding-right: .1px":null);var r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:false,splitSpaces:(x||v)&&e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0;r.addToken=vn;if(Mt(e.display.measure)&&(a=ut(o,e.doc.direction))){r.addToken=yn(r.addToken,a)}r.map=[];var s=t!=e.display.externalMeasured&&de(o);wn(o,r,Xt(e,o,s));if(o.styleClasses){if(o.styleClasses.bgClass){r.bgClass=N(o.styleClasses.bgClass,r.bgClass||"")}if(o.styleClasses.textClass){r.textClass=N(o.styleClasses.textClass,r.textClass||"")}}if(r.map.length==0){r.map.push(0,0,r.content.appendChild(Et(e.display.measure)))}if(i==0){t.measure.map=r.map;t.measure.cache={}}else{(t.measure.maps||(t.measure.maps=[])).push(r.map);(t.measure.caches||(t.measure.caches=[])).push({})}}if(v){var l=r.content.lastChild;if(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab")){r.content.className="cm-tab-wrap-hack"}}pt(e,"renderLine",e,t.line,r.pre);if(r.pre.className){r.textClass=N(r.pre.className,r.textClass||"")}return r}function gn(e){var t=A("span","•","cm-invalidchar");t.title="\\u"+e.charCodeAt(0).toString(16);t.setAttribute("aria-label",t.title);return t}function vn(e,t,n,r,i,o,a){if(!t){return}var s=e.splitSpaces?mn(t,e.trailingSpace):t;var l=e.cm.state.specialChars,u=false;var c;if(!l.test(t)){e.col+=t.length;c=document.createTextNode(s);e.map.push(e.pos,e.pos+t.length,c);if(x&&_<9){u=true}e.pos+=t.length}else{c=document.createDocumentFragment();var f=0;while(true){l.lastIndex=f;var h=l.exec(t);var d=h?h.index-f:t.length-f;if(d){var p=document.createTextNode(s.slice(f,f+d));if(x&&_<9){c.appendChild(A("span",[p]))}else{c.appendChild(p)}e.map.push(e.pos,e.pos+d,p);e.col+=d;e.pos+=d}if(!h){break}f+=d+1;var g=void 0;if(h[0]=="\t"){var v=e.cm.options.tabSize,m=v-e.col%v;g=c.appendChild(A("span",K(m),"cm-tab"));g.setAttribute("role","presentation");g.setAttribute("cm-text","\t");e.col+=m}else if(h[0]=="\r"||h[0]=="\n"){g=c.appendChild(A("span",h[0]=="\r"?"␍":"␤","cm-invalidchar"));g.setAttribute("cm-text",h[0]);e.col+=1}else{g=e.cm.options.specialCharPlaceholder(h[0]);g.setAttribute("cm-text",h[0]);if(x&&_<9){c.appendChild(A("span",[g]))}else{c.appendChild(g)}e.col+=1}e.map.push(e.pos,e.pos+1,g);e.pos++}}e.trailingSpace=s.charCodeAt(t.length-1)==32;if(n||r||i||u||a){var y=n||"";if(r){y+=r}if(i){y+=i}var b=A("span",[c],y,a);if(o){b.title=o}return e.content.appendChild(b)}e.content.appendChild(c)}function mn(e,t){if(e.length>1&&!/ /.test(e)){return e}var n=t,r="";for(var i=0;i<e.length;i++){var o=e.charAt(i);if(o==" "&&n&&(i==e.length-1||e.charCodeAt(i+1)==32)){o=" "}r+=o;n=o==" "}return r}function yn(f,h){return function(e,t,n,r,i,o,a){n=n?n+" cm-force-border":"cm-force-border";var s=e.pos,l=s+t.length;for(;;){var u=void 0;for(var c=0;c<h.length;c++){u=h[c];if(u.to>s&&u.from<=s){break}}if(u.to>=l){return f(e,t,n,r,i,o,a)}f(e,t.slice(0,u.to-s),n,r,null,o,a);r=null;t=t.slice(u.to-s);s=u.to}}}function bn(e,t,n,r){var i=!r&&n.widgetNode;if(i){e.map.push(e.pos,e.pos+t,i)}if(!r&&e.cm.display.input.needsContentAttribute){if(!i){i=e.content.appendChild(document.createElement("span"))}i.setAttribute("cm-marker",n.id)}if(i){e.cm.display.input.setUneditable(i);e.content.appendChild(i)}e.pos+=t;e.trailingSpace=false}function wn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var a=1;a<n.length;a+=2){t.addToken(t,i.slice(o,o=n[a]),dn(n[a+1],t.cm.options))}return}var s=i.length,l=0,u=1,c="",f,h;var d=0,p,g,v,m,y;for(;;){if(d==l){p=g=v=m=h="";y=null;d=Infinity;var b=[],w=void 0;for(var x=0;x<r.length;++x){var _=r[x],k=_.marker;if(k.type=="bookmark"&&_.from==l&&k.widgetNode){b.push(k)}else if(_.from<=l&&(_.to==null||_.to>l||k.collapsed&&_.to==l&&_.from==l)){if(_.to!=null&&_.to!=l&&d>_.to){d=_.to;g=""}if(k.className){p+=" "+k.className}if(k.css){h=(h?h+";":"")+k.css}if(k.startStyle&&_.from==l){v+=" "+k.startStyle}if(k.endStyle&&_.to==d){(w||(w=[])).push(k.endStyle,_.to)}if(k.title&&!m){m=k.title}if(k.collapsed&&(!y||qe(y.marker,k)<0)){y=_}}else if(_.from>l&&d>_.from){d=_.from}}if(w){for(var S=0;S<w.length;S+=2){if(w[S+1]==d){g+=" "+w[S]}}}if(!y||y.from==l){for(var C=0;C<b.length;++C){bn(t,0,b[C])}}if(y&&(y.from||0)==l){bn(t,(y.to==null?s+1:y.to)-l,y.marker,y.from==null);if(y.to==null){return}if(y.to==l){y=false}}}if(l>=s){break}var T=Math.min(s,d);while(true){if(c){var O=l+c.length;if(!y){var E=O>T?c.slice(0,T-l):c;t.addToken(t,E,f?f+p:p,v,l+E.length==d?g:"",m,h)}if(O>=T){c=c.slice(T-l);l=T;break}l=O;v=""}c=i.slice(o,o=n[u++]);f=dn(n[u++],t.cm.options)}}}function xn(e,t,n){this.line=t;this.rest=Je(t);this.size=this.rest?de($(this.rest))-n+1:1;this.node=this.text=null;this.hidden=et(e,t)}function _n(e,t,n){var r=[],i;for(var o=t;o<n;o=i){var a=new xn(e.doc,ue(e.doc,o),o);i=o+a.size;r.push(a)}return r}var kn=null;function Sn(e){if(kn){kn.ops.push(e)}else{e.ownsGroup=kn={ops:[e],delayedCallbacks:[]}}}function Cn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++){t[n].call(null)}for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers){while(i.cursorActivityCalled<i.cursorActivityHandlers.length){i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}}}while(n<t.length)}function Tn(e,t){var n=e.ownsGroup;if(!n){return}try{Cn(n)}finally{kn=null;t(n)}}var On=null;function En(e,t){var n=ht(e,t);if(!n.length){return}var r=Array.prototype.slice.call(arguments,2),i;if(kn){i=kn.delayedCallbacks}else if(On){i=On}else{i=On=[];setTimeout(Mn,0)}var o=function(e){i.push(function(){return n[e].apply(null,r)})};for(var a=0;a<n.length;++a)o(a)}function Mn(){var e=On;On=null;for(var t=0;t<e.length;++t){e[t]()}}function Dn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];if(o=="text"){Nn(e,t)}else if(o=="gutter"){jn(e,t,n,r)}else if(o=="class"){In(e,t)}else if(o=="widget"){Rn(e,t,r)}}t.changes=null}function An(e){if(e.node==e.text){e.node=A("div",null,null,"position: relative");if(e.text.parentNode){e.text.parentNode.replaceChild(e.node,e.text)}e.node.appendChild(e.text);if(x&&_<8){e.node.style.zIndex=2}}return e.node}function Ln(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n){n+=" CodeMirror-linebackground"}if(t.background){if(n){t.background.className=n}else{t.background.parentNode.removeChild(t.background);t.background=null}}else if(n){var r=An(t);t.background=r.insertBefore(A("div",null,n),r.firstChild);e.display.input.setUneditable(t.background)}}function Pn(e,t){var n=e.display.externalMeasured;if(n&&n.line==t.line){e.display.externalMeasured=null;t.measure=n.measure;return n.built}return pn(e,t)}function Nn(e,t){var n=t.text.className;var r=Pn(e,t);if(t.text==t.node){t.node=r.pre}t.text.parentNode.replaceChild(r.pre,t.text);t.text=r.pre;if(r.bgClass!=t.bgClass||r.textClass!=t.textClass){t.bgClass=r.bgClass;t.textClass=r.textClass;In(e,t)}else if(n){t.text.className=n}}function In(e,t){Ln(e,t);if(t.line.wrapClass){An(t).className=t.line.wrapClass}else if(t.node!=t.text){t.node.className=""}var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function jn(e,t,n,r){if(t.gutter){t.node.removeChild(t.gutter);t.gutter=null}if(t.gutterBackground){t.node.removeChild(t.gutterBackground);t.gutterBackground=null}if(t.line.gutterClass){var i=An(t);t.gutterBackground=A("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px");e.display.input.setUneditable(t.gutterBackground);i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=An(t);var s=t.gutter=A("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");e.display.input.setUneditable(s);a.insertBefore(s,t.text);if(t.line.gutterClass){s.className+=" "+t.line.gutterClass}if(e.options.lineNumbers&&(!o||!o["CodeMirror-linenumbers"])){t.lineNumber=s.appendChild(A("div",ve(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))}if(o){for(var l=0;l<e.options.gutters.length;++l){var u=e.options.gutters[l],c=o.hasOwnProperty(u)&&o[u];if(c){s.appendChild(A("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}}}function Rn(e,t,n){if(t.alignable){t.alignable=null}for(var r=t.node.firstChild,i=void 0;r;r=i){i=r.nextSibling;if(r.className=="CodeMirror-linewidget"){t.node.removeChild(r)}}zn(e,t,n)}function Fn(e,t,n,r){var i=Pn(e,t);t.text=t.node=i.pre;if(i.bgClass){t.bgClass=i.bgClass}if(i.textClass){t.textClass=i.textClass}In(e,t);jn(e,t,n,r);zn(e,t,r);return t.node}function zn(e,t,n){Hn(e,t.line,t,n,true);if(t.rest){for(var r=0;r<t.rest.length;r++){Hn(e,t.rest[r],t,n,false)}}}function Hn(e,t,n,r,i){if(!t.widgets){return}var o=An(n);for(var a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=A("div",[l.node],"CodeMirror-linewidget");if(!l.handleMouseEvents){u.setAttribute("cm-ignore-events","true")}Wn(l,u,n,r);e.display.input.setUneditable(u);if(i&&l.above){o.insertBefore(u,n.gutter||n.text)}else{o.appendChild(u)}En(l,"redraw")}}function Wn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px";if(!e.coverGutter){i-=r.gutterTotalWidth;t.style.paddingLeft=r.gutterTotalWidth+"px"}t.style.width=i+"px"}if(e.coverGutter){t.style.zIndex=5;t.style.position="relative";if(!e.noHScroll){t.style.marginLeft=-r.gutterTotalWidth+"px"}}}function Bn(e){if(e.height!=null){return e.height}var t=e.doc.cm;if(!t){return 0}if(!D(document.body,e.node)){var n="position: relative;";if(e.coverGutter){n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"}if(e.noHScroll){n+="width: "+t.display.wrapper.clientWidth+"px;"}E(t.display.measure,A("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Un(e,t){for(var n=kt(t);n!=e.wrapper;n=n.parentNode){if(!n||n.nodeType==1&&n.getAttribute("cm-ignore-events")=="true"||n.parentNode==e.sizer&&n!=e.mover){return true}}}function qn(e){return e.lineSpace.offsetTop}function Gn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Yn(e){if(e.cachedPaddingH){return e.cachedPaddingH}var t=E(e.measure,A("pre","x"));var n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle;var r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};if(!isNaN(r.left)&&!isNaN(r.right)){e.cachedPaddingH=r}return r}function Vn(e){return W-e.display.nativeBarWidth}function Kn(e){return e.display.scroller.clientWidth-Vn(e)-e.display.barWidth}function $n(e){return e.display.scroller.clientHeight-Vn(e)-e.display.barHeight}function Xn(e,t,n){var r=e.options.lineWrapping;var i=r&&Kn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;var a=t.text.firstChild.getClientRects();for(var s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];if(Math.abs(l.bottom-u.bottom)>2){o.push((l.bottom+u.top)/2-n.top)}}}o.push(n.bottom-n.top)}}function Jn(e,t,n){if(e.line==t){return{map:e.measure.map,cache:e.measure.cache}}for(var r=0;r<e.rest.length;r++){if(e.rest[r]==t){return{map:e.measure.maps[r],cache:e.measure.caches[r]}}}for(var i=0;i<e.rest.length;i++){if(de(e.rest[i])>n){return{map:e.measure.maps[i],cache:e.measure.caches[i],before:true}}}}function Qn(e,t){t=$e(t);var n=de(t);var r=e.display.externalMeasured=new xn(e.doc,t,n);r.lineN=n;var i=r.built=pn(e,r);r.text=i.pre;E(e.display.lineMeasure,i.pre);return r}function Zn(e,t,n,r){return nr(e,tr(e,t),n,r)}function er(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo){return e.display.view[Ir(e,t)]}var n=e.display.externalMeasured;if(n&&t>=n.lineN&&t<n.lineN+n.size){return n}}function tr(e,t){var n=de(t);var r=er(e,n);if(r&&!r.text){r=null}else if(r&&r.changes){Dn(e,r,n,Dr(e));e.curOp.forceUpdate=true}if(!r){r=Qn(e,t)}var i=Jn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:false}}function nr(e,t,n,r,i){if(t.before){n=-1}var o=n+(r||""),a;if(t.cache.hasOwnProperty(o)){a=t.cache[o]}else{if(!t.rect){t.rect=t.view.text.getBoundingClientRect()}if(!t.hasHeights){Xn(e,t.view,t.rect);t.hasHeights=true}a=sr(e,t,n,r);if(!a.bogus){t.cache[o]=a}}return{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var rr={left:0,right:0,top:0,bottom:0},ir;function or(e,t,n){var r,i,o,a,s,l;for(var u=0;u<e.length;u+=3){s=e[u];l=e[u+1];if(t<s){i=0;o=1;a="left"}else if(t<l){i=t-s;o=i+1}else if(u==e.length-3||t==l&&e[u+3]>t){o=l-s;i=o-1;if(t>=l){a="right"}}if(i!=null){r=e[u+2];if(s==l&&n==(r.insertLeft?"left":"right")){a=n}if(n=="left"&&i==0){while(u&&e[u-2]==e[u-3]&&e[u-1].insertLeft){r=e[(u-=3)+2];a="left"}}if(n=="right"&&i==l-s){while(u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft){r=e[(u+=3)+2];a="right"}}break}}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function ar(e,t){var n=rr;if(t=="left"){for(var r=0;r<e.length;r++){if((n=e[r]).left!=n.right){break}}}else{for(var i=e.length-1;i>=0;i--){if((n=e[i]).left!=n.right){break}}}return n}function sr(e,t,n,r){var i=or(t.map,n,r);var o=i.node,a=i.start,s=i.end,l=i.collapse;var u;if(o.nodeType==3){for(var c=0;c<4;c++){while(a&&oe(t.line.text.charAt(i.coverStart+a))){--a}while(i.coverStart+s<i.coverEnd&&oe(t.line.text.charAt(i.coverStart+s))){++s}if(x&&_<9&&a==0&&s==i.coverEnd-i.coverStart){u=o.parentNode.getBoundingClientRect()}else{u=ar(T(o,a,s).getClientRects(),r)}if(u.left||u.right||a==0){break}s=a;a=a-1;l="right"}if(x&&_<11){u=lr(e.display.measure,u)}}else{if(a>0){l=r="right"}var f;if(e.options.lineWrapping&&(f=o.getClientRects()).length>1){u=f[r=="right"?f.length-1:0]}else{u=o.getBoundingClientRect()}}if(x&&_<9&&!a&&(!u||!u.left&&!u.right)){var h=o.parentNode.getClientRects()[0];if(h){u={left:h.left,right:h.left+Mr(e.display),top:h.top,bottom:h.bottom}}else{u=rr}}var d=u.top-t.rect.top,p=u.bottom-t.rect.top;var g=(d+p)/2;var v=t.view.measure.heights;var m=0;for(;m<v.length-1;m++){if(g<v[m]){break}}var y=m?v[m-1]:0,b=v[m];var w={left:(l=="right"?u.right:u.left)-t.rect.left,right:(l=="left"?u.left:u.right)-t.rect.left,top:y,bottom:b};if(!u.left&&!u.right){w.bogus=true}if(!e.options.singleCursorHeightPerLine){w.rtop=d;w.rbottom=p}return w}function lr(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Nt(e)){return t}var n=screen.logicalXDPI/screen.deviceXDPI;var r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function ur(e){if(e.measure){e.measure.cache={};e.measure.heights=null;if(e.rest){for(var t=0;t<e.rest.length;t++){e.measure.caches[t]={}}}}}function cr(e){e.display.externalMeasure=null;O(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++){ur(e.display.view[t])}}function fr(e){cr(e);e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null;if(!e.options.lineWrapping){e.display.maxLineChanged=true}e.display.lineNumChars=null}function hr(){if(a&&f){return-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft))}return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function dr(){if(a&&f){return-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop))}return window.pageYOffset||(document.documentElement||document.body).scrollTop}function pr(e){var t=0;if(e.widgets){for(var n=0;n<e.widgets.length;++n){if(e.widgets[n].above){t+=Bn(e.widgets[n])}}}return t}function gr(e,t,n,r,i){if(!i){var o=pr(t);n.top+=o;n.bottom+=o}if(r=="line"){return n}if(!r){r="local"}var a=nt(t);if(r=="local"){a+=qn(e.display)}else{a-=e.display.viewOffset}if(r=="page"||r=="window"){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+(r=="window"?0:dr());var l=s.left+(r=="window"?0:hr());n.left+=l;n.right+=l}n.top+=a;n.bottom+=a;return n}function vr(e,t,n){if(n=="div"){return t}var r=t.left,i=t.top;if(n=="page"){r-=hr();i-=dr()}else if(n=="local"||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left;i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function mr(e,t,n,r,i){if(!r){r=ue(e.doc,t.line)}return gr(e,r,Zn(e,r,t.ch,i),n)}function yr(r,e,i,o,a,s){o=o||ue(r.doc,e.line);if(!a){a=tr(r,o)}function l(e,t){var n=nr(r,a,e,t?"right":"left",s);if(t){n.left=n.right}else{n.right=n.left}return gr(r,o,n,i)}var u=ut(o,r.doc.direction),t=e.ch,n=e.sticky;if(t>=o.text.length){t=o.text.length;n="before"}else if(t<=0){t=0;n="after"}if(!u){return l(n=="before"?t-1:t,n=="before")}function c(e,t,n){var r=u[t],i=r.level==1;return l(n?e-1:e,i!=n)}var f=st(u,t,n);var h=at;var d=c(t,f,n=="before");if(h!=null){d.other=c(t,h,n!="before")}return d}function br(e,t){var n=0;t=Se(e.doc,t);if(!e.options.lineWrapping){n=Mr(e.display)*t.ch}var r=ue(e.doc,t.line);var i=nt(r)+qn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(e,t,n,r,i){var o=me(e,t,n);o.xRel=i;if(r){o.outside=true}return o}function xr(e,t,n){var r=e.doc;n+=e.display.viewOffset;if(n<0){return wr(r.first,0,null,true,-1)}var i=pe(r,n),o=r.first+r.size-1;if(i>o){return wr(r.first+r.size-1,ue(r,o).text.length,null,true,1)}if(t<0){t=0}var a=ue(r,i);for(;;){var s=Cr(e,a,i,t,n);var l=Ve(a);var u=l&&l.find(0,true);if(l&&(s.ch>u.from.ch||s.ch==u.from.ch&&s.xRel>0)){i=de(a=u.to.line)}else{return s}}}function _r(t,e,n,r){r-=pr(e);var i=e.text.length;var o=se(function(e){return nr(t,n,e-1).bottom<=r},i,0);i=se(function(e){return nr(t,n,e).top>r},o,i);return{begin:o,end:i}}function kr(e,t,n,r){if(!n){n=tr(e,t)}var i=gr(e,t,nr(e,n,r),"line").top;return _r(e,t,n,i)}function Sr(e,t,n,r){return e.bottom<=n?false:e.top>n?true:(r?e.left:e.right)>t}function Cr(n,e,t,r,i){i-=nt(e);var o=tr(n,e);var a=pr(e);var s=0,l=e.text.length,u=true;var c=ut(e,n.doc.direction);if(c){var f=(n.options.lineWrapping?Or:Tr)(n,e,t,o,c,r,i);u=f.level!=1;s=u?f.from:f.to-1;l=u?f.to:f.from-1}var h=null,d=null;var p=se(function(e){var t=nr(n,o,e);t.top+=a;t.bottom+=a;if(!Sr(t,r,i,false)){return false}if(t.top<=i&&t.left<=r){h=e;d=t}return true},s,l);var g,v,m=false;if(d){var y=r-d.left<d.right-r,b=y==u;p=h+(b?0:1);v=b?"after":"before";g=y?d.left:d.right}else{if(!u&&(p==l||p==s)){p++}v=p==0?"after":p==e.text.length?"before":nr(n,o,p-(u?1:0)).bottom+a<=i==u?"after":"before";var w=yr(n,me(t,p,v),"line",e,o);g=w.left;m=i<w.top||i>=w.bottom}p=ae(e.text,p,1);return wr(t,p,v,m,r-g)}function Tr(r,i,o,a,s,l,u){var e=se(function(e){var t=s[e],n=t.level!=1;return Sr(yr(r,me(o,n?t.to:t.from,n?"before":"after"),"line",i,a),l,u,true)},0,s.length-1);var t=s[e];if(e>0){var n=t.level!=1;var c=yr(r,me(o,n?t.from:t.to,n?"after":"before"),"line",i,a);if(Sr(c,l,u,true)&&c.top>u){t=s[e-1]}}return t}function Or(e,t,n,r,i,o,a){var s=_r(e,t,r,a);var l=s.begin;var u=s.end;if(/\s/.test(t.text.charAt(u-1))){u--}var c=null,f=null;for(var h=0;h<i.length;h++){var d=i[h];if(d.from>=u||d.to<=l){continue}var p=d.level!=1;var g=nr(e,r,p?Math.min(u,d.to)-1:Math.max(l,d.from)).right;var v=g<o?o-g+1e9:g-o;if(!c||f>v){c=d;f=v}}if(!c){c=i[i.length-1]}if(c.from<l){c={from:l,to:c.to,level:c.level}}if(c.to>u){c={from:c.from,to:u,level:c.level}}return c}function Er(e){if(e.cachedTextHeight!=null){return e.cachedTextHeight}if(ir==null){ir=A("pre");for(var t=0;t<49;++t){ir.appendChild(document.createTextNode("x"));ir.appendChild(A("br"))}ir.appendChild(document.createTextNode("x"))}E(e.measure,ir);var n=ir.offsetHeight/50;if(n>3){e.cachedTextHeight=n}O(e.measure);return n||1}function Mr(e){if(e.cachedCharWidth!=null){return e.cachedCharWidth}var t=A("span","xxxxxxxxxx");var n=A("pre",[t]);E(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;if(i>2){e.cachedCharWidth=i}return i||10}function Dr(e){var t=e.display,n={},r={};var i=t.gutters.clientLeft;for(var o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i;r[e.options.gutters[a]]=o.clientWidth}return{fixedPos:Ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Lr(r){var i=Er(r.display),o=r.options.lineWrapping;var a=o&&Math.max(5,r.display.scroller.clientWidth/Mr(r.display)-3);return function(e){if(et(r.doc,e)){return 0}var t=0;if(e.widgets){for(var n=0;n<e.widgets.length;n++){if(e.widgets[n].height){t+=e.widgets[n].height}}}if(o){return t+(Math.ceil(e.text.length/a)||1)*i}else{return t+i}}}function Pr(e){var t=e.doc,n=Lr(e);t.iter(function(e){var t=n(e);if(t!=e.height){he(e,t)}})}function Nr(e,t,n,r){var i=e.display;if(!n&&kt(t).getAttribute("cm-not-content")=="true"){return null}var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left;a=t.clientY-s.top}catch(t){return null}var l=xr(e,o,a),u;if(r&&l.xRel==1&&(u=ue(e.doc,l.line).text).length==l.ch){var c=F(u,u.length,e.options.tabSize)-u.length;l=me(l.line,Math.max(0,Math.round((o-Yn(e.display).left)/Mr(e.display))-c))}return l}function Ir(e,t){if(t>=e.display.viewTo){return null}t-=e.display.viewFrom;if(t<0){return null}var n=e.display.view;for(var r=0;r<n.length;r++){t-=n[r].size;if(t<0){return r}}}function jr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Rr(e,t){if(t===void 0)t=true;var n=e.doc,r={};var i=r.cursors=document.createDocumentFragment();var o=r.selection=document.createDocumentFragment();for(var a=0;a<n.sel.ranges.length;a++){if(!t&&a==n.sel.primIndex){continue}var s=n.sel.ranges[a];if(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom){continue}var l=s.empty();if(l||e.options.showCursorWhenSelecting){Fr(e,s.head,i)}if(!l){Hr(e,s,o)}}return r}function Fr(e,t,n){var r=yr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine);var i=n.appendChild(A("div"," ","CodeMirror-cursor"));i.style.left=r.left+"px";i.style.top=r.top+"px";i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px";if(r.other){var o=n.appendChild(A("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="";o.style.left=r.other.left+"px";o.style.top=r.other.top+"px";o.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function zr(e,t){return e.top-t.top||e.left-t.left}function Hr(s,e,t){var n=s.display,r=s.doc;var i=document.createDocumentFragment();var o=Yn(s.display),O=o.left;var E=Math.max(n.sizerWidth,Kn(s)-n.sizer.offsetLeft)-o.right;var M=r.direction=="ltr";function D(e,t,n,r){if(t<0){t=0}t=Math.round(t);r=Math.round(r);i.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(n==null?E-e:n)+"px;\n height: "+(r-t)+"px"))}function a(n,b,w){var a=ue(r,n);var x=a.text.length;var _,k;function S(e,t){return mr(s,me(n,e),"div",a,t)}function C(e,t,n){var r=kr(s,a,null,e);var i=t=="ltr"==(n=="after")?"left":"right";var o=n=="after"?r.begin:r.end-(/\s/.test(a.text.charAt(r.end-1))?2:1);return S(o,i)[i]}var T=ut(a,r.direction);ot(T,b||0,w==null?x:w,function(e,t,n,r){var i=n=="ltr";var o=S(e,i?"left":"right");var a=S(t-1,i?"right":"left");var s=b==null&&e==0,l=w==null&&t==x;var u=r==0,c=!T||r==T.length-1;if(a.top-o.top<=3){var f=(M?s:l)&&u;var h=(M?l:s)&&c;var d=f?O:(i?o:a).left;var p=h?E:(i?a:o).right;D(d,o.top,p-d,o.bottom)}else{var g,v,m,y;if(i){g=M&&s&&u?O:o.left;v=M?E:C(e,n,"before");m=M?O:C(t,n,"after");y=M&&l&&c?E:a.right}else{g=!M?O:C(e,n,"before");v=!M&&s&&u?E:o.right;m=!M&&l&&c?O:a.left;y=!M?E:C(t,n,"after")}D(g,o.top,v-g,o.bottom);if(o.bottom<a.top){D(O,o.bottom,null,a.top)}D(m,a.top,y-m,a.bottom)}if(!_||zr(o,_)<0){_=o}if(zr(a,_)<0){_=a}if(!k||zr(o,k)<0){k=o}if(zr(a,k)<0){k=a}});return{start:_,end:k}}var l=e.from(),u=e.to();if(l.line==u.line){a(l.line,l.ch,u.ch)}else{var c=ue(r,l.line),f=ue(r,u.line);var h=$e(c)==$e(f);var d=a(l.line,l.ch,h?c.text.length+1:null).end;var p=a(u.line,h?0:null,u.ch).start;if(h){if(d.top<p.top-2){D(d.right,d.top,null,d.bottom);D(O,p.top,p.left,p.bottom)}else{D(d.right,d.top,p.left-d.right,d.bottom)}}if(d.bottom<p.top){D(O,d.bottom,null,p.top)}}t.appendChild(i)}function Wr(e){if(!e.state.focused){return}var t=e.display;clearInterval(t.blinker);var n=true;t.cursorDiv.style.visibility="";if(e.options.cursorBlinkRate>0){t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate)}else if(e.options.cursorBlinkRate<0){t.cursorDiv.style.visibility="hidden"}}function Br(e){if(!e.state.focused){e.display.input.focus();qr(e)}}function Ur(e){e.state.delayingBlurEvent=true;setTimeout(function(){if(e.state.delayingBlurEvent){e.state.delayingBlurEvent=false;Gr(e)}},100)}function qr(e,t){if(e.state.delayingBlurEvent){e.state.delayingBlurEvent=false}if(e.options.readOnly=="nocursor"){return}if(!e.state.focused){pt(e,"focus",e,t);e.state.focused=true;P(e.display.wrapper,"CodeMirror-focused");if(!e.curOp&&e.display.selForContextMenu!=e.doc.sel){e.display.input.reset();if(v){setTimeout(function(){return e.display.input.reset(true)},20)}}e.display.input.receivedFocus()}Wr(e)}function Gr(e,t){if(e.state.delayingBlurEvent){return}if(e.state.focused){pt(e,"blur",e,t);e.state.focused=false;C(e.display.wrapper,"CodeMirror-focused")}clearInterval(e.display.blinker);setTimeout(function(){if(!e.state.focused){e.display.shift=false}},150)}function Yr(e){var t=e.display;var n=t.lineDiv.offsetTop;for(var r=0;r<t.view.length;r++){var i=t.view[r],o=void 0;if(i.hidden){continue}if(x&&_<8){var a=i.node.offsetTop+i.node.offsetHeight;o=a-n;n=a}else{var s=i.node.getBoundingClientRect();o=s.bottom-s.top}var l=i.line.height-o;if(o<2){o=Er(t)}if(l>.005||l<-.005){he(i.line,o);Vr(i.line);if(i.rest){for(var u=0;u<i.rest.length;u++){Vr(i.rest[u])}}}}}function Vr(e){if(e.widgets){for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;if(r){n.height=r.offsetHeight}}}}function Kr(e,t,n){var r=n&&n.top!=null?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-qn(e));var i=n&&n.bottom!=null?n.bottom:r+e.wrapper.clientHeight;var o=pe(t,r),a=pe(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;if(s<o){o=s;a=pe(t,nt(ue(t,s))+e.wrapper.clientHeight)}else if(Math.min(l,t.lastLine())>=a){o=pe(t,nt(ue(t,l))-e.wrapper.clientHeight);a=l}}return{from:o,to:Math.max(a,o+1)}}function $r(e){var t=e.display,n=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter)){return}var r=Ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft;var i=t.gutters.offsetWidth,o=r+"px";for(var a=0;a<n.length;a++){if(!n[a].hidden){if(e.options.fixedGutter){if(n[a].gutter){n[a].gutter.style.left=o}if(n[a].gutterBackground){n[a].gutterBackground.style.left=o}}var s=n[a].alignable;if(s){for(var l=0;l<s.length;l++){s[l].style.left=o}}}}if(e.options.fixedGutter){t.gutters.style.left=r+i+"px"}}function Xr(e){if(!e.options.lineNumbers){return false}var t=e.doc,n=ve(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(A("div",[A("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt"));var o=i.firstChild.offsetWidth,a=i.offsetWidth-o;r.lineGutter.style.width="";r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1;r.lineNumWidth=r.lineNumInnerWidth+a;r.lineNumChars=r.lineNumInnerWidth?n.length:-1;r.lineGutter.style.width=r.lineNumWidth+"px";Yi(e);return true}return false}function Jr(e,t){if(gt(e,"scrollCursorIntoView")){return}var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0){i=true}else if(t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)){i=false}if(i!=null&&!u){var o=A("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-qn(e.display))+"px;\n height: "+(t.bottom-t.top+Vn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o);o.scrollIntoView(i);e.display.lineSpace.removeChild(o)}}function Qr(e,t,n,r){if(r==null){r=0}var i;if(!e.options.lineWrapping&&t==n){t=t.ch?me(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t;n=t.sticky=="before"?me(t.line,t.ch+1,"before"):t}for(var o=0;o<5;o++){var a=false;var s=yr(e,t);var l=!n||n==t?s:yr(e,n);i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var u=ei(e,i);var c=e.doc.scrollTop,f=e.doc.scrollLeft;if(u.scrollTop!=null){si(e,u.scrollTop);if(Math.abs(e.doc.scrollTop-c)>1){a=true}}if(u.scrollLeft!=null){ui(e,u.scrollLeft);if(Math.abs(e.doc.scrollLeft-f)>1){a=true}}if(!a){break}}return i}function Zr(e,t){var n=ei(e,t);if(n.scrollTop!=null){si(e,n.scrollTop)}if(n.scrollLeft!=null){ui(e,n.scrollLeft)}}function ei(e,t){var n=e.display,r=Er(e.display);if(t.top<0){t.top=0}var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop;var o=$n(e),a={};if(t.bottom-t.top>o){t.bottom=t.top+o}var s=e.doc.height+Gn(n);var l=t.top<r,u=t.bottom>s-r;if(t.top<i){a.scrollTop=l?0:t.top}else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);if(c!=i){a.scrollTop=c}}var f=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft;var h=Kn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0);var d=t.right-t.left>h;if(d){t.right=t.left+h}if(t.left<10){a.scrollLeft=0}else if(t.left<f){a.scrollLeft=Math.max(0,t.left-(d?0:10))}else if(t.right>h+f-3){a.scrollLeft=t.right+(d?0:10)-h}return a}function ti(e,t){if(t==null){return}oi(e);e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function ni(e){oi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ri(e,t,n){if(t!=null||n!=null){oi(e)}if(t!=null){e.curOp.scrollLeft=t}if(n!=null){e.curOp.scrollTop=n}}function ii(e,t){oi(e);e.curOp.scrollToPos=t}function oi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=br(e,t.from),r=br(e,t.to);ai(e,n,r,t.margin)}}function ai(e,t,n,r){var i=ei(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});ri(e,i.scrollLeft,i.scrollTop)}function si(e,t){if(Math.abs(e.doc.scrollTop-t)<2){return}if(!g){qi(e,{top:t})}li(e,t,true);if(g){qi(e)}ji(e,100)}function li(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t);if(e.display.scroller.scrollTop==t&&!n){return}e.doc.scrollTop=t;e.display.scrollbars.setScrollTop(t);if(e.display.scroller.scrollTop!=t){e.display.scroller.scrollTop=t}}function ui(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth);if((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r){return}e.doc.scrollLeft=t;$r(e);if(e.display.scroller.scrollLeft!=t){e.display.scroller.scrollLeft=t}e.display.scrollbars.setScrollLeft(t)}function ci(e){var t=e.display,n=t.gutters.offsetWidth;var r=Math.round(e.doc.height+Gn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Vn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var fi=function(e,t,n){this.cm=n;var r=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar");var i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r);e(i);ft(r,"scroll",function(){if(r.clientHeight){t(r.scrollTop,"vertical")}});ft(i,"scroll",function(){if(i.clientWidth){t(i.scrollLeft,"horizontal")}});this.checkedZeroWidth=false;if(x&&_<8){this.horiz.style.minHeight=this.vert.style.minWidth="18px"}};fi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1;var n=e.scrollHeight>e.clientHeight+1;var r=e.nativeBarWidth;if(n){this.vert.style.display="block";this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else{this.vert.style.display="";this.vert.firstChild.style.height="0"}if(t){this.horiz.style.display="block";this.horiz.style.right=n?r+"px":"0";this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else{this.horiz.style.display="";this.horiz.firstChild.style.width="0"}if(!this.checkedZeroWidth&&e.clientHeight>0){if(r==0){this.zeroWidthHack()}this.checkedZeroWidth=true}return{right:n?r:0,bottom:t?r:0}},fi.prototype.setScrollLeft=function(e){if(this.horiz.scrollLeft!=e){this.horiz.scrollLeft=e}if(this.disableHoriz){this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")}},fi.prototype.setScrollTop=function(e){if(this.vert.scrollTop!=e){this.vert.scrollTop=e}if(this.disableVert){this.enableZeroWidthBar(this.vert,this.disableVert,"vert")}},fi.prototype.zeroWidthHack=function(){var e=y&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=e;this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none";this.disableHoriz=new z;this.disableVert=new z},fi.prototype.enableZeroWidthBar=function(n,r,i){n.style.pointerEvents="auto";function o(){var e=n.getBoundingClientRect();var t=i=="vert"?document.elementFromPoint(e.right-1,(e.top+e.bottom)/2):document.elementFromPoint((e.right+e.left)/2,e.bottom-1);if(t!=n){n.style.pointerEvents="none"}else{r.set(1e3,o)}}r.set(1e3,o)},fi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz);e.removeChild(this.vert)};var hi=function(){};function di(e,t){if(!t){t=ci(e)}var n=e.display.barWidth,r=e.display.barHeight;pi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++){if(n!=e.display.barWidth&&e.options.lineWrapping){Yr(e)}pi(e,ci(e));n=e.display.barWidth;r=e.display.barHeight}}function pi(e,t){var n=e.display;var r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px";n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px";n.heightForcer.style.borderBottom=r.bottom+"px solid transparent";if(r.right&&r.bottom){n.scrollbarFiller.style.display="block";n.scrollbarFiller.style.height=r.bottom+"px";n.scrollbarFiller.style.width=r.right+"px"}else{n.scrollbarFiller.style.display=""}if(r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter){n.gutterFiller.style.display="block";n.gutterFiller.style.height=r.bottom+"px";n.gutterFiller.style.width=t.gutterWidth+"px"}else{n.gutterFiller.style.display=""}}hi.prototype.update=function(){return{bottom:0,right:0}},hi.prototype.setScrollLeft=function(){},hi.prototype.setScrollTop=function(){},hi.prototype.clear=function(){};var gi={native:fi,null:hi};function vi(n){if(n.display.scrollbars){n.display.scrollbars.clear();if(n.display.scrollbars.addClass){C(n.display.wrapper,n.display.scrollbars.addClass)}}n.display.scrollbars=new gi[n.options.scrollbarStyle](function(e){n.display.wrapper.insertBefore(e,n.display.scrollbarFiller);ft(e,"mousedown",function(){if(n.state.focused){setTimeout(function(){return n.display.input.focus()},0)}});e.setAttribute("cm-not-content","true")},function(e,t){if(t=="horizontal"){ui(n,e)}else{si(n,e)}},n);if(n.display.scrollbars.addClass){P(n.display.wrapper,n.display.scrollbars.addClass)}}var mi=0;function yi(e){e.curOp={cm:e,viewChanged:false,startHeight:e.doc.height,forceUpdate:false,updateInput:null,typing:false,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:false,updateMaxLine:false,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:false,id:++mi};Sn(e.curOp)}function bi(e){var t=e.curOp;Tn(t,function(e){for(var t=0;t<e.ops.length;t++){e.ops[t].cm.curOp=null}wi(e)})}function wi(e){var t=e.ops;for(var n=0;n<t.length;n++){xi(t[n])}for(var r=0;r<t.length;r++){_i(t[r])}for(var i=0;i<t.length;i++){ki(t[i])}for(var o=0;o<t.length;o++){Si(t[o])}for(var a=0;a<t.length;a++){Ci(t[a])}}function xi(e){var t=e.cm,n=t.display;zi(t);if(e.updateMaxLine){it(t)}e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping;e.update=e.mustUpdate&&new Fi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function _i(e){e.updatedDisplay=e.mustUpdate&&Bi(e.cm,e.update)}function ki(e){var t=e.cm,n=t.display;if(e.updatedDisplay){Yr(t)}e.barMeasure=ci(t);if(n.maxLineChanged&&!t.options.lineWrapping){e.adjustWidthTo=Zn(t,n.maxLine,n.maxLine.text.length).left+3;t.display.sizerWidth=e.adjustWidthTo;e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Vn(t)+t.display.barWidth);e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Kn(t))}if(e.updatedDisplay||e.selectionChanged){e.preparedSelection=n.input.prepareSelection()}}function Si(e){var t=e.cm;if(e.adjustWidthTo!=null){t.display.sizer.style.minWidth=e.adjustWidthTo+"px";if(e.maxScrollLeft<t.doc.scrollLeft){ui(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),true)}t.display.maxLineChanged=false}var n=e.focus&&e.focus==L();if(e.preparedSelection){t.display.input.showSelection(e.preparedSelection,n)}if(e.updatedDisplay||e.startHeight!=t.doc.height){di(t,e.barMeasure)}if(e.updatedDisplay){Vi(t,e.barMeasure)}if(e.selectionChanged){Wr(t)}if(t.state.focused&&e.updateInput){t.display.input.reset(e.typing)}if(n){Br(e.cm)}}function Ci(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay){Ui(t,e.update)}if(n.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)){n.wheelStartX=n.wheelStartY=null}if(e.scrollTop!=null){li(t,e.scrollTop,e.forceScroll)}if(e.scrollLeft!=null){ui(t,e.scrollLeft,true,true)}if(e.scrollToPos){var i=Qr(t,Se(r,e.scrollToPos.from),Se(r,e.scrollToPos.to),e.scrollToPos.margin);Jr(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o){for(var s=0;s<o.length;++s){if(!o[s].lines.length){pt(o[s],"hide")}}}if(a){for(var l=0;l<a.length;++l){if(a[l].lines.length){pt(a[l],"unhide")}}}if(n.wrapper.offsetHeight){r.scrollTop=t.display.scroller.scrollTop}if(e.changeObjs){pt(t,"changes",t,e.changeObjs)}if(e.update){e.update.finish()}}function Ti(e,t){if(e.curOp){return t()}yi(e);try{return t()}finally{bi(e)}}function Oi(e,t){return function(){if(e.curOp){return t.apply(e,arguments)}yi(e);try{return t.apply(e,arguments)}finally{bi(e)}}}function Ei(e){return function(){if(this.curOp){return e.apply(this,arguments)}yi(this);try{return e.apply(this,arguments)}finally{bi(this)}}}function Mi(t){return function(){var e=this.cm;if(!e||e.curOp){return t.apply(this,arguments)}yi(e);try{return t.apply(this,arguments)}finally{bi(e)}}}function Di(e,t,n,r){if(t==null){t=e.doc.first}if(n==null){n=e.doc.first+e.doc.size}if(!r){r=0}var i=e.display;if(r&&n<i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>t)){i.updateLineNumbers=t}e.curOp.viewChanged=true;if(t>=i.viewTo){if(Ee&&Qe(e.doc,t)<i.viewTo){Li(e)}}else if(n<=i.viewFrom){if(Ee&&Ze(e.doc,n+r)>i.viewFrom){Li(e)}else{i.viewFrom+=r;i.viewTo+=r}}else if(t<=i.viewFrom&&n>=i.viewTo){Li(e)}else if(t<=i.viewFrom){var o=Pi(e,n,n+r,1);if(o){i.view=i.view.slice(o.index);i.viewFrom=o.lineN;i.viewTo+=r}else{Li(e)}}else if(n>=i.viewTo){var a=Pi(e,t,t,-1);if(a){i.view=i.view.slice(0,a.index);i.viewTo=a.lineN}else{Li(e)}}else{var s=Pi(e,t,t,-1);var l=Pi(e,n,n+r,1);if(s&&l){i.view=i.view.slice(0,s.index).concat(_n(e,s.lineN,l.lineN)).concat(i.view.slice(l.index));i.viewTo+=r}else{Li(e)}}var u=i.externalMeasured;if(u){if(n<u.lineN){u.lineN+=r}else if(t<u.lineN+u.size){i.externalMeasured=null}}}function Ai(e,t,n){e.curOp.viewChanged=true;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size){r.externalMeasured=null}if(t<r.viewFrom||t>=r.viewTo){return}var o=r.view[Ir(e,t)];if(o.node==null){return}var a=o.changes||(o.changes=[]);if(H(a,n)==-1){a.push(n)}}function Li(e){e.display.viewFrom=e.display.viewTo=e.doc.first;e.display.view=[];e.display.viewOffset=0}function Pi(e,t,n,r){var i=Ir(e,t),o,a=e.display.view;if(!Ee||n==e.doc.first+e.doc.size){return{index:i,lineN:n}}var s=e.display.viewFrom;for(var l=0;l<i;l++){s+=a[l].size}if(s!=t){if(r>0){if(i==a.length-1){return null}o=s+a[i].size-t;i++}else{o=s-t}t+=o;n+=o}while(Qe(e.doc,n)!=n){if(i==(r<0?0:a.length-1)){return null}n+=r*a[i-(r<0?1:0)].size;i+=r}return{index:i,lineN:n}}function Ni(e,t,n){var r=e.display,i=r.view;if(i.length==0||t>=r.viewTo||n<=r.viewFrom){r.view=_n(e,t,n);r.viewFrom=t}else{if(r.viewFrom>t){r.view=_n(e,t,r.viewFrom).concat(r.view)}else if(r.viewFrom<t){r.view=r.view.slice(Ir(e,t))}r.viewFrom=t;if(r.viewTo<n){r.view=r.view.concat(_n(e,r.viewTo,n))}else if(r.viewTo>n){r.view=r.view.slice(0,Ir(e,n))}}r.viewTo=n}function Ii(e){var t=e.display.view,n=0;for(var r=0;r<t.length;r++){var i=t[r];if(!i.hidden&&(!i.node||i.changes)){++n}}return n}function ji(e,t){if(e.doc.highlightFrontier<e.display.viewTo){e.state.highlight.set(t,j(Ri,e))}}function Ri(l){var u=l.doc;if(u.highlightFrontier>=l.display.viewTo){return}var c=+new Date+l.options.workTime;var f=Jt(l,u.highlightFrontier);var h=[];u.iter(f.line,Math.min(u.first+u.size,l.display.viewTo+500),function(e){if(f.line>=l.display.viewFrom){var t=e.styles;var n=e.text.length>l.options.maxHighlightLength?Ut(u.mode,f.state):null;var r=$t(l,e,f,true);if(n){f.state=n}e.styles=r.styles;var i=e.styleClasses,o=r.classes;if(o){e.styleClasses=o}else if(i){e.styleClasses=null}var a=!t||t.length!=e.styles.length||i!=o&&(!i||!o||i.bgClass!=o.bgClass||i.textClass!=o.textClass);for(var s=0;!a&&s<t.length;++s){a=t[s]!=e.styles[s]}if(a){h.push(f.line)}e.stateAfter=f.save();f.nextLine()}else{if(e.text.length<=l.options.maxHighlightLength){Qt(l,e.text,f)}e.stateAfter=f.line%5==0?f.save():null;f.nextLine()}if(+new Date>c){ji(l,l.options.workDelay);return true}});u.highlightFrontier=f.line;u.modeFrontier=Math.max(u.modeFrontier,f.line);if(h.length){Ti(l,function(){for(var e=0;e<h.length;e++){Ai(l,h[e],"text")}})}}var Fi=function(e,t,n){var r=e.display;this.viewport=t;this.visible=Kr(r,e.doc,t);this.editorIsHidden=!r.wrapper.offsetWidth;this.wrapperHeight=r.wrapper.clientHeight;this.wrapperWidth=r.wrapper.clientWidth;this.oldDisplayWidth=Kn(e);this.force=n;this.dims=Dr(e);this.events=[]};function zi(e){var t=e.display;if(!t.scrollbarsClipped&&t.scroller.offsetWidth){t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth;t.heightForcer.style.height=Vn(e)+"px";t.sizer.style.marginBottom=-t.nativeBarWidth+"px";t.sizer.style.borderRightWidth=Vn(e)+"px";t.scrollbarsClipped=true}}function Hi(e){if(e.hasFocus()){return null}var t=L();if(!t||!D(e.display.lineDiv,t)){return null}var n={activeElt:t};if(window.getSelection){var r=window.getSelection();if(r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)){n.anchorNode=r.anchorNode;n.anchorOffset=r.anchorOffset;n.focusNode=r.focusNode;n.focusOffset=r.focusOffset}}return n}function Wi(e){if(!e||!e.activeElt||e.activeElt==L()){return}e.activeElt.focus();if(e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode)){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset);n.collapse(false);t.removeAllRanges();t.addRange(n);t.extend(e.focusNode,e.focusOffset)}}function Bi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden){Li(e);return false}if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&Ii(e)==0){return false}if(Xr(e)){Li(e);t.dims=Dr(e)}var i=r.first+r.size;var o=Math.max(t.visible.from-e.options.viewportMargin,r.first);var a=Math.min(i,t.visible.to+e.options.viewportMargin);if(n.viewFrom<o&&o-n.viewFrom<20){o=Math.max(r.first,n.viewFrom)}if(n.viewTo>a&&n.viewTo-a<20){a=Math.min(i,n.viewTo)}if(Ee){o=Qe(e.doc,o);a=Ze(e.doc,a)}var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Ni(e,o,a);n.viewOffset=nt(ue(e.doc,n.viewFrom));e.display.mover.style.top=n.viewOffset+"px";var l=Ii(e);if(!s&&l==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)){return false}var u=Hi(e);if(l>4){n.lineDiv.style.display="none"}Gi(e,n.updateLineNumbers,t.dims);if(l>4){n.lineDiv.style.display=""}n.renderedView=n.view;Wi(u);O(n.cursorDiv);O(n.selectionDiv);n.gutters.style.height=n.sizer.style.minHeight=0;if(s){n.lastWrapHeight=t.wrapperHeight;n.lastWrapWidth=t.wrapperWidth;ji(e,400)}n.updateLineNumbers=null;return true}function Ui(e,t){var n=t.viewport;for(var r=true;;r=false){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==Kn(e)){if(n&&n.top!=null){n={top:Math.min(e.doc.height+Gn(e.display)-$n(e),n.top)}}t.visible=Kr(e.display,e.doc,n);if(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo){break}}if(!Bi(e,t)){break}Yr(e);var i=ci(e);jr(e);di(e,i);Vi(e,i);t.force=false}t.signal(e,"update",e);if(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo){t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo);e.display.reportedViewFrom=e.display.viewFrom;e.display.reportedViewTo=e.display.viewTo}}function qi(e,t){var n=new Fi(e,t);if(Bi(e,n)){Yr(e);Ui(e,n);var r=ci(e);jr(e);di(e,r);Vi(e,r);n.finish()}}function Gi(n,e,t){var r=n.display,i=n.options.lineNumbers;var o=r.lineDiv,a=o.firstChild;function s(e){var t=e.nextSibling;if(v&&y&&n.display.currentWheelTarget==e){e.style.display="none"}else{e.parentNode.removeChild(e)}return t}var l=r.view,u=r.viewFrom;for(var c=0;c<l.length;c++){var f=l[c];if(f.hidden){}else if(!f.node||f.node.parentNode!=o){var h=Fn(n,f,u,t);o.insertBefore(h,a)}else{while(a!=f.node){a=s(a)}var d=i&&e!=null&&e<=u&&f.lineNumber;if(f.changes){if(H(f.changes,"gutter")>-1){d=false}Dn(n,f,u,t)}if(d){O(f.lineNumber);f.lineNumber.appendChild(document.createTextNode(ve(n.options,u)))}a=f.node.nextSibling}u+=f.size}while(a){a=s(a)}}function Yi(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Vi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px";e.display.heightForcer.style.top=t.docHeight+"px";e.display.gutters.style.height=t.docHeight+e.display.barHeight+Vn(e)+"px"}function Ki(e){var t=e.display.gutters,n=e.options.gutters;O(t);var r=0;for(;r<n.length;++r){var i=n[r];var o=t.appendChild(A("div",null,"CodeMirror-gutter "+i));if(i=="CodeMirror-linenumbers"){e.display.lineGutter=o;o.style.width=(e.display.lineNumWidth||1)+"px"}}t.style.display=r?"":"none";Yi(e)}function $i(e){var t=H(e.gutters,"CodeMirror-linenumbers");if(t==-1&&e.lineNumbers){e.gutters=e.gutters.concat(["CodeMirror-linenumbers"])}else if(t>-1&&!e.lineNumbers){e.gutters=e.gutters.slice(0);e.gutters.splice(t,1)}}Fi.prototype.signal=function(e,t){if(mt(e,t)){this.events.push(arguments)}},Fi.prototype.finish=function(){var e=this;for(var t=0;t<this.events.length;t++){pt.apply(null,e.events[t])}};var Xi=0,Ji=null;if(x){Ji=-.53}else if(g){Ji=15}else if(a){Ji=-.7}else if(s){Ji=-1/3}function Qi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;if(t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS){t=e.detail}if(n==null&&e.detail&&e.axis==e.VERTICAL_AXIS){n=e.detail}else if(n==null){n=e.wheelDelta}return{x:t,y:n}}function Zi(e){var t=Qi(e);t.x*=Ji;t.y*=Ji;return t}function eo(e,t){var n=Qi(t),r=n.x,i=n.y;var o=e.display,a=o.scroller;var s=a.scrollWidth>a.clientWidth;var l=a.scrollHeight>a.clientHeight;if(!(r&&s||i&&l)){return}if(i&&y&&v){e:for(var u=t.target,c=o.view;u!=a;u=u.parentNode){for(var f=0;f<c.length;f++){if(c[f].node==u){e.display.currentWheelTarget=u;break e}}}}if(r&&!g&&!m&&Ji!=null){if(i&&l){si(e,Math.max(0,a.scrollTop+i*Ji))}ui(e,Math.max(0,a.scrollLeft+r*Ji));if(!i||i&&l){bt(t)}o.wheelStartX=null;return}if(i&&Ji!=null){var h=i*Ji;var d=e.doc.scrollTop,p=d+o.wrapper.clientHeight;if(h<0){d=Math.max(0,d+h-50)}else{p=Math.min(e.doc.height,p+h+50)}qi(e,{top:d,bottom:p})}if(Xi<20){if(o.wheelStartX==null){o.wheelStartX=a.scrollLeft;o.wheelStartY=a.scrollTop;o.wheelDX=r;o.wheelDY=i;setTimeout(function(){if(o.wheelStartX==null){return}var e=a.scrollLeft-o.wheelStartX;var t=a.scrollTop-o.wheelStartY;var n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null;if(!n){return}Ji=(Ji*Xi+n)/(Xi+1);++Xi},200)}else{o.wheelDX+=r;o.wheelDY+=i}}}var to=function(e,t){this.ranges=e;this.primIndex=t};to.prototype.primary=function(){return this.ranges[this.primIndex]},to.prototype.equals=function(e){var t=this;if(e==this){return true}if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length){return false}for(var n=0;n<this.ranges.length;n++){var r=t.ranges[n],i=e.ranges[n];if(!be(r.anchor,i.anchor)||!be(r.head,i.head)){return false}}return true},to.prototype.deepCopy=function(){var e=this;var t=[];for(var n=0;n<this.ranges.length;n++){t[n]=new no(we(e.ranges[n].anchor),we(e.ranges[n].head))}return new to(t,this.primIndex)},to.prototype.somethingSelected=function(){var e=this;for(var t=0;t<this.ranges.length;t++){if(!e.ranges[t].empty()){return true}}return false},to.prototype.contains=function(e,t){var n=this;if(!t){t=e}for(var r=0;r<this.ranges.length;r++){var i=n.ranges[r];if(ye(t,i.from())>=0&&ye(e,i.to())<=0){return r}}return-1};var no=function(e,t){this.anchor=e;this.head=t};function ro(e,t){var n=e[t];e.sort(function(e,t){return ye(e.from(),t.from())});t=H(e,n);for(var r=1;r<e.length;r++){var i=e[r],o=e[r-1];if(ye(o.to(),i.from())>=0){var a=_e(o.from(),i.from()),s=xe(o.to(),i.to());var l=o.empty()?i.from()==i.head:o.from()==o.head;if(r<=t){--t}e.splice(--r,2,new no(l?s:a,l?a:s))}}return new to(e,t)}function io(e,t){return new to([new no(e,t||e)],0)}function oo(e){if(!e.text){return e.to}return me(e.from.line+e.text.length-1,$(e.text).length+(e.text.length==1?e.from.ch:0))}function ao(e,t){if(ye(e,t.from)<0){return e}if(ye(e,t.to)<=0){return oo(t)}var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;if(e.line==t.to.line){r+=oo(t).ch-t.to.ch}return me(n,r)}function so(e,t){var n=[];for(var r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new no(ao(i.anchor,t),ao(i.head,t)))}return ro(n,e.sel.primIndex)}function lo(e,t,n){if(e.line==t.line){return me(n.line,e.ch-t.ch+n.ch)}else{return me(n.line+(e.line-t.line),e.ch)}}function uo(e,t,n){var r=[];var i=me(e.first,0),o=i;for(var a=0;a<t.length;a++){var s=t[a];var l=lo(s.from,i,o);var u=lo(oo(s),i,o);i=s.to;o=u;if(n=="around"){var c=e.sel.ranges[a],f=ye(c.head,c.anchor)<0;r[a]=new no(f?u:l,f?l:u)}else{r[a]=new no(l,l)}}return new to(r,e.sel.primIndex)}function co(e){e.doc.mode=Ht(e.options,e.doc.modeOption);fo(e)}function fo(e){e.doc.iter(function(e){if(e.stateAfter){e.stateAfter=null}if(e.styles){e.styles=null}});e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first;ji(e,100);e.state.modeGen++;if(e.curOp){Di(e)}}function ho(e,t){return t.from.ch==0&&t.to.ch==0&&$(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function po(e,r,t,i){function o(e){return t?t[e]:null}function n(e,t,n){un(e,t,n,i);En(e,"change",e,r)}function a(e,t){var n=[];for(var r=e;r<t;++r){n.push(new ln(u[r],o(r),i))}return n}var s=r.from,l=r.to,u=r.text;var c=ue(e,s.line),f=ue(e,l.line);var h=$(u),d=o(u.length-1),p=l.line-s.line;if(r.full){e.insert(0,a(0,u.length));e.remove(u.length,e.size-u.length)}else if(ho(e,r)){var g=a(0,u.length-1);n(f,f.text,d);if(p){e.remove(s.line,p)}if(g.length){e.insert(s.line,g)}}else if(c==f){if(u.length==1){n(c,c.text.slice(0,s.ch)+h+c.text.slice(l.ch),d)}else{var v=a(1,u.length-1);v.push(new ln(h+c.text.slice(l.ch),d,i));n(c,c.text.slice(0,s.ch)+u[0],o(0));e.insert(s.line+1,v)}}else if(u.length==1){n(c,c.text.slice(0,s.ch)+u[0]+f.text.slice(l.ch),o(0));e.remove(s.line+1,p)}else{n(c,c.text.slice(0,s.ch)+u[0],o(0));n(f,h+f.text.slice(l.ch),d);var m=a(1,u.length-1);if(p>1){e.remove(s.line+1,p-1)}e.insert(s.line+1,m)}En(e,"change",e,r)}function go(e,a,s){function l(e,t,n){if(e.linked){for(var r=0;r<e.linked.length;++r){var i=e.linked[r];if(i.doc==t){continue}var o=n&&i.sharedHist;if(s&&!o){continue}a(i.doc,o);l(i.doc,e,o)}}}l(e,null,true)}function vo(e,t){if(t.cm){throw new Error("This document is already in use.")}e.doc=t;t.cm=e;Pr(e);co(e);mo(e);if(!e.options.lineWrapping){it(e)}e.options.mode=t.modeOption;Di(e)}function mo(e){(e.doc.direction=="rtl"?P:C)(e.display.lineDiv,"CodeMirror-rtl")}function yo(e){Ti(e,function(){mo(e);Di(e)})}function bo(e){this.done=[];this.undone=[];this.undoDepth=Infinity;this.lastModTime=this.lastSelTime=0;this.lastOp=this.lastSelOp=null;this.lastOrigin=this.lastSelOrigin=null;this.generation=this.maxGeneration=e||1}function wo(e,t){var n={from:we(t.from),to:oo(t),text:ce(e,t.from,t.to)};Oo(e,n,t.from.line,t.to.line+1);go(e,function(e){return Oo(e,n,t.from.line,t.to.line+1)},true);return n}function xo(e){while(e.length){var t=$(e);if(t.ranges){e.pop()}else{break}}}function _o(e,t){if(t){xo(e.done);return $(e.done)}else if(e.done.length&&!$(e.done).ranges){return $(e.done)}else if(e.done.length>1&&!e.done[e.done.length-2].ranges){e.done.pop();return $(e.done)}}function ko(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,a;var s;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&e.cm&&i.lastModTime>o-e.cm.options.historyEventDelay||t.origin.charAt(0)=="*"))&&(a=_o(i,i.lastOp==r))){s=$(a.changes);if(ye(t.from,t.to)==0&&ye(t.from,s.to)==0){s.to=oo(t)}else{a.changes.push(wo(e,t))}}else{var l=$(i.done);if(!l||!l.ranges){To(e.sel,i.done)}a={changes:[wo(e,t)],generation:i.generation};i.done.push(a);while(i.done.length>i.undoDepth){i.done.shift();if(!i.done[0].ranges){i.done.shift()}}}i.done.push(n);i.generation=++i.maxGeneration;i.lastModTime=i.lastSelTime=o;i.lastOp=i.lastSelOp=r;i.lastOrigin=i.lastSelOrigin=t.origin;if(!s){pt(e,"historyAdded")}}function So(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Co(e,t,n,r){var i=e.history,o=r&&r.origin;if(n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||So(e,o,$(i.done),t))){i.done[i.done.length-1]=t}else{To(t,i.done)}i.lastSelTime=+new Date;i.lastSelOrigin=o;i.lastSelOp=n;if(r&&r.clearRedo!==false){xo(i.undone)}}function To(e,t){var n=$(t);if(!(n&&n.ranges&&n.equals(e))){t.push(e)}}function Oo(t,n,e,r){var i=n["spans_"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,r),function(e){if(e.markedSpans){(i||(i=n["spans_"+t.id]={}))[o]=e.markedSpans}++o})}function Eo(e){if(!e){return null}var t;for(var n=0;n<e.length;++n){if(e[n].marker.explicitlyCleared){if(!t){t=e.slice(0,n)}}else if(t){t.push(e[n])}}return!t?e:t.length?t:null}function Mo(e,t){var n=t["spans_"+e.id];if(!n){return null}var r=[];for(var i=0;i<t.text.length;++i){r.push(Eo(n[i]))}return r}function Do(e,t){var n=Mo(e,t);var r=Re(e,t);if(!n){return r}if(!r){return n}for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a){e:for(var s=0;s<a.length;++s){var l=a[s];for(var u=0;u<o.length;++u){if(o[u].marker==l.marker){continue e}}o.push(l)}}else if(a){n[i]=a}}return n}function Ao(e,t,n){var r=[];for(var i=0;i<e.length;++i){var o=e[i];if(o.ranges){r.push(n?to.prototype.deepCopy.call(o):o);continue}var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;s.push({from:u.from,to:u.to,text:u.text});if(t){for(var f in u){if(c=f.match(/^spans_(\d+)$/)){if(H(t,Number(c[1]))>-1){$(s)[f]=u[f];delete u[f]}}}}}}return r}function Lo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ye(t,i)<0;if(o!=ye(n,i)<0){i=t;t=n}else if(o!=ye(t,n)<0){t=n}}return new no(i,t)}else{return new no(n||t,t)}}function Po(e,t,n,r,i){if(i==null){i=e.cm&&(e.cm.display.shift||e.extend)}zo(e,new to([Lo(e.sel.primary(),t,n,i)],0),r)}function No(e,t,n){var r=[];var i=e.cm&&(e.cm.display.shift||e.extend);for(var o=0;o<e.sel.ranges.length;o++){r[o]=Lo(e.sel.ranges[o],t[o],null,i)}var a=ro(r,e.sel.primIndex);zo(e,a,n)}function Io(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n;zo(e,ro(i,e.sel.primIndex),r)}function jo(e,t,n,r){zo(e,io(t,n),r)}function Ro(r,e,t){var n={ranges:e.ranges,update:function(e){var t=this;this.ranges=[];for(var n=0;n<e.length;n++){t.ranges[n]=new no(Se(r,e[n].anchor),Se(r,e[n].head))}},origin:t&&t.origin};pt(r,"beforeSelectionChange",r,n);if(r.cm){pt(r.cm,"beforeSelectionChange",r.cm,n)}if(n.ranges!=e.ranges){return ro(n.ranges,n.ranges.length-1)}else{return e}}function Fo(e,t,n){var r=e.history.done,i=$(r);if(i&&i.ranges){r[r.length-1]=t;Ho(e,t,n)}else{zo(e,t,n)}}function zo(e,t,n){Ho(e,t,n);Co(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Ho(e,t,n){if(mt(e,"beforeSelectionChange")||e.cm&&mt(e.cm,"beforeSelectionChange")){t=Ro(e,t,n)}var r=n&&n.bias||(ye(t.primary().head,e.sel.primary().head)<0?-1:1);Wo(e,Uo(e,t,r,true));if(!(n&&n.scroll===false)&&e.cm){ni(e.cm)}}function Wo(e,t){if(t.equals(e.sel)){return}e.sel=t;if(e.cm){e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=true;vt(e.cm)}En(e,"cursorActivity",e)}function Bo(e){Wo(e,Uo(e,e.sel,null,false))}function Uo(e,t,n,r){var i;for(var o=0;o<t.ranges.length;o++){var a=t.ranges[o];var s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o];var l=Go(e,a.anchor,s&&s.anchor,n,r);var u=Go(e,a.head,s&&s.head,n,r);if(i||l!=a.anchor||u!=a.head){if(!i){i=t.ranges.slice(0,o)}i[o]=new no(l,u)}}return i?ro(i,t.primIndex):t}function qo(e,t,n,r,i){var o=ue(e,t.line);if(o.markedSpans){for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker;if((s.from==null||(l.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(s.to==null||(l.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(i){pt(l,"beforeCursorEnter");if(l.explicitlyCleared){if(!o.markedSpans){break}else{--a;continue}}}if(!l.atomic){continue}if(n){var u=l.find(r<0?1:-1),c=void 0;if(r<0?l.inclusiveRight:l.inclusiveLeft){u=Yo(e,u,-r,u&&u.line==t.line?o:null)}if(u&&u.line==t.line&&(c=ye(u,n))&&(r<0?c<0:c>0)){return qo(e,u,t,r,i)}}var f=l.find(r<0?-1:1);if(r<0?l.inclusiveLeft:l.inclusiveRight){f=Yo(e,f,r,f.line==t.line?o:null)}return f?qo(e,f,t,r,i):null}}}return t}function Go(e,t,n,r,i){var o=r||1;var a=qo(e,t,n,o,i)||!i&&qo(e,t,n,o,true)||qo(e,t,n,-o,i)||!i&&qo(e,t,n,-o,true);if(!a){e.cantEdit=true;return me(e.first,0)}return a}function Yo(e,t,n,r){if(n<0&&t.ch==0){if(t.line>e.first){return Se(e,me(t.line-1))}else{return null}}else if(n>0&&t.ch==(r||ue(e,t.line)).text.length){if(t.line<e.first+e.size-1){return me(t.line+1,0)}else{return null}}else{return new me(t.line,t.ch+n)}}function Vo(e){e.setSelection(me(e.firstLine(),0),me(e.lastLine()),U)}function Ko(i,e,t){var o={canceled:false,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return o.canceled=true}};if(t){o.update=function(e,t,n,r){if(e){o.from=Se(i,e)}if(t){o.to=Se(i,t)}if(n){o.text=n}if(r!==undefined){o.origin=r}}}pt(i,"beforeChange",i,o);if(i.cm){pt(i.cm,"beforeChange",i.cm,o)}if(o.canceled){return null}return{from:o.from,to:o.to,text:o.text,origin:o.origin}}function $o(e,t,n){if(e.cm){if(!e.cm.curOp){return Oi(e.cm,$o)(e,t,n)}if(e.cm.state.suppressEdits){return}}if(mt(e,"beforeChange")||e.cm&&mt(e.cm,"beforeChange")){t=Ko(e,t,true);if(!t){return}}var r=Oe&&!n&&ze(e,t.from,t.to);if(r){for(var i=r.length-1;i>=0;--i){Xo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin})}}else{Xo(e,t)}}function Xo(e,n){if(n.text.length==1&&n.text[0]==""&&ye(n.from,n.to)==0){return}var t=so(e,n);ko(e,n,t,e.cm?e.cm.curOp.id:NaN);Zo(e,n,t,Re(e,n));var r=[];go(e,function(e,t){if(!t&&H(r,e.history)==-1){ia(e.history,n);r.push(e.history)}Zo(e,n,null,Re(e,n))})}function Jo(i,o,e){if(i.cm&&i.cm.state.suppressEdits&&!e){return}var t=i.history,a,n=i.sel;var s=o=="undo"?t.done:t.undone,r=o=="undo"?t.undone:t.done;var l=0;for(;l<s.length;l++){a=s[l];if(e?a.ranges&&!a.equals(i.sel):!a.ranges){break}}if(l==s.length){return}t.lastOrigin=t.lastSelOrigin=null;for(;;){a=s.pop();if(a.ranges){To(a,r);if(e&&!a.equals(i.sel)){zo(i,a,{clearRedo:false});return}n=a}else{break}}var u=[];To(n,r);r.push({changes:u,generation:t.generation});t.generation=a.generation||++t.maxGeneration;var c=mt(i,"beforeChange")||i.cm&&mt(i.cm,"beforeChange");var f=function(e){var n=a.changes[e];n.origin=o;if(c&&!Ko(i,n,false)){s.length=0;return{}}u.push(wo(i,n));var t=e?so(i,n):$(s);Zo(i,n,t,Do(i,n));if(!e&&i.cm){i.cm.scrollIntoView({from:n.from,to:oo(n)})}var r=[];go(i,function(e,t){if(!t&&H(r,e.history)==-1){ia(e.history,n);r.push(e.history)}Zo(e,n,null,Do(e,n))})};for(var h=a.changes.length-1;h>=0;--h){var d=f(h);if(d)return d.v}}function Qo(e,t){if(t==0){return}e.first+=t;e.sel=new to(X(e.sel.ranges,function(e){return new no(me(e.anchor.line+t,e.anchor.ch),me(e.head.line+t,e.head.ch))}),e.sel.primIndex);if(e.cm){Di(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++){Ai(e.cm,r,"gutter")}}}function Zo(e,t,n,r){if(e.cm&&!e.cm.curOp){return Oi(e.cm,Zo)(e,t,n,r)}if(t.to.line<e.first){Qo(e,t.text.length-1-(t.to.line-t.from.line));return}if(t.from.line>e.lastLine()){return}if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);Qo(e,i);t={from:me(e.first,0),to:me(t.to.line+i,t.to.ch),text:[$(t.text)],origin:t.origin}}var o=e.lastLine();if(t.to.line>o){t={from:t.from,to:me(o,ue(e,o).text.length),text:[t.text[0]],origin:t.origin}}t.removed=ce(e,t.from,t.to);if(!n){n=so(e,t)}if(e.cm){ea(e.cm,t,r)}else{po(e,t,r)}Ho(e,n,U)}function ea(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to;var s=false,l=o.line;if(!e.options.lineWrapping){l=de($e(ue(r,o.line)));r.iter(l,a.line+1,function(e){if(e==i.maxLine){s=true;return true}})}if(r.sel.contains(t.from,t.to)>-1){vt(e)}po(r,t,n,Lr(e));if(!e.options.lineWrapping){r.iter(l,o.line+t.text.length,function(e){var t=rt(e);if(t>i.maxLineLength){i.maxLine=e;i.maxLineLength=t;i.maxLineChanged=true;s=false}});if(s){e.curOp.updateMaxLine=true}}sn(r,o.line);ji(e,400);var u=t.text.length-(a.line-o.line)-1;if(t.full){Di(e)}else if(o.line==a.line&&t.text.length==1&&!ho(e.doc,t)){Ai(e,o.line,"text")}else{Di(e,o.line,a.line+1,u)}var c=mt(e,"changes"),f=mt(e,"change");if(f||c){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};if(f){En(e,"change",e,h)}if(c){(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}}e.display.selForContextMenu=null}function ta(e,t,n,r,i){if(!r){r=n}if(ye(r,n)<0){var o;o=[r,n],n=o[0],r=o[1],o}if(typeof t=="string"){t=e.splitLines(t)}$o(e,{from:n,to:r,text:t,origin:i})}function na(e,t,n,r){if(n<e.line){e.line+=r}else if(t<e.line){e.line=t;e.ch=0}}function ra(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=true;if(o.ranges){if(!o.copied){o=e[i]=o.deepCopy();o.copied=true}for(var s=0;s<o.ranges.length;s++){na(o.ranges[s].anchor,t,n,r);na(o.ranges[s].head,t,n,r)}continue}for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line){u.from=me(u.from.line+r,u.from.ch);u.to=me(u.to.line+r,u.to.ch)}else if(t<=u.to.line){a=false;break}}if(!a){e.splice(0,i+1);i=0}}}function ia(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;ra(e.done,n,r,i);ra(e.undone,n,r,i)}function oa(e,t,n,r){var i=t,o=t;if(typeof t=="number"){o=ue(e,ke(e,t))}else{i=de(t)}if(i==null){return null}if(r(o,i)&&e.cm){Ai(e.cm,i,n)}return o}function aa(e){var t=this;this.lines=e;this.parent=null;var n=0;for(var r=0;r<e.length;++r){e[r].parent=t;n+=e[r].height}this.height=n}function sa(e){var t=this;this.children=e;var n=0,r=0;for(var i=0;i<e.length;++i){var o=e[i];n+=o.chunkSize();r+=o.height;o.parent=t}this.size=n;this.height=r;this.parent=null}no.prototype.from=function(){return _e(this.anchor,this.head)},no.prototype.to=function(){return xe(this.anchor,this.head)},no.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},aa.prototype={chunkSize:function e(){return this.lines.length},removeInner:function e(t,n){var r=this;for(var i=t,o=t+n;i<o;++i){var a=r.lines[i];r.height-=a.height;cn(a);En(a,"delete")}this.lines.splice(t,n)},collapse:function e(t){t.push.apply(t,this.lines)},insertInner:function e(t,n,r){var i=this;this.height+=r;this.lines=this.lines.slice(0,t).concat(n).concat(this.lines.slice(t));for(var o=0;o<n.length;++o){n[o].parent=i}},iterN:function e(t,n,r){var i=this;for(var o=t+n;t<o;++t){if(r(i.lines[t])){return true}}}},sa.prototype={chunkSize:function e(){return this.size},removeInner:function e(t,n){var r=this;this.size-=n;for(var i=0;i<this.children.length;++i){var o=r.children[i],a=o.chunkSize();if(t<a){var s=Math.min(n,a-t),l=o.height;o.removeInner(t,s);r.height-=l-o.height;if(a==s){r.children.splice(i--,1);o.parent=null}if((n-=s)==0){break}t=0}else{t-=a}}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof aa))){var u=[];this.collapse(u);this.children=[new aa(u)];this.children[0].parent=this}},collapse:function e(t){var n=this;for(var r=0;r<this.children.length;++r){n.children[r].collapse(t)}},insertInner:function e(t,n,r){var i=this;this.size+=n.length;this.height+=r;for(var o=0;o<this.children.length;++o){var a=i.children[o],s=a.chunkSize();if(t<=s){a.insertInner(t,n,r);if(a.lines&&a.lines.length>50){var l=a.lines.length%25+25;for(var u=l;u<a.lines.length;){var c=new aa(a.lines.slice(u,u+=25));a.height-=c.height;i.children.splice(++o,0,c);c.parent=i}a.lines=a.lines.slice(0,l);i.maybeSpill()}break}t-=s}},maybeSpill:function e(){if(this.children.length<=10){return}var t=this;do{var n=t.children.splice(t.children.length-5,5);var r=new sa(n);if(!t.parent){var i=new sa(t.children);i.parent=t;t.children=[i,r];t=i}else{t.size-=r.size;t.height-=r.height;var o=H(t.parent.children,t);t.parent.children.splice(o+1,0,r)}r.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()},iterN:function e(t,n,r){var i=this;for(var o=0;o<this.children.length;++o){var a=i.children[o],s=a.chunkSize();if(t<s){var l=Math.min(n,s-t);if(a.iterN(t,l,r)){return true}if((n-=l)==0){break}t=0}else{t-=s}}}};var la=function(e,t,n){var r=this;if(n){for(var i in n){if(n.hasOwnProperty(i)){r[i]=n[i]}}}this.doc=e;this.node=t};function ua(e,t,n){if(nt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)){ti(e,n)}}function ca(r,e,t,n){var i=new la(r,t,n);var o=r.cm;if(o&&i.noHScroll){o.display.alignWidgets=true}oa(r,e,"widget",function(e){var t=e.widgets||(e.widgets=[]);if(i.insertAt==null){t.push(i)}else{t.splice(Math.min(t.length-1,Math.max(0,i.insertAt)),0,i)}i.line=e;if(o&&!et(r,e)){var n=nt(e)<r.scrollTop;he(e,e.height+Bn(i));if(n){ti(o,i.height)}o.curOp.forceUpdate=true}return true});En(o,"lineWidgetAdded",o,i,typeof e=="number"?e:de(e));return i}la.prototype.clear=function(){var e=this;var t=this.doc.cm,n=this.line.widgets,r=this.line,i=de(r);if(i==null||!n){return}for(var o=0;o<n.length;++o){if(n[o]==e){n.splice(o--,1)}}if(!n.length){r.widgets=null}var a=Bn(this);he(r,Math.max(0,r.height-a));if(t){Ti(t,function(){ua(t,r,-a);Ai(t,i,"widget")});En(t,"lineWidgetCleared",t,this,i)}},la.prototype.changed=function(){var e=this;var t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Bn(this)-t;if(!i){return}he(r,r.height+i);if(n){Ti(n,function(){n.curOp.forceUpdate=true;ua(n,r,i);En(n,"lineWidgetChanged",n,e,de(r))})}},yt(la);var fa=0,ha=function(e,t){this.lines=[];this.type=t;this.doc=e;this.id=++fa};function da(t,n,r,e,i){if(e&&e.shared){return ga(t,n,r,e,i)}if(t.cm&&!t.cm.curOp){return Oi(t.cm,da)(t,n,r,e,i)}var o=new ha(t,i),a=ye(n,r);if(e){R(e,o,false)}if(a>0||a==0&&o.clearWhenEmpty!==false){return o}if(o.replacedWith){o.collapsed=true;o.widgetNode=M("span",[o.replacedWith],"CodeMirror-widget");if(!e.handleMouseEvents){o.widgetNode.setAttribute("cm-ignore-events","true")}if(e.insertLeft){o.widgetNode.insertLeft=true}}if(o.collapsed){if(Ke(t,n.line,n,r,o)||n.line!=r.line&&Ke(t,r.line,n,r,o)){throw new Error("Inserting collapsed marker partially overlapping an existing one")}De()}if(o.addToHistory){ko(t,{from:n,to:r,origin:"markText"},t.sel,NaN)}var s=n.line,l=t.cm,u;t.iter(s,r.line+1,function(e){if(l&&o.collapsed&&!l.options.lineWrapping&&$e(e)==l.display.maxLine){u=true}if(o.collapsed&&s!=n.line){he(e,0)}Ne(e,new Ae(o,s==n.line?n.ch:null,s==r.line?r.ch:null));++s});if(o.collapsed){t.iter(n.line,r.line+1,function(e){if(et(t,e)){he(e,0)}})}if(o.clearOnEnter){ft(o,"beforeCursorEnter",function(){return o.clear()})}if(o.readOnly){Me();if(t.history.done.length||t.history.undone.length){t.clearHistory()}}if(o.collapsed){o.id=++fa;o.atomic=true}if(l){if(u){l.curOp.updateMaxLine=true}if(o.collapsed){Di(l,n.line,r.line+1)}else if(o.className||o.title||o.startStyle||o.endStyle||o.css){for(var c=n.line;c<=r.line;c++){Ai(l,c,"text")}}if(o.atomic){Bo(l.doc)}En(l,"markerAdded",l,o)}return o}ha.prototype.clear=function(){var e=this;if(this.explicitlyCleared){return}var t=this.doc.cm,n=t&&!t.curOp;if(n){yi(t)}if(mt(this,"clear")){var r=this.find();if(r){En(this,"clear",r.from,r.to)}}var i=null,o=null;for(var a=0;a<this.lines.length;++a){var s=e.lines[a];var l=Le(s.markedSpans,e);if(t&&!e.collapsed){Ai(t,de(s),"text")}else if(t){if(l.to!=null){o=de(s)}if(l.from!=null){i=de(s)}}s.markedSpans=Pe(s.markedSpans,l);if(l.from==null&&e.collapsed&&!et(e.doc,s)&&t){he(s,Er(t.display))}}if(t&&this.collapsed&&!t.options.lineWrapping){for(var u=0;u<this.lines.length;++u){var c=$e(e.lines[u]),f=rt(c);if(f>t.display.maxLineLength){t.display.maxLine=c;t.display.maxLineLength=f;t.display.maxLineChanged=true}}}if(i!=null&&t&&this.collapsed){Di(t,i,o+1)}this.lines.length=0;this.explicitlyCleared=true;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=false;if(t){Bo(t.doc)}}if(t){En(t,"markerCleared",t,this,i,o)}if(n){bi(t)}if(this.parent){this.parent.clear()}},ha.prototype.find=function(e,t){var n=this;if(e==null&&this.type=="bookmark"){e=1}var r,i;for(var o=0;o<this.lines.length;++o){var a=n.lines[o];var s=Le(a.markedSpans,n);if(s.from!=null){r=me(t?a:de(a),s.from);if(e==-1){return r}}if(s.to!=null){i=me(t?a:de(a),s.to);if(e==1){return i}}}return r&&{from:r,to:i}},ha.prototype.changed=function(){var o=this;var a=this.find(-1,true),s=this,l=this.doc.cm;if(!a||!l){return}Ti(l,function(){var e=a.line,t=de(a.line);var n=er(l,t);if(n){ur(n);l.curOp.selectionChanged=l.curOp.forceUpdate=true}l.curOp.updateMaxLine=true;if(!et(s.doc,e)&&s.height!=null){var r=s.height;s.height=null;var i=Bn(s)-r;if(i){he(e,e.height+i)}}En(l,"markerChanged",l,o)})},ha.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;if(!t.maybeHiddenMarkers||H(t.maybeHiddenMarkers,this)==-1){(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}}this.lines.push(e)},ha.prototype.detachLine=function(e){this.lines.splice(H(this.lines,e),1);if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},yt(ha);var pa=function(e,t){var n=this;this.markers=e;this.primary=t;for(var r=0;r<e.length;++r){e[r].parent=n}};function ga(e,n,r,i,o){i=R(i);i.shared=false;var a=[da(e,n,r,i,o)],s=a[0];var l=i.widgetNode;go(e,function(e){if(l){i.widgetNode=l.cloneNode(true)}a.push(da(e,Se(e,n),Se(e,r),i,o));for(var t=0;t<e.linked.length;++t){if(e.linked[t].isParent){return}}s=$(a)});return new pa(a,s)}function va(e){return e.findMarks(me(e.first,0),e.clipPos(me(e.lastLine())),function(e){return e.parent})}function ma(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find();var o=e.clipPos(i.from),a=e.clipPos(i.to);if(ye(o,a)){var s=da(e,o,a,r.primary,r.primary.type);r.markers.push(s);s.parent=r}}}function ya(o){var e=function(e){var t=o[e],n=[t.primary.doc];go(t.primary.doc,function(e){return n.push(e)});for(var r=0;r<t.markers.length;r++){var i=t.markers[r];if(H(n,i.doc)==-1){i.parent=null;t.markers.splice(r--,1)}}};for(var t=0;t<o.length;t++)e(t)}pa.prototype.clear=function(){var e=this;if(this.explicitlyCleared){return}this.explicitlyCleared=true;for(var t=0;t<this.markers.length;++t){e.markers[t].clear()}En(this,"clear")},pa.prototype.find=function(e,t){return this.primary.find(e,t)},yt(pa);var ba=0,wa=function(e,t,n,r,i){if(!(this instanceof wa)){return new wa(e,t,n,r,i)}if(n==null){n=0}sa.call(this,[new aa([new ln("",null)])]);this.first=n;this.scrollTop=this.scrollLeft=0;this.cantEdit=false;this.cleanGeneration=1;this.modeFrontier=this.highlightFrontier=n;var o=me(n,0);this.sel=io(o);this.history=new bo(null);this.id=++ba;this.modeOption=t;this.lineSep=r;this.direction=i=="rtl"?"rtl":"ltr";this.extend=false;if(typeof e=="string"){e=this.splitLines(e)}po(this,{from:o,to:o,text:e});zo(this,io(o),U)};wa.prototype=Z(sa.prototype,{constructor:wa,iter:function(e,t,n){if(n){this.iterN(e-this.first,t-e,n)}else{this.iterN(this.first,this.first+this.size,e)}},insert:function(e,t){var n=0;for(var r=0;r<t.length;++r){n+=t[r].height}this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=fe(this,this.first,this.first+this.size);if(e===false){return t}return t.join(e||this.lineSeparator())},setValue:Mi(function(e){var t=me(this.first,0),n=this.first+this.size-1;$o(this,{from:t,to:me(n,ue(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:true},true);if(this.cm){ri(this.cm,0,0)}zo(this,io(t),U)}),replaceRange:function(e,t,n,r){t=Se(this,t);n=n?Se(this,n):t;ta(this,e,t,n,r)},getRange:function(e,t,n){var r=ce(this,Se(this,e),Se(this,t));if(n===false){return r}return r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(ge(this,e)){return ue(this,e)}},getLineNumber:function(e){return de(e)},getLineHandleVisualStart:function(e){if(typeof e=="number"){e=ue(this,e)}return $e(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Se(this,e)},getCursor:function(e){var t=this.sel.primary(),n;if(e==null||e=="head"){n=t.head}else if(e=="anchor"){n=t.anchor}else if(e=="end"||e=="to"||e===false){n=t.to()}else{n=t.from()}return n},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Mi(function(e,t,n){jo(this,Se(this,typeof e=="number"?me(e,t||0):e),null,n)}),setSelection:Mi(function(e,t,n){jo(this,Se(this,e),Se(this,t||e),n)}),extendSelection:Mi(function(e,t,n){Po(this,Se(this,e),t&&Se(this,t),n)}),extendSelections:Mi(function(e,t){No(this,Te(this,e),t)}),extendSelectionsBy:Mi(function(e,t){var n=X(this.sel.ranges,e);No(this,Te(this,n),t)}),setSelections:Mi(function(e,t,n){var r=this;if(!e.length){return}var i=[];for(var o=0;o<e.length;o++){i[o]=new no(Se(r,e[o].anchor),Se(r,e[o].head))}if(t==null){t=Math.min(e.length-1,this.sel.primIndex)}zo(this,ro(i,t),n)}),addSelection:Mi(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new no(Se(this,e),Se(this,t||e)));zo(this,ro(r,r.length-1),n)}),getSelection:function(e){var t=this;var n=this.sel.ranges,r;for(var i=0;i<n.length;i++){var o=ce(t,n[i].from(),n[i].to());r=r?r.concat(o):o}if(e===false){return r}else{return r.join(e||this.lineSeparator())}},getSelections:function(e){var t=this;var n=[],r=this.sel.ranges;for(var i=0;i<r.length;i++){var o=ce(t,r[i].from(),r[i].to());if(e!==false){o=o.join(e||t.lineSeparator())}n[i]=o}return n},replaceSelection:function(e,t,n){var r=[];for(var i=0;i<this.sel.ranges.length;i++){r[i]=e}this.replaceSelections(r,t,n||"+input")},replaceSelections:Mi(function(e,t,n){var r=this;var i=[],o=this.sel;for(var a=0;a<o.ranges.length;a++){var s=o.ranges[a];i[a]={from:s.from(),to:s.to(),text:r.splitLines(e[a]),origin:n}}var l=t&&t!="end"&&uo(this,i,t);for(var u=i.length-1;u>=0;u--){$o(r,i[u])}if(l){Fo(this,l)}else if(this.cm){ni(this.cm)}}),undo:Mi(function(){Jo(this,"undo")}),redo:Mi(function(){Jo(this,"redo")}),undoSelection:Mi(function(){Jo(this,"undo",true)}),redoSelection:Mi(function(){Jo(this,"redo",true)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){var e=this.history,t=0,n=0;for(var r=0;r<e.done.length;r++){if(!e.done[r].ranges){++t}}for(var i=0;i<e.undone.length;i++){if(!e.undone[i].ranges){++n}}return{undo:t,redo:n}},clearHistory:function(){this.history=new bo(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(true)},changeGeneration:function(e){if(e){this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null}return this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ao(this.history.done),undone:Ao(this.history.undone)}},setHistory:function(e){var t=this.history=new bo(this.history.maxGeneration);t.done=Ao(e.done.slice(0),null,true);t.undone=Ao(e.undone.slice(0),null,true)},setGutterMarker:Mi(function(e,n,r){return oa(this,e,"gutter",function(e){var t=e.gutterMarkers||(e.gutterMarkers={});t[n]=r;if(!r&&re(t)){e.gutterMarkers=null}return true})}),clearGutter:Mi(function(t){var n=this;this.iter(function(e){if(e.gutterMarkers&&e.gutterMarkers[t]){oa(n,e,"gutter",function(){e.gutterMarkers[t]=null;if(re(e.gutterMarkers)){e.gutterMarkers=null}return true})}})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!ge(this,e)){return null}t=e;e=ue(this,e);if(!e){return null}}else{t=de(e);if(t==null){return null}}return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Mi(function(e,n,r){return oa(this,e,n=="gutter"?"gutter":"class",function(e){var t=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(!e[t]){e[t]=r}else if(S(r).test(e[t])){return false}else{e[t]+=" "+r}return true})}),removeLineClass:Mi(function(e,o,a){return oa(this,e,o=="gutter"?"gutter":"class",function(e){var t=o=="text"?"textClass":o=="background"?"bgClass":o=="gutter"?"gutterClass":"wrapClass";var n=e[t];if(!n){return false}else if(a==null){e[t]=null}else{var r=n.match(S(a));if(!r){return false}var i=r.index+r[0].length;e[t]=n.slice(0,r.index)+(!r.index||i==n.length?"":" ")+n.slice(i)||null}return true})}),addLineWidget:Mi(function(e,t,n){return ca(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return da(this,Se(this,e),Se(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:false,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};e=Se(this,e);return da(this,e,e,n,"bookmark")},findMarksAt:function(e){e=Se(this,e);var t=[],n=ue(this,e.line).markedSpans;if(n){for(var r=0;r<n.length;++r){var i=n[r];if((i.from==null||i.from<=e.ch)&&(i.to==null||i.to>=e.ch)){t.push(i.marker.parent||i.marker)}}}return t},findMarks:function(i,o,a){i=Se(this,i);o=Se(this,o);var s=[],l=i.line;this.iter(i.line,o.line+1,function(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;n++){var r=t[n];if(!(r.to!=null&&l==i.line&&i.ch>=r.to||r.from==null&&l!=i.line||r.from!=null&&l==o.line&&r.from>=o.ch)&&(!a||a(r.marker))){s.push(r.marker.parent||r.marker)}}}++l});return s},getAllMarks:function(){var r=[];this.iter(function(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n){if(t[n].from!=null){r.push(t[n].marker)}}}});return r},posFromIndex:function(n){var r,i=this.first,o=this.lineSeparator().length;this.iter(function(e){var t=e.text.length+o;if(t>n){r=n;return true}n-=t;++i});return Se(this,me(i,r))},indexFromPos:function(e){e=Se(this,e);var t=e.ch;if(e.line<this.first||e.ch<0){return 0}var n=this.lineSeparator().length;this.iter(this.first,e.line,function(e){t+=e.text.length+n});return t},copy:function(e){var t=new wa(fe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);t.scrollTop=this.scrollTop;t.scrollLeft=this.scrollLeft;t.sel=this.sel;t.extend=false;if(e){t.history.undoDepth=this.history.undoDepth;t.setHistory(this.getHistory())}return t},linkedDoc:function(e){if(!e){e={}}var t=this.first,n=this.first+this.size;if(e.from!=null&&e.from>t){t=e.from}if(e.to!=null&&e.to<n){n=e.to}var r=new wa(fe(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);if(e.sharedHist){r.history=this.history}(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist});r.linked=[{doc:this,isParent:true,sharedHist:e.sharedHist}];ma(r,va(this));return r},unlinkDoc:function(e){var t=this;if(e instanceof Is){e=e.doc}if(this.linked){for(var n=0;n<this.linked.length;++n){var r=t.linked[n];if(r.doc!=e){continue}t.linked.splice(n,1);e.unlinkDoc(t);ya(va(t));break}}if(e.history==this.history){var i=[e.id];go(e,function(e){return i.push(e.id)},true);e.history=new bo(null);e.history.done=Ao(this.history.done,i);e.history.undone=Ao(this.history.undone,i)}},iterLinkedDocs:function(e){go(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){if(this.lineSep){return e.split(this.lineSep)}return Dt(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Mi(function(e){if(e!="rtl"){e="ltr"}if(e==this.direction){return}this.direction=e;this.iter(function(e){return e.order=null});if(this.cm){yo(this.cm)}})}),wa.prototype.eachLine=wa.prototype.iter;var xa=0;function _a(e){var i=this;Ca(i);if(gt(i,e)||Un(i.display,e)){return}bt(e);if(x){xa=+new Date}var o=Nr(i,e,true),t=e.dataTransfer.files;if(!o||i.isReadOnly()){return}if(t&&t.length&&window.FileReader&&window.File){var a=t.length,s=Array(a),l=0;var n=function(e,n){if(i.options.allowDropFileTypes&&H(i.options.allowDropFileTypes,e.type)==-1){return}var r=new FileReader;r.onload=Oi(i,function(){var e=r.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)){e=""}s[n]=e;if(++l==a){o=Se(i.doc,o);var t={from:o,to:o,text:i.doc.splitLines(s.join(i.doc.lineSeparator())),origin:"paste"};$o(i.doc,t);Fo(i.doc,io(o,oo(t)))}});r.readAsText(e)};for(var r=0;r<a;++r){n(t[r],r)}}else{if(i.state.draggingText&&i.doc.sel.contains(o)>-1){i.state.draggingText(e);setTimeout(function(){return i.display.input.focus()},20);return}try{var u=e.dataTransfer.getData("Text");if(u){var c;if(i.state.draggingText&&!i.state.draggingText.copy){c=i.listSelections()}Ho(i.doc,io(o,o));if(c){for(var f=0;f<c.length;++f){ta(i.doc,"",c[f].anchor,c[f].head,"drag")}}i.replaceSelection(u,"around","paste");i.display.input.focus()}}catch(e){}}}function ka(e,t){if(x&&(!e.state.draggingText||+new Date-xa<100)){_t(t);return}if(gt(e,t)||Un(e.display,t)){return}t.dataTransfer.setData("Text",e.getSelection());t.dataTransfer.effectAllowed="copyMove";if(t.dataTransfer.setDragImage&&!s){var n=A("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";if(m){n.width=n.height=1;e.display.wrapper.appendChild(n);n._top=n.offsetTop}t.dataTransfer.setDragImage(n,0,0);if(m){n.parentNode.removeChild(n)}}}function Sa(e,t){var n=Nr(e,t);if(!n){return}var r=document.createDocumentFragment();Fr(e,n,r);if(!e.display.dragCursor){e.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors");e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)}E(e.display.dragCursor,r)}function Ca(e){if(e.display.dragCursor){e.display.lineSpace.removeChild(e.display.dragCursor);e.display.dragCursor=null}}function Ta(e){if(!document.getElementsByClassName){return}var t=document.getElementsByClassName("CodeMirror");for(var n=0;n<t.length;n++){var r=t[n].CodeMirror;if(r){e(r)}}}var Oa=false;function Ea(){if(Oa){return}Ma();Oa=true}function Ma(){var e;ft(window,"resize",function(){if(e==null){e=setTimeout(function(){e=null;Ta(Da)},100)}});ft(window,"blur",function(){return Ta(Gr)})}function Da(e){var t=e.display;if(t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth){return}t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null;t.scrollbarsClipped=false;e.setSize()}for(var Aa={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},La=0;La<10;La++){Aa[La+48]=Aa[La+96]=String(La)}for(var Pa=65;Pa<=90;Pa++){Aa[Pa]=String.fromCharCode(Pa)}for(var Na=1;Na<=12;Na++){Aa[Na+111]=Aa[Na+63235]="F"+Na}var Ia={};function ja(e){var t=e.split(/-(?!$)/);e=t[t.length-1];var n,r,i,o;for(var a=0;a<t.length-1;a++){var s=t[a];if(/^(cmd|meta|m)$/i.test(s)){o=true}else if(/^a(lt)?$/i.test(s)){n=true}else if(/^(c|ctrl|control)$/i.test(s)){r=true}else if(/^s(hift)?$/i.test(s)){i=true}else{throw new Error("Unrecognized modifier name: "+s)}}if(n){e="Alt-"+e}if(r){e="Ctrl-"+e}if(o){e="Cmd-"+e}if(i){e="Shift-"+e}return e}function Ra(e){var t={};for(var n in e){if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n)){continue}if(r=="..."){delete e[n];continue}var i=X(n.split(" "),ja);for(var o=0;o<i.length;o++){var a=void 0,s=void 0;if(o==i.length-1){s=i.join(" ");a=r}else{s=i.slice(0,o+1).join(" ");a="..."}var l=t[s];if(!l){t[s]=a}else if(l!=a){throw new Error("Inconsistent bindings for "+s)}}delete e[n]}}for(var u in t){e[u]=t[u]}return e}function Fa(e,t,n,r){t=Ba(t);var i=t.call?t.call(e,r):t[e];if(i===false){return"nothing"}if(i==="..."){return"multi"}if(i!=null&&n(i)){return"handled"}if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]"){return Fa(e,t.fallthrough,n,r)}for(var o=0;o<t.fallthrough.length;o++){var a=Fa(e,t.fallthrough[o],n,r);if(a){return a}}}}function za(e){var t=typeof e=="string"?e:Aa[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Ha(e,t,n){var r=e;if(t.altKey&&r!="Alt"){e="Alt-"+e}if((w?t.metaKey:t.ctrlKey)&&r!="Ctrl"){e="Ctrl-"+e}if((w?t.ctrlKey:t.metaKey)&&r!="Cmd"){e="Cmd-"+e}if(!n&&t.shiftKey&&r!="Shift"){e="Shift-"+e}return e}function Wa(e,t){if(m&&e.keyCode==34&&e["char"]){return false}var n=Aa[e.keyCode];if(n==null||e.altGraphKey){return false}if(e.keyCode==3&&e.code){n=e.code}return Ha(n,e,t)}function Ba(e){return typeof e=="string"?Ia[e]:e}function Ua(t,e){var n=t.doc.sel.ranges,r=[];for(var i=0;i<n.length;i++){var o=e(n[i]);while(r.length&&ye(o.from,$(r).to)<=0){var a=r.pop();if(ye(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Ti(t,function(){for(var e=r.length-1;e>=0;e--){ta(t.doc,"",r[e].from,r[e].to,"+delete")}ni(t)})}function qa(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ga(e,t,n){var r=qa(e,t.ch,n);return r==null?null:new me(t.line,r,n<0?"after":"before")}function Ya(e,t,n,r,i){if(e){var o=ut(n,t.doc.direction);if(o){var a=i<0?$(o):o[0];var s=i<0==(a.level==1);var l=s?"after":"before";var u;if(a.level>0||t.doc.direction=="rtl"){var c=tr(t,n);u=i<0?n.text.length-1:0;var f=nr(t,c,u).top;u=se(function(e){return nr(t,c,e).top==f},i<0==(a.level==1)?a.from:a.to-1,u);if(l=="before"){u=qa(n,u,1)}}else{u=i<0?a.to:a.from}return new me(r,u,l)}}return new me(r,i<0?n.text.length:0,i<0?"before":"after")}function Va(t,n,s,e){var l=ut(n,t.doc.direction);if(!l){return Ga(n,s,e)}if(s.ch>=n.text.length){s.ch=n.text.length;s.sticky="before"}else if(s.ch<=0){s.ch=0;s.sticky="after"}var r=st(l,s.ch,s.sticky),i=l[r];if(t.doc.direction=="ltr"&&i.level%2==0&&(e>0?i.to>s.ch:i.from<s.ch)){return Ga(n,s,e)}var u=function(e,t){return qa(n,e instanceof me?e.ch:e,t)};var o;var a=function(e){if(!t.options.lineWrapping){return{begin:0,end:n.text.length}}o=o||tr(t,n);return kr(t,n,o,e)};var c=a(s.sticky=="before"?u(s,-1):s.ch);if(t.doc.direction=="rtl"||i.level==1){var f=i.level==1==e<0;var h=u(s,f?1:-1);if(h!=null&&(!f?h>=i.from&&h>=c.begin:h<=i.to&&h<=c.end)){var d=f?"before":"after";return new me(s.line,h,d)}}var p=function(e,t,n){var r=function(e,t){return t?new me(s.line,u(e,1),"before"):new me(s.line,e,"after")};for(;e>=0&&e<l.length;e+=t){var i=l[e];var o=t>0==(i.level!=1);var a=o?n.begin:u(n.end,-1);if(i.from<=a&&a<i.to){return r(a,o)}a=o?i.from:u(i.to,-1);if(n.begin<=a&&a<n.end){return r(a,o)}}};var g=p(r+e,e,c);if(g){return g}var v=e>0?c.end:u(c.begin,-1);if(v!=null&&!(e>0&&v==n.text.length)){g=p(e>0?0:l.length-1,e,a(v));if(g){return g}}return null}Ia.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ia.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ia.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ia.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ia["default"]=y?Ia.macDefault:Ia.pcDefault;var Ka={selectAll:Vo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),U)},killLine:function(n){return Ua(n,function(e){if(e.empty()){var t=ue(n.doc,e.head.line).text.length;if(e.head.ch==t&&e.head.line<n.lastLine()){return{from:e.head,to:me(e.head.line+1,0)}}else{return{from:e.head,to:me(e.head.line,t)}}}else{return{from:e.from(),to:e.to()}}})},deleteLine:function(t){return Ua(t,function(e){return{from:me(e.from().line,0),to:Se(t.doc,me(e.to().line+1,0))}})},delLineLeft:function(e){return Ua(e,function(e){return{from:me(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(r){return Ua(r,function(e){var t=r.charCoords(e.head,"div").top+5;var n=r.coordsChar({left:0,top:t},"div");return{from:n,to:e.from()}})},delWrappedLineRight:function(r){return Ua(r,function(e){var t=r.charCoords(e.head,"div").top+5;var n=r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:t},"div");return{from:e.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(me(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(me(e.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(e){return $a(t,e.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(e){return Ja(t,e.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(e){return Xa(t,e.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(e){var t=n.cursorCoords(e.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:t},"div")},G)},goLineLeft:function(n){return n.extendSelectionsBy(function(e){var t=n.cursorCoords(e.head,"div").top+5;return n.coordsChar({left:0,top:t},"div")},G)},goLineLeftSmart:function(r){return r.extendSelectionsBy(function(e){var t=r.cursorCoords(e.head,"div").top+5;var n=r.coordsChar({left:0,top:t},"div");if(n.ch<r.getLine(n.line).search(/\S/)){return Ja(r,e.head)}return n},G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){var t=[],n=e.listSelections(),r=e.options.tabSize;for(var i=0;i<n.length;i++){var o=n[i].from();var a=F(e.getLine(o.line),o.ch,r);t.push(K(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){if(e.somethingSelected()){e.indentSelection("add")}else{e.execCommand("insertTab")}},transposeChars:function(a){return Ti(a,function(){var e=a.listSelections(),t=[];for(var n=0;n<e.length;n++){if(!e[n].empty()){continue}var r=e[n].head,i=ue(a.doc,r.line).text;if(i){if(r.ch==i.length){r=new me(r.line,r.ch-1)}if(r.ch>0){r=new me(r.line,r.ch+1);a.replaceRange(i.charAt(r.ch-1)+i.charAt(r.ch-2),me(r.line,r.ch-2),r,"+transpose")}else if(r.line>a.doc.first){var o=ue(a.doc,r.line-1).text;if(o){r=new me(r.line,1);a.replaceRange(i.charAt(0)+a.doc.lineSeparator()+o.charAt(o.length-1),me(r.line-1,o.length-1),r,"+transpose")}}}t.push(new no(r,r))}a.setSelections(t)})},newlineAndIndent:function(r){return Ti(r,function(){var e=r.listSelections();for(var t=e.length-1;t>=0;t--){r.replaceRange(r.doc.lineSeparator(),e[t].anchor,e[t].head,"+input")}e=r.listSelections();for(var n=0;n<e.length;n++){r.indentLine(e[n].from().line,null,true)}ni(r)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function $a(e,t){var n=ue(e.doc,t);var r=$e(n);if(r!=n){t=de(r)}return Ya(true,e,r,t,1)}function Xa(e,t){var n=ue(e.doc,t);var r=Xe(n);if(r!=n){t=de(r)}return Ya(true,e,n,t,-1)}function Ja(e,t){var n=$a(e,t.line);var r=ue(e.doc,n.line);var i=ut(r,e.doc.direction);if(!i||i[0].level==0){var o=Math.max(0,r.text.search(/\S/));var a=t.line==n.line&&t.ch<=o&&t.ch;return me(n.line,a?0:o,n.sticky)}return n}function Qa(e,t,n){if(typeof t=="string"){t=Ka[t];if(!t){return false}}e.display.input.ensurePolled();var r=e.display.shift,i=false;try{if(e.isReadOnly()){e.state.suppressEdits=true}if(n){e.display.shift=false}i=t(e)!=B}finally{e.display.shift=r;e.state.suppressEdits=false}return i}function Za(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Fa(t,e.state.keyMaps[r],n,e);if(i){return i}}return e.options.extraKeys&&Fa(t,e.options.extraKeys,n,e)||Fa(t,e.options.keyMap,n,e)}var es=new z;function ts(e,t,n,r){var i=e.state.keySeq;if(i){if(za(t)){return"handled"}if(/\'$/.test(t)){e.state.keySeq=null}else{es.set(50,function(){if(e.state.keySeq==i){e.state.keySeq=null;e.display.input.reset()}})}if(ns(e,i+" "+t,n,r)){return true}}return ns(e,t,n,r)}function ns(e,t,n,r){var i=Za(e,t,r);if(i=="multi"){e.state.keySeq=t}if(i=="handled"){En(e,"keyHandled",e,t,n)}if(i=="handled"||i=="multi"){bt(n);Wr(e)}return!!i}function rs(t,e){var n=Wa(e,true);if(!n){return false}if(e.shiftKey&&!t.state.keySeq){return ts(t,"Shift-"+n,e,function(e){return Qa(t,e,true)})||ts(t,n,e,function(e){if(typeof e=="string"?/^go[A-Z]/.test(e):e.motion){return Qa(t,e)}})}else{return ts(t,n,e,function(e){return Qa(t,e)})}}function is(t,e,n){return ts(t,"'"+n+"'",e,function(e){return Qa(t,e,true)})}var os=null;function as(e){var t=this;t.curOp.focus=L();if(gt(t,e)){return}if(x&&_<11&&e.keyCode==27){e.returnValue=false}var n=e.keyCode;t.display.shift=n==16||e.shiftKey;var r=rs(t,e);if(m){os=r?n:null;if(!r&&n==88&&!Lt&&(y?e.metaKey:e.ctrlKey)){t.replaceSelection("",null,"cut")}}if(n==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)){ss(t)}}function ss(e){var t=e.display.lineDiv;P(t,"CodeMirror-crosshair");function n(e){if(e.keyCode==18||!e.altKey){C(t,"CodeMirror-crosshair");dt(document,"keyup",n);dt(document,"mouseover",n)}}ft(document,"keyup",n);ft(document,"mouseover",n)}function ls(e){if(e.keyCode==16){this.doc.sel.shift=false}gt(this,e)}function us(e){var t=this;if(Un(t.display,e)||gt(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey){return}var n=e.keyCode,r=e.charCode;if(m&&n==os){os=null;bt(e);return}if(m&&(!e.which||e.which<10)&&rs(t,e)){return}var i=String.fromCharCode(r==null?n:r);if(i=="\b"){return}if(is(t,e,i)){return}t.display.input.onKeyPress(e)}var cs=400,fs=function(e,t,n){this.time=e;this.pos=t;this.button=n},hs,ds;function ps(e,t){var n=+new Date;if(ds&&ds.compare(n,e,t)){hs=ds=null;return"triple"}else if(hs&&hs.compare(n,e,t)){ds=new fs(n,e,t);hs=null;return"double"}else{hs=new fs(n,e,t);ds=null;return"single"}}function gs(e){var t=this,n=t.display;if(gt(t,e)||n.activeTouch&&n.input.supportsTouch()){return}n.input.ensurePolled();n.shift=e.shiftKey;if(Un(n,e)){if(!v){n.scroller.draggable=false;setTimeout(function(){return n.scroller.draggable=true},100)}return}if(Ss(t,e)){return}var r=Nr(t,e),i=St(e),o=r?ps(r,i):"single";window.focus();if(i==1&&t.state.selectingText){t.state.selectingText(e)}if(r&&vs(t,i,r,o,e)){return}if(i==1){if(r){ys(t,r,o,e)}else if(kt(e)==n.scroller){bt(e)}}else if(i==2){if(r){Po(t.doc,r)}setTimeout(function(){return n.input.focus()},20)}else if(i==3){if(k){Cs(t,e)}else{Ur(t)}}}function vs(n,e,r,t,i){var o="Click";if(t=="double"){o="Double"+o}else if(t=="triple"){o="Triple"+o}o=(e==1?"Left":e==2?"Middle":"Right")+o;return ts(n,Ha(o,i),i,function(e){if(typeof e=="string"){e=Ka[e]}if(!e){return false}var t=false;try{if(n.isReadOnly()){n.state.suppressEdits=true}t=e(n,r)!=B}finally{n.state.suppressEdits=false}return t})}function ms(e,t,n){var r=e.getOption("configureMouse");var i=r?r(e,t,n):{};if(i.unit==null){var o=d?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}if(i.extend==null||e.doc.extend){i.extend=e.doc.extend||n.shiftKey}if(i.addNew==null){i.addNew=y?n.metaKey:n.ctrlKey}if(i.moveOnDrag==null){i.moveOnDrag=!(y?n.altKey:n.ctrlKey)}return i}function ys(e,t,n,r){if(x){setTimeout(j(Br,e),0)}else{e.curOp.focus=L()}var i=ms(e,n,r);var o=e.doc.sel,a;if(e.options.dragDrop&&Ct&&!e.isReadOnly()&&n=="single"&&(a=o.contains(t))>-1&&(ye((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&(ye(a.to(),t)>0||t.xRel<0)){bs(e,r,t,i)}else{xs(e,r,t,i)}}function bs(t,n,r,i){var o=t.display,a=false;var s=Oi(t,function(e){if(v){o.scroller.draggable=false}t.state.draggingText=false;dt(document,"mouseup",s);dt(document,"mousemove",l);dt(o.scroller,"dragstart",u);dt(o.scroller,"drop",s);if(!a){bt(e);if(!i.addNew){Po(t.doc,r,null,null,i.extend)}if(v||x&&_==9){setTimeout(function(){document.body.focus();o.input.focus()},20)}else{o.input.focus()}}});var l=function(e){a=a||Math.abs(n.clientX-e.clientX)+Math.abs(n.clientY-e.clientY)>=10};var u=function(){return a=true};if(v){o.scroller.draggable=true}t.state.draggingText=s;s.copy=!i.moveOnDrag;if(o.scroller.dragDrop){o.scroller.dragDrop()}ft(document,"mouseup",s);ft(document,"mousemove",l);ft(o.scroller,"dragstart",u);ft(o.scroller,"drop",s);Ur(t);setTimeout(function(){return o.input.focus()},20)}function ws(e,t,n){if(n=="char"){return new no(t,t)}if(n=="word"){return e.findWordAt(t)}if(n=="line"){return new no(me(t.line,0),Se(e.doc,me(t.line+1,0)))}var r=n(e,t);return new no(r.from,r.to)}function xs(v,e,m,y){var o=v.display,b=v.doc;bt(e);var w,x,_=b.sel,t=_.ranges;if(y.addNew&&!y.extend){x=b.sel.contains(m);if(x>-1){w=t[x]}else{w=new no(m,m)}}else{w=b.sel.primary();x=b.sel.primIndex}if(y.unit=="rectangle"){if(!y.addNew){w=new no(m,m)}m=Nr(v,e,true,true);x=-1}else{var n=ws(v,m,y.unit);if(y.extend){w=Lo(w,n.anchor,n.head,y.extend)}else{w=n}}if(!y.addNew){x=0;zo(b,new to([w],0),q);_=b.sel}else if(x==-1){x=t.length;zo(b,ro(t.concat([w]),x),{scroll:false,origin:"*mouse"})}else if(t.length>1&&t[x].empty()&&y.unit=="char"&&!y.extend){zo(b,ro(t.slice(0,x).concat(t.slice(x+1)),0),{scroll:false,origin:"*mouse"});_=b.sel}else{Io(b,x,w,q)}var k=m;function a(e){if(ye(k,e)==0){return}k=e;if(y.unit=="rectangle"){var t=[],n=v.options.tabSize;var r=F(ue(b,m.line).text,m.ch,n);var i=F(ue(b,e.line).text,e.ch,n);var o=Math.min(r,i),a=Math.max(r,i);for(var s=Math.min(m.line,e.line),l=Math.min(v.lastLine(),Math.max(m.line,e.line));s<=l;s++){var u=ue(b,s).text,c=Y(u,o,n);if(o==a){t.push(new no(me(s,c),me(s,c)))}else if(u.length>c){t.push(new no(me(s,c),me(s,Y(u,a,n))))}}if(!t.length){t.push(new no(m,m))}zo(b,ro(_.ranges.slice(0,x).concat(t),x),{origin:"*mouse",scroll:false});v.scrollIntoView(e)}else{var f=w;var h=ws(v,e,y.unit);var d=f.anchor,p;if(ye(h.anchor,d)>0){p=h.head;d=_e(f.from(),h.anchor)}else{p=h.anchor;d=xe(f.to(),h.head)}var g=_.ranges.slice(0);g[x]=_s(v,new no(Se(b,d),p));zo(b,ro(g,x),q)}}var s=o.wrapper.getBoundingClientRect();var l=0;function u(e){var t=++l;var n=Nr(v,e,true,y.unit=="rectangle");if(!n){return}if(ye(n,k)!=0){v.curOp.focus=L();a(n);var r=Kr(o,b);if(n.line>=r.to||n.line<r.from){setTimeout(Oi(v,function(){if(l==t){u(e)}}),150)}}else{var i=e.clientY<s.top?-20:e.clientY>s.bottom?20:0;if(i){setTimeout(Oi(v,function(){if(l!=t){return}o.scroller.scrollTop+=i;u(e)}),50)}}}function r(e){v.state.selectingText=false;l=Infinity;bt(e);o.input.focus();dt(document,"mousemove",i);dt(document,"mouseup",c);b.history.lastSelOrigin=null}var i=Oi(v,function(e){if(!St(e)){r(e)}else{u(e)}});var c=Oi(v,r);v.state.selectingText=c;ft(document,"mousemove",i);ft(document,"mouseup",c)}function _s(e,t){var n=t.anchor;var r=t.head;var i=ue(e.doc,n.line);if(ye(n,r)==0&&n.sticky==r.sticky){return t}var o=ut(i);if(!o){return t}var a=st(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch){return t}var l=a+(s.from==n.ch==(s.level!=1)?0:1);if(l==0||l==o.length){return t}var u;if(r.line!=n.line){u=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0}else{var c=st(o,r.ch,r.sticky);var f=c-a||(r.ch-n.ch)*(s.level==1?-1:1);if(c==l-1||c==l){u=f<0}else{u=f>0}}var h=o[l+(u?-1:0)];var d=u==(h.level==1);var p=d?h.from:h.to,g=d?"after":"before";return n.ch==p&&n.sticky==g?t:new no(new me(n.line,p,g),r)}function ks(e,t,n,r){var i,o;if(t.touches){i=t.touches[0].clientX;o=t.touches[0].clientY}else{try{i=t.clientX;o=t.clientY}catch(t){return false}}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right)){return false}if(r){bt(t)}var a=e.display;var s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!mt(e,n)){return xt(t)}o-=s.top-a.viewOffset;for(var l=0;l<e.options.gutters.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i){var c=pe(e.doc,o);var f=e.options.gutters[l];pt(e,n,e,c,f,t);return xt(t)}}}function Ss(e,t){return ks(e,t,"gutterClick",true)}function Cs(e,t){if(Un(e.display,t)||Ts(e,t)){return}if(gt(e,t,"contextmenu")){return}e.display.input.onContextMenu(t)}function Ts(e,t){if(!mt(e,"gutterContextMenu")){return false}return ks(e,t,"gutterContextMenu",false)}function Os(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-");fr(e)}fs.prototype.compare=function(e,t,n){return this.time+cs>e&&ye(t,this.pos)==0&&n==this.button};var Es={toString:function(){return"CodeMirror.Init"}},Ms={},Ds={};function As(i){var o=i.optionHandlers;function e(e,t,r,n){i.defaults[e]=t;if(r){o[e]=n?function(e,t,n){if(n!=Es){r(e,t,n)}}:r}}i.defineOption=e;i.Init=Es;e("value","",function(e,t){return e.setValue(t)},true);e("mode",null,function(e,t){e.doc.modeOption=t;co(e)},true);e("indentUnit",2,co,true);e("indentWithTabs",false);e("smartIndent",true);e("tabSize",4,function(e){fo(e);fr(e);Di(e)},true);e("lineSeparator",null,function(e,r){e.doc.lineSep=r;if(!r){return}var i=[],o=e.doc.first;e.doc.iter(function(e){for(var t=0;;){var n=e.text.indexOf(r,t);if(n==-1){break}t=n+r.length;i.push(me(o,n))}o++});for(var t=i.length-1;t>=0;t--){ta(e.doc,r,i[t],me(i[t].line,i[t].ch+r.length))}});e("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g");if(n!=Es){e.refresh()}});e("specialCharPlaceholder",gn,function(e){return e.refresh()},true);e("electricChars",true);e("inputStyle",h?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},true);e("spellcheck",false,function(e,t){return e.getInputField().spellcheck=t},true);e("rtlMoveVisually",!p);e("wholeLineUpdateBefore",true);e("theme","default",function(e){Os(e);Ls(e)},true);e("keyMap","default",function(e,t,n){var r=Ba(t);var i=n!=Es&&Ba(n);if(i&&i.detach){i.detach(e,r)}if(r.attach){r.attach(e,i||null)}});e("extraKeys",null);e("configureMouse",null);e("lineWrapping",false,Ns,true);e("gutters",[],function(e){$i(e.options);Ls(e)},true);e("fixedGutter",true,function(e,t){e.display.gutters.style.left=t?Ar(e.display)+"px":"0";e.refresh()},true);e("coverGutterNextToScrollbar",false,function(e){return di(e)},true);e("scrollbarStyle","native",function(e){vi(e);di(e);e.display.scrollbars.setScrollTop(e.doc.scrollTop);e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},true);e("lineNumbers",false,function(e){$i(e.options);Ls(e)},true);e("firstLineNumber",1,Ls,true);e("lineNumberFormatter",function(e){return e},Ls,true);e("showCursorWhenSelecting",false,jr,true);e("resetSelectionOnContextMenu",true);e("lineWiseCopyCut",true);e("pasteLinesPerSelection",true);e("readOnly",false,function(e,t){if(t=="nocursor"){Gr(e);e.display.input.blur()}e.display.input.readOnlyChanged(t)});e("disableInput",false,function(e,t){if(!t){e.display.input.reset()}},true);e("dragDrop",true,Ps);e("allowDropFileTypes",null);e("cursorBlinkRate",530);e("cursorScrollMargin",0);e("cursorHeight",1,jr,true);e("singleCursorHeightPerLine",true,jr,true);e("workTime",100);e("workDelay",100);e("flattenSpans",true,fo,true);e("addModeClass",false,fo,true);e("pollInterval",100);e("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t});e("historyEventDelay",1250);e("viewportMargin",10,function(e){return e.refresh()},true);e("maxHighlightLength",1e4,fo,true);e("moveInputWithCursor",true,function(e,t){if(!t){e.display.input.resetPosition()}});e("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""});e("autofocus",null);e("direction","ltr",function(e,t){return e.doc.setDirection(t)},true)}function Ls(e){Ki(e);Di(e);$r(e)}function Ps(e,t,n){var r=n&&n!=Es;if(!t!=!r){var i=e.display.dragFunctions;var o=t?ft:dt;o(e.display.scroller,"dragstart",i.start);o(e.display.scroller,"dragenter",i.enter);o(e.display.scroller,"dragover",i.over);o(e.display.scroller,"dragleave",i.leave);o(e.display.scroller,"drop",i.drop)}}function Ns(e){if(e.options.lineWrapping){P(e.display.wrapper,"CodeMirror-wrap");e.display.sizer.style.minWidth="";e.display.sizerWidth=null}else{C(e.display.wrapper,"CodeMirror-wrap");it(e)}Pr(e);Di(e);fr(e);setTimeout(function(){return di(e)},100)}function Is(e,t){var n=this;if(!(this instanceof Is)){return new Is(e,t)}this.options=t=t?R(t):{};R(Ms,t,false);$i(t);var r=t.value;if(typeof r=="string"){r=new wa(r,t.mode,null,t.lineSeparator,t.direction)}this.doc=r;var i=new Is.inputStyles[t.inputStyle](this);var o=this.display=new le(e,r,i);o.wrapper.CodeMirror=this;Ki(this);Os(this);if(t.lineWrapping){this.display.wrapper.className+=" CodeMirror-wrap"}vi(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:false,delayingBlurEvent:false,focused:false,suppressEdits:false,pasteIncoming:false,cutIncoming:false,selectingText:false,draggingText:false,highlight:new z,keySeq:null,specialChars:null};if(t.autofocus&&!h){o.input.focus()}if(x&&_<11){setTimeout(function(){return n.display.input.reset(true)},20)}js(this);Ea();yi(this);this.curOp.forceUpdate=true;vo(this,r);if(t.autofocus&&!h||this.hasFocus()){setTimeout(j(qr,this),20)}else{Gr(this)}for(var a in Ds){if(Ds.hasOwnProperty(a)){Ds[a](n,t[a],Es)}}Xr(this);if(t.finishInit){t.finishInit(this)}for(var s=0;s<Rs.length;++s){Rs[s](n)}bi(this);if(v&&t.lineWrapping&&getComputedStyle(o.lineDiv).textRendering=="optimizelegibility"){o.lineDiv.style.textRendering="auto"}}function js(i){var o=i.display;ft(o.scroller,"mousedown",Oi(i,gs));if(x&&_<11){ft(o.scroller,"dblclick",Oi(i,function(e){if(gt(i,e)){return}var t=Nr(i,e);if(!t||Ss(i,e)||Un(i.display,e)){return}bt(e);var n=i.findWordAt(t);Po(i.doc,n.anchor,n.head)}))}else{ft(o.scroller,"dblclick",function(e){return gt(i,e)||bt(e)})}if(!k){ft(o.scroller,"contextmenu",function(e){return Cs(i,e)})}var n,r={end:0};function a(){if(o.activeTouch){n=setTimeout(function(){return o.activeTouch=null},1e3);r=o.activeTouch;r.end=+new Date}}function s(e){if(e.touches.length!=1){return false}var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(t.left==null){return true}var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>20*20}ft(o.scroller,"touchstart",function(e){if(!gt(i,e)&&!s(e)&&!Ss(i,e)){o.input.ensurePolled();clearTimeout(n);var t=+new Date;o.activeTouch={start:t,moved:false,prev:t-r.end<=300?r:null};if(e.touches.length==1){o.activeTouch.left=e.touches[0].pageX;o.activeTouch.top=e.touches[0].pageY}}});ft(o.scroller,"touchmove",function(){if(o.activeTouch){o.activeTouch.moved=true}});ft(o.scroller,"touchend",function(e){var t=o.activeTouch;if(t&&!Un(o,e)&&t.left!=null&&!t.moved&&new Date-t.start<300){var n=i.coordsChar(o.activeTouch,"page"),r;if(!t.prev||l(t,t.prev)){r=new no(n,n)}else if(!t.prev.prev||l(t,t.prev.prev)){r=i.findWordAt(n)}else{r=new no(me(n.line,0),Se(i.doc,me(n.line+1,0)))}i.setSelection(r.anchor,r.head);i.focus();bt(e)}a()});ft(o.scroller,"touchcancel",a);ft(o.scroller,"scroll",function(){if(o.scroller.clientHeight){si(i,o.scroller.scrollTop);ui(i,o.scroller.scrollLeft,true);pt(i,"scroll",i)}});ft(o.scroller,"mousewheel",function(e){return eo(i,e)});ft(o.scroller,"DOMMouseScroll",function(e){return eo(i,e)});ft(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0});o.dragFunctions={enter:function(e){if(!gt(i,e)){_t(e)}},over:function(e){if(!gt(i,e)){Sa(i,e);_t(e)}},start:function(e){return ka(i,e)},drop:Oi(i,_a),leave:function(e){if(!gt(i,e)){Ca(i)}}};var e=o.input.getField();ft(e,"keyup",function(e){return ls.call(i,e)});ft(e,"keydown",Oi(i,as));ft(e,"keypress",Oi(i,us));ft(e,"focus",function(e){return qr(i,e)});ft(e,"blur",function(e){return Gr(i,e)})}Is.defaults=Ms,Is.optionHandlers=Ds;var Rs=[];function Fs(e,t,n,r){var i=e.doc,o;if(n==null){n="add"}if(n=="smart"){if(!i.mode.indent){n="prev"}else{o=Jt(e,t).state}}var a=e.options.tabSize;var s=ue(i,t),l=F(s.text,null,a);if(s.stateAfter){s.stateAfter=null}var u=s.text.match(/^\s*/)[0],c;if(!r&&!/\S/.test(s.text)){c=0;n="not"}else if(n=="smart"){c=i.mode.indent(o,s.text.slice(u.length),s.text);if(c==B||c>150){if(!r){return}n="prev"}}if(n=="prev"){if(t>i.first){c=F(ue(i,t-1).text,null,a)}else{c=0}}else if(n=="add"){c=l+e.options.indentUnit}else if(n=="subtract"){c=l-e.options.indentUnit}else if(typeof n=="number"){c=l+n}c=Math.max(0,c);var f="",h=0;if(e.options.indentWithTabs){for(var d=Math.floor(c/a);d;--d){h+=a;f+="\t"}}if(h<c){f+=K(c-h)}if(f!=u){ta(i,f,me(t,0),me(t,u.length),"+input");s.stateAfter=null;return true}else{for(var p=0;p<i.sel.ranges.length;p++){var g=i.sel.ranges[p];if(g.head.line==t&&g.head.ch<u.length){var v=me(t,u.length);Io(i,p,new no(v,v));break}}}}Is.defineInitHook=function(e){return Rs.push(e)};var zs=null;function Hs(e){zs=e}function Ws(e,t,n,r,i){var o=e.doc;e.display.shift=false;if(!r){r=o.sel}var a=e.state.pasteIncoming||i=="paste";var s=Dt(t),l=null;if(a&&r.ranges.length>1){if(zs&&zs.text.join("\n")==t){if(r.ranges.length%zs.text.length==0){l=[];for(var u=0;u<zs.text.length;u++){l.push(o.splitLines(zs.text[u]))}}}else if(s.length==r.ranges.length&&e.options.pasteLinesPerSelection){l=X(s,function(e){return[e]})}}var c;for(var f=r.ranges.length-1;f>=0;f--){var h=r.ranges[f];var d=h.from(),p=h.to();if(h.empty()){if(n&&n>0){d=me(d.line,d.ch-n)}else if(e.state.overwrite&&!a){p=me(p.line,Math.min(ue(o,p.line).text.length,p.ch+$(s).length))}else if(zs&&zs.lineWise&&zs.text.join("\n")==t){d=p=me(d.line,0)}}c=e.curOp.updateInput;var g={from:d,to:p,text:l?l[f%l.length]:s,origin:i||(a?"paste":e.state.cutIncoming?"cut":"+input")};$o(e.doc,g);En(e,"inputRead",e,g)}if(t&&!a){Us(e,t)}ni(e);e.curOp.updateInput=c;e.curOp.typing=true;e.state.pasteIncoming=e.state.cutIncoming=false}function Bs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n){e.preventDefault();if(!t.isReadOnly()&&!t.options.disableInput){Ti(t,function(){return Ws(t,n,0,null,"paste")})}return true}}function Us(e,t){if(!e.options.electricChars||!e.options.smartIndent){return}var n=e.doc.sel;for(var r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line){continue}var o=e.getModeAt(i.head);var a=false;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++){if(t.indexOf(o.electricChars.charAt(s))>-1){a=Fs(e,i.head.line,"smart");break}}}else if(o.electricInput){if(o.electricInput.test(ue(e.doc,i.head.line).text.slice(0,i.head.ch))){a=Fs(e,i.head.line,"smart")}}if(a){En(e,"electricInput",e,i.head.line)}}}function qs(e){var t=[],n=[];for(var r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line;var o={anchor:me(i,0),head:me(i+1,0)};n.push(o);t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Gs(e,t){e.setAttribute("autocorrect","off");e.setAttribute("autocapitalize","off");e.setAttribute("spellcheck",!!t)}function Ys(){var e=A("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none");var t=A("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");if(v){e.style.width="1000px"}else{e.setAttribute("wrap","off")}if(c){e.style.border="1px solid black"}Gs(e);return t}var Vs=function(i){var o=i.optionHandlers;var c=i.helpers={};i.prototype={constructor:i,focus:function(){window.focus();this.display.input.focus()},setOption:function(e,t){var n=this.options,r=n[e];if(n[e]==t&&e!="mode"){return}n[e]=t;if(o.hasOwnProperty(e)){Oi(this,o[e])(this,t,r)}pt(this,"optionChange",this,e)},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ba(e))},removeKeyMap:function(e){var t=this.state.keyMaps;for(var n=0;n<t.length;++n){if(t[n]==e||t[n].name==e){t.splice(n,1);return true}}},addOverlay:Ei(function(e,t){var n=e.token?e:i.getMode(this.options,e);if(n.startState){throw new Error("Overlays may not be stateful.")}J(this.state.overlays,{mode:n,modeSpec:e,opaque:t&&t.opaque,priority:t&&t.priority||0},function(e){return e.priority});this.state.modeGen++;Di(this)}),removeOverlay:Ei(function(e){var t=this;var n=this.state.overlays;for(var r=0;r<n.length;++r){var i=n[r].modeSpec;if(i==e||typeof e=="string"&&i.name==e){n.splice(r,1);t.state.modeGen++;Di(t);return}}}),indentLine:Ei(function(e,t,n){if(typeof t!="string"&&typeof t!="number"){if(t==null){t=this.options.smartIndent?"smart":"prev"}else{t=t?"add":"subtract"}}if(ge(this.doc,e)){Fs(this,e,t,n)}}),indentSelection:Ei(function(e){var t=this;var n=this.doc.sel.ranges,r=-1;for(var i=0;i<n.length;i++){var o=n[i];if(!o.empty()){var a=o.from(),s=o.to();var l=Math.max(r,a.line);r=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var u=l;u<r;++u){Fs(t,u,e)}var c=t.doc.sel.ranges;if(a.ch==0&&n.length==c.length&&c[i].from().ch>0){Io(t.doc,i,new no(a,c[i].to()),U)}}else if(o.head.line>r){Fs(t,o.head.line,e,true);r=o.head.line;if(i==t.doc.sel.primIndex){ni(t)}}}}),getTokenAt:function(e,t){return nn(this,e,t)},getLineTokens:function(e,t){return nn(this,me(e),t,true)},getTokenTypeAt:function(e){e=Se(this.doc,e);var t=Xt(this,ue(this.doc,e.line));var n=0,r=(t.length-1)/2,i=e.ch;var o;if(i==0){o=t[2]}else{for(;;){var a=n+r>>1;if((a?t[a*2-1]:0)>=i){r=a}else if(t[a*2+1]<i){n=a+1}else{o=t[a*2+2];break}}}var s=o?o.indexOf("overlay "):-1;return s<0?o:s==0?null:o.slice(0,s-1)},getModeAt:function(e){var t=this.doc.mode;if(!t.innerMode){return t}return i.innerMode(t,this.getTokenAt(e).state).mode},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=this;var r=[];if(!c.hasOwnProperty(t)){return r}var i=c[t],o=this.getModeAt(e);if(typeof o[t]=="string"){if(i[o[t]]){r.push(i[o[t]])}}else if(o[t]){for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];if(s){r.push(s)}}}else if(o.helperType&&i[o.helperType]){r.push(i[o.helperType])}else if(i[o.name]){r.push(i[o.name])}for(var l=0;l<i._global.length;l++){var u=i._global[l];if(u.pred(o,n)&&H(r,u.val)==-1){r.push(u.val)}}return r},getStateAfter:function(e,t){var n=this.doc;e=ke(n,e==null?n.first+n.size-1:e);return Jt(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();if(e==null){n=r.head}else if(typeof e=="object"){n=Se(this.doc,e)}else{n=e?r.from():r.to()}return yr(this,n,t||"page")},charCoords:function(e,t){return mr(this,Se(this.doc,e),t||"page")},coordsChar:function(e,t){e=vr(this,e,t||"page");return xr(this,e.left,e.top)},lineAtHeight:function(e,t){e=vr(this,{top:e,left:0},t||"page").top;return pe(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r=false,i;if(typeof e=="number"){var o=this.doc.first+this.doc.size-1;if(e<this.doc.first){e=this.doc.first}else if(e>o){e=o;r=true}i=ue(this.doc,e)}else{i=e}return gr(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-nt(i):0)},defaultTextHeight:function(){return Er(this.display)},defaultCharWidth:function(){return Mr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=yr(this,Se(this.doc,e));var a=e.bottom,s=e.left;t.style.position="absolute";t.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(t);o.sizer.appendChild(t);if(r=="over"){a=e.top}else if(r=="above"||r=="near"){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);if((r=="above"||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight){a=e.top-t.offsetHeight}else if(e.bottom+t.offsetHeight<=l){a=e.bottom}if(s+t.offsetWidth>u){s=u-t.offsetWidth}}t.style.top=a+"px";t.style.left=t.style.right="";if(i=="right"){s=o.sizer.clientWidth-t.offsetWidth;t.style.right="0px"}else{if(i=="left"){s=0}else if(i=="middle"){s=(o.sizer.clientWidth-t.offsetWidth)/2}t.style.left=s+"px"}if(n){Zr(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})}},triggerOnKeyDown:Ei(as),triggerOnKeyPress:Ei(us),triggerOnKeyUp:ls,triggerOnMouseDown:Ei(gs),execCommand:function(e){if(Ka.hasOwnProperty(e)){return Ka[e].call(null,this)}},triggerElectric:Ei(function(e){Us(this,e)}),findPosH:function(e,t,n,r){var i=this;var o=1;if(t<0){o=-1;t=-t}var a=Se(this.doc,e);for(var s=0;s<t;++s){a=Ks(i.doc,a,o,n,r);if(a.hitSide){break}}return a},moveH:Ei(function(t,n){var r=this;this.extendSelectionsBy(function(e){if(r.display.shift||r.doc.extend||e.empty()){return Ks(r.doc,e.head,t,n,r.options.rtlMoveVisually)}else{return t<0?e.from():e.to()}},G)}),deleteH:Ei(function(n,r){var e=this.doc.sel,i=this.doc;if(e.somethingSelected()){i.replaceSelection("",null,"+delete")}else{Ua(this,function(e){var t=Ks(i,e.head,n,r,false);return n<0?{from:t,to:e.head}:{from:e.head,to:t}})}}),findPosV:function(e,t,n,r){var i=this;var o=1,a=r;if(t<0){o=-1;t=-t}var s=Se(this.doc,e);for(var l=0;l<t;++l){var u=yr(i,s,"div");if(a==null){a=u.left}else{u.left=a}s=$s(i,u,o,n);if(s.hitSide){break}}return s},moveV:Ei(function(r,i){var o=this;var a=this.doc,s=[];var l=!this.display.shift&&!a.extend&&a.sel.somethingSelected();a.extendSelectionsBy(function(e){if(l){return r<0?e.from():e.to()}var t=yr(o,e.head,"div");if(e.goalColumn!=null){t.left=e.goalColumn}s.push(t.left);var n=$s(o,t,r,i);if(i=="page"&&e==a.sel.primary()){ti(o,mr(o,n,"div").top-t.top)}return n},G);if(s.length){for(var e=0;e<a.sel.ranges.length;e++){a.sel.ranges[e].goalColumn=s[e]}}}),findWordAt:function(e){var t=this.doc,n=ue(t,e.line).text;var r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");if((e.sticky=="before"||i==n.length)&&r){--r}else{++i}var a=n.charAt(r);var s=ne(a,o)?function(e){return ne(e,o)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};while(r>0&&s(n.charAt(r-1))){--r}while(i<n.length&&s(n.charAt(i))){++i}}return new no(me(e.line,r),me(e.line,i))},toggleOverwrite:function(e){if(e!=null&&e==this.state.overwrite){return}if(this.state.overwrite=!this.state.overwrite){P(this.display.cursorDiv,"CodeMirror-overwrite")}else{C(this.display.cursorDiv,"CodeMirror-overwrite")}pt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==L()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ei(function(e,t){ri(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Vn(this)-this.display.barHeight,width:e.scrollWidth-Vn(this)-this.display.barWidth,clientHeight:$n(this),clientWidth:Kn(this)}},scrollIntoView:Ei(function(e,t){if(e==null){e={from:this.doc.sel.primary().head,to:null};if(t==null){t=this.options.cursorScrollMargin}}else if(typeof e=="number"){e={from:me(e,0),to:null}}else if(e.from==null){e={from:e,to:null}}if(!e.to){e.to=e.from}e.margin=t||0;if(e.from.line!=null){ii(this,e)}else{ai(this,e.from,e.to,e.margin)}}),setSize:Ei(function(e,t){var n=this;var r=function(e){return typeof e=="number"||/^\d+$/.test(String(e))?e+"px":e};if(e!=null){this.display.wrapper.style.width=r(e)}if(t!=null){this.display.wrapper.style.height=r(t)}if(this.options.lineWrapping){cr(this)}var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets){for(var t=0;t<e.widgets.length;t++){if(e.widgets[t].noHScroll){Ai(n,i,"widget");break}}}++i});this.curOp.forceUpdate=true;pt(this,"refresh",this)}),operation:function(e){return Ti(this,e)},startOperation:function(){return yi(this)},endOperation:function(){return bi(this)},refresh:Ei(function(){var e=this.display.cachedTextHeight;Di(this);this.curOp.forceUpdate=true;fr(this);ri(this,this.doc.scrollLeft,this.doc.scrollTop);Yi(this);if(e==null||Math.abs(e-Er(this.display))>.5){Pr(this)}pt(this,"refresh",this)}),swapDoc:Ei(function(e){var t=this.doc;t.cm=null;vo(this,e);fr(this);this.display.input.reset();ri(this,e.scrollLeft,e.scrollTop);this.curOp.forceScroll=true;En(this,"swapDoc",this,t);return t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};yt(i);i.registerHelper=function(e,t,n){if(!c.hasOwnProperty(e)){c[e]=i[e]={_global:[]}}c[e][t]=n};i.registerGlobalHelper=function(e,t,n,r){i.registerHelper(e,t,r);c[e]._global.push({pred:n,val:r})}};function Ks(n,r,i,e,o){var t=r;var a=i;var s=ue(n,r.line);function l(){var e=r.line+i;if(e<n.first||e>=n.first+n.size){return false}r=new me(e,r.ch,r.sticky);return s=ue(n,e)}function u(e){var t;if(o){t=Va(n.cm,s,r,i)}else{t=Ga(s,r,i)}if(t==null){if(!e&&l()){r=Ya(o,n.cm,s,r.line,i)}else{return false}}else{r=t}return true}if(e=="char"){u()}else if(e=="column"){u(true)}else if(e=="word"||e=="group"){var c=null,f=e=="group";var h=n.cm&&n.cm.getHelper(r,"wordChars");for(var d=true;;d=false){if(i<0&&!u(!d)){break}var p=s.text.charAt(r.ch)||"\n";var g=ne(p,h)?"w":f&&p=="\n"?"n":!f||/\s/.test(p)?null:"p";if(f&&!d&&!g){g="s"}if(c&&c!=g){if(i<0){i=1;u();r.sticky="after"}break}if(g){c=g}if(i>0&&!u(!d)){break}}}var v=Go(n,r,t,a,true);if(be(t,v)){v.hitSide=true}return v}function $s(e,t,n,r){var i=e.doc,o=t.left,a;if(r=="page"){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);var l=Math.max(s-.5*Er(e.display),3);a=(n>0?t.bottom:t.top)+n*l}else if(r=="line"){a=n>0?t.bottom+3:t.top-3}var u;for(;;){u=xr(e,o,a);if(!u.outside){break}if(n<0?a<=0:a>=i.height){u.hitSide=true;break}a+=n*5}return u}var Xs=function(e){this.cm=e;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new z;this.composing=null;this.gracePeriod=false;this.readDOMTimeout=null};function Js(e,t){var n=er(e,t.line);if(!n||n.hidden){return null}var r=ue(e.doc,t.line);var i=Jn(n,r,t.line);var o=ut(r,e.doc.direction),a="left";if(o){var s=st(o,t.ch);a=s%2?"right":"left"}var l=or(i.map,t.ch,a);l.offset=l.collapse=="right"?l.end:l.start;return l}function Qs(e){for(var t=e;t;t=t.parentNode){if(/CodeMirror-gutter-wrapper/.test(t.className)){return true}}return false}function Zs(e,t){if(t){e.bad=true}return e}function el(s,e,t,l,u){var n="",c=false,f=s.doc.lineSeparator();function h(t){return function(e){return e.id==t}}function d(){if(c){n+=f;c=false}}function p(e){if(e){d();n+=e}}function g(e){if(e.nodeType==1){var t=e.getAttribute("cm-text");if(t!=null){p(t||e.textContent.replace(/\u200b/g,""));return}var n=e.getAttribute("cm-marker"),r;if(n){var i=s.findMarks(me(l,0),me(u+1,0),h(+n));if(i.length&&(r=i[0].find(0))){p(ce(s.doc,r.from,r.to).join(f))}return}if(e.getAttribute("contenteditable")=="false"){return}var o=/^(pre|div|p)$/i.test(e.nodeName);if(o){d()}for(var a=0;a<e.childNodes.length;a++){g(e.childNodes[a])}if(o){c=true}}else if(e.nodeType==3){p(e.nodeValue)}}for(;;){g(e);if(e==t){break}e=e.nextSibling}return n}function tl(e,t,n){var r;if(t==e.display.lineDiv){r=e.display.lineDiv.childNodes[n];if(!r){return Zs(e.clipPos(me(e.display.viewTo-1)),true)}t=null;n=0}else{for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv){return null}if(r.parentNode&&r.parentNode==e.display.lineDiv){break}}}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r){return nl(o,t,n)}}}function nl(u,e,t){var n=u.text.firstChild,r=false;if(!e||!D(n,e)){return Zs(me(de(u.line),0),true)}if(e==n){r=true;e=n.childNodes[t];t=0;if(!e){var i=u.rest?$(u.rest):u.line;return Zs(me(de(i),i.text.length),r)}}var o=e.nodeType==3?e:null,a=e;if(!o&&e.childNodes.length==1&&e.firstChild.nodeType==3){o=e.firstChild;if(t){t=o.nodeValue.length}}while(a.parentNode!=n){a=a.parentNode}var c=u.measure,f=c.maps;function s(e,t,n){for(var r=-1;r<(f?f.length:0);r++){var i=r<0?c.map:f[r];for(var o=0;o<i.length;o+=3){var a=i[o+2];if(a==e||a==t){var s=de(r<0?u.line:u.rest[r]);var l=i[o]+n;if(n<0||a!=e){l=i[o+(n?1:0)]}return me(s,l)}}}}var l=s(o,a,t);if(l){return Zs(l,r)}for(var h=a.nextSibling,d=o?o.nodeValue.length-t:0;h;h=h.nextSibling){l=s(h,h.firstChild,0);if(l){return Zs(me(l.line,l.ch-d),r)}else{d+=h.textContent.length}}for(var p=a.previousSibling,g=t;p;p=p.previousSibling){l=s(p,p.firstChild,-1);if(l){return Zs(me(l.line,l.ch+g),r)}else{g+=p.textContent.length}}}Xs.prototype.init=function(e){var t=this;var a=this,s=a.cm;var l=a.div=e.lineDiv;Gs(l,s.options.spellcheck);ft(l,"paste",function(e){if(gt(s,e)||Bs(e,s)){return}if(_<=11){setTimeout(Oi(s,function(){return t.updateFromDOM()}),20)}});ft(l,"compositionstart",function(e){t.composing={data:e.data,done:false}});ft(l,"compositionupdate",function(e){if(!t.composing){t.composing={data:e.data,done:false}}});ft(l,"compositionend",function(e){if(t.composing){if(e.data!=t.composing.data){t.readFromDOMSoon()}t.composing.done=true}});ft(l,"touchstart",function(){return a.forceCompositionEnd()});ft(l,"input",function(){if(!t.composing){t.readFromDOMSoon()}});function n(e){if(gt(s,e)){return}if(s.somethingSelected()){Hs({lineWise:false,text:s.getSelections()});if(e.type=="cut"){s.replaceSelection("",null,"cut")}}else if(!s.options.lineWiseCopyCut){return}else{var t=qs(s);Hs({lineWise:true,text:t.text});if(e.type=="cut"){s.operation(function(){s.setSelections(t.ranges,0,U);s.replaceSelection("",null,"cut")})}}if(e.clipboardData){e.clipboardData.clearData();var n=zs.text.join("\n");e.clipboardData.setData("Text",n);if(e.clipboardData.getData("Text")==n){e.preventDefault();return}}var r=Ys(),i=r.firstChild;s.display.lineSpace.insertBefore(r,s.display.lineSpace.firstChild);i.value=zs.text.join("\n");var o=document.activeElement;I(i);setTimeout(function(){s.display.lineSpace.removeChild(r);o.focus();if(o==l){a.showPrimarySelection()}},50)}ft(l,"copy",n);ft(l,"cut",n)},Xs.prototype.prepareSelection=function(){var e=Rr(this.cm,false);e.focus=this.cm.state.focused;return e},Xs.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length){return}if(e.focus||t){this.showPrimarySelection()}this.showMultipleSelections(e)},Xs.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm,n=t.doc.sel.primary();var r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom){e.removeAllRanges();return}var o=tl(t,e.anchorNode,e.anchorOffset);var a=tl(t,e.focusNode,e.focusOffset);if(o&&!o.bad&&a&&!a.bad&&ye(_e(o,a),r)==0&&ye(xe(o,a),i)==0){return}var s=t.display.view;var l=r.line>=t.display.viewFrom&&Js(t,r)||{node:s[0].measure.map[2],offset:0};var u=i.line<t.display.viewTo&&Js(t,i);if(!u){var c=s[s.length-1].measure;var f=c.maps?c.maps[c.maps.length-1]:c.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(!l||!u){e.removeAllRanges();return}var h=e.rangeCount&&e.getRangeAt(0),d;try{d=T(l.node,l.offset,u.offset,u.node)}catch(e){}if(d){if(!g&&t.state.focused){e.collapse(l.node,l.offset);if(!d.collapsed){e.removeAllRanges();e.addRange(d)}}else{e.removeAllRanges();e.addRange(d)}if(h&&e.anchorNode==null){e.addRange(h)}else if(g){this.startGracePeriod()}}this.rememberSelection()},Xs.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod);this.gracePeriod=setTimeout(function(){e.gracePeriod=false;if(e.selectionChanged()){e.cm.operation(function(){return e.cm.curOp.selectionChanged=true})}},20)},Xs.prototype.showMultipleSelections=function(e){E(this.cm.display.cursorDiv,e.cursors);E(this.cm.display.selectionDiv,e.selection)},Xs.prototype.rememberSelection=function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode;this.lastAnchorOffset=e.anchorOffset;this.lastFocusNode=e.focusNode;this.lastFocusOffset=e.focusOffset},Xs.prototype.selectionInEditor=function(){var e=window.getSelection();if(!e.rangeCount){return false}var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},Xs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"){if(!this.selectionInEditor()){this.showSelection(this.prepareSelection(),true)}this.div.focus()}},Xs.prototype.blur=function(){this.div.blur()},Xs.prototype.getField=function(){return this.div},Xs.prototype.supportsTouch=function(){return true},Xs.prototype.receivedFocus=function(){var e=this;if(this.selectionInEditor()){this.pollSelection()}else{Ti(this.cm,function(){return e.cm.curOp.selectionChanged=true})}function t(){if(e.cm.state.focused){e.pollSelection();e.polling.set(e.cm.options.pollInterval,t)}}this.polling.set(this.cm.options.pollInterval,t)},Xs.prototype.selectionChanged=function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Xs.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged()){return}var e=window.getSelection(),t=this.cm;if(f&&a&&this.cm.options.gutters.length&&Qs(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs});this.blur();this.focus();return}if(this.composing){return}this.rememberSelection();var n=tl(t,e.anchorNode,e.anchorOffset);var r=tl(t,e.focusNode,e.focusOffset);if(n&&r){Ti(t,function(){zo(t.doc,io(n,r),U);if(n.bad||r.bad){t.curOp.selectionChanged=true}})}},Xs.prototype.pollContent=function(){if(this.readDOMTimeout!=null){clearTimeout(this.readDOMTimeout);this.readDOMTimeout=null}var e=this.cm,t=e.display,n=e.doc.sel.primary();var r=n.from(),i=n.to();if(r.ch==0&&r.line>e.firstLine()){r=me(r.line-1,ue(e.doc,r.line-1).length)}if(i.ch==ue(e.doc,i.line).text.length&&i.line<e.lastLine()){i=me(i.line+1,0)}if(r.line<t.viewFrom||i.line>t.viewTo-1){return false}var o,a,s;if(r.line==t.viewFrom||(o=Ir(e,r.line))==0){a=de(t.view[0].line);s=t.view[0].node}else{a=de(t.view[o].line);s=t.view[o-1].node.nextSibling}var l=Ir(e,i.line);var u,c;if(l==t.view.length-1){u=t.viewTo-1;c=t.lineDiv.lastChild}else{u=de(t.view[l+1].line)-1;c=t.view[l+1].node.previousSibling}if(!s){return false}var f=e.doc.splitLines(el(e,s,c,a,u));var h=ce(e.doc,me(a,0),me(u,ue(e.doc,u).text.length));while(f.length>1&&h.length>1){if($(f)==$(h)){f.pop();h.pop();u--}else if(f[0]==h[0]){f.shift();h.shift();a++}else{break}}var d=0,p=0;var g=f[0],v=h[0],m=Math.min(g.length,v.length);while(d<m&&g.charCodeAt(d)==v.charCodeAt(d)){++d}var y=$(f),b=$(h);var w=Math.min(y.length-(f.length==1?d:0),b.length-(h.length==1?d:0));while(p<w&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1)){++p}if(f.length==1&&h.length==1&&a==r.line){while(d&&d>r.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1)){d--;p++}}f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,"");f[0]=f[0].slice(d).replace(/\u200b+$/,"");var x=me(a,d);var _=me(u,h.length?$(h).length-p:0);if(f.length>1||f[0]||ye(x,_)){ta(e.doc,f,x,_,"+input");return true}},Xs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Xs.prototype.reset=function(){this.forceCompositionEnd()},Xs.prototype.forceCompositionEnd=function(){if(!this.composing){return}clearTimeout(this.readDOMTimeout);this.composing=null;this.updateFromDOM();this.div.blur();this.div.focus()},Xs.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null){return}this.readDOMTimeout=setTimeout(function(){e.readDOMTimeout=null;if(e.composing){if(e.composing.done){e.composing=null}else{return}}e.updateFromDOM()},80)},Xs.prototype.updateFromDOM=function(){var e=this;if(this.cm.isReadOnly()||!this.pollContent()){Ti(this.cm,function(){return Di(e.cm)})}},Xs.prototype.setUneditable=function(e){e.contentEditable="false"},Xs.prototype.onKeyPress=function(e){if(e.charCode==0){return}e.preventDefault();if(!this.cm.isReadOnly()){Oi(this.cm,Ws)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)}},Xs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Xs.prototype.onContextMenu=function(){},Xs.prototype.resetPosition=function(){},Xs.prototype.needsContentAttribute=true;var rl=function(e){this.cm=e;this.prevInput="";this.pollingFast=false;this.polling=new z;this.hasSelection=false;this.composing=null};function il(t,e){if((e=e?R(e):{}).value=t.value,!e.tabindex&&t.tabIndex)e.tabindex=t.tabIndex;if(!e.placeholder&&t.placeholder)e.placeholder=t.placeholder;if(null==e.autofocus)r=L(),e.autofocus=r==t||null!=t.getAttribute("autofocus")&&r==document.body;function n(){t.value=s.getValue()}var i;if(t.form)if(ft(t.form,"submit",n),!e.leaveSubmitMethodAlone){o=t.form,i=o.submit;try{a=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}e.finishInit=function(e){e.save=n,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,n(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(dt(t.form,"submit",n),"function"==typeof t.form.submit&&(t.form.submit=i))}},t.style.display="none";var s=Is(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},e);return s}function ol(e){e.off=dt,e.on=ft,e.wheelEventPixels=Zi,e.Doc=wa,e.splitLines=Dt,e.countColumn=F,e.findColumn=Y,e.isWordChar=te,e.Pass=B,e.signal=pt,e.Line=ln,e.changeEnd=oo,e.scrollbarModel=gi,e.Pos=me,e.cmpPos=ye,e.modes=It,e.mimeModes=jt,e.resolveMode=zt,e.getMode=Ht,e.modeExtensions=Wt,e.extendMode=Bt,e.copyState=Ut,e.startState=Gt,e.innerMode=qt,e.commands=Ka,e.keyMap=Ia,e.keyName=Wa,e.isModifierKey=za,e.lookupKey=Fa,e.normalizeKeyMap=Ra,e.StringStream=Yt,e.SharedTextMarker=pa,e.TextMarker=ha,e.LineWidget=la,e.e_preventDefault=bt,e.e_stopPropagation=wt,e.e_stop=_t,e.addClass=P,e.contains=D,e.rmClass=C,e.keyNames=Aa}rl.prototype.init=function(t){var e=this;var n=this,r=this.cm;var i=this.wrapper=Ys();var o=this.textarea=i.firstChild;t.wrapper.insertBefore(i,t.wrapper.firstChild);if(c){o.style.width="0px"}ft(o,"input",function(){if(x&&_>=9&&e.hasSelection){e.hasSelection=null}n.poll()});ft(o,"paste",function(e){if(gt(r,e)||Bs(e,r)){return}r.state.pasteIncoming=true;n.fastPoll()});function a(e){if(gt(r,e)){return}if(r.somethingSelected()){Hs({lineWise:false,text:r.getSelections()})}else if(!r.options.lineWiseCopyCut){return}else{var t=qs(r);Hs({lineWise:true,text:t.text});if(e.type=="cut"){r.setSelections(t.ranges,null,U)}else{n.prevInput="";o.value=t.text.join("\n");I(o)}}if(e.type=="cut"){r.state.cutIncoming=true}}ft(o,"cut",a);ft(o,"copy",a);ft(t.scroller,"paste",function(e){if(Un(t,e)||gt(r,e)){return}r.state.pasteIncoming=true;n.focus()});ft(t.lineSpace,"selectstart",function(e){if(!Un(t,e)){bt(e)}});ft(o,"compositionstart",function(){var e=r.getCursor("from");if(n.composing){n.composing.range.clear()}n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}});ft(o,"compositionend",function(){if(n.composing){n.poll();n.composing.range.clear();n.composing=null}})},rl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc;var r=Rr(e);if(e.options.moveInputWithCursor){var i=yr(e,n.sel.primary().head,"div");var o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top));r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},rl.prototype.showSelection=function(e){var t=this.cm,n=t.display;E(n.cursorDiv,e.cursors);E(n.selectionDiv,e.selection);if(e.teTop!=null){this.wrapper.style.top=e.teTop+"px";this.wrapper.style.left=e.teLeft+"px"}},rl.prototype.reset=function(e){if(this.contextMenuPending||this.composing){return}var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n;if(t.state.focused){I(this.textarea)}if(x&&_>=9){this.hasSelection=n}}else if(!e){this.prevInput=this.textarea.value="";if(x&&_>=9){this.hasSelection=null}}},rl.prototype.getField=function(){return this.textarea},rl.prototype.supportsTouch=function(){return false},rl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||L()!=this.textarea)){try{this.textarea.focus()}catch(e){}}},rl.prototype.blur=function(){this.textarea.blur()},rl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},rl.prototype.receivedFocus=function(){this.slowPoll()},rl.prototype.slowPoll=function(){var e=this;if(this.pollingFast){return}this.polling.set(this.cm.options.pollInterval,function(){e.poll();if(e.cm.state.focused){e.slowPoll()}})},rl.prototype.fastPoll=function(){var t=false,n=this;n.pollingFast=true;function r(){var e=n.poll();if(!e&&!t){t=true;n.polling.set(60,r)}else{n.pollingFast=false;n.slowPoll()}}n.polling.set(20,r)},rl.prototype.poll=function(){var e=this;var t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||At(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq){return false}var i=n.value;if(i==r&&!t.somethingSelected()){return false}if(x&&_>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i)){t.display.input.reset();return false}if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r){r=""}if(o==8666){this.reset();return this.cm.execCommand("undo")}}var a=0,s=Math.min(r.length,i.length);while(a<s&&r.charCodeAt(a)==i.charCodeAt(a)){++a}Ti(t,function(){Ws(t,i.slice(a),r.length-a,null,e.composing?"*compose":null);if(i.length>1e3||i.indexOf("\n")>-1){n.value=e.prevInput=""}else{e.prevInput=i}if(e.composing){e.composing.range.clear();e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"})}});return true},rl.prototype.ensurePolled=function(){if(this.pollingFast&&this.poll()){this.pollingFast=false}},rl.prototype.onKeyPress=function(){if(x&&_>=9){this.hasSelection=null}this.fastPoll()},rl.prototype.onContextMenu=function(e){var n=this,r=n.cm,i=r.display,o=n.textarea;var t=Nr(r,e),a=i.scroller.scrollTop;if(!t||m){return}var s=r.options.resetSelectionOnContextMenu;if(s&&r.doc.sel.contains(t)==-1){Oi(r,zo)(r.doc,io(t),U)}var l=o.style.cssText,u=n.wrapper.style.cssText;n.wrapper.style.cssText="position: absolute";var c=n.wrapper.getBoundingClientRect();o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-c.top-5)+"px; left: "+(e.clientX-c.left-5)+"px;\n z-index: 1000; background: "+(x?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var f;if(v){f=window.scrollY}i.input.focus();if(v){window.scrollTo(null,f)}i.input.reset();if(!r.somethingSelected()){o.value=n.prevInput=" "}n.contextMenuPending=true;i.selForContextMenu=r.doc.sel;clearTimeout(i.detectingSelectAll);function h(){if(o.selectionStart!=null){var e=r.somethingSelected();var t=""+(e?o.value:"");o.value="⇚";o.value=t;n.prevInput=e?"":"";o.selectionStart=1;o.selectionEnd=t.length;i.selForContextMenu=r.doc.sel}}function d(){n.contextMenuPending=false;n.wrapper.style.cssText=u;o.style.cssText=l;if(x&&_<9){i.scrollbars.setScrollTop(i.scroller.scrollTop=a)}if(o.selectionStart!=null){if(!x||x&&_<9){h()}var e=0,t=function(){if(i.selForContextMenu==r.doc.sel&&o.selectionStart==0&&o.selectionEnd>0&&n.prevInput==""){Oi(r,Vo)(r)}else if(e++<10){i.detectingSelectAll=setTimeout(t,500)}else{i.selForContextMenu=null;i.input.reset()}};i.detectingSelectAll=setTimeout(t,200)}}if(x&&_>=9){h()}if(k){_t(e);var p=function(){dt(window,"mouseup",p);setTimeout(d,20)};ft(window,"mouseup",p)}else{setTimeout(d,50)}},rl.prototype.readOnlyChanged=function(e){if(!e){this.reset()}this.textarea.disabled=e=="nocursor"},rl.prototype.setUneditable=function(){},rl.prototype.needsContentAttribute=false,As(Is),Vs(Is);var al="iter insert remove copy getEditor constructor".split(" ");for(var sl in wa.prototype){if(wa.prototype.hasOwnProperty(sl)&&H(al,sl)<0){Is.prototype[sl]=function(e){return function(){return e.apply(this.doc,arguments)}}(wa.prototype[sl])}}return yt(wa),Is.inputStyles={textarea:rl,contenteditable:Xs},Is.defineMode=function(e){Is.defaults.mode||"null"==e||(Is.defaults.mode=e),function(e,t){2<arguments.length&&(t.dependencies=Array.prototype.slice.call(arguments,2));It[e]=t}.apply(this,arguments)},Is.defineMIME=function(e,t){jt[e]=t},Is.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Is.defineMIME("text/plain","null"),Is.defineExtension=function(e,t){Is.prototype[e]=t},Is.defineDocExtension=function(e,t){wa.prototype[e]=t},Is.fromTextArea=function(t,e){function n(){t.value=s.getValue()}var r,i,o,a,s;(e=e?R(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex);!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder);null==e.autofocus&&(r=L(),e.autofocus=r==t||null!=t.getAttribute("autofocus")&&r==document.body);if(t.form&&(ft(t.form,"submit",n),!e.leaveSubmitMethodAlone)){o=t.form,i=o.submit;try{a=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}e.finishInit=function(e){e.save=n,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,n(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(dt(t.form,"submit",n),"function"==typeof t.form.submit&&(t.form.submit=i))}},t.style.display="none";s=Is(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},e);return s},function(e){e.off=dt,e.on=ft,e.wheelEventPixels=Zi,e.Doc=wa,e.splitLines=Dt,e.countColumn=F,e.findColumn=Y,e.isWordChar=te,e.Pass=B,e.signal=pt,e.Line=ln,e.changeEnd=oo,e.scrollbarModel=gi,e.Pos=me,e.cmpPos=ye,e.modes=It,e.mimeModes=jt,e.resolveMode=zt,e.getMode=Ht,e.modeExtensions=Wt,e.extendMode=Bt,e.copyState=Ut,e.startState=Gt,e.innerMode=qt,e.commands=Ka,e.keyMap=Ia,e.keyName=Wa,e.isModifierKey=za,e.lookupKey=Fa,e.normalizeKeyMap=Ra,e.StringStream=Yt,e.SharedTextMarker=pa,e.TextMarker=ha,e.LineWidget=la,e.e_preventDefault=bt,e.e_stopPropagation=wt,e.e_stop=_t,e.addClass=P,e.contains=D,e.rmClass=C,e.keyNames=Aa}(Is),Is.version="5.34.0",Is}()},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.text=n.text||t,this.options=n}},function(e,t,n){var r=n(149),i=n(90),o=n(56),a=n(72),s=n(49),l=n(260),u=Object.getOwnPropertyDescriptor;t.f=n(36)?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(49),i=n(45),o=n(207)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},,function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(21);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},,,,function(e,t,n){var i=n(24);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(9),o=n(79),a=n(21);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],r={};r[e]=t(n),i(i.S+i.F*a(function(){n(1)}),"Object",r)}},function(e,t,n){var b=n(80),w=n(148),x=n(45),_=n(40),r=n(496);e.exports=function(f,e){var h=1==f,d=2==f,p=3==f,g=4==f,v=6==f,m=5==f||v,y=e||r;return function(e,t,n){for(var r,i,o=x(e),a=w(o),s=b(t,n,3),l=_(a.length),u=0,c=h?y(e,l):d?y(e,0):void 0;u<l;u++)if((m||u in a)&&(i=s(r=a[u],u,o),f))if(h)c[u]=i;else if(i)switch(f){case 3:return!0;case 5:return r;case 6:return u;case 2:c.push(r)}else if(g)return!1;return v?-1:p||g?g:c}}},,,,,function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var o=n(55);e.exports=function(r,i,e){if(o(r),void 0===i)return r;switch(e){case 1:return function(e){return r.call(i,e)};case 2:return function(e,t){return r.call(i,e,t)};case 3:return function(e,t,n){return r.call(i,e,t,n)}}return function(){return r.apply(i,arguments)}}},function(e,t,n){"use strict";var w,x,_,k,S,r,p,C,i,T,o,a,O,s,l,u,c,E,M,g,v,D,A,L,m,f,h,d,y,b,P,N,I,j,R,F,z,H,W,B,U,q,G,Y,V,K,$,X,J,Q,Z,ee,te,ne,re,ie,oe,ae,se,le,ue,ce,fe,he,de,pe,ge,ve,me,ye,be,we,xe,_e,ke,Se,Ce,Te,Oe,Ee,Me,De,Ae,Le,Pe,Ne,Ie,je,Re,Fe,ze,He,We,Be,Ue,qe,Ge,Ye,Ve;n(36)?(w=n(104),x=n(20),_=n(21),k=n(9),S=n(188),r=n(230),p=n(80),C=n(110),i=n(90),T=n(53),o=n(111),a=n(92),O=n(40),s=n(106),l=n(72),u=n(49),c=n(266),E=n(150),M=n(24),g=n(45),v=n(222),D=n(107),A=n(64),L=n(108).f,m=n(224),f=n(103),h=n(28),d=n(74),y=n(180),b=n(227),P=n(226),N=n(133),I=n(184),j=n(109),R=n(225),F=n(275),z=n(37),H=n(63),W=z.f,B=H.f,U=x.RangeError,q=x.TypeError,G=x.Uint8Array,V="Shared"+(Y="ArrayBuffer"),K="BYTES_PER_ELEMENT",$="prototype",X=Array[$],J=r.ArrayBuffer,Q=r.DataView,Z=d(0),ee=d(2),te=d(3),ne=d(4),re=d(5),ie=d(6),oe=y(!0),ae=y(!1),se=P.values,le=P.keys,ue=P.entries,ce=X.lastIndexOf,fe=X.reduce,he=X.reduceRight,de=X.join,pe=X.sort,ge=X.slice,ve=X.toString,me=X.toLocaleString,ye=h("iterator"),be=h("toStringTag"),we=f("typed_constructor"),xe=f("def_constructor"),_e=S.CONSTR,ke=S.TYPED,Se=S.VIEW,Ce="Wrong length!",Te=d(1,function(e,t){return Le(b(e,e[xe]),t)}),Oe=_(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),Ee=!!G&&!!G[$].set&&_(function(){new G(1).set({})}),Me=function(e,t){if(void 0===e)throw q(Ce);var n=+e,r=O(e);if(t&&!c(n,r))throw U(Ce);return r},De=function(e,t){var n=a(e);if(n<0||n%t)throw U("Wrong offset!");return n},Ae=function(e){if(M(e)&&ke in e)return e;throw q(e+" is not a typed array!")},Le=function(e,t){if(!(M(e)&&we in e))throw q("It is not a typed array constructor!");return new e(t)},Pe=function(e,t){return Ne(b(e,e[xe]),t)},Ne=function(e,t){for(var n=0,r=t.length,i=Le(e,r);n<r;)i[n]=t[n++];return i},Ie=function(e,t,n){W(e,t,{get:function(){return this._d[n]}})},je=function(e,t,n){var r,i,o,a,s,l,u=g(e),c=arguments.length,f=1<c?t:void 0,h=void 0!==f,d=m(u);if(null!=d&&!v(d)){for(l=d.call(u),o=[],r=0;!(s=l.next()).done;r++)o.push(s.value);u=o}for(h&&2<c&&(f=p(f,n,2)),r=0,i=O(u.length),a=Le(this,i);r<i;r++)a[r]=h?f(u[r],r):u[r];return a},Re=function(){for(var e=0,t=arguments.length,n=Le(this,t);e<t;)n[e]=arguments[e++];return n},Fe=!!G&&_(function(){me.call(new G(1))}),ze=function(){return me.apply(Fe?ge.call(Ae(this)):Ae(this),arguments)},He={copyWithin:function(e,t,n){return F.call(Ae(this),e,t,2<arguments.length?n:void 0)},every:function(e,t){return ne(Ae(this),e,1<arguments.length?t:void 0)},fill:function(e){return R.apply(Ae(this),arguments)},filter:function(e,t){return Pe(this,ee(Ae(this),e,1<arguments.length?t:void 0))},find:function(e,t){return re(Ae(this),e,1<arguments.length?t:void 0)},findIndex:function(e,t){return ie(Ae(this),e,1<arguments.length?t:void 0)},forEach:function(e,t){Z(Ae(this),e,1<arguments.length?t:void 0)},indexOf:function(e,t){return ae(Ae(this),e,1<arguments.length?t:void 0)},includes:function(e,t){return oe(Ae(this),e,1<arguments.length?t:void 0)},join:function(e){return de.apply(Ae(this),arguments)},lastIndexOf:function(e){return ce.apply(Ae(this),arguments)},map:function(e,t){return Te(Ae(this),e,1<arguments.length?t:void 0)},reduce:function(e){return fe.apply(Ae(this),arguments)},reduceRight:function(e){return he.apply(Ae(this),arguments)},reverse:function(){for(var e,t=Ae(this).length,n=Math.floor(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this},some:function(e,t){return te(Ae(this),e,1<arguments.length?t:void 0)},sort:function(e){return pe.call(Ae(this),e)},subarray:function(e,t){var n=Ae(this),r=n.length,i=s(e,r);return new(b(n,n[xe]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,O((void 0===t?r:s(t,r))-i))}},We=function(e,t){return Pe(this,ge.call(Ae(this),e,t))},Be=function(e,t){Ae(this);var n=De(t,1),r=this.length,i=g(e),o=O(i.length),a=0;if(r<o+n)throw U(Ce);for(;a<o;)this[n+a]=i[a++]},Ue={entries:function(){return ue.call(Ae(this))},keys:function(){return le.call(Ae(this))},values:function(){return se.call(Ae(this))}},qe=function(e,t){return M(e)&&e[ke]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ge=function(e,t){return qe(e,t=l(t,!0))?i(2,e[t]):B(e,t)},Ye=function(e,t,n){return!(qe(e,t=l(t,!0))&&M(n)&&u(n,"value"))||u(n,"get")||u(n,"set")||n.configurable||u(n,"writable")&&!n.writable||u(n,"enumerable")&&!n.enumerable?W(e,t,n):(e[t]=n.value,e)},_e||(H.f=Ge,z.f=Ye),k(k.S+k.F*!_e,"Object",{getOwnPropertyDescriptor:Ge,defineProperty:Ye}),_(function(){ve.call({})})&&(ve=me=function(){return de.call(this)}),Ve=o({},He),o(Ve,Ue),T(Ve,ye,Ue.values),o(Ve,{slice:We,set:Be,constructor:function(){},toString:ve,toLocaleString:ze}),Ie(Ve,"buffer","b"),Ie(Ve,"byteOffset","o"),Ie(Ve,"byteLength","l"),Ie(Ve,"length","e"),W(Ve,be,{get:function(){return this[ke]}}),e.exports=function(e,f,t,i){var h,o,r,a,d,s,n,l,u,c,p,g,v,m,y,b;o="Uint8Array"!=(h=e+((i=!!i)?"Clamped":"")+"Array"),r="get"+e,a="set"+e,d=x[h],s=d||{},n=d&&A(d),l=!d||!S.ABV,u={},c=d&&d[$],p=function(e,t){var n=e._d;return n.v[r](t*f+n.o,Oe)},g=function(e,t,n){var r=e._d;i&&(n=(n=Math.round(n))<0?0:255<n?255:255&n),r.v[a](t*f+r.o,n,Oe)},v=function(e,t){W(e,t,{get:function(){return p(this,t)},set:function(e){return g(this,t,e)},enumerable:!0})},l?(d=t(function(e,t,n,r){var i,o,a,s,l,u,c;if(C(e,d,h,"_d"),o=i=0,M(t)){if(!(t instanceof J||(u=E(t))==Y||u==V))return ke in t?Ne(d,t):je.call(d,t);if(a=t,o=De(n,f),c=t.byteLength,void 0===r){if(c%f)throw U(Ce);if((s=c-o)<0)throw U(Ce)}else if(c<(s=O(r)*f)+o)throw U(Ce);l=s/f}else l=Me(t,!0),a=new J(s=l*f);for(T(e,"_d",{b:a,o:o,l:s,e:l,v:new Q(a)});i<l;)v(e,i++)}),c=d[$]=D(Ve),T(c,"constructor",d)):I(function(e){new d(null),new d(e)},!0)||(d=t(function(e,t,n,r){var i;return C(e,d,h),M(t)?t instanceof J||(i=E(t))==Y||i==V?void 0!==r?new s(t,De(n,f),r):void 0!==n?new s(t,De(n,f)):new s(t):ke in t?Ne(d,t):je.call(d,t):new s(Me(t,o))}),Z(n!==Function.prototype?L(s).concat(L(n)):L(s),function(e){e in d||T(d,e,s[e])}),d[$]=c,w||(c.constructor=d)),y=!!(m=c[ye])&&("values"==m.name||null==m.name),b=Ue.values,T(d,we,!0),T(c,ke,h),T(c,Se,!0),T(c,xe,d),(i?new d(1)[be]==h:be in c)||W(c,be,{get:function(){return h}}),u[h]=d,k(k.G+k.W+k.F*(d!=s),u),k(k.S,h,{BYTES_PER_ELEMENT:f,from:je,of:Re}),K in c||T(c,K,f),k(k.P,h,He),j(h),k(k.P+k.F*Ee,h,{set:Be}),k(k.P+k.F*!y,h,Ue),k(k.P+k.F*(c.toString!=ve),h,{toString:ve}),k(k.P+k.F*_(function(){new d(1).slice()}),h,{slice:We}),k(k.P+k.F*(_(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!_(function(){c.toLocaleString.call([1,2])})),h,{toLocaleString:ze}),N[h]=y?m:b,w||y||T(c,ye,b)}):e.exports=function(){}},function(e,t,n){var o=n(278),r=n(9),i=n(179)("metadata"),a=i.store||(i.store=new(n(281))),s=function(e,t,n){var r,i=a.get(e);if(!i){if(!n)return;a.set(e,i=new o)}if(!(r=i.get(t))){if(!n)return;i.set(t,r=new o)}return r},l=function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},u=function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},c=function(e,t,n,r){s(n,r,!0).set(e,t)},f=function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},h=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},d=function(e){r(r.S,"Reflect",e)};e.exports={store:a,map:s,has:l,get:u,set:c,keys:f,key:h,exp:d}},,,,,,,,function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(103)("meta"),i=n(24),o=n(49),a=n(37).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(21)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},h=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},d=function(e){return u&&p.NEED&&l(e)&&!o(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:h,onFreeze:d}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},,,,,,,,,,function(e,t,n){(function(r){var f;e.exports=function(){var e,t,n;return function o(a,s,l){function u(n,e){if(!s[n]){if(!a[n]){var t=typeof f=="function"&&f;if(!e&&t)return f(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[n]={exports:{}};a[n][0].call(i.exports,function(e){var t=a[n][1][e];return u(t?t:e)},i,i.exports,o,a,s,l)}return s[n].exports}var c=typeof f=="function"&&f;for(var e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,f,t){(function(t){"use strict";var e=t.MutationObserver||t.WebKitMutationObserver;var n;{if(e){var r=0;var i=new e(u);var o=t.document.createTextNode("");i.observe(o,{characterData:true});n=function(){o.data=r=++r%2}}else if(!t.setImmediate&&typeof t.MessageChannel!=="undefined"){var a=new t.MessageChannel;a.port1.onmessage=u;n=function(){a.port2.postMessage(0)}}else if("document"in t&&"onreadystatechange"in t.document.createElement("script")){n=function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u();e.onreadystatechange=null;e.parentNode.removeChild(e);e=null};t.document.documentElement.appendChild(e)}}else{n=function(){setTimeout(u,0)}}}var s;var l=[];function u(){s=true;var e,t;var n=l.length;while(n){t=l;l=[];e=-1;while(++e<n){t[e]()}n=l.length}s=false}f.exports=c;function c(e){if(l.push(e)===1&&!s){n()}}}).call(this,typeof r!=="undefined"?r:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],2:[function(e,t,n){"use strict";var i=e(1);function u(){}var c={};var o=["REJECTED"];var a=["FULFILLED"];var s=["PENDING"];t.exports=r;function r(e){if(typeof e!=="function"){throw new TypeError("resolver must be a function")}this.state=s;this.queue=[];this.outcome=void 0;if(e!==u){d(this,e)}}r.prototype["catch"]=function(e){return this.then(null,e)};r.prototype.then=function(e,t){if(typeof e!=="function"&&this.state===a||typeof t!=="function"&&this.state===o){return this}var n=new this.constructor(u);if(this.state!==s){var r=this.state===a?e:t;f(n,r,this.outcome)}else{this.queue.push(new l(n,e,t))}return n};function l(e,t,n){this.promise=e;if(typeof t==="function"){this.onFulfilled=t;this.callFulfilled=this.otherCallFulfilled}if(typeof n==="function"){this.onRejected=n;this.callRejected=this.otherCallRejected}}l.prototype.callFulfilled=function(e){c.resolve(this.promise,e)};l.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)};l.prototype.callRejected=function(e){c.reject(this.promise,e)};l.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)};function f(t,n,r){i(function(){var e;try{e=n(r)}catch(e){return c.reject(t,e)}if(e===t){c.reject(t,new TypeError("Cannot resolve promise with itself"))}else{c.resolve(t,e)}})}c.resolve=function(e,t){var n=p(h,t);if(n.status==="error"){return c.reject(e,n.value)}var r=n.value;if(r){d(e,r)}else{e.state=a;e.outcome=t;var i=-1;var o=e.queue.length;while(++i<o){e.queue[i].callFulfilled(t)}}return e};c.reject=function(e,t){e.state=o;e.outcome=t;var n=-1;var r=e.queue.length;while(++n<r){e.queue[n].callRejected(t)}return e};function h(t){var n=t&&t.then;if(t&&(typeof t==="object"||typeof t==="function")&&typeof n==="function"){return function e(){n.apply(t,arguments)}}}function d(t,e){var n=false;function r(e){if(n){return}n=true;c.reject(t,e)}function i(e){if(n){return}n=true;c.resolve(t,e)}function o(){e(i,r)}var a=p(o);if(a.status==="error"){r(a.value)}}function p(e,t){var n={};try{n.value=e(t);n.status="success"}catch(e){n.status="error";n.value=e}return n}r.resolve=g;function g(e){if(e instanceof this){return e}return c.resolve(new this(u),e)}r.reject=v;function v(e){var t=new this(u);return c.reject(t,e)}r.all=m;function m(e){var r=this;if(Object.prototype.toString.call(e)!=="[object Array]"){return this.reject(new TypeError("must be an array"))}var i=e.length;var o=false;if(!i){return this.resolve([])}var a=new Array(i);var s=0;var t=-1;var l=new this(u);while(++t<i){n(e[t],t)}return l;function n(e,t){r.resolve(e).then(n,function(e){if(!o){o=true;c.reject(l,e)}});function n(e){a[t]=e;if(++s===i&&!o){o=true;c.resolve(l,a)}}}}r.race=y;function y(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]"){return this.reject(new TypeError("must be an array"))}var n=e.length;var r=false;if(!n){return this.resolve([])}var i=-1;var o=new this(u);while(++i<n){a(e[i])}return o;function a(e){t.resolve(e).then(function(e){if(!r){r=true;c.resolve(o,e)}},function(e){if(!r){r=true;c.reject(o,e)}})}}},{1:1}],3:[function(t,e,n){(function(e){"use strict";if(typeof e.Promise!=="function"){e.Promise=t(2)}}).call(this,typeof r!=="undefined"?r:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function i(){try{if(typeof indexedDB!=="undefined"){return indexedDB}if(typeof webkitIndexedDB!=="undefined"){return webkitIndexedDB}if(typeof mozIndexedDB!=="undefined"){return mozIndexedDB}if(typeof OIndexedDB!=="undefined"){return OIndexedDB}if(typeof msIndexedDB!=="undefined"){return msIndexedDB}}catch(e){return}}var l=i();function a(){try{if(!l){return false}var e=typeof openDatabase!=="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform);var t=typeof fetch==="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||t)&&typeof indexedDB!=="undefined"&&typeof IDBKeyRange!=="undefined"}catch(e){return false}}function s(t,n){t=t||[];n=n||{};try{return new Blob(t,n)}catch(e){if(e.name!=="TypeError"){throw e}var r=typeof BlobBuilder!=="undefined"?BlobBuilder:typeof MSBlobBuilder!=="undefined"?MSBlobBuilder:typeof MozBlobBuilder!=="undefined"?MozBlobBuilder:WebKitBlobBuilder;var i=new r;for(var o=0;o<t.length;o+=1){i.append(t[o])}return i.getBlob(n.type)}}if(typeof Promise==="undefined"){e(3)}var h=Promise;function d(e,t){if(t){e.then(function(e){t(null,e)},function(e){t(e)})}}function c(e,t,n){if(typeof t==="function"){e.then(t)}if(typeof n==="function"){e["catch"](n)}}function f(e){if(typeof e!=="string"){console.warn(e+" used as a key, but it is not a string.");e=String(e)}return e}function u(){if(arguments.length&&typeof arguments[arguments.length-1]==="function"){return arguments[arguments.length-1]}}var p="local-forage-detect-blob-support";var g=void 0;var v={};var m=Object.prototype.toString;var y="readonly";var b="readwrite";function w(e){var t=e.length;var n=new ArrayBuffer(t);var r=new Uint8Array(n);for(var i=0;i<t;i++){r[i]=e.charCodeAt(i)}return n}function x(r){return new h(function(n){var e=r.transaction(p,b);var t=s([""]);e.objectStore(p).put(t,"key");e.onabort=function(e){e.preventDefault();e.stopPropagation();n(false)};e.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/);var t=navigator.userAgent.match(/Edge\//);n(t||!e||parseInt(e[1],10)>=43)}})["catch"](function(){return false})}function _(e){if(typeof g==="boolean"){return h.resolve(g)}return x(e).then(function(e){g=e;return g})}function k(e){var t=v[e.name];var n={};n.promise=new h(function(e,t){n.resolve=e;n.reject=t});t.deferredOperations.push(n);if(!t.dbReady){t.dbReady=n.promise}else{t.dbReady=t.dbReady.then(function(){return n.promise})}}function S(e){var t=v[e.name];var n=t.deferredOperations.pop();if(n){n.resolve();return n.promise}}function C(e,t){var n=v[e.name];var r=n.deferredOperations.pop();if(r){r.reject(t);return r.promise}}function T(i,o){return new h(function(e,t){v[i.name]=v[i.name]||j();if(i.db){if(o){k(i);i.db.close()}else{return e(i.db)}}var n=[i.name];if(o){n.push(i.version)}var r=l.open.apply(l,n);if(o){r.onupgradeneeded=function(t){var e=r.result;try{e.createObjectStore(i.storeName);if(t.oldVersion<=1){e.createObjectStore(p)}}catch(e){if(e.name==="ConstraintError"){console.warn('The database "'+i.name+'"'+" has been upgraded from version "+t.oldVersion+" to version "+t.newVersion+', but the storage "'+i.storeName+'" already exists.')}else{throw e}}}}r.onerror=function(e){e.preventDefault();t(r.error)};r.onsuccess=function(){e(r.result);S(i)}})}function O(e){return T(e,false)}function E(e){return T(e,true)}function M(e,t){if(!e.db){return true}var n=!e.db.objectStoreNames.contains(e.storeName);var r=e.version<e.db.version;var i=e.version>e.db.version;if(r){if(e.version!==t){console.warn('The database "'+e.name+'"'+" can't be downgraded from version "+e.db.version+" to version "+e.version+".")}e.version=e.db.version}if(i||n){if(n){var o=e.db.version+1;if(o>e.version){e.version=o}}return true}return false}function D(r){return new h(function(n,e){var t=new FileReader;t.onerror=e;t.onloadend=function(e){var t=btoa(e.target.result||"");n({__local_forage_encoded_blob:true,data:t,type:r.type})};t.readAsBinaryString(r)})}function A(e){var t=w(atob(e.data));return s([t],{type:e.type})}function L(e){return e&&e.__local_forage_encoded_blob}function P(e){var t=this;var n=t._initReady().then(function(){var e=v[t._dbInfo.name];if(e&&e.dbReady){return e.dbReady}});c(n,e,e);return n}function N(n){k(n);var r=v[n.name];var i=r.forages;for(var e=0;e<i.length;e++){var t=i[e];if(t._dbInfo.db){t._dbInfo.db.close();t._dbInfo.db=null}}n.db=null;return O(n).then(function(e){n.db=e;if(M(n)){return E(n)}return e}).then(function(e){n.db=r.db=e;for(var t=0;t<i.length;t++){i[t]._dbInfo.db=e}})["catch"](function(e){C(n,e);throw e})}function I(t,n,r,i){if(i===undefined){i=1}try{var e=t.db.transaction(t.storeName,n);r(null,e)}catch(e){if(i>0&&(!t.db||e.name==="InvalidStateError"||e.name==="NotFoundError")){return h.resolve().then(function(){if(!t.db||e.name==="NotFoundError"&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version){if(t.db){t.version=t.db.version+1}return E(t)}}).then(function(){return N(t).then(function(){I(t,n,r,i-1)})})["catch"](r)}r(e)}}function j(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function R(e){var r=this;var i={db:null};if(e){for(var t in e){i[t]=e[t]}}var o=v[i.name];if(!o){o=j();v[i.name]=o}o.forages.push(r);if(!r._initReady){r._initReady=r.ready;r.ready=P}var n=[];function a(){return h.resolve()}for(var s=0;s<o.forages.length;s++){var l=o.forages[s];if(l!==r){n.push(l._initReady()["catch"](a))}}var u=o.forages.slice(0);return h.all(n).then(function(){i.db=o.db;return O(i)}).then(function(e){i.db=e;if(M(i,r._defaultConfig.version)){return E(i)}return e}).then(function(e){i.db=o.db=e;r._dbInfo=i;for(var t=0;t<u.length;t++){var n=u[t];if(n!==r){n._dbInfo.db=i.db;n._dbInfo.version=i.version}}})}function F(a,e){var s=this;a=f(a);var t=new h(function(i,o){s.ready().then(function(){I(s._dbInfo,y,function(e,t){if(e){return o(e)}try{var n=t.objectStore(s._dbInfo.storeName);var r=n.get(a);r.onsuccess=function(){var e=r.result;if(e===undefined){e=null}if(L(e)){e=A(e)}i(e)};r.onerror=function(){o(r.error)}}catch(e){o(e)}})})["catch"](o)});d(t,e);return t}function z(s,e){var l=this;var t=new h(function(o,a){l.ready().then(function(){I(l._dbInfo,y,function(e,t){if(e){return a(e)}try{var n=t.objectStore(l._dbInfo.storeName);var r=n.openCursor();var i=1;r.onsuccess=function(){var e=r.result;if(e){var t=e.value;if(L(t)){t=A(t)}var n=s(t,e.key,i++);if(n!==void 0){o(n)}else{e["continue"]()}}else{o()}};r.onerror=function(){a(r.error)}}catch(e){a(e)}})})["catch"](a)});d(t,e);return t}function H(s,t,e){var l=this;s=f(s);var n=new h(function(o,a){var e;l.ready().then(function(){e=l._dbInfo;if(m.call(t)==="[object Blob]"){return _(e.db).then(function(e){if(e){return t}return D(t)})}return t}).then(function(i){I(l._dbInfo,b,function(e,t){if(e){return a(e)}try{var n=t.objectStore(l._dbInfo.storeName);if(i===null){i=undefined}var r=n.put(i,s);t.oncomplete=function(){if(i===undefined){i=null}o(i)};t.onabort=t.onerror=function(){var e=r.error?r.error:r.transaction.error;a(e)}}catch(e){a(e)}})})["catch"](a)});d(n,e);return n}function W(a,e){var s=this;a=f(a);var t=new h(function(i,o){s.ready().then(function(){I(s._dbInfo,b,function(e,t){if(e){return o(e)}try{var n=t.objectStore(s._dbInfo.storeName);var r=n["delete"](a);t.oncomplete=function(){i()};t.onerror=function(){o(r.error)};t.onabort=function(){var e=r.error?r.error:r.transaction.error;o(e)}}catch(e){o(e)}})})["catch"](o)});d(t,e);return t}function B(e){var a=this;var t=new h(function(i,o){a.ready().then(function(){I(a._dbInfo,b,function(e,t){if(e){return o(e)}try{var n=t.objectStore(a._dbInfo.storeName);var r=n.clear();t.oncomplete=function(){i()};t.onabort=t.onerror=function(){var e=r.error?r.error:r.transaction.error;o(e)}}catch(e){o(e)}})})["catch"](o)});d(t,e);return t}function U(e){var a=this;var t=new h(function(i,o){a.ready().then(function(){I(a._dbInfo,y,function(e,t){if(e){return o(e)}try{var n=t.objectStore(a._dbInfo.storeName);var r=n.count();r.onsuccess=function(){i(r.result)};r.onerror=function(){o(r.error)}}catch(e){o(e)}})})["catch"](o)});d(t,e);return t}function q(s,e){var l=this;var t=new h(function(o,a){if(s<0){o(null);return}l.ready().then(function(){I(l._dbInfo,y,function(e,t){if(e){return a(e)}try{var n=t.objectStore(l._dbInfo.storeName);var r=false;var i=n.openCursor();i.onsuccess=function(){var e=i.result;if(!e){o(null);return}if(s===0){o(e.key)}else{if(!r){r=true;e.advance(s)}else{o(e.key)}}};i.onerror=function(){a(i.error)}}catch(e){a(e)}})})["catch"](a)});d(t,e);return t}function G(e){var s=this;var t=new h(function(o,a){s.ready().then(function(){I(s._dbInfo,y,function(e,t){if(e){return a(e)}try{var n=t.objectStore(s._dbInfo.storeName);var r=n.openCursor();var i=[];r.onsuccess=function(){var e=r.result;if(!e){o(i);return}i.push(e.key);e["continue"]()};r.onerror=function(){a(r.error)}}catch(e){a(e)}})})["catch"](a)});d(t,e);return t}function Y(s,e){e=u.apply(this,arguments);var t=this.config();s=typeof s!=="function"&&s||{};if(!s.name){s.name=s.name||t.name;s.storeName=s.storeName||t.storeName}var n=this;var r;if(!s.name){r=h.reject("Invalid arguments")}else{var i=s.name===t.name&&n._dbInfo.db;var o=i?h.resolve(n._dbInfo.db):O(s).then(function(e){var t=v[s.name];var n=t.forages;t.db=e;for(var r=0;r<n.length;r++){n[r]._dbInfo.db=e}return e});if(!s.storeName){r=o.then(function(e){k(s);var r=v[s.name];var i=r.forages;e.close();for(var t=0;t<i.length;t++){var n=i[t];n._dbInfo.db=null}var o=new h(function(t,n){var r=l.deleteDatabase(s.name);r.onerror=r.onblocked=function(e){var t=r.result;if(t){t.close()}n(e)};r.onsuccess=function(){var e=r.result;if(e){e.close()}t(e)}});return o.then(function(e){r.db=e;for(var t=0;t<i.length;t++){var n=i[t];S(n._dbInfo)}})["catch"](function(e){(C(s,e)||h.resolve())["catch"](function(){});throw e})})}else{r=o.then(function(e){if(!e.objectStoreNames.contains(s.storeName)){return}var i=e.version+1;k(s);var r=v[s.name];var o=r.forages;e.close();for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=null;n._dbInfo.version=i}var a=new h(function(t,n){var r=l.open(s.name,i);r.onerror=function(e){var t=r.result;t.close();n(e)};r.onupgradeneeded=function(){var e=r.result;e.deleteObjectStore(s.storeName)};r.onsuccess=function(){var e=r.result;e.close();t(e)}});return a.then(function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e;S(n._dbInfo)}})["catch"](function(e){(C(s,e)||h.resolve())["catch"](function(){});throw e})})}}d(r,e);return r}var V={_driver:"asyncStorage",_initStorage:R,_support:a(),iterate:z,getItem:F,setItem:H,removeItem:W,clear:B,length:U,key:q,keys:G,dropInstance:Y};function K(){return typeof openDatabase==="function"}var $="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var X="~~local_forage_type~";var J=/^~~local_forage_type~([^~]+)~/;var Q="__lfsc__:";var Z=Q.length;var ee="arbf";var te="blob";var ne="si08";var re="ui08";var ie="uic8";var oe="si16";var ae="si32";var se="ur16";var le="ui32";var ue="fl32";var ce="fl64";var fe=Z+ee.length;var he=Object.prototype.toString;function de(e){var t=e.length*.75;var n=e.length;var r;var i=0;var o,a,s,l;if(e[e.length-1]==="="){t--;if(e[e.length-2]==="="){t--}}var u=new ArrayBuffer(t);var c=new Uint8Array(u);for(r=0;r<n;r+=4){o=$.indexOf(e[r]);a=$.indexOf(e[r+1]);s=$.indexOf(e[r+2]);l=$.indexOf(e[r+3]);c[i++]=o<<2|a>>4;c[i++]=(a&15)<<4|s>>2;c[i++]=(s&3)<<6|l&63}return u}function pe(e){var t=new Uint8Array(e);var n="";var r;for(r=0;r<t.length;r+=3){n+=$[t[r]>>2];n+=$[(t[r]&3)<<4|t[r+1]>>4];n+=$[(t[r+1]&15)<<2|t[r+2]>>6];n+=$[t[r+2]&63]}if(t.length%3===2){n=n.substring(0,n.length-1)+"="}else if(t.length%3===1){n=n.substring(0,n.length-2)+"=="}return n}function ge(t,n){var e="";if(t){e=he.call(t)}if(t&&(e==="[object ArrayBuffer]"||t.buffer&&he.call(t.buffer)==="[object ArrayBuffer]")){var r;var i=Q;if(t instanceof ArrayBuffer){r=t;i+=ee}else{r=t.buffer;if(e==="[object Int8Array]"){i+=ne}else if(e==="[object Uint8Array]"){i+=re}else if(e==="[object Uint8ClampedArray]"){i+=ie}else if(e==="[object Int16Array]"){i+=oe}else if(e==="[object Uint16Array]"){i+=se}else if(e==="[object Int32Array]"){i+=ae}else if(e==="[object Uint32Array]"){i+=le}else if(e==="[object Float32Array]"){i+=ue}else if(e==="[object Float64Array]"){i+=ce}else{n(new Error("Failed to get type for BinaryArray"))}}n(i+pe(r))}else if(e==="[object Blob]"){var o=new FileReader;o.onload=function(){var e=X+t.type+"~"+pe(this.result);n(Q+te+e)};o.readAsArrayBuffer(t)}else{try{n(JSON.stringify(t))}catch(e){console.error("Couldn't convert value into a JSON string: ",t);n(null,e)}}}function ve(e){if(e.substring(0,Z)!==Q){return JSON.parse(e)}var t=e.substring(fe);var n=e.substring(Z,fe);var r;if(n===te&&J.test(t)){var i=t.match(J);r=i[1];t=t.substring(i[0].length)}var o=de(t);switch(n){case ee:return o;case te:return s([o],{type:r});case ne:return new Int8Array(o);case re:return new Uint8Array(o);case ie:return new Uint8ClampedArray(o);case oe:return new Int16Array(o);case se:return new Uint16Array(o);case ae:return new Int32Array(o);case le:return new Uint32Array(o);case ue:return new Float32Array(o);case ce:return new Float64Array(o);default:throw new Error("Unkown type: "+n)}}var me={serialize:ge,deserialize:ve,stringToBuffer:de,bufferToString:pe};function ye(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" "+"(id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function be(e){var r=this;var i={db:null};if(e){for(var t in e){i[t]=typeof e[t]!=="string"?e[t].toString():e[t]}}var n=new h(function(t,n){try{i.db=openDatabase(i.name,String(i.version),i.description,i.size)}catch(e){return n(e)}i.db.transaction(function(e){ye(e,i,function(){r._dbInfo=i;t()},function(e,t){n(t)})},n)});i.serializer=me;return n}function we(e,r,i,o,a,s){e.executeSql(i,o,a,function(e,n){if(n.code===n.SYNTAX_ERR){e.executeSql("SELECT name FROM sqlite_master "+"WHERE type='table' AND name = ?",[r.storeName],function(e,t){if(!t.rows.length){ye(e,r,function(){e.executeSql(i,o,a,s)},s)}else{s(e,n)}},s)}else{s(e,n)}},s)}function xe(t,e){var o=this;t=f(t);var n=new h(function(i,n){o.ready().then(function(){var r=o._dbInfo;r.db.transaction(function(e){we(e,r,"SELECT * FROM "+r.storeName+" WHERE key = ? LIMIT 1",[t],function(e,t){var n=t.rows.length?t.rows.item(0).value:null;if(n){n=r.serializer.deserialize(n)}i(n)},function(e,t){n(t)})})})["catch"](n)});d(n,e);return n}function _e(u,e){var t=this;var n=new h(function(l,n){t.ready().then(function(){var s=t._dbInfo;s.db.transaction(function(e){we(e,s,"SELECT * FROM "+s.storeName,[],function(e,t){var n=t.rows;var r=n.length;for(var i=0;i<r;i++){var o=n.item(i);var a=o.value;if(a){a=s.serializer.deserialize(a)}a=u(a,o.key,i+1);if(a!==void 0){l(a);return}}l()},function(e,t){n(t)})})})["catch"](n)});d(n,e);return n}function ke(a,e,s,l){var u=this;a=f(a);var t=new h(function(i,o){u.ready().then(function(){if(e===undefined){e=null}var n=e;var r=u._dbInfo;r.serializer.serialize(e,function(t,e){if(e){o(e)}else{r.db.transaction(function(e){we(e,r,"INSERT OR REPLACE INTO "+r.storeName+" "+"(key, value) VALUES (?, ?)",[a,t],function(){i(n)},function(e,t){o(t)})},function(e){if(e.code===e.QUOTA_ERR){if(l>0){i(ke.apply(u,[a,n,s,l-1]));return}o(e)}})}})})["catch"](o)});d(t,s);return t}function Se(e,t,n){return ke.apply(this,[e,t,n,1])}function Ce(i,e){var o=this;i=f(i);var t=new h(function(n,r){o.ready().then(function(){var t=o._dbInfo;t.db.transaction(function(e){we(e,t,"DELETE FROM "+t.storeName+" WHERE key = ?",[i],function(){n()},function(e,t){r(t)})})})["catch"](r)});d(t,e);return t}function Te(e){var i=this;var t=new h(function(n,r){i.ready().then(function(){var t=i._dbInfo;t.db.transaction(function(e){we(e,t,"DELETE FROM "+t.storeName,[],function(){n()},function(e,t){r(t)})})})["catch"](r)});d(t,e);return t}function Oe(e){var i=this;var t=new h(function(r,n){i.ready().then(function(){var t=i._dbInfo;t.db.transaction(function(e){we(e,t,"SELECT COUNT(key) as c FROM "+t.storeName,[],function(e,t){var n=t.rows.item(0).c;r(n)},function(e,t){n(t)})})})["catch"](n)});d(t,e);return t}function Ee(i,e){var o=this;var t=new h(function(r,n){o.ready().then(function(){var t=o._dbInfo;t.db.transaction(function(e){we(e,t,"SELECT key FROM "+t.storeName+" WHERE id = ? LIMIT 1",[i+1],function(e,t){var n=t.rows.length?t.rows.item(0).key:null;r(n)},function(e,t){n(t)})})})["catch"](n)});d(t,e);return t}function Me(e){var r=this;var t=new h(function(i,n){r.ready().then(function(){var t=r._dbInfo;t.db.transaction(function(e){we(e,t,"SELECT key FROM "+t.storeName,[],function(e,t){var n=[];for(var r=0;r<t.rows.length;r++){n.push(t.rows.item(r).key)}i(n)},function(e,t){n(t)})})})["catch"](n)});d(t,e);return t}function De(o){return new h(function(i,n){o.transaction(function(e){e.executeSql("SELECT name FROM sqlite_master "+"WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(e,t){var n=[];for(var r=0;r<t.rows.length;r++){n.push(t.rows.item(r).name)}i({db:o,storeNames:n})},function(e,t){n(t)})},function(e){n(e)})})}function Ae(n,e){e=u.apply(this,arguments);var r=this.config();n=typeof n!=="function"&&n||{};if(!n.name){n.name=n.name||r.name;n.storeName=n.storeName||r.storeName}var i=this;var t;if(!n.name){t=h.reject("Invalid arguments")}else{t=new h(function(e){var t;if(n.name===r.name){t=i._dbInfo.db}else{t=openDatabase(n.name,"","",0)}if(!n.storeName){e(De(t))}else{e({db:t,storeNames:[n.storeName]})}}).then(function(s){return new h(function(o,a){s.db.transaction(function(r){function e(t){return new h(function(e,n){r.executeSql("DROP TABLE IF EXISTS "+t,[],function(){e()},function(e,t){n(t)})})}var t=[];for(var n=0,i=s.storeNames.length;n<i;n++){t.push(e(s.storeNames[n]))}h.all(t).then(function(){o()})["catch"](function(e){a(e)})},function(e){a(e)})})})}d(t,e);return t}var Le={_driver:"webSQLStorage",_initStorage:be,_support:K(),iterate:_e,getItem:xe,setItem:Se,removeItem:Ce,clear:Te,length:Oe,key:Ee,keys:Me,dropInstance:Ae};function Pe(){try{return typeof localStorage!=="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return false}}function Ne(e,t){var n=e.name+"/";if(e.storeName!==t.storeName){n+=e.storeName+"/"}return n}function Ie(){var e="_localforage_support_test";try{localStorage.setItem(e,true);localStorage.removeItem(e);return false}catch(e){return true}}function je(){return!Ie()||localStorage.length>0}function Re(e){var t=this;var n={};if(e){for(var r in e){n[r]=e[r]}}n.keyPrefix=Ne(e,t._defaultConfig);if(!je()){return h.reject()}t._dbInfo=n;n.serializer=me;return h.resolve()}function Fe(e){var r=this;var t=r.ready().then(function(){var e=r._dbInfo.keyPrefix;for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);if(n.indexOf(e)===0){localStorage.removeItem(n)}}});d(t,e);return t}function ze(n,e){var r=this;n=f(n);var t=r.ready().then(function(){var e=r._dbInfo;var t=localStorage.getItem(e.keyPrefix+n);if(t){t=e.serializer.deserialize(t)}return t});d(t,e);return t}function He(l,e){var u=this;var t=u.ready().then(function(){var e=u._dbInfo;var t=e.keyPrefix;var n=t.length;var r=localStorage.length;var i=1;for(var o=0;o<r;o++){var a=localStorage.key(o);if(a.indexOf(t)!==0){continue}var s=localStorage.getItem(a);if(s){s=e.serializer.deserialize(s)}s=l(s,a.substring(n),i++);if(s!==void 0){return s}}});d(t,e);return t}function We(n,e){var r=this;var t=r.ready().then(function(){var e=r._dbInfo;var t;try{t=localStorage.key(n)}catch(e){t=null}if(t){t=t.substring(e.keyPrefix.length)}return t});d(t,e);return t}function Be(e){var o=this;var t=o.ready().then(function(){var e=o._dbInfo;var t=localStorage.length;var n=[];for(var r=0;r<t;r++){var i=localStorage.key(r);if(i.indexOf(e.keyPrefix)===0){n.push(i.substring(e.keyPrefix.length))}}return n});d(t,e);return t}function Ue(e){var t=this;var n=t.keys().then(function(e){return e.length});d(n,e);return n}function qe(t,e){var n=this;t=f(t);var r=n.ready().then(function(){var e=n._dbInfo;localStorage.removeItem(e.keyPrefix+t)});d(r,e);return r}function Ge(a,e,t){var s=this;a=f(a);var n=s.ready().then(function(){if(e===undefined){e=null}var o=e;return new h(function(n,r){var i=s._dbInfo;i.serializer.serialize(e,function(e,t){if(t){r(t)}else{try{localStorage.setItem(i.keyPrefix+a,e);n(o)}catch(e){if(e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED"){r(e)}r(e)}}})})});d(n,t);return n}function Ye(t,e){e=u.apply(this,arguments);t=typeof t!=="function"&&t||{};if(!t.name){var n=this.config();t.name=t.name||n.name;t.storeName=t.storeName||n.storeName}var r=this;var i;if(!t.name){i=h.reject("Invalid arguments")}else{i=new h(function(e){if(!t.storeName){e(t.name+"/")}else{e(Ne(t,r._defaultConfig))}}).then(function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);if(n.indexOf(e)===0){localStorage.removeItem(n)}}})}d(i,e);return i}var Ve={_driver:"localStorageWrapper",_initStorage:Re,_support:Pe(),iterate:He,getItem:ze,setItem:Ge,removeItem:qe,clear:Fe,length:Ue,key:We,keys:Be,dropInstance:Ye};var Ke=function e(t,n){return t===n||typeof t==="number"&&typeof n==="number"&&isNaN(t)&&isNaN(n)};var $e=function e(t,n){var r=t.length;var i=0;while(i<r){if(Ke(t[i],n)){return true}i++}return false};var Xe=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};var Je={};var Qe={};var Ze={INDEXEDDB:V,WEBSQL:Le,LOCALSTORAGE:Ve};var et=[Ze.INDEXEDDB._driver,Ze.WEBSQL._driver,Ze.LOCALSTORAGE._driver];var tt=["dropInstance"];var nt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(tt);var rt={description:"",driver:et.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function it(t,n){t[n]=function(){var e=arguments;return t.ready().then(function(){return t[n].apply(t,e)})}}function ot(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t){for(var n in t){if(t.hasOwnProperty(n)){if(Xe(t[n])){arguments[0][n]=t[n].slice()}else{arguments[0][n]=t[n]}}}}}return arguments[0]}var at=function(){function i(e){o(this,i);for(var t in Ze){if(Ze.hasOwnProperty(t)){var n=Ze[t];var r=n._driver;this[t]=r;if(!Je[r]){this.defineDriver(n)}}}this._defaultConfig=ot({},rt);this._config=ot({},this._defaultConfig,e);this._driverSet=null;this._initDriver=null;this._ready=false;this._dbInfo=null;this._wrapLibraryMethodsWithReady();this.setDriver(this._config.driver)["catch"](function(){})}i.prototype.config=function e(t){if((typeof t==="undefined"?"undefined":r(t))==="object"){if(this._ready){return new Error("Can't call config() after localforage "+"has been used.")}for(var n in t){if(n==="storeName"){t[n]=t[n].replace(/\W/g,"_")}if(n==="version"&&typeof t[n]!=="number"){return new Error("Database version must be a number.")}this._config[n]=t[n]}if("driver"in t&&t.driver){return this.setDriver(this._config.driver)}return true}else if(typeof t==="string"){return this._config[t]}else{return this._config}};i.prototype.defineDriver=function e(f,t,n){var r=new h(function(n,t){try{var r=f._driver;var e=new Error("Custom driver not compliant; see "+"https://mozilla.github.io/localForage/#definedriver");if(!f._driver){t(e);return}var i=nt.concat("_initStorage");for(var o=0,a=i.length;o<a;o++){var s=i[o];var l=!$e(tt,s);if((l||f[s])&&typeof f[s]!=="function"){t(e);return}}var u=function e(){var t=function e(n){return function(){var e=new Error("Method "+n+" is not implemented by the current driver");var t=h.reject(e);d(t,arguments[arguments.length-1]);return t}};for(var n=0,r=tt.length;n<r;n++){var i=tt[n];if(!f[i]){f[i]=t(i)}}};u();var c=function e(t){if(Je[r]){console.info("Redefining LocalForage driver: "+r)}Je[r]=f;Qe[r]=t;n()};if("_support"in f){if(f._support&&typeof f._support==="function"){f._support().then(c,t)}else{c(!!f._support)}}else{c(true)}}catch(e){t(e)}});c(r,t,n);return r};i.prototype.driver=function e(){return this._driver||null};i.prototype.getDriver=function e(t,n,r){var i=Je[t]?h.resolve(Je[t]):h.reject(new Error("Driver not found."));c(i,n,r);return i};i.prototype.getSerializer=function e(t){var n=h.resolve(me);c(n,t);return n};i.prototype.ready=function e(t){var n=this;var r=n._driverSet.then(function(){if(n._ready===null){n._ready=n._initDriver()}return n._ready});c(r,t,t);return r};i.prototype.setDriver=function e(t,n,r){var o=this;if(!Xe(t)){t=[t]}var i=this._getSupportedDrivers(t);function a(){o._config.driver=o.driver()}function s(e){o._extend(e);a();o._ready=o._initStorage(o._config);return o._ready}function l(i){return function(){var n=0;function r(){while(n<i.length){var e=i[n];n++;o._dbInfo=null;o._ready=null;return o.getDriver(e).then(s)["catch"](r)}a();var t=new Error("No available storage method found.");o._driverSet=h.reject(t);return o._driverSet}return r()}}var u=this._driverSet!==null?this._driverSet["catch"](function(){return h.resolve()}):h.resolve();this._driverSet=u.then(function(){var e=i[0];o._dbInfo=null;o._ready=null;return o.getDriver(e).then(function(e){o._driver=e._driver;a();o._wrapLibraryMethodsWithReady();o._initDriver=l(i)})})["catch"](function(){a();var e=new Error("No available storage method found.");o._driverSet=h.reject(e);return o._driverSet});c(this._driverSet,n,r);return this._driverSet};i.prototype.supports=function e(t){return!!Qe[t]};i.prototype._extend=function e(t){ot(this,t)};i.prototype._getSupportedDrivers=function e(t){var n=[];for(var r=0,i=t.length;r<i;r++){var o=t[r];if(this.supports(o)){n.push(o)}}return n};i.prototype._wrapLibraryMethodsWithReady=function e(){for(var t=0,n=nt.length;t<n;t++){it(this,nt[t])}};i.prototype.createInstance=function e(t){return new i(t)};return i}();var st=new at;t.exports=st},{3:3}]},{},[4])(4)}()}).call(this,n(174))},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(262),i=n(208);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(92),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,r){var i=r(19),o=r(263),a=r(208),s=r(207)("IE_PROTO"),l=function(){},u="prototype",c=function(){var e,t=r(205)("iframe"),n=a.length;for(t.style.display="none",r(210).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[u][a[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[u]=i(e),n=new l,l[u]=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(262),i=n(208).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(20),i=n(37),o=n(36),a=n(28)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var i=n(54);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(37).f,i=n(49),o=n(28)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var a=n(9),r=n(67),s=n(21),l=n(212),i="["+l+"]",u="…",o=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),f=function(e,t,n){var r={},i=s(function(){return!!l[e]()||u[e]()!=u}),o=r[e]=i?t(h):l[e];n&&(r[n]=o),a(a.P+a.F*i,"String",r)},h=f.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(o,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},function(e,t){e.exports={}},function(e,t,n){var r=n(28)("unscopables"),i=Array.prototype;null==i[r]&&n(53)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){var h=n(80),d=n(273),p=n(222),g=n(19),v=n(40),m=n(224),y={},b={};(t=e.exports=function(e,t,n,r,i){var o,a,s,l,u=i?function(){return e}:m(e),c=h(n,r,t?2:1),f=0;if("function"!=typeof u)throw TypeError(e+" is not iterable!");if(p(u)){for(o=v(e.length);f<o;f++)if((l=t?c(g(a=e[f])[0],a[1]):c(e[f]))===y||l===b)return l}else for(s=u.call(e);!(a=s.next()).done;)if((l=d(s,c,a.value,t))===y||l===b)return l}).BREAK=y,t.RETURN=b},,,,,,,,,function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i,o,a,s,l,u,c;Object.defineProperty(t,"__esModule",{value:!0}),o=t.SET_A=0,a=t.SET_B=1,s=t.SET_C=2,t.SHIFT=98,l=t.START_A=103,u=t.START_B=104,c=t.START_C=105,t.MODULO=103,t.STOP=106,t.FNC1=207,t.SET_BY_CODE=(r(i={},l,o),r(i,u,a),r(i,c,s),i),t.SWAP={101:o,100:a,99:s},t.A_START_CHAR=String.fromCharCode(208),t.B_START_CHAR=String.fromCharCode(209),t.C_START_CHAR=String.fromCharCode(210),t.A_CHARS="[\0-_È-Ï]",t.B_CHARS="[ -È-Ï]",t.C_CHARS="(Ï*[0-9]{2}Ï*)",t.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SIDE_BIN="101",t.MIDDLE_BIN="01010",t.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},t.EAN2_STRUCTURE=["LL","LG","GL","GG"],t.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],t.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},function(e,t,n){"use strict";var a,r;Object.defineProperty(t,"__esModule",{value:!0}),a=n(145),r=function(n,r,i){var o,e=n.split("").map(function(e,t){return a.BINARIES[r[t]]}).map(function(e,t){return e?e[n[t]]:""});return i&&(o=n.length-1,e=e.map(function(e,t){return t<o?e+i:e})),e.join("")},t.default=r},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t;n++)e="0"+e;return e}var r,o,a,s;function l(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function u(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e,t))}Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e},o=n(62),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,((s=o)&&s.__esModule?s:{default:s}).default),r(u,[{key:"encode",value:function(){var e,t,n,r="110";for(e=0;e<this.data.length;e++)for(t=i(t=parseInt(this.data[e]).toString(2),4-t.length),n=0;n<t.length;n++)r+="0"==t[n]?"100":"110";return{data:r+="1001",text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),a=u,t.default=a},function(e,t,n){var r=n(66);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(66),o=n(28)("toStringTag"),a="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},,,,,,,,,,,,,,,,,,,,,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r,i,o,s,a,l;function u(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function c(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e.substring(1),t));return n.bytes=e.split("").map(function(e){return e.charCodeAt(0)}),n}Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e},i=n(62),o=(l=i)&&l.__esModule?l:{default:l},s=n(144),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,o.default),r(c,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var e,t=this.bytes,n=t.shift()-105,r=s.SET_BY_CODE[n];if(void 0===r)throw new RangeError("The encoding does not start with a start character.");return!0===this.shouldEncodeAsEan128()&&t.unshift(s.FNC1),e=c.next(t,1,r),{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:c.getBar(n)+e.result+c.getBar((e.checksum+n)%s.MODULO)+c.getBar(s.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var e=this.options.ean128||!1;return"string"==typeof e&&(e="true"===e.toLowerCase()),e}}],[{key:"getBar",value:function(e){return s.BARS[e]?s.BARS[e].toString():""}},{key:"correctIndex",value:function(e,t){if(t!==s.SET_A)return t===s.SET_B?e.shift()-32:10*(e.shift()-48)+e.shift()-48;var n=e.shift();return n<32?n+64:n-32}},{key:"next",value:function(e,t,n){var r,i,o,a;return e.length?(i=r=void 0,r=200<=e[0]?(i=e.shift()-105,void 0!==(o=s.SWAP[i])?c.next(e,t+1,o):(n!==s.SET_A&&n!==s.SET_B||i!==s.SHIFT||(e[0]=n===s.SET_A?95<e[0]?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),c.next(e,t+1,n))):(i=c.correctIndex(e,n),c.next(e,t+1,n)),a=i*t,{result:c.getBar(i)+r.result,checksum:a+r.checksum}):{result:"",checksum:0}}}]),a=c,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mod10=function(e){var t,n,r=0;for(t=0;t<e.length;t++)n=parseInt(e[t]),(t+e.length)%2==0?r+=n:r+=2*n%10+Math.floor(2*n/10);return(10-r%10)%10},t.mod11=function(e){var t,n,r=0,i=[2,3,4,5,6,7];for(t=0;t<e.length;t++)n=parseInt(e[e.length-1-t]),r+=i[t%i.length]*n;return(11-r%11)%11}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e};t.default=function(e,t){return r({},e,t)}},,function(e,t,n){var r=n(20),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var l=n(56),u=n(40),c=n(106);e.exports=function(s){return function(e,t,n){var r,i=l(e),o=u(i.length),a=c(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(24),i=n(66),o=n(28)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r,o=n(28)("iterator"),a=!1;try{(r=[7][o]()).return=function(){a=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){var n,r,i;if(!t&&!a)return!1;n=!1;try{(i=(r=[7])[o]()).next=function(){return{done:n=!0}},r[o]=function(){return i},e(r)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(19);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var s=n(53),l=n(54),u=n(21),c=n(67),f=n(28);e.exports=function(t,e,n){var r=f(t),i=n(c,r,""[t]),o=i[0],a=i[1];u(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(l(String.prototype,t,o),s(RegExp.prototype,r,2==e?function(e,t){return a.call(e,this,t)}:function(e){return a.call(e,this)}))}},function(e,t,n){"use strict";var m=n(20),y=n(9),b=n(54),w=n(111),x=n(91),_=n(135),k=n(110),S=n(24),C=n(21),T=n(184),O=n(131),E=n(213);e.exports=function(r,e,t,n,i,o){var a,s,l,u,c,f=m[r],h=f,d=i?"set":"add",p=h&&h.prototype,g={},v=function(e){var n=p[e];b(p,e,"delete"==e?function(e){return!(o&&!S(e))&&n.call(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!S(e))&&n.call(this,0===e?0:e)}:"get"==e?function(e){return o&&!S(e)?void 0:n.call(this,0===e?0:e)}:"add"==e?function(e){return n.call(this,0===e?0:e),this}:function(e,t){return n.call(this,0===e?0:e,t),this})};return"function"==typeof h&&(o||p.forEach&&!C(function(){(new h).entries().next()}))?(s=(a=new h)[d](o?{}:-0,1)!=a,l=C(function(){a.has(1)}),u=T(function(e){new h(e)}),c=!o&&C(function(){for(var e=new h,t=5;t--;)e[d](t,t);return!e.has(-0)}),u||(((h=e(function(e,t){k(e,h,r);var n=E(new f,e,h);return null!=t&&_(t,i,n[d],n),n})).prototype=p).constructor=h),(l||c)&&(v("delete"),v("has"),i&&v("get")),(c||s)&&v(d),o&&p.clear&&delete p.clear):(h=n.getConstructor(e,r,i,d),w(h.prototype,t),x.NEED=!0),O(h,r),g[r]=h,y(y.G+y.W+y.F*(h!=f),g),o||n.setStrong(h,r,i),h}},function(e,t,n){for(var r,i=n(20),o=n(53),a=n(103),s=a("typed_array"),l=a("view"),u=!(!i.ArrayBuffer||!i.DataView),c=u,f=0,h=9,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<h;)(r=i[d[f++]])?(o(r.prototype,s,!0),o(r.prototype,l,!0)):c=!1;e.exports={ABV:u,CONSTR:c,TYPED:s,VIEW:l}},function(e,t,n){e.exports=n(104)||!n(21)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(20)[e]})},,,,,,,,,,,,,function(e,t,n){var r,i,o,p,a,h,d,g,v,s,l,u,c,f;function m(e,t,n){return e.call.apply(e.bind,arguments)}function y(t,n,e){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(e,r),t.apply(n,e)}}return function(){return t.apply(n,arguments)}}function b(e,t,n){return(b=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?m:y).apply(null,arguments)}function w(e,t){this.a=e,this.o=t||e,this.c=this.o.document}function x(e,t,n,r){if(t=e.c.createElement(t),n)for(var i in n)n.hasOwnProperty(i)&&("style"==i?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r&&t.appendChild(e.c.createTextNode(r)),t}function _(e,t,n){(e=(e=e.c.getElementsByTagName(t)[0])||document.documentElement).insertBefore(n,e.lastChild)}function k(e){e.parentNode&&e.parentNode.removeChild(e)}function S(e,t,n){var r,i,o,a;for(t=t||[],n=n||[],r=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(o=!1,a=0;a<r.length;a+=1)if(t[i]===r[a]){o=!0;break}o||r.push(t[i])}for(t=[],i=0;i<r.length;i+=1){for(o=!1,a=0;a<n.length;a+=1)if(r[i]===n[a]){o=!0;break}o||t.push(r[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function C(e,t){for(var n=e.className.split(/\s+/),r=0,i=n.length;r<i;r++)if(n[r]==t)return!0;return!1}function T(e,t,n){function r(){a&&i&&(a(o),a=null)}t=x(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,o=null,a=n||null;f?(t.onload=function(){i=!0,r()},t.onerror=function(){i=!0,o=Error("Stylesheet failed to load"),r()}):setTimeout(function(){i=!0,r()},0),_(e,"head",t)}function O(e,t,n,r){var i,o,a=e.c.getElementsByTagName("head")[0];return a?(i=x(e,"script",{src:t}),o=!1,i.onload=i.onreadystatechange=function(){o||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(o=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&a.removeChild(i))},a.appendChild(i),setTimeout(function(){o||(o=!0,n&&n(Error("Script load timeout")))},r||5e3),i):null}function E(){this.a=0,this.c=null}function M(e){return e.a++,function(){e.a--,A(e)}}function D(e,t){e.c=t,A(e)}function A(e){0==e.a&&e.c&&(e.c(),e.c=null)}function L(e){this.a=e||"-"}function P(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function N(e){var t,n,r=[];for(e=e.split(/,\s*/),t=0;t<e.length;t++)-1!=(n=e[t].replace(/['"]/g,"")).indexOf(" ")||/^\d/.test(n)?r.push("'"+n+"'"):r.push(n);return r.join(",")}function I(e){return e.a+e.f}function j(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function R(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new L("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function F(e){if(e.g){var t=C(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),S(e.f,n,r)}z(e,"inactive")}function z(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,I(n)):e.h[t]())}function H(){this.c={}}function W(e,t){this.c=e,this.f=t,this.a=x(this.c,"span",{"aria-hidden":"true"},this.f)}function B(e){_(e.c,"body",e.a)}function U(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+N(e.c)+";font-style:"+j(e)+";font-weight:"+e.f+"00;"}function q(e,t,n,r,i,o){this.g=e,this.j=t,this.a=r,this.c=n,this.f=i||3e3,this.h=o||void 0}function G(e,t,n,r,i,o,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=i||3e3,this.u=o||null,this.m=this.j=this.h=this.g=null,this.g=new W(this.c,this.s),this.h=new W(this.c,this.s),this.j=new W(this.c,this.s),this.m=new W(this.c,this.s),e=U(e=new P(this.a.c+",serif",I(this.a))),this.g.a.style.cssText=e,e=U(e=new P(this.a.c+",sans-serif",I(this.a))),this.h.a.style.cssText=e,e=U(e=new P("serif",I(this.a))),this.j.a.style.cssText=e,e=U(e=new P("sans-serif",I(this.a))),this.m.a.style.cssText=e,B(this.g),B(this.h),B(this.j),B(this.m)}function Y(){if(null===o){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);o=!!e&&(parseInt(e[1],10)<536||536===parseInt(e[1],10)&&parseInt(e[2],10)<=11)}return o}function V(e,t,n){for(var r in i)if(i.hasOwnProperty(r)&&t===e.f[i[r]]&&n===e.f[i[r]])return!0;return!1}function K(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=Y()&&V(e,n,r)),t?c()-e.A>=e.w?Y()&&V(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?$(e,e.v):$(e,e.B):function(e){setTimeout(b(function(){K(this)},e),50)}(e):$(e,e.v)}function $(e,t){setTimeout(b(function(){k(this.g.a),k(this.h.a),k(this.j.a),k(this.m.a),t(this.a)},e),0)}function X(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}function J(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&S(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),z(e,"active")):F(e.a))}function Q(e){this.j=e,this.a=new H,this.h=0,this.f=this.g=!0}function Z(i,e,t){var o,n=[],r=t.timeout;for(!function(e){e.g&&S(e.f,[e.a.c("wf","loading")]),z(e,"loading")}(e),n=function(e,t,n){var r,i,o=[];for(r in t)t.hasOwnProperty(r)&&(i=e.c[r])&&o.push(i(t[r],n));return o}(i.a,t,i.c),o=new X(i.c,e,r),i.h=n.length,e=0,t=n.length;e<t;e++)n[e].load(function(e,t,n){var r,u,c,f,h,d;u=o,c=e,f=t,h=n,d=0==--(r=i).h,(r.f||r.g)&&setTimeout(function(){var e,t,n,r,i,o,a,s=h||null,l=f||{};if(0===c.length&&d)F(u.a);else{for(u.f+=c.length,d&&(u.j=d),t=[],e=0;e<c.length;e++)r=l[(n=c[e]).c],o=n,(i=u.a).g&&S(i.f,[i.a.c("wf",o.c,I(o).toString(),"loading")]),z(i,"fontloading",o),(i=null)===p&&(p=!!window.FontFace&&(o=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),a=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor),o?42<parseInt(o[1],10):!a)),i=p?new q(b(u.g,u),b(u.h,u),u.c,n,u.s,r):new G(b(u.g,u),b(u.h,u),u.c,n,u.s,s,r),t.push(i);for(e=0;e<t.length;e++)t[e].start()}},0)})}function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e||a,this.a=[],this.f=[],this.g=t||""}function re(e){this.f=e,this.a=[],this.c={}}function ie(e,t){this.c=e,this.a=t}function oe(e,t){this.c=e,this.a=t}function ae(e,t){this.c=e,this.f=t,this.a=[]}c=Date.now||function(){return+new Date},f=!!window.FontFace,L.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},q.prototype.start=function(){var r=this.c.o.document,i=this,o=c(),e=new Promise(function(n,e){!function t(){c()-o>=i.f?e():r.fonts.load(function(e){return j(e)+" "+e.f+"00 300px "+N(e.c)}(i.a),i.h).then(function(e){1<=e.length?n():setTimeout(t,25)},function(){e()})}()}),n=null,t=new Promise(function(e,t){n=setTimeout(t,i.f)});Promise.race([t,e]).then(function(){n&&(clearTimeout(n),n=null),i.g(i.a)},function(){i.j(i.a)})},i={D:"serif",C:"sans-serif"},o=null,G.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=c(),K(this)},p=null,X.prototype.g=function(e){var t=this.a;t.g&&S(t.f,[t.a.c("wf",e.c,I(e).toString(),"active")],[t.a.c("wf",e.c,I(e).toString(),"loading"),t.a.c("wf",e.c,I(e).toString(),"inactive")]),z(t,"fontactive",e),this.m=!0,J(this)},X.prototype.h=function(e){var t,n,r,i=this.a;i.g&&(t=C(i.f,i.a.c("wf",e.c,I(e).toString(),"active")),n=[],r=[i.a.c("wf",e.c,I(e).toString(),"loading")],t||n.push(i.a.c("wf",e.c,I(e).toString(),"inactive")),S(i.f,n,r)),z(i,"fontinactive",e),J(this)},Q.prototype.load=function(e){this.c=new w(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,Z(this,new R(this.c,e),e)},ee.prototype.load=function(a){var s,t=this,l=t.a.projectId,e=t.a.version;l?(s=t.c.o,O(this.c,(t.a.api||"https://fast.fonts.net/jsapi")+"/"+l+".js"+(e?"?v="+e:""),function(e){e?a([]):(s["__MonotypeConfiguration__"+l]=function(){return t.a},function e(){var t,n,r,i,o;if(s["__mti_fntLst"+l]){if(n=[],t=s["__mti_fntLst"+l]())for(i=0;i<t.length;i++)o=t[i].fontfamily,null!=t[i].fontStyle&&null!=t[i].fontWeight?(r=t[i].fontStyle+t[i].fontWeight,n.push(new P(o,r))):n.push(new P(o));a(n)}else setTimeout(function(){e()},50)}())}).id="__MonotypeAPIScript__"+l):a([])},te.prototype.load=function(e){var t,n,r,i,o=this.a.urls||[],a=this.a.families||[],s=this.a.testStrings||{},l=new E,u=0;for(t=o.length;u<t;u++)T(this.c,o[u],M(l));for(n=[],u=0,t=a.length;u<t;u++)if((o=a[u].split(":"))[1])for(r=o[1].split(","),i=0;i<r.length;i+=1)n.push(new P(o[0],r[i]));else n.push(new P(o[0]));D(l,function(){e(n,s)})},a="https://fonts.googleapis.com/css",h={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},d={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},g={i:"i",italic:"i",n:"n",normal:"n"},v=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/,s={Arimo:!0,Cousine:!0,Tinos:!0},ie.prototype.load=function(e){var t,n=new E,r=this.c,i=new ne(this.a.api,this.a.text),o=this.a.families;!function(e,t){var n,r,i,o;for(n=t.length,r=0;r<n;r++)3==(i=t[r].split(":")).length&&e.f.push(i.pop()),o="",2==i.length&&""!=i[1]&&(o=":"),e.a.push(i.join(o))}(i,o),function(e){var t,n,r,i,o,a,s,l,u,c,f;for(t=e.f.length,n=0;n<t;n++){if(i=(r=e.f[n].split(":"))[0].replace(/\+/g," "),o=["n4"],2<=r.length){if(a=[],s=r[1])for(l=(s=s.split(",")).length,u=0;u<l;u++)(c=(c=s[u]).match(/^[\w-]+$/)?null==(f=v.exec(c.toLowerCase()))?"":[c=null==(c=f[2])||""==c?"n":g[c],f=null==(f=f[1])||""==f?"4":d[f]||(isNaN(f)?"4":f.substr(0,1))].join(""):"")&&a.push(c);0<a.length&&(o=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=h[r[0]])&&(e.c[i]=r))}for(e.c[i]||(r=h[i])&&(e.c[i]=r),r=0;r<o.length;r+=1)e.a.push(new P(i,o[r]))}}(t=new re(o)),T(r,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(i),M(n)),D(n,function(){e(t.a,t.c,s)})},oe.prototype.load=function(a){var e=this.a.id,s=this.c.o;e?O(this.c,(this.a.api||"https://use.typekit.net")+"/"+e+".js",function(e){var t,n,r,i,o;if(e)a([]);else if(s.Typekit&&s.Typekit.config&&s.Typekit.config.fn){for(e=s.Typekit.config.fn,t=[],n=0;n<e.length;n+=2)for(r=e[n],i=e[n+1],o=0;o<i.length;o++)t.push(new P(r,i[o]));try{s.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}a(t)}},2e3):a([])},ae.prototype.load=function(u){var e=this.f.id,t=this.c.o,c=this;e?(t.__webfontfontdeckmodule__||(t.__webfontfontdeckmodule__={}),t.__webfontfontdeckmodule__[e]=function(e,t){var n,r,i,o,a,s,l;for(n=0,r=t.fonts.length;n<r;++n)i=t.fonts[n],c.a.push(new P(i.name,(o="font-weight:"+i.weight+";font-style:"+i.style,l=s=a=void 0,a=4,s="n",l=null,o&&((l=o.match(/(normal|oblique|italic)/i))&&l[1]&&(s=l[1].substr(0,1).toLowerCase()),(l=o.match(/([1-9]00|normal|bold)/i))&&l[1]&&(/bold/i.test(l[1])?a=7:/[1-9]00/.test(l[1])&&(a=parseInt(l[1].substr(0,1),10)))),s+a)));u(c.a)},O(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+e+".js",function(e){e&&u([])})):u([])},(l=new Q(window)).a.c.custom=function(e,t){return new te(t,e)},l.a.c.fontdeck=function(e,t){return new ae(t,e)},l.a.c.monotype=function(e,t){return new ee(t,e)},l.a.c.typekit=function(e,t){return new oe(t,e)},l.a.c.google=function(e,t){return new ie(t,e)},u={load:b(l.load,l)},void 0===(r=function(){return u}.call(t,n,t,e))||(e.exports=r)},function(e,t,n){!function(i){"use strict";var m=i.Pos,y,b;function t(e){var t=e.flags;return t!=null?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function p(e){return e.global?e:new RegExp(e.source,t(e)+"g")}function g(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function v(e,t,n){t=p(t);for(var r=n.line,i=n.ch,o=e.lastLine();r<=o;r++,i=0){t.lastIndex=i;var a=e.getLine(r),s=t.exec(a);if(s)return{from:m(r,s.index),to:m(r,s.index+s[0].length),match:s}}}function o(e,t,n){if(!g(t))return v(e,t,n);t=p(t);var r,i=1;for(var o=n.line,a=e.lastLine();o<=a;){for(var s=0;s<i;s++){var l=e.getLine(o++);r=r==null?l:r+"\n"+l}i=i*2;t.lastIndex=n.ch;var u=t.exec(r);if(u){var c=r.slice(0,u.index).split("\n"),f=u[0].split("\n");var h=n.line+c.length-1,d=c[c.length-1].length;return{from:m(h,d),to:m(h+f.length-1,f.length==1?d+f[0].length:f[f.length-1].length),match:u}}}}function w(e,t){var n=0,r;for(;;){t.lastIndex=n;var i=t.exec(e);if(!i)return r;r=i;n=r.index+(r[0].length||1);if(n==e.length)return r}}function a(e,t,n){t=p(t);for(var r=n.line,i=n.ch,o=e.firstLine();r>=o;r--,i=-1){var a=e.getLine(r);if(i>-1)a=a.slice(0,i);var s=w(a,t);if(s)return{from:m(r,s.index),to:m(r,s.index+s[0].length),match:s}}}function s(e,t,n){t=p(t);var r,i=1;for(var o=n.line,a=e.firstLine();o>=a;){for(var s=0;s<i;s++){var l=e.getLine(o--);r=r==null?l.slice(0,n.ch):l+"\n"+r}i*=2;var u=w(r,t);if(u){var c=r.slice(0,u.index).split("\n"),f=u[0].split("\n");var h=o+c.length,d=c[c.length-1].length;return{from:m(h,d),to:m(h+f.length-1,f.length==1?d+f[0].length:f[f.length-1].length),match:u}}}}if(String.prototype.normalize){y=function(e){return e.normalize("NFD").toLowerCase()};b=function(e){return e.normalize("NFD")}}else{y=function(e){return e.toLowerCase()};b=function(e){return e}}function x(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1;var s=r(e.slice(0,a)).length;if(s==n)return a;else if(s>n)o=a;else i=a+1}}function l(e,t,n,r){if(!t.length)return null;var i=r?y:b;var o=i(t).split(/\r|\n\r?/);e:for(var a=n.line,s=n.ch,l=e.lastLine()+1-o.length;a<=l;a++,s=0){var u=e.getLine(a).slice(s),c=i(u);if(o.length==1){var f=c.indexOf(o[0]);if(f==-1)continue e;var n=x(u,c,f,i)+s;return{from:m(a,x(u,c,f,i)+s),to:m(a,x(u,c,f+o[0].length,i)+s)}}else{var h=c.length-o[0].length;if(c.slice(h)!=o[0])continue e;for(var d=1;d<o.length-1;d++)if(i(e.getLine(a+d))!=o[d])continue e;var p=e.getLine(a+o.length-1),g=i(p),v=o[o.length-1];if(g.slice(0,v.length)!=v)continue e;return{from:m(a,x(u,c,h,i)+s),to:m(a+o.length-1,x(p,g,v.length,i))}}}}function u(e,t,n,r){if(!t.length)return null;var i=r?y:b;var o=i(t).split(/\r|\n\r?/);e:for(var a=n.line,s=n.ch,l=e.firstLine()-1+o.length;a>=l;a--,s=-1){var u=e.getLine(a);if(s>-1)u=u.slice(0,s);var c=i(u);if(o.length==1){var f=c.lastIndexOf(o[0]);if(f==-1)continue e;return{from:m(a,x(u,c,f,i)),to:m(a,x(u,c,f+o[0].length,i))}}else{var h=o[o.length-1];if(c.slice(0,h.length)!=h)continue e;for(var d=1,n=a-o.length+1;d<o.length-1;d++)if(i(e.getLine(n+d))!=o[d])continue e;var p=e.getLine(a+1-o.length),g=i(p);if(g.slice(g.length-o[0].length)!=o[0])continue e;return{from:m(a+1-o.length,x(p,g,p.length-o[0].length,i)),to:m(a,x(u,c,h.length,i))}}}}function r(n,r,e,t){this.atOccurrence=false;this.doc=n;e=e?n.clipPos(e):m(0,0);this.pos={from:e,to:e};var i;if(typeof t=="object"){i=t.caseFold}else{i=t;t=null}if(typeof r=="string"){if(i==null)i=false;this.matches=function(e,t){return(e?u:l)(n,r,t,i)}}else{r=p(r);if(!t||t.multiline!==false)this.matches=function(e,t){return(e?s:o)(n,r,t)};else this.matches=function(e,t){return(e?a:v)(n,r,t)}}}r.prototype={findNext:function(){return this.find(false)},findPrevious:function(){return this.find(true)},find:function(e){var t=this.matches(e,this.doc.clipPos(e?this.pos.from:this.pos.to));while(t&&i.cmpPos(t.from,t.to)==0){if(e){if(t.from.ch)t.from=m(t.from.line,t.from.ch-1);else if(t.from.line==this.doc.firstLine())t=null;else t=this.matches(e,this.doc.clipPos(m(t.from.line-1)))}else{if(t.to.ch<this.doc.getLine(t.to.line).length)t.to=m(t.to.line,t.to.ch+1);else if(t.to.line==this.doc.lastLine())t=null;else t=this.matches(e,m(t.to.line+1,0))}}if(t){this.pos=t;this.atOccurrence=true;return this.pos.match||true}else{var n=m(e?this.doc.firstLine():this.doc.lastLine()+1,0);this.pos={from:n,to:n};return this.atOccurrence=false}},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(e,t){if(!this.atOccurrence)return;var n=i.splitLines(e);this.doc.replaceRange(n,this.pos.from,this.pos.to,t);this.pos.to=m(this.pos.from.line+n.length-1,n[n.length-1].length+(n.length==1?this.pos.from.ch:0))}},i.defineExtension("getSearchCursor",function(e,t,n){return new r(this.doc,e,t,n)}),i.defineDocExtension("getSearchCursor",function(e,t,n){return new r(this,e,t,n)}),i.defineExtension("selectMatches",function(e,t){var n=[];var r=this.getSearchCursor(e,this.getCursor("from"),t);while(r.findNext()){if(i.cmpPos(r.to(),this.getCursor("to"))>0)break;n.push({anchor:r.from(),head:r.to()})}if(n.length)this.setSelections(n,0)})}(n(58))},function(e,t,n){var r,i,o;i=[n(0),n(52)],void 0===(o="function"==typeof(r=function(c){var n=0,s=Array.prototype.slice;return c.cleanData=function(i){return function(e){var t,n,r;for(r=0;null!=(n=e[r]);r++)try{(t=c._data(n,"events"))&&t.remove&&c(n).triggerHandler("remove")}catch(e){}i(e)}}(c.cleanData),c.widget=function(e,n,t){var r,i,o,a,s={},l=e.split(".")[0];return e=e.split(".")[1],a=l+"-"+e,t||(t=n,n=c.Widget),c.isArray(t)&&(t=c.extend.apply(null,[{}].concat(t))),c.expr[":"][a.toLowerCase()]=function(e){return!!c.data(e,a)},c[l]=c[l]||{},r=c[l][e],i=c[l][e]=function(e,t){if(!this._createWidget)return new i(e,t);arguments.length&&this._createWidget(e,t)},c.extend(i,r,{version:t.version,_proto:c.extend({},t),_childConstructors:[]}),(o=new n).options=c.widget.extend({},o.options),c.each(t,function(t,r){function i(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}c.isFunction(r)?s[t]=function(){var e,t=this._super,n=this._superApply;return this._super=i,this._superApply=o,e=r.apply(this,arguments),this._super=t,this._superApply=n,e}:s[t]=r}),i.prototype=c.widget.extend(o,{widgetEventPrefix:r&&o.widgetEventPrefix||e},s,{constructor:i,namespace:l,widgetName:e,widgetFullName:a}),r?(c.each(r._childConstructors,function(e,t){var n=t.prototype;c.widget(n.namespace+"."+n.widgetName,i,t._proto)}),delete r._childConstructors):n._childConstructors.push(i),c.widget.bridge(e,i),i},c.widget.extend=function(e){for(var t,n,r=s.call(arguments,1),i=0,o=r.length;i<o;i++)for(t in r[i])n=r[i][t],r[i].hasOwnProperty(t)&&void 0!==n&&(c.isPlainObject(n)?e[t]=c.isPlainObject(e[t])?c.widget.extend({},e[t],n):c.widget.extend({},n):e[t]=n);return e},c.widget.bridge=function(o,t){var a=t.prototype.widgetFullName||o;c.fn[o]=function(n){var e="string"==typeof n,r=s.call(arguments,1),i=this;return e?this.length||"instance"!==n?this.each(function(){var e,t=c.data(this,a);return"instance"===n?(i=t,!1):t?c.isFunction(t[n])&&"_"!==n.charAt(0)?(e=t[n].apply(t,r))!==t&&void 0!==e?(i=e&&e.jquery?i.pushStack(e.get()):e,!1):void 0:c.error("no such method '"+n+"' for "+o+" widget instance"):c.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+n+"'")}):i=void 0:(r.length&&(n=c.widget.extend.apply(null,[n].concat(r))),this.each(function(){var e=c.data(this,a);e?(e.option(n||{}),e._init&&e._init()):c.data(this,a,new t(n,this))})),i}},c.Widget=function(){},c.Widget._childConstructors=[],c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,t){t=c(t||this.defaultElement||this)[0],this.element=c(t),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=c(),this.hoverable=c(),this.focusable=c(),this.classesElementLookup={},t!==this&&(c.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=c(t.style?t.ownerDocument:t.document||t),this.window=c(this.document[0].defaultView||this.document[0].parentWindow)),this.options=c.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:c.noop,_create:c.noop,_init:c.noop,destroy:function(){var n=this;this._destroy(),c.each(this.classesElementLookup,function(e,t){n._removeClass(t,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:c.noop,widget:function(){return this.element},option:function(e,t){var n,r,i,o=e;if(0===arguments.length)return c.widget.extend({},this.options);if("string"==typeof e)if(o={},e=(n=e.split(".")).shift(),n.length){for(r=o[e]=c.widget.extend({},this.options[e]),i=0;i<n.length-1;i++)r[n[i]]=r[n[i]]||{},r=r[n[i]];if(e=n.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=t}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];o[e]=t}return this._setOptions(o),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(e){var t,n,r;for(t in e)r=this.classesElementLookup[t],e[t]!==this.options.classes[t]&&r&&r.length&&(n=c(r.get()),this._removeClass(r,t),n.addClass(this._classes({element:n,keys:t,classes:e,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(i){function e(e,t){var n,r;for(r=0;r<e.length;r++)n=a.classesElementLookup[e[r]]||c(),n=i.add?c(c.unique(n.get().concat(i.element.get()))):c(n.not(i.element).get()),a.classesElementLookup[e[r]]=n,o.push(e[r]),t&&i.classes[e[r]]&&o.push(i.classes[e[r]])}var o=[],a=this;return i=c.extend({element:this.element,classes:this.options.classes||{}},i),this._on(i.element,{remove:"_untrackClassesElement"}),i.keys&&e(i.keys.match(/\S+/g)||[],!0),i.extra&&e(i.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(n){var r=this;c.each(r.classesElementLookup,function(e,t){-1!==c.inArray(n.target,t)&&(r.classesElementLookup[e]=c(t.not(n.target).get()))})},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,r){r="boolean"==typeof r?r:n;var i="string"==typeof e||null===e,o={extra:i?t:n,keys:i?e:t,element:i?this.element:e,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(a,s,e){var l,u=this;"boolean"!=typeof a&&(e=s,s=a,a=!1),e?(s=l=c(s),this.bindings=this.bindings.add(s)):(e=s,s=this.element,l=this.widget()),c.each(e,function(e,t){function n(){if(a||!0!==u.options.disabled&&!c(this).hasClass("ui-state-disabled"))return("string"==typeof t?u[t]:t).apply(u,arguments)}var r,i,o;"string"!=typeof t&&(n.guid=t.guid=t.guid||n.guid||c.guid++),i=(r=e.match(/^([\w:-]*)\s*(.*)$/))[1]+u.eventNamespace,(o=r[2])?l.on(i,o,n):s.on(i,n)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(t).off(t),this.bindings=c(this.bindings.not(e).get()),this.focusable=c(this.focusable.not(e).get()),this.hoverable=c(this.hoverable.not(e).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(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(c(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(c(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(c(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(c(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,t,n){var r,i,o=this.options[e];if(n=n||{},(t=c.Event(t)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],i=t.originalEvent)for(r in i)r in t||(t[r]=i[r]);return this.element.trigger(t,n),!(c.isFunction(o)&&!1===o.apply(this.element[0],[t].concat(n))||t.isDefaultPrevented())}},c.each({show:"fadeIn",hide:"fadeOut"},function(o,a){c.Widget.prototype["_"+o]=function(t,e,n){var r,i;"string"==typeof e&&(e={effect:e}),i=e?!0===e||"number"==typeof e?a:e.effect||a:o,"number"==typeof(e=e||{})&&(e={duration:e}),r=!c.isEmptyObject(e),e.complete=n,e.delay&&t.delay(e.delay),r&&c.effects&&c.effects.effect[i]?t[o](e):i!==o&&t[i]?t[i](e.duration,e.easing,n):t.queue(function(e){c(this)[o](),n&&n.call(t[0]),e()})}}),c.widget})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r=n(24),i=n(20).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(20),i=n(79),o=n(104),a=n(261),s=n(37).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(179)("keys"),i=n(103);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(66);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){e.exports=n(20).document&&document.documentElement},function(e,t,i){var n=i(24),r=i(19),o=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,n,r){try{(r=i(80)(Function.call,i(63).f(Object.prototype,"__proto__").set,2))(e,[]),n=!(e instanceof Array)}catch(e){n=!0}return function(e,t){return o(e,t),n?e.__proto__=t:r(e,t),e}}({},!1):void 0),check:o}},function(e,t){e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},function(e,t,n){var o=n(24),a=n(211).set;e.exports=function(e,t,n){var r,i=t.constructor;return i!==n&&"function"==typeof i&&(r=i.prototype)!==n.prototype&&o(r)&&a&&a(e,r),e}},function(e,t,n){"use strict";var i=n(92),o=n(67);e.exports=function(e){var t=String(o(this)),n="",r=i(e);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;0<r;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||22025.465794806718<n(10)||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:-1e-6<e&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var l=n(92),u=n(67);e.exports=function(s){return function(e,t){var n,r,i=String(u(e)),o=l(t),a=i.length;return o<0||a<=o?s?"":void 0:(n=i.charCodeAt(o))<55296||56319<n||o+1===a||(r=i.charCodeAt(o+1))<56320||57343<r?s?i.charAt(o):n:s?i.slice(o,o+2):r-56320+(n-55296<<10)+65536}}},function(e,t,n){"use strict";var b=n(104),w=n(9),x=n(54),_=n(53),k=n(49),S=n(133),C=n(219),T=n(131),O=n(64),E=n(28)("iterator"),M=!([].keys&&"next"in[].keys()),D="@@iterator",A="keys",L="values",P=function(){return this};e.exports=function(e,t,n,r,i,o,a){var s,l,u,c,f,h,d,p,g,v,m,y;if(C(n,t,r),l=t+" Iterator",u=i==L,c=!(s=function(e){if(!M&&e in f)return f[e];switch(e){case A:case L:return function(){return new n(this,e)}}return function(){return new n(this,e)}}),f=e.prototype,d=(h=f[E]||f[D]||i&&f[i])||s(i),p=i?u?s("entries"):d:void 0,(g="Array"==t&&f.entries||h)&&(y=O(g.call(new e)))!==Object.prototype&&(T(y,l,!0),b||k(y,E)||_(y,E,P)),u&&h&&h.name!==L&&(c=!0,d=function(){return h.call(this)}),b&&!a||!M&&!c&&f[E]||_(f,E,d),S[t]=d,S[l]=P,i)if(v={values:u?d:s(L),keys:o?d:s(A),entries:p},a)for(m in v)m in f||x(f,m,v[m]);else w(w.P+w.F*(M||c),t,v);return v}},function(e,t,n){"use strict";var r=n(107),i=n(90),o=n(131),a={};n(53)(a,n(28)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(183),i=n(67);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){var r=n(28)("match");e.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(e){}}return!0}},function(e,t,n){var r=n(133),i=n(28)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(37),i=n(90);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(150),i=n(28)("iterator"),o=n(133);e.exports=n(79).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var u=n(45),c=n(106),f=n(40);e.exports=function(e,t,n){for(var r=u(this),i=f(r.length),o=arguments.length,a=c(1<o?t:void 0,i),s=2<o?n:void 0,l=void 0===s?i:c(s,i);a<l;)r[a++]=e;return r}},function(e,t,n){"use strict";var r=n(134),i=n(276),o=n(133),a=n(56);e.exports=n(218)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var i=n(19),o=n(55),a=n(28)("species");e.exports=function(e,t){var n,r=i(e).constructor;return void 0===r||null==(n=i(r)[a])?t:o(n)}},function(e,t,n){var r,i,o,a=n(80),s=n(182),l=n(210),u=n(205),c=n(20),f=c.process,h=c.setImmediate,d=c.clearImmediate,p=c.MessageChannel,g=0,v={},m="onreadystatechange",y=function(){var e,t=+this;v.hasOwnProperty(t)&&(e=v[t],delete v[t],e())},b=function(e){y.call(e.data)};h&&d||(h=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},d=function(e){delete v[e]},"process"==n(66)(f)?r=function(e){f.nextTick(a(y,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):r=m in u("script")?function(e){l.appendChild(u("script"))[m]=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:h,clear:d}},function(e,t,n){var s=n(20),l=n(228).set,u=s.MutationObserver||s.WebKitMutationObserver,c=s.process,f=s.Promise,h="process"==n(66)(c);e.exports=function(){var n,r,i,e,t,o,a=function(){var e,t;for(h&&(e=c.domain)&&e.exit();n;){t=n.fn,n=n.next;try{t()}catch(e){throw n?i():r=void 0,e}}r=void 0,e&&e.enter()};return i=h?function(){c.nextTick(a)}:u?(e=!0,t=document.createTextNode(""),new u(a).observe(t,{characterData:!0}),function(){t.data=e=!e}):f&&f.resolve?(o=f.resolve(),function(){o.then(a)}):function(){l.call(s,a)},function(e){var t={fn:e,next:void 0};r&&(r.next=t),n||(n=t,i()),r=t}}},function(e,t,n){"use strict";var r,i,o,a,s,l,u=n(20),c=n(36),f=n(104),h=n(188),d=n(53),p=n(111),g=n(21),v=n(110),m=n(92),y=n(40),b=n(108).f,w=n(37).f,x=n(225),_=n(131),k="ArrayBuffer",S="DataView",C="prototype",T="Wrong length!",O="Wrong index!",E=u[k],M=u[S],D=u.Math,A=u.RangeError,L=u.Infinity,P=E,N=D.abs,I=D.pow,j=D.floor,R=D.log,F=D.LN2,z="buffer",H="byteLength",W="byteOffset",B=c?"_b":z,U=c?"_l":H,q=c?"_o":W,G=function(e,t,n){var r,i,o,a=Array(n),s=8*n-t-1,l=(1<<s)-1,u=l>>1,c=23===t?I(2,-24)-I(2,-77):0,f=0,h=e<0||0===e&&1/e<0?1:0;for((e=N(e))!=e||e===L?(i=e!=e?1:0,r=l):(r=j(R(e)/F),e*(o=I(2,-r))<1&&(r--,o*=2),2<=(e+=1<=r+u?c/o:c*I(2,1-u))*o&&(r++,o/=2),l<=r+u?(i=0,r=l):1<=r+u?(i=(e*o-1)*I(2,t),r+=u):(i=e*I(2,u-1)*I(2,t),r=0));8<=t;a[f++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;0<s;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*h,a},Y=function(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,l=n-1,u=e[l--],c=127&u;for(u>>=7;0<s;c=256*c+e[l],l--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=t;0<s;r=256*r+e[l],l--,s-=8);if(0===c)c=1-a;else{if(c===o)return r?NaN:u?-L:L;r+=I(2,t),c-=a}return(u?-1:1)*r*I(2,c-t)},V=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return[255&e]},$=function(e){return[255&e,e>>8&255]},X=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return G(e,52,8)},Q=function(e){return G(e,23,4)},Z=function(e,t,n){w(e[C],t,{get:function(){return this[n]}})},ee=function(e,t,n,r){var i,o,a,s=+n,l=m(s);if(s!=l||l<0||l+t>e[U])throw A(O);return i=e[B]._b,o=l+e[q],a=i.slice(o,o+t),r?a:a.reverse()},te=function(e,t,n,r,i,o){var a,s,l,u,c=+n,f=m(c);if(c!=f||f<0||f+t>e[U])throw A(O);for(a=e[B]._b,s=f+e[q],l=r(+i),u=0;u<t;u++)a[s+u]=l[o?u:t-u-1]},ne=function(e,t){v(e,E,k);var n=+t,r=y(n);if(n!=r)throw A(T);return r};if(h.ABV){if(!g(function(){new E})||!g(function(){new E(.5)})){for(r=(E=function(e){return new P(ne(this,e))})[C]=P[C],i=b(P),o=0;i.length>o;)(a=i[o++])in E||d(E,a,P[a]);f||(r.constructor=E)}s=new M(new E(2)),l=M[C].setInt8,s.setInt8(0,2147483648),s.setInt8(1,2147483649),!s.getInt8(0)&&s.getInt8(1)||p(M[C],{setInt8:function(e,t){l.call(this,e,t<<24>>24)},setUint8:function(e,t){l.call(this,e,t<<24>>24)}},!0)}else E=function(e){var t=ne(this,e);this._b=x.call(Array(t),0),this[U]=t},M=function(e,t,n){v(this,M,S),v(e,E,S);var r=e[U],i=m(t);if(i<0||r<i)throw A("Wrong offset!");if(r<i+(n=void 0===n?r-i:y(n)))throw A(T);this[B]=e,this[q]=i,this[U]=n},c&&(Z(E,H,"_l"),Z(M,z,"_b"),Z(M,H,"_l"),Z(M,W,"_o")),p(M[C],{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e,t){var n=ee(this,2,e,t);return(n[1]<<8|n[0])<<16>>16},getUint16:function(e,t){var n=ee(this,2,e,t);return n[1]<<8|n[0]},getInt32:function(e,t){return V(ee(this,4,e,t))},getUint32:function(e,t){return V(ee(this,4,e,t))>>>0},getFloat32:function(e,t){return Y(ee(this,4,e,t),23,4)},getFloat64:function(e,t){return Y(ee(this,8,e,t),52,8)},setInt8:function(e,t){te(this,1,e,K,t)},setUint8:function(e,t){te(this,1,e,K,t)},setInt16:function(e,t,n){te(this,2,e,$,t,n)},setUint16:function(e,t,n){te(this,2,e,$,t,n)},setInt32:function(e,t,n){te(this,4,e,X,t,n)},setUint32:function(e,t,n){te(this,4,e,X,t,n)},setFloat32:function(e,t,n){te(this,4,e,Q,t,n)},setFloat64:function(e,t,n){te(this,8,e,J,t,n)}});_(E,k),_(M,S),d(M[C],h.VIEW,!0),t[k]=E,t[S]=M},,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){var r,i,o;!function(){"use strict";i=[n(0)],void 0===(o="function"==typeof(r=function(Fe,ze){"use strict";var r={beforeShow:e,move:e,change:e,show:e,hide:e,color:false,flat:false,showInput:false,allowEmpty:false,showButtons:true,clickoutFiresChange:true,showInitial:false,showPalette:false,showPaletteOnly:false,hideAfterPaletteSelect:false,togglePaletteOnly:false,showSelectionPalette:true,localStorageKey:false,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:false,className:"",containerClassName:"",replacerClassName:"",showAlpha:false,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:false,offset:null},He=[],We=!!/msie/i.exec(window.navigator.userAgent),Be=function(){function e(e,t){return!!~(""+e).indexOf(t)}var t=document.createElement("div");var n=t.style;n.cssText="background-color:rgba(0,0,0,.5)";return e(n.backgroundColor,"rgba")||e(n.backgroundColor,"hsla")}(),Ue=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),qe=function(){var e="";if(We){for(var t=1;t<=6;t++){e+="<div class='sp-"+t+"'></div>"}}return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",e,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}();function Ge(e,t,n,r){var i=[];for(var o=0;o<e.length;o++){var a=e[o];if(a){var s=tinycolor(a);var l=s.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";l+=tinycolor.equals(t,a)?" sp-thumb-active":"";var u=s.toString(r.preferredFormat||"rgb");var c=Be?"background-color:"+s.toRgbString():"filter:"+s.toFilter();i.push('<span title="'+u+'" data-color="'+s.toRgbString()+'" class="'+l+'"><span class="sp-thumb-inner" style="'+c+';" /></span>')}else{var f="sp-clear-display";i.push(Fe("<div />").append(Fe('<span data-color="" style="background-color:transparent;" class="'+f+'"></span>').attr("title",r.noColorSelectedText)).html())}}return"<div class='sp-cf "+n+"'>"+i.join("")+"</div>"}function Ye(){for(var e=0;e<He.length;e++){if(He[e]){He[e].hide()}}}function Ve(e,t){var n=Fe.extend({},r,e);n.callbacks={move:i(n.move,t),change:i(n.change,t),show:i(n.show,t),hide:i(n.hide,t),beforeShow:i(n.beforeShow,t)};return n}function o(e,t){var u=Ve(t,e),r=u.flat,n=u.showSelectionPalette,i=u.localStorageKey,o=u.theme,a=u.callbacks,s=Je(Ae,10),l=false,c=false,f=0,h=0,d=0,p=0,g=0,v=0,m=0,y=0,b=0,w=0,x=0,_=1,k=[],S=[],C={},T=u.selectionPalette.slice(0),O=u.maxSelectionSize,E="sp-dragging",M=null;var D=e.ownerDocument,A=D.body,L=Fe(e),P=false,N=Fe(qe,D).addClass(o),I=N.find(".sp-picker-container"),j=N.find(".sp-color"),R=N.find(".sp-dragger"),F=N.find(".sp-hue"),z=N.find(".sp-slider"),H=N.find(".sp-alpha-inner"),W=N.find(".sp-alpha"),B=N.find(".sp-alpha-handle"),U=N.find(".sp-input"),q=N.find(".sp-palette"),G=N.find(".sp-initial"),Y=N.find(".sp-cancel"),V=N.find(".sp-clear"),K=N.find(".sp-choose"),$=N.find(".sp-palette-toggle"),X=L.is("input"),J=X&&L.attr("type")==="color"&&Qe(),Q=X&&!r,Z=Q?Fe(Ue).addClass(o).addClass(u.className).addClass(u.replacerClassName):Fe([]),ee=Q?Z:L,te=Z.find(".sp-preview-inner"),ne=u.color||X&&L.val(),re=false,ie=u.preferredFormat,oe=!u.showButtons||u.clickoutFiresChange,ae=!ne,se=u.allowEmpty&&!J;function le(){if(u.showPaletteOnly){u.showPalette=true}$.text(u.showPaletteOnly?u.togglePaletteMoreText:u.togglePaletteLessText);if(u.palette){k=u.palette.slice(0);S=Fe.isArray(k[0])?k:[k];C={};for(var e=0;e<S.length;e++){for(var t=0;t<S[e].length;t++){var n=tinycolor(S[e][t]).toRgbString();C[n]=true}}}N.toggleClass("sp-flat",r);N.toggleClass("sp-input-disabled",!u.showInput);N.toggleClass("sp-alpha-enabled",u.showAlpha);N.toggleClass("sp-clear-enabled",se);N.toggleClass("sp-buttons-disabled",!u.showButtons);N.toggleClass("sp-palette-buttons-disabled",!u.togglePaletteOnly);N.toggleClass("sp-palette-disabled",!u.showPalette);N.toggleClass("sp-palette-only",u.showPaletteOnly);N.toggleClass("sp-initial-disabled",!u.showInitial);N.addClass(u.className).addClass(u.containerClassName);Ae()}function ue(){if(We){N.find("*:not(input)").attr("unselectable","on")}le();if(Q){L.after(Z).hide()}if(!se){V.hide()}if(r){L.after(N).hide()}else{var e=u.appendTo==="parent"?L.parent():Fe(u.appendTo);if(e.length!==1){e=Fe("body")}e.append(N)}ce();ee.bind("click.spectrum touchstart.spectrum",function(e){if(!P){ye()}e.stopPropagation();if(!Fe(e.target).is("input")){e.preventDefault()}});if(L.is(":disabled")||u.disabled===true){Ie()}N.click($e);U.change(me);U.bind("paste",function(){setTimeout(me,1)});U.keydown(function(e){if(e.keyCode==13){me()}});Y.text(u.cancelText);Y.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();ke();_e()});V.attr("title",u.clearText);V.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();ae=true;Oe();if(r){De(true)}});K.text(u.chooseText);K.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();if(We&&U.is(":focus")){U.trigger("change")}if(Te()){De(true);_e()}});$.text(u.showPaletteOnly?u.togglePaletteMoreText:u.togglePaletteLessText);$.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();u.showPaletteOnly=!u.showPaletteOnly;if(!u.showPaletteOnly&&!r){N.css("left","-="+(I.outerWidth(true)+5))}le()});Xe(W,function(e,t,n){_=e/v;ae=false;if(n.shiftKey){_=Math.round(_*10)/10}Oe()},ge,ve);Xe(F,function(e,t){b=parseFloat(t/p);ae=false;if(!u.showAlpha){_=1}Oe()},ge,ve);Xe(j,function(e,t,n){if(!n.shiftKey){M=null}else if(!M){var r=w*f;var i=h-x*h;var o=Math.abs(e-r)>Math.abs(t-i);M=o?"x":"y"}var a=!M||M==="x";var s=!M||M==="y";if(a){w=parseFloat(e/f)}if(s){x=parseFloat((h-t)/h)}ae=false;if(!u.showAlpha){_=1}Oe()},ge,ve);if(!!ne){Se(ne);Ee();ie=u.preferredFormat||tinycolor(ne).format;fe(ne)}else{Ee()}if(r){be()}function t(e){if(e.data&&e.data.ignore){Se(Fe(e.target).closest(".sp-thumb-el").data("color"));Oe()}else{Se(Fe(e.target).closest(".sp-thumb-el").data("color"));Oe();De(true);if(u.hideAfterPaletteSelect){_e()}}return false}var n=We?"mousedown.spectrum":"click.spectrum touchstart.spectrum";q.delegate(".sp-thumb-el",n,t);G.delegate(".sp-thumb-el:nth-child(1)",n,{ignore:true},t)}function ce(){if(i&&window.localStorage){try{var e=window.localStorage[i].split(",#");if(e.length>1){delete window.localStorage[i];Fe.each(e,function(e,t){fe(t)})}}catch(e){}try{T=window.localStorage[i].split(";")}catch(e){}}}function fe(e){if(n){var t=tinycolor(e).toRgbString();if(!C[t]&&Fe.inArray(t,T)===-1){T.push(t);while(T.length>O){T.shift()}}if(i&&window.localStorage){try{window.localStorage[i]=T.join(";")}catch(e){}}}}function he(){var e=[];if(u.showPalette){for(var t=0;t<T.length;t++){var n=tinycolor(T[t]).toRgbString();if(!C[n]){e.push(T[t])}}}return e.reverse().slice(0,u.maxSelectionSize)}function de(){var n=Ce();var e=Fe.map(S,function(e,t){return Ge(e,n,"sp-palette-row sp-palette-row-"+t,u)});ce();if(T){e.push(Ge(he(),n,"sp-palette-row sp-palette-row-selection",u))}q.html(e.join(""))}function pe(){if(u.showInitial){var e=re;var t=Ce();G.html(Ge([e,t],t,"sp-palette-row-initial",u))}}function ge(){if(h<=0||f<=0||p<=0){Ae()}c=true;N.addClass(E);M=null;L.trigger("dragstart.spectrum",[Ce()])}function ve(){c=false;N.removeClass(E);L.trigger("dragstop.spectrum",[Ce()])}function me(){var e=U.val();if((e===null||e==="")&&se){Se(null);De(true)}else{var t=tinycolor(e);if(t.isValid()){Se(t);De(true)}else{U.addClass("sp-validation-error")}}}function ye(){if(l){_e()}else{be()}}function be(){var e=Fe.Event("beforeShow.spectrum");if(l){Ae();return}L.trigger(e,[Ce()]);if(a.beforeShow(Ce())===false||e.isDefaultPrevented()){return}Ye();l=true;Fe(D).bind("keydown.spectrum",we);Fe(D).bind("click.spectrum",xe);Fe(window).bind("resize.spectrum",s);Z.addClass("sp-active");N.removeClass("sp-hidden");Ae();Ee();re=Ce();pe();a.show(re);L.trigger("show.spectrum",[re])}function we(e){if(e.keyCode===27){_e()}}function xe(e){if(e.button==2){return}if(c){return}if(oe){De(true)}else{ke()}_e()}function _e(){if(!l||r){return}l=false;Fe(D).unbind("keydown.spectrum",we);Fe(D).unbind("click.spectrum",xe);Fe(window).unbind("resize.spectrum",s);Z.removeClass("sp-active");N.addClass("sp-hidden");a.hide(Ce());L.trigger("hide.spectrum",[Ce()])}function ke(){Se(re,true)}function Se(e,t){if(tinycolor.equals(e,Ce())){Ee();return}var n,r;if(!e&&se){ae=true}else{ae=false;n=tinycolor(e);r=n.toHsv();b=r.h%360/360;w=r.s;x=r.v;_=r.a}Ee();if(n&&n.isValid()&&!t){ie=u.preferredFormat||n.getFormat()}}function Ce(e){e=e||{};if(se&&ae){return null}return tinycolor.fromRatio({h:b,s:w,v:x,a:Math.round(_*100)/100},{format:e.format||ie})}function Te(){return!U.hasClass("sp-validation-error")}function Oe(){Ee();a.move(Ce());L.trigger("move.spectrum",[Ce()])}function Ee(){U.removeClass("sp-validation-error");Me();var e=tinycolor.fromRatio({h:b,s:1,v:1});j.css("background-color",e.toHexString());var t=ie;if(_<1&&!(_===0&&t==="name")){if(t==="hex"||t==="hex3"||t==="hex6"||t==="name"){t="rgb"}}var n=Ce({format:t}),r="";te.removeClass("sp-clear-display");te.css("background-color","transparent");if(!n&&se){te.addClass("sp-clear-display")}else{var i=n.toHexString(),o=n.toRgbString();if(Be||n.alpha===1){te.css("background-color",o)}else{te.css("background-color","transparent");te.css("filter",n.toFilter())}if(u.showAlpha){var a=n.toRgb();a.a=0;var s=tinycolor(a).toRgbString();var l="linear-gradient(left, "+s+", "+i+")";if(We){H.css("filter",tinycolor(s).toFilter({gradientType:1},i))}else{H.css("background","-webkit-"+l);H.css("background","-moz-"+l);H.css("background","-ms-"+l);H.css("background","linear-gradient(to right, "+s+", "+i+")")}}r=n.toString(t)}if(u.showInput){U.val(r)}if(u.showPalette){de()}pe()}function Me(){var e=w;var t=x;if(se&&ae){B.hide();z.hide();R.hide()}else{B.show();z.show();R.show();var n=e*f;var r=h-t*h;n=Math.max(-d,Math.min(f-d,n-d));r=Math.max(-d,Math.min(h-d,r-d));R.css({top:r+"px",left:n+"px"});var i=_*v;B.css({left:i-m/2+"px"});var o=b*p;z.css({top:o-y+"px"})}}function De(e){var t=Ce(),n="",r=!tinycolor.equals(t,re);if(t){n=t.toString(ie);fe(t)}if(X){L.val(n)}if(e&&r){a.change(t);L.trigger("change",[t])}}function Ae(){if(!l){return}f=j.width();h=j.height();d=R.height();g=F.width();p=F.height();y=z.height();v=W.width();m=B.width();if(!r){N.css("position","absolute");if(u.offset){N.offset(u.offset)}else{N.offset(Ke(N,ee))}}Me();if(u.showPalette){de()}L.trigger("reflow.spectrum")}function Le(){L.show();ee.unbind("click.spectrum touchstart.spectrum");N.remove();Z.remove();He[Re.id]=null}function Pe(e,t){if(e===ze){return Fe.extend({},u)}if(t===ze){return u[e]}u[e]=t;if(e==="preferredFormat"){ie=u.preferredFormat}le()}function Ne(){P=false;L.attr("disabled",false);ee.removeClass("sp-disabled")}function Ie(){_e();P=true;L.attr("disabled",true);ee.addClass("sp-disabled")}function je(e){u.offset=e;Ae()}ue();var Re={show:be,hide:_e,toggle:ye,reflow:Ae,option:Pe,enable:Ne,disable:Ie,offset:je,set:function(e){Se(e);De()},get:Ce,destroy:Le,container:N};Re.id=He.push(Re)-1;return Re}function Ke(e,t){var n=0;var r=e.outerWidth();var i=e.outerHeight();var o=t.outerHeight();var a=e[0].ownerDocument;var s=a.documentElement;var l=s.clientWidth+Fe(a).scrollLeft();var u=s.clientHeight+Fe(a).scrollTop();var c=t.offset();c.top+=o;c.left-=Math.min(c.left,c.left+r>l&&l>r?Math.abs(c.left+r-l):0);c.top-=Math.min(c.top,c.top+i>u&&u>i?Math.abs(i+o-n):n);return c}function e(){}function $e(e){e.stopPropagation()}function i(e,t){var n=Array.prototype.slice;var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}function Xe(a,s,n,e){s=s||function(){};n=n||function(){};e=e||function(){};var l=document;var u=false;var c={};var f=0;var h=0;var d="ontouchstart"in window;var r={};r["selectstart"]=p;r["dragstart"]=p;r["touchmove mousemove"]=i;r["touchend mouseup"]=g;function p(e){if(e.stopPropagation){e.stopPropagation()}if(e.preventDefault){e.preventDefault()}e.returnValue=false}function i(e){if(u){if(We&&l.documentMode<9&&!e.button){return g()}var t=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0];var n=t&&t.pageX||e.pageX;var r=t&&t.pageY||e.pageY;var i=Math.max(0,Math.min(n-c.left,h));var o=Math.max(0,Math.min(r-c.top,f));if(d){p(e)}s.apply(a,[i,o,e])}}function t(e){var t=e.which?e.which==3:e.button==2;if(!t&&!u){if(n.apply(a,arguments)!==false){u=true;f=Fe(a).height();h=Fe(a).width();c=Fe(a).offset();Fe(l).bind(r);Fe(l.body).addClass("sp-dragging");i(e);p(e)}}}function g(){if(u){Fe(l).unbind(r);Fe(l.body).removeClass("sp-dragging");setTimeout(function(){e.apply(a,arguments)},0)}u=false}Fe(a).bind("touchstart mousedown",t)}function Je(r,i,o){var a;return function(){var e=this,t=arguments;var n=function(){a=null;r.apply(e,t)};if(o)clearTimeout(a);if(o||!a)a=setTimeout(n,i)}}function Qe(){return Fe.fn.spectrum.inputTypeColorSupport()}var a="spectrum.id";Fe.fn.spectrum=function(n,e){if(typeof n=="string"){var r=this;var i=Array.prototype.slice.call(arguments,1);this.each(function(){var e=He[Fe(this).data(a)];if(e){var t=e[n];if(!t){throw new Error("Spectrum: no such method: '"+n+"'")}if(n=="get"){r=e.get()}else if(n=="container"){r=e.container}else if(n=="option"){r=e.option.apply(e,i)}else if(n=="destroy"){e.destroy();Fe(this).removeData(a)}else{t.apply(e,i)}}});return r}return this.spectrum("destroy").each(function(){var e=Fe.extend({},n,Fe(this).data());var t=o(this,e);Fe(this).data(a,t.id)})},Fe.fn.spectrum.load=true,Fe.fn.spectrum.loadOpts={},Fe.fn.spectrum.draggable=Xe,Fe.fn.spectrum.defaults=r,Fe.fn.spectrum.inputTypeColorSupport=function e(){if(typeof e._cachedResult==="undefined"){var t=Fe("<input type='color'/>")[0];e._cachedResult=t.type==="color"&&t.value!==""}return e._cachedResult},Fe.spectrum={},Fe.spectrum.localization={},Fe.spectrum.palettes={},Fe.fn.spectrum.processNativeColorInputs=function(){var e=Fe("input[type=color]");if(e.length&&!Qe()){e.spectrum({preferredFormat:"hex6"})}},function(){var r=/^[\s,#]+/,i=/\s+$/,o=0,h=Math,a=h.round,u=h.min,c=h.max,e=h.random;var f=function(e,t){e=e?e:"";t=t||{};if(e instanceof f){return e}if(!(this instanceof f)){return new f(e,t)}var n=s(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format;this._gradientType=t.gradientType;if(this._r<1){this._r=a(this._r)}if(this._g<1){this._g=a(this._g)}if(this._b<1){this._b=a(this._b)}this._ok=n.ok;this._tc_id=o++};f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},setAlpha:function(e){this._a=P(e);this._roundA=a(100*this._a)/100;return this},toHsv:function(){var e=g(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=g(this._r,this._g,this._b);var t=a(e.h*360),n=a(e.s*100),r=a(e.v*100);return this._a==1?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b);var t=a(e.h*360),n=a(e.s*100),r=a(e.l*100);return this._a==1?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return t(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(){return m(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(N(this._r,255)*100)+"%",g:a(N(this._g,255)*100)+"%",b:a(N(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(N(this._r,255)*100)+"%, "+a(N(this._g,255)*100)+"%, "+a(N(this._b,255)*100)+"%)":"rgba("+a(N(this._r,255)*100)+"%, "+a(N(this._g,255)*100)+"%, "+a(N(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){if(this._a===0){return"transparent"}if(this._a<1){return false}return A[t(this._r,this._g,this._b,true)]||false},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a);var n=t;var r=this._gradientType?"GradientType = 1, ":"";if(e){var i=f(e);n=i.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=false;var r=this._a<1&&this._a>=0;var i=!t&&r&&(e==="hex"||e==="hex6"||e==="hex3"||e==="name");if(i){if(e==="name"&&this._a===0){return this.toName()}return this.toRgbString()}if(e==="rgb"){n=this.toRgbString()}if(e==="prgb"){n=this.toPercentageRgbString()}if(e==="hex"||e==="hex6"){n=this.toHexString()}if(e==="hex3"){n=this.toHexString(true)}if(e==="hex8"){n=this.toHex8String()}if(e==="name"){n=this.toName()}if(e==="hsl"){n=this.toHslString()}if(e==="hsv"){n=this.toHsvString()}return n||this.toHexString()},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));this._r=n._r;this._g=n._g;this._b=n._b;this.setAlpha(n._a);return this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(n,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}};f.fromRatio=function(e,t){if(typeof e=="object"){var n={};for(var r in e){if(e.hasOwnProperty(r)){if(r==="a"){n[r]=e[r]}else{n[r]=H(e[r])}}}e=n}return f(e,t)};function s(e){var t={r:0,g:0,b:0};var n=1;var r=false;var i=false;if(typeof e=="string"){e=q(e)}if(typeof e=="object"){if(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")){t=l(e.r,e.g,e.b);r=true;i=String(e.r).substr(-1)==="%"?"prgb":"rgb"}else if(e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("v")){e.s=H(e.s);e.v=H(e.v);t=v(e.h,e.s,e.v);r=true;i="hsv"}else if(e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("l")){e.s=H(e.s);e.l=H(e.l);t=p(e.h,e.s,e.l);r=true;i="hsl"}if(e.hasOwnProperty("a")){n=e.a}}n=P(n);return{ok:r,format:e.format||i,r:u(255,c(t.r,0)),g:u(255,c(t.g,0)),b:u(255,c(t.b,0)),a:n}}function l(e,t,n){return{r:N(e,255)*255,g:N(t,255)*255,b:N(n,255)*255}}function d(e,t,n){e=N(e,255);t=N(t,255);n=N(n,255);var r=c(e,t,n),i=u(e,t,n);var o,a,s=(r+i)/2;if(r==i){o=a=0}else{var l=r-i;a=s>.5?l/(2-r-i):l/(r+i);switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:a,l:s}}function p(e,t,n){var r,i,o;e=N(e,360);t=N(t,100);n=N(n,100);function a(e,t,n){if(n<0)n+=1;if(n>1)n-=1;if(n<1/6)return e+(t-e)*6*n;if(n<1/2)return t;if(n<2/3)return e+(t-e)*(2/3-n)*6;return e}if(t===0){r=i=o=n}else{var s=n<.5?n*(1+t):n+t-n*t;var l=2*n-s;r=a(l,s,e+1/3);i=a(l,s,e);o=a(l,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function g(e,t,n){e=N(e,255);t=N(t,255);n=N(n,255);var r=c(e,t,n),i=u(e,t,n);var o,a,s=r;var l=r-i;a=r===0?0:l/r;if(r==i){o=0}else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:a,v:s}}function v(e,t,n){e=N(e,360)*6;t=N(t,100);n=N(n,100);var r=h.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],f=[o,o,s,n,n,a][l];return{r:u*255,g:c*255,b:f*255}}function t(e,t,n,r){var i=[z(a(e).toString(16)),z(a(t).toString(16)),z(a(n).toString(16))];if(r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)){return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)}return i.join("")}function m(e,t,n,r){var i=[z(W(r)),z(a(e).toString(16)),z(a(t).toString(16)),z(a(n).toString(16))];return i.join("")}f.equals=function(e,t){if(!e||!t){return false}return f(e).toRgbString()==f(t).toRgbString()};f.random=function(){return f.fromRatio({r:e(),g:e(),b:e()})};function n(e,t){t=t===0?0:t||10;var n=f(e).toHsl();n.s-=t/100;n.s=I(n.s);return f(n)}function y(e,t){t=t===0?0:t||10;var n=f(e).toHsl();n.s+=t/100;n.s=I(n.s);return f(n)}function b(e){return f(e).desaturate(100)}function w(e,t){t=t===0?0:t||10;var n=f(e).toHsl();n.l+=t/100;n.l=I(n.l);return f(n)}function x(e,t){t=t===0?0:t||10;var n=f(e).toRgb();n.r=c(0,u(255,n.r-a(255*-(t/100))));n.g=c(0,u(255,n.g-a(255*-(t/100))));n.b=c(0,u(255,n.b-a(255*-(t/100))));return f(n)}function _(e,t){t=t===0?0:t||10;var n=f(e).toHsl();n.l-=t/100;n.l=I(n.l);return f(n)}function k(e,t){var n=f(e).toHsl();var r=(a(n.h)+t)%360;n.h=r<0?360+r:r;return f(n)}function S(e){var t=f(e).toHsl();t.h=(t.h+180)%360;return f(t)}function C(e){var t=f(e).toHsl();var n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]}function T(e){var t=f(e).toHsl();var n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]}function O(e){var t=f(e).toHsl();var n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]}function E(e,t,n){t=t||6;n=n||30;var r=f(e).toHsl();var i=360/n;var o=[f(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;){r.h=(r.h+i)%360;o.push(f(r))}return o}function M(e,t){t=t||6;var n=f(e).toHsv();var r=n.h,i=n.s,o=n.v;var a=[];var s=1/t;while(t--){a.push(f({h:r,s:i,v:o}));o=(o+s)%1}return a}f.mix=function(e,t,n){n=n===0?0:n||50;var r=f(e).toRgb();var i=f(t).toRgb();var o=n/100;var a=o*2-1;var s=i.a-r.a;var l;if(a*s==-1){l=a}else{l=(a+s)/(1+a*s)}l=(l+1)/2;var u=1-l;var c={r:i.r*l+r.r*u,g:i.g*l+r.g*u,b:i.b*l+r.b*u,a:i.a*o+r.a*(1-o)};return f(c)};f.readability=function(e,t){var n=f(e);var r=f(t);var i=n.toRgb();var o=r.toRgb();var a=n.getBrightness();var s=r.getBrightness();var l=Math.max(i.r,o.r)-Math.min(i.r,o.r)+Math.max(i.g,o.g)-Math.min(i.g,o.g)+Math.max(i.b,o.b)-Math.min(i.b,o.b);return{brightness:Math.abs(a-s),color:l}};f.isReadable=function(e,t){var n=f.readability(e,t);return n.brightness>125&&n.color>500};f.mostReadable=function(e,t){var n=null;var r=0;var i=false;for(var o=0;o<t.length;o++){var a=f.readability(e,t[o]);var s=a.brightness>125&&a.color>500;var l=3*(a.brightness/125)+a.color/500;if(s&&!i||s&&i&&l>r||!s&&!i&&l>r){i=s;r=l;n=f(t[o])}}return n};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var A=f.hexNames=L(D);function L(e){var t={};for(var n in e){if(e.hasOwnProperty(n)){t[e[n]]=n}}return t}function P(e){e=parseFloat(e);if(isNaN(e)||e<0||e>1){e=1}return e}function N(e,t){if(R(e)){e="100%"}var n=F(e);e=u(t,c(0,parseFloat(e)));if(n){e=parseInt(e*t,10)/100}if(h.abs(e-t)<1e-6){return 1}return e%t/parseFloat(t)}function I(e){return u(1,c(0,e))}function j(e){return parseInt(e,16)}function R(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function F(e){return typeof e==="string"&&e.indexOf("%")!=-1}function z(e){return e.length==1?"0"+e:""+e}function H(e){if(e<=1){e=e*100+"%"}return e}function W(e){return Math.round(parseFloat(e)*255).toString(16)}function B(e){return j(e)/255}var U=function(){var e="[-\\+]?\\d+%?";var t="[-\\+]?\\d*\\.\\d+%?";var n="(?:"+t+")|(?:"+e+")";var r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";var i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function q(e){e=e.replace(r,"").replace(i,"").toLowerCase();var t=false;if(D[e]){e=D[e];t=true}else if(e=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var n;if(n=U.rgb.exec(e)){return{r:n[1],g:n[2],b:n[3]}}if(n=U.rgba.exec(e)){return{r:n[1],g:n[2],b:n[3],a:n[4]}}if(n=U.hsl.exec(e)){return{h:n[1],s:n[2],l:n[3]}}if(n=U.hsla.exec(e)){return{h:n[1],s:n[2],l:n[3],a:n[4]}}if(n=U.hsv.exec(e)){return{h:n[1],s:n[2],v:n[3]}}if(n=U.hsva.exec(e)){return{h:n[1],s:n[2],v:n[3],a:n[4]}}if(n=U.hex8.exec(e)){return{a:B(n[1]),r:j(n[2]),g:j(n[3]),b:j(n[4]),format:t?"name":"hex8"}}if(n=U.hex6.exec(e)){return{r:j(n[1]),g:j(n[2]),b:j(n[3]),format:t?"name":"hex"}}if(n=U.hex3.exec(e)){return{r:j(n[1]+""+n[1]),g:j(n[2]+""+n[2]),b:j(n[3]+""+n[3]),format:t?"name":"hex"}}return false}window.tinycolor=f}(),Fe(function(){if(Fe.fn.spectrum.load){Fe.fn.spectrum.processNativeColorInputs()}})})?r.apply(t,i):r)||(e.exports=o)}()},,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,l;function u(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function c(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e,t));return n.fontSize=!t.flat&&t.fontSize>10*t.width?10*t.width:t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}Object.defineProperty(t,"__esModule",{value:!0}),i=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e},o=n(145),a=n(146),s=r(a),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,r(n(62)).default),i(c,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(e,t){return this.text.substr(e,t)}},{key:"leftEncode",value:function(e,t){return(0,s.default)(e,t)}},{key:"rightText",value:function(e,t){return this.text.substr(e,t)}},{key:"rightEncode",value:function(e,t){return(0,s.default)(e,t)}},{key:"encodeGuarded",value:function(){var e={fontSize:this.fontSize},t={height:this.guardHeight};return[{data:o.SIDE_BIN,options:t},{data:this.leftEncode(),text:this.leftText(),options:e},{data:o.MIDDLE_BIN,options:t},{data:this.rightEncode(),text:this.rightText(),options:e},{data:o.SIDE_BIN,options:t}]}},{key:"encodeFlat",value:function(){return{data:[o.SIDE_BIN,this.leftEncode(),o.MIDDLE_BIN,this.rightEncode(),o.SIDE_BIN].join(""),text:this.text}}}]),l=c,t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t,n=0;for(t=1;t<11;t+=2)n+=parseInt(e[t]);for(t=0;t<11;t+=2)n+=3*parseInt(e[t]);return(10-n%10)%10}var o,a,s,l;function u(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function c(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),-1!==e.search(/^[0-9]{11}$/)&&(e+=i(e));var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e,t));return n.displayValue=t.displayValue,t.fontSize>10*t.width?n.fontSize=10*t.width:n.fontSize=t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}Object.defineProperty(t,"__esModule",{value:!0}),o=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e},t.checksum=i,a=n(146),s=r(a),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,r(n(62)).default),o(c,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==i(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=(0,s.default)(this.data.substr(0,6),"LLLLLL"),e+="01010",e+=(0,s.default)(this.data.substr(6,6),"RRRRRR"),{data:e+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101"+(0,s.default)(this.data[0],"L"),options:{height:this.guardHeight}}),e.push({data:(0,s.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:"01010",options:{height:this.guardHeight}}),e.push({data:(0,s.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,s.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),e}}]),l=c,t.default=l},function(e,t,n){"use strict";var r,i,o,a,s;function l(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e},i=n(341),o=n(62),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,((s=o)&&s.__esModule?s:{default:s}).default),r(u,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var t=this,e=this.data.match(/.{2}/g).map(function(e){return t.encodePair(e)}).join("");return{data:i.START_BIN+e+i.END_BIN,text:this.text}}},{key:"encodePair",value:function(e){var n=i.BINARIES[e[1]];return i.BINARIES[e[0]].split("").map(function(e,t){return("1"===e?"111":"1")+("1"===n[t]?"000":"0")}).join("")}}]),a=u,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(t in n)n.hasOwnProperty(t)&&"string"==typeof e[t=n[t]]&&(e[t]=parseInt(e[t],10));return"string"==typeof e.displayValue&&(e.displayValue="false"!=e.displayValue),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};t.default=r},function(e,t,n){"use strict";function l(e,t){return t.height+(t.displayValue&&0<e.text.length?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function u(e,t,n){if(n.displayValue&&t<e){if("center"==n.textAlign)return Math.floor((e-t)/2);if("left"==n.textAlign)return 0;if("right"==n.textAlign)return Math.floor(e-t)}return 0}function c(e,t,n){var r;if(n)r=n;else{if("undefined"==typeof document)return 0;r=document.createElement("canvas").getContext("2d")}return r.font=t.fontOptions+" "+t.fontSize+"px "+t.font,r.measureText(e).width}var r,f,i;Object.defineProperty(t,"__esModule",{value:!0}),t.getTotalWidthOfEncodings=t.calculateEncodingAttributes=t.getBarcodePadding=t.getEncodingHeight=t.getMaximumHeightOfEncodings=void 0,r=n(177),f=(i=r)&&i.__esModule?i:{default:i},t.getMaximumHeightOfEncodings=function(e){var t,n=0;for(t=0;t<e.length;t++)e[t].height>n&&(n=e[t].height);return n},t.getEncodingHeight=l,t.getBarcodePadding=u,t.calculateEncodingAttributes=function(e,t,n){var r,i,o,a,s;for(r=0;r<e.length;r++)i=e[r],a=(o=(0,f.default)(t,i.options)).displayValue?c(i.text,o,n):0,s=i.data.length*o.width,i.width=Math.ceil(Math.max(a,s)),i.height=l(i,o),i.barcodePadding=u(a,s,o)},t.getTotalWidthOfEncodings=function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].width;return n}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a,s,l;function u(e,t){r(this,u);var n=i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this));return n.name="InvalidInputException",n.symbology=e,n.input=t,n.message='"'+n.input+'" is not a valid input for '+n.symbology,n}function c(){r(this,c);var e=i(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return e.name="InvalidElementException",e.message="Not supported type to render on",e}function f(){r(this,f);var e=i(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return e.name="NoElementException",e.message="No element to render on.",e}Object.defineProperty(t,"__esModule",{value:!0}),o(u,Error),a=u,o(c,Error),s=c,o(f,Error),l=f,t.InvalidInputException=a,t.InvalidElementException=s,t.NoElementException=l},,,,function(e,t,n){var r,i,o;i=[n(0),n(386),n(52),n(204)],void 0===(o="function"==typeof(r=function(i){var o=false;return i(document).on("mouseup",function(){o=!1}),i.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(e){if(!0===i.data(e.target,t.widgetName+".preventClickEvent"))return i.removeData(e.target,t.widgetName+".preventClickEvent"),e.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(e){if(!o){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,n=1===e.which,r=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&i(e.target).closest(this.options.cancel).length;return!(n&&!r&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===i.data(e.target,this.widgetName+".preventClickEvent")&&i.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),o=!0))}},_mouseMove:function(e){if(this._mouseMoved){if(i.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&i.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,o=!1,e.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}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[n(0),n(52)],void 0===(o="function"==typeof(r=function(o){return o.ui.plugin={add:function(e,t,n){var r,i=o.ui[e].prototype;for(r in n){i.plugins[r]=i.plugins[r]||[];i.plugins[r].push([t,n[r]])}},call:function(e,t,n,r){var i,o=e.plugins[t];if(!o){return}if(!r&&(!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)){return}for(i=0;i<o.length;i++){if(e.options[o[i][0]]){o[i][1].apply(e.element,n)}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){e.exports=!n(36)&&!n(21)(function(){return 7!=Object.defineProperty(n(205)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){t.f=n(28)},function(e,t,n){var a=n(49),s=n(56),l=n(180)(!1),u=n(207)("IE_PROTO");e.exports=function(e,t){var n,r=s(e),i=0,o=[];for(n in r)n!=u&&a(r,n)&&o.push(n);for(;t.length>i;)a(r,n=t[i++])&&(~l(o,n)||o.push(n));return o}},function(e,t,n){var a=n(37),s=n(19),l=n(105);e.exports=n(36)?Object.defineProperties:function(e,t){s(e);for(var n,r=l(t),i=r.length,o=0;o<i;)a.f(e,n=r[o++],t[n]);return e}},function(e,t,n){var r=n(56),i=n(108).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},function(e,t,n){"use strict";var h=n(105),d=n(181),p=n(149),g=n(45),v=n(148),i=Object.assign;e.exports=!i||n(21)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=i({},e)[n]||Object.keys(i({},t)).join("")!=r})?function(e,t){for(var n,r,i,o,a,s=g(e),l=arguments.length,u=1,c=d.f,f=p.f;u<l;)for(n=v(arguments[u++]),i=(r=c?h(n).concat(c(n)):h(n)).length,o=0;o<i;)f.call(n,a=r[o++])&&(s[a]=n[a]);return s}:i},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var o=n(55),a=n(24),s=n(182),l=[].slice,u={},c=function(e,t,n){if(!(t in u)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";u[t]=Function("F,a","return new F("+r.join(",")+")")}return u[t](e,n)};e.exports=Function.bind||function(t){var n=o(this),r=l.call(arguments,1),i=function(){var e=r.concat(l.call(arguments));return this instanceof i?c(n,e.length,e):s(n,e,t)};return a(n.prototype)&&(i.prototype=n.prototype),i}},function(e,t,n){var r=n(20).parseInt,i=n(132).trim,o=n(212),a=/^[\-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(20).parseFloat,i=n(132).trim;e.exports=1/r(n(212)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(66);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(24),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return-1e-8<(e=+e)&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var o=n(19);e.exports=function(t,e,n,r){try{return r?e(o(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&o(i.call(t)),e}}},function(e,t,n){var c=n(55),f=n(45),h=n(148),d=n(40);e.exports=function(e,t,n,r,i){c(t);var o=f(e),a=h(o),s=d(o.length),l=i?s-1:0,u=i?-1:1;if(n<2)for(;;){if(l in a){r=a[l],l+=u;break}if(l+=u,i?l<0:s<=l)throw TypeError("Reduce of empty array with no initial value")}for(;i?0<=l:l<s;l+=u)l in a&&(r=t(r,a[l],l,o));return r}},function(e,t,n){"use strict";var c=n(45),f=n(106),h=n(40);e.exports=[].copyWithin||function(e,t,n){var r=c(this),i=h(r.length),o=f(e,i),a=f(t,i),s=2<arguments.length?n:void 0,l=Math.min((void 0===s?i:f(s,i))-a,i-o),u=1;for(a<o&&o<a+l&&(u=-1,a+=l-1,o+=l-1);0<l--;)a in r?r[o]=r[a]:delete r[o],o+=u,a+=u;return r}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){n(36)&&"g"!=/./g.flags&&n(37).f(RegExp.prototype,"flags",{configurable:!0,get:n(185)})},function(e,t,n){"use strict";var r=n(279);e.exports=n(187)("Map",function(t){return function(e){return t(this,0<arguments.length?e:void 0)}},{get:function(e){var t=r.getEntry(this,e);return t&&t.v},set:function(e,t){return r.def(this,0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var a=n(37).f,s=n(107),l=n(111),u=n(80),c=n(110),f=n(67),h=n(135),r=n(218),i=n(276),o=n(109),d=n(36),p=n(91).fastKey,g=d?"_s":"size",v=function(e,t){var n,r=p(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,n,r,i){var o=e(function(e,t){c(e,o,n,"_i"),e._i=s(null),e._f=void 0,e._l=void 0,e[g]=0,null!=t&&h(t,r,e[i],e)});return l(o.prototype,{clear:function(){for(var e=this._i,t=this._f;t;t=t.n)t.r=!0,t.p&&(t.p=t.p.n=void 0),delete e[t.i];this._f=this._l=void 0,this[g]=0},delete:function(e){var t,n,r=this,i=v(r,e);return i&&(t=i.n,n=i.p,delete r._i[i.i],i.r=!0,n&&(n.n=t),t&&(t.p=n),r._f==i&&(r._f=t),r._l==i&&(r._l=n),r[g]--),!!i},forEach:function(e,t){c(this,o,"forEach");for(var n,r=u(e,1<arguments.length?t:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!v(this,e)}}),d&&a(o.prototype,"size",{get:function(){return f(this[g])}}),o},def:function(e,t,n){var r,i,o=v(e,t);return o?o.v=n:(e._l=o={i:i=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[g]++,"F"!==i&&(e._i[i]=o)),e},getEntry:v,setStrong:function(e,t,n){r(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?i(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,i(1))},n?"entries":"values",!n,!0),o(t)}}},function(e,t,n){"use strict";var r=n(279);e.exports=n(187)("Set",function(t){return function(e){return t(this,0<arguments.length?e:void 0)}},{add:function(e){return r.def(this,e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var o,r=n(74)(0),a=n(54),i=n(91),s=n(265),l=n(282),u=n(24),c=i.getWeak,f=Object.isExtensible,h=l.ufstore,d={},p=function(t){return function(e){return t(this,0<arguments.length?e:void 0)}},g={get:function(e){if(u(e)){var t=c(e);return!0===t?h(this).get(e):t?t[this._i]:void 0}},set:function(e,t){return l.def(this,e,t)}},v=e.exports=n(187)("WeakMap",p,g,l,!0,!0);7!=(new v).set((Object.freeze||Object)(d),7).get(d)&&(s((o=l.getConstructor(p)).prototype,g),i.NEED=!0,r(["delete","has","get","set"],function(r){var e=v.prototype,i=e[r];a(e,r,function(e,t){if(!u(e)||f(e))return i.call(this,e,t);this._f||(this._f=new o);var n=this._f[r](e,t);return"set"==r?this:n})}))},function(e,t,n){"use strict";var a=n(111),s=n(91).getWeak,i=n(19),l=n(24),u=n(110),c=n(135),r=n(74),f=n(49),o=r(5),h=r(6),d=0,p=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},v=function(e,t){return o(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(t){var e=h(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},e.exports={getConstructor:function(e,n,r,i){var o=e(function(e,t){u(e,o,n,"_i"),e._i=d++,e._l=void 0,null!=t&&c(t,r,e[i],e)});return a(o.prototype,{delete:function(e){if(!l(e))return!1;var t=s(e);return!0===t?p(this).delete(e):t&&f(t,this._i)&&delete t[this._i]},has:function(e){if(!l(e))return!1;var t=s(e);return!0===t?p(this).has(e):t&&f(t,this._i)}}),o},def:function(e,t,n){var r=s(i(t),!0);return!0===r?p(e).set(t,n):r[e._i]=n,e},ufstore:p}},function(e,t,n){var r=n(108),i=n(181),o=n(19),a=n(20).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var c=n(40),f=n(214),h=n(67);e.exports=function(e,t,n,r){var i,o,a=String(h(e)),s=a.length,l=void 0===n?" ":String(n),u=c(t);return u<=s||""==l?a:(i=u-s,(o=f.call(l,Math.ceil(i/l.length))).length>i&&(o=o.slice(0,i)),r?o+a:a+o)}},function(e,t,n){var l=n(105),u=n(56),c=n(149).f;e.exports=function(s){return function(e){for(var t,n=u(e),r=l(n),i=r.length,o=0,a=[];o<i;)c.call(n,t=r[o++])&&a.push(s?[t,n[t]]:n[t]);return a}}},function(e,t,n){var r=n(150),i=n(287);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,n){var r=n(135);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},,,,,,function(e,et,t){(function(e,t){function d(e,t){return e.set(t[0],t[1]),e}function p(e,t){return e.add(t),e}function g(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function v(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function m(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function n(t,n){return function(e){return t(n(e))}}function y(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function r(e){var t,n=-1,r=e?e.length:0;for(this.clear();++n<r;)t=e[n],this.set(t[0],t[1])}function i(e){var t,n=-1,r=e?e.length:0;for(this.clear();++n<r;)t=e[n],this.set(t[0],t[1])}function o(e){var t,n=-1,r=e?e.length:0;for(this.clear();++n<r;)t=e[n],this.set(t[0],t[1])}function b(e){this.__data__=new i(e)}function a(e,t){var n,r=ve(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&T(e)}(e)&&B.call(e,"callee")&&(!X.call(e,"callee")||U.call(e)==_e)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=r.length,o=!!i;for(n in e)!t&&!B.call(e,n)||o&&("length"==n||f(n,i))||r.push(n);return r}function w(e,t,n){var r=e[t];B.call(e,t)&&C(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function s(e,t){for(var n=e.length;n--;)if(C(e[n][0],t))return n;return-1}function x(n,r,i,o,e,t,a){var s,l,u,c,f,h;if(o&&(s=t?o(n,e,t,a):o(n)),void 0!==s)return s;if(!E(n))return n;if(l=ve(n)){if(s=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&B.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(n),!r)return function(e,t){var n=-1,r=e.length;t=t||Array(r);for(;++n<r;)t[n]=e[n];return t}(n,s)}else{if(c=(u=ge(n))==Oe||u==Ee,me(n))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(n,r);if(u==Ae||u==_e||c&&!t){if(v(n))return t?n:{};if(s=function(e){return"function"!=typeof e.constructor||S(e)?{}:function(e){return E(e)?$(e):{}}(K(e))}(c?{}:n),!r)return function(e,t){return k(e,pe(e),t)}(n,function(e,t){return e&&k(t,M(t),e)}(s,n))}else{if(!Ze[u])return t?n:{};s=function(e,t,n,r){var i=e.constructor;switch(t){case Fe:return _(e);case Se:case Ce:return new i(+e);case ze:return function(e,t){var n=t?_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case He:case We:case Be:case Ue:case qe:case Ge:case Ye:case Ve:case Ke:return function(e,t){var n=t?_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case Me:return function(e,t,n){return g(t?n(m(e),!0):m(e),d,new e.constructor)}(e,r,n);case De:case Ie:return new i(e);case Pe:return function(e){var t=new e.constructor(e.source,Xe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case Ne:return function(e,t,n){return g(t?n(y(e),!0):y(e),p,new e.constructor)}(e,r,n);case je:return function(e){return de?Object(de.call(e)):{}}(e)}}(n,u,x,r)}}return(f=(a=a||new b).get(n))?f:(a.set(n,s),l||(h=i?function(e){return function(e,t,n){var r=t(e);return ve(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,M,pe)}(n):M(n)),function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(h||n,function(e,t){h&&(e=n[t=e]),w(s,t,x(e,r,i,o,t,n,a))}),s)}function l(e){return!(!E(e)||function(e){return!!H&&H in e}(e))&&(O(e)||v(e)?q:Je).test(h(e))}function _(e){var t=new e.constructor(e.byteLength);return new V(t).set(new V(e)),t}function k(e,t,n,r){var i,o,a,s;for(n=n||{},i=-1,o=t.length;++i<o;)w(n,a=t[i],void 0===(s=r?r(n[a],e[a],a,n,e):void 0)?e[a]:s);return n}function u(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function c(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return l(n)?n:void 0}function f(e,t){return!!(t=null==t?xe:t)&&("number"==typeof e||Qe.test(e))&&-1<e&&e%1==0&&e<t}function S(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||F)}function h(e){if(null!=e){try{return W.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function C(e,t){return e===t||e!=e&&t!=t}function T(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=xe}(e.length)&&!O(e)}function O(e){var t=E(e)?U.call(e):"";return t==Oe||t==Ee}function E(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function M(e){return T(e)?a(e):function(e){var t,n;if(!S(e))return ee(e);for(n in t=[],Object(e))B.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var D,A,L,P,N,I,j,R,F,z,H,W,B,U,q,G,Y,V,K,$,X,J,Q,Z,ee,te,ne,re,ie,oe,ae,se,le,ue,ce,fe,he,de,pe,ge,ve,me,ye,be=200,we="__lodash_hash_undefined__",xe=9007199254740991,_e="[object Arguments]",ke="[object Array]",Se="[object Boolean]",Ce="[object Date]",Te="[object Error]",Oe="[object Function]",Ee="[object GeneratorFunction]",Me="[object Map]",De="[object Number]",Ae="[object Object]",Le="[object Promise]",Pe="[object RegExp]",Ne="[object Set]",Ie="[object String]",je="[object Symbol]",Re="[object WeakMap]",Fe="[object ArrayBuffer]",ze="[object DataView]",He="[object Float32Array]",We="[object Float64Array]",Be="[object Int8Array]",Ue="[object Int16Array]",qe="[object Int32Array]",Ge="[object Uint8Array]",Ye="[object Uint8ClampedArray]",Ve="[object Uint16Array]",Ke="[object Uint32Array]",$e=/[\\^$.*+?()[\]{}|]/g,Xe=/\w*$/,Je=/^\[object .+?Constructor\]$/,Qe=/^(?:0|[1-9]\d*)$/,Ze={};Ze[_e]=Ze[ke]=Ze[Fe]=Ze[ze]=Ze[Se]=Ze[Ce]=Ze[He]=Ze[We]=Ze[Be]=Ze[Ue]=Ze[qe]=Ze[Me]=Ze[De]=Ze[Ae]=Ze[Pe]=Ze[Ne]=Ze[Ie]=Ze[je]=Ze[Ge]=Ze[Ye]=Ze[Ve]=Ze[Ke]=!0,Ze[Te]=Ze[Oe]=Ze[Re]=!1,D="object"==typeof e&&e&&e.Object===Object&&e,A="object"==typeof self&&self&&self.Object===Object&&self,L=D||A||Function("return this")(),I=(N=(P=et&&!et.nodeType&&et)&&"object"==typeof t&&t&&!t.nodeType&&t)&&N.exports===P,j=Array.prototype,R=Function.prototype,F=Object.prototype,z=L["__core-js_shared__"],ye=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""),H=ye?"Symbol(src)_1."+ye:"",W=R.toString,B=F.hasOwnProperty,U=F.toString,q=RegExp("^"+W.call(B).replace($e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=I?L.Buffer:void 0,Y=L.Symbol,V=L.Uint8Array,K=n(Object.getPrototypeOf,Object),$=Object.create,X=F.propertyIsEnumerable,J=j.splice,Q=Object.getOwnPropertySymbols,Z=G?G.isBuffer:void 0,ee=n(Object.keys,Object),te=c(L,"DataView"),ne=c(L,"Map"),re=c(L,"Promise"),ie=c(L,"Set"),oe=c(L,"WeakMap"),ae=c(Object,"create"),se=h(te),le=h(ne),ue=h(re),ce=h(ie),fe=h(oe),he=Y?Y.prototype:void 0,de=he?he.valueOf:void 0,r.prototype.clear=function(){this.__data__=ae?ae(null):{}},r.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},r.prototype.get=function(e){var t,n=this.__data__;return ae?(t=n[e])===we?void 0:t:B.call(n,e)?n[e]:void 0},r.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:B.call(t,e)},r.prototype.set=function(e,t){return this.__data__[e]=ae&&void 0===t?we:t,this},i.prototype.clear=function(){this.__data__=[]},i.prototype.delete=function(e){var t=this.__data__,n=s(t,e);return!(n<0)&&(n==t.length-1?t.pop():J.call(t,n,1),!0)},i.prototype.get=function(e){var t=this.__data__,n=s(t,e);return n<0?void 0:t[n][1]},i.prototype.has=function(e){return-1<s(this.__data__,e)},i.prototype.set=function(e,t){var n=this.__data__,r=s(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},o.prototype.clear=function(){this.__data__={hash:new r,map:new(ne||i),string:new r}},o.prototype.delete=function(e){return u(this,e).delete(e)},o.prototype.get=function(e){return u(this,e).get(e)},o.prototype.has=function(e){return u(this,e).has(e)},o.prototype.set=function(e,t){return u(this,e).set(e,t),this},b.prototype.clear=function(){this.__data__=new i},b.prototype.delete=function(e){return this.__data__.delete(e)},b.prototype.get=function(e){return this.__data__.get(e)},b.prototype.has=function(e){return this.__data__.has(e)},b.prototype.set=function(e,t){var n,r=this.__data__;if(r instanceof i){if(n=r.__data__,!ne||n.length<be-1)return n.push([e,t]),this;r=this.__data__=new o(n)}return r.set(e,t),this},pe=Q?n(Q,Object):function(){return[]},ge=function(e){return U.call(e)},(te&&ge(new te(new ArrayBuffer(1)))!=ze||ne&&ge(new ne)!=Me||re&&ge(re.resolve())!=Le||ie&&ge(new ie)!=Ne||oe&&ge(new oe)!=Re)&&(ge=function(e){var t=U.call(e),n=t==Ae?e.constructor:void 0,r=n?h(n):void 0;if(r)switch(r){case se:return ze;case le:return Me;case ue:return Le;case ce:return Ne;case fe:return Re}return t}),ve=Array.isArray,me=Z||function(){return!1},t.exports=function(e){return x(e,!0,!0)}}).call(this,t(174),t(320)(e))},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,,,,function(T,e,O){"use strict";(function(r){function e(e){return e&&e.__esModule?e:{default:e}}function t(a,s){S.prototype[s]=S.prototype[s.toUpperCase()]=S.prototype[s.toLowerCase()]=function(r,i){var o=this;return o._errorHandler.wrapBarcodeCall(function(){var e,t,n;return i.text=void 0===i.text?void 0:""+i.text,e=(0,c.default)(o._options,i),e=(0,y.default)(e),t=a[s],n=l(r,t,e),o._encodings.push(n),o})}}function l(e,t,n){var r,i,o;if(!(r=new t(e=""+e,n)).valid())throw new x.InvalidInputException(r.constructor.name,e);for(i=r.encode(),i=(0,h.default)(i),o=0;o<i.length;o++)i[o].options=(0,c.default)(n,i[o].options);return i}function o(){return s.default.CODE128?"CODE128":Object.keys(s.default)[0]}function a(e,t,n){var r;for(t=(0,h.default)(t),r=0;r<t.length;r++)t[r].options=(0,c.default)(n,t[r].options),(0,p.default)(t[r].options);(0,p.default)(n),new e.renderer(e.element,t,n).render(),e.afterRender&&e.afterRender()}var n,i=O(326),s=e(i),u=O(177),c=e(u),f=O(351),h=e(f),d=O(352),p=e(d),g=O(353),v=e(g),m=O(251),y=e(m),b=O(359),w=e(b),x=O(254),_=O(252),k=e(_),S=function(){},C=function(e,t,n){var r=new S;if(void 0===e)throw Error("No element to render on was provided.");return r._renderProperties=(0,v.default)(e),r._encodings=[],r._options=k.default,r._errorHandler=new w.default(r),void 0!==t&&((n=n||{}).format||(n.format=o()),r.options(n)[n.format](t,n).render()),r};for(n in C.getModule=function(e){return s.default[e]},s.default)s.default.hasOwnProperty(n)&&t(s.default,n);S.prototype.options=function(e){return this._options=(0,c.default)(this._options,e),this},S.prototype.blank=function(e){var t=new Array(e+1).join("0");return this._encodings.push({data:t}),this},S.prototype.init=function(){var r,e,i;if(this._renderProperties)for(e in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties)r=this._renderProperties[e],"auto"==(i=(0,c.default)(this._options,r.options)).format&&(i.format=o()),this._errorHandler.wrapBarcodeCall(function(){var e=i.value,t=s.default[i.format.toUpperCase()],n=l(e,t,i);a(r,n,i)})},S.prototype.render=function(){if(!this._renderProperties)throw new x.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)a(this._renderProperties[e],this._encodings,this._options);else a(this._renderProperties,this._encodings,this._options);return this},S.prototype._defaults=k.default,"undefined"!=typeof window&&(window.JsBarcode=C),void 0!==r&&(r.fn.JsBarcode=function(e,t){var n=[];return r(this).each(function(){n.push(this)}),C(n,e,t)}),T.exports=C}).call(this,O(0))},function(e,t,n){"use strict";var r,i,o,a,s,l,u,c;Object.defineProperty(t,"__esModule",{value:!0}),r=n(327),i=n(328),o=n(334),a=n(340),s=n(343),l=n(348),u=n(349),c=n(350),t.default={CODE39:r.CODE39,CODE128:i.CODE128,CODE128A:i.CODE128A,CODE128B:i.CODE128B,CODE128C:i.CODE128C,EAN13:o.EAN13,EAN8:o.EAN8,EAN5:o.EAN5,EAN2:o.EAN2,UPC:o.UPC,UPCE:o.UPCE,ITF14:a.ITF14,ITF:a.ITF,MSI:s.MSI,MSI10:s.MSI10,MSI11:s.MSI11,MSI1010:s.MSI1010,MSI1110:s.MSI1110,pharmacode:l.pharmacode,codabar:u.codabar,GenericBarcode:c.GenericBarcode}},function(e,t,n){"use strict";function r(e){return function(e){return u[e].toString(2)}(i(e))}function i(e){return l.indexOf(e)}var o,a,s,l,u,c;function f(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function h(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),e=e.toUpperCase(),t.mod43&&(e+=function(e){return l[e]}(function(e){var t,n=0;for(t=0;t<e.length;t++)n+=i(e[t]);return n%=43}(e))),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t.CODE39=void 0,o=function(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e},a=n(62),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(h,((c=a)&&c.__esModule?c:{default:c}).default),o(h,[{key:"encode",value:function(){var e,t=r("*");for(e=0;e<this.data.length;e++)t+=r(this.data[e])+"0";return{data:t+=r("*"),text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),s=h,l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],u=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770],t.CODE39=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.CODE128C=t.CODE128B=t.CODE128A=t.CODE128=void 0,i=r(n(329)),o=r(n(331)),a=r(n(332)),s=r(n(333)),t.CODE128=i.default,t.CODE128A=o.default,t.CODE128B=a.default,t.CODE128C=s.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o,a,s,l;function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),n=/^[\x00-\x7F\xC8-\xD3]+$/.test(e)?i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,(0,s.default)(e),t)):i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e,t)),i(n)}Object.defineProperty(t,"__esModule",{value:!0}),o=r(n(175)),a=n(330),s=r(a),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,o.default),l=u,t.default=l},function(e,t,n){"use strict";function o(e,t){var n,r=t?s.A_CHARS:s.B_CHARS,i=e.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));return i?i[1]+String.fromCharCode(204)+a(e.substring(i[1].length)):(n=e.match(new RegExp("^"+r+"+"))[0]).length===e.length?e:n+String.fromCharCode(t?205:206)+o(e.substring(n.length),!t)}function a(e){var t,n=u(e),r=n.length;return r===e.length?e:(e=e.substring(r),t=i(e)>=l(e),n+String.fromCharCode(t?206:205)+o(e,t))}var s,i,l,u;Object.defineProperty(t,"__esModule",{value:!0}),s=n(144),i=function(e){return e.match(new RegExp("^"+s.A_CHARS+"*"))[0].length},l=function(e){return e.match(new RegExp("^"+s.B_CHARS+"*"))[0].length},u=function(e){return e.match(new RegExp("^"+s.C_CHARS+"*"))[0]},t.default=function(e){var t,n=u(e).length;return(2<=n?s.C_START_CHAR+a(e):((t=i(e)>l(e))?s.A_START_CHAR:s.B_START_CHAR)+o(e,t)).replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(e,t){return String.fromCharCode(203)+t})}},function(e,t,n){"use strict";var r,i,o,a,s,l;function u(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function c(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,a.A_START_CHAR+e,t))}Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e},i=n(175),o=(l=i)&&l.__esModule?l:{default:l},a=n(144),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,o.default),r(c,[{key:"valid",value:function(){return new RegExp("^"+a.A_CHARS+"+$").test(this.data)}}]),s=c,t.default=s},function(e,t,n){"use strict";var r,i,o,a,s,l;function u(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function c(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,a.B_START_CHAR+e,t))}Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e},i=n(175),o=(l=i)&&l.__esModule?l:{default:l},a=n(144),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,o.default),r(c,[{key:"valid",value:function(){return new RegExp("^"+a.B_CHARS+"+$").test(this.data)}}]),s=c,t.default=s},function(e,t,n){"use strict";var r,i,o,a,s,l;function u(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function c(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,a.C_START_CHAR+e,t))}Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e},i=n(175),o=(l=i)&&l.__esModule?l:{default:l},a=n(144),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,o.default),r(c,[{key:"valid",value:function(){return new RegExp("^"+a.C_CHARS+"+$").test(this.data)}}]),s=c,t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,l,u;Object.defineProperty(t,"__esModule",{value:!0}),t.UPCE=t.UPC=t.EAN2=t.EAN5=t.EAN8=t.EAN13=void 0,i=r(n(335)),o=r(n(336)),a=r(n(337)),s=r(n(338)),l=r(n(249)),u=r(n(339)),t.EAN13=i.default,t.EAN8=o.default,t.EAN5=a.default,t.EAN2=s.default,t.UPC=l.default,t.UPCE=u.default},function(e,t,n){"use strict";var r,i,o,a,s,l,u,c;function f(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function h(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),-1!==e.search(/^[0-9]{12}$/)&&(e+=l(e));var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,t));return n.lastChar=t.lastChar,n}Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e},i=function e(t,n,r){var i,o,a;return null===t&&(t=Function.prototype),void 0===(i=Object.getOwnPropertyDescriptor(t,n))?null===(o=Object.getPrototypeOf(t))?void 0:e(o,n,r):"value"in i?i.value:void 0!==(a=i.get)?a.call(r):void 0},o=n(145),a=n(248),s=(c=a)&&c.__esModule?c:{default:c},l=function(e){return(10-e.substr(0,12).split("").map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+3*t:e+t},0)%10)%10},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(h,s.default),r(h,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===l(this.data)}},{key:"leftText",value:function(){return i(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var e=this.data.substr(1,6),t=o.EAN13_STRUCTURE[this.data[0]];return i(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"leftEncode",this).call(this,e,t)}},{key:"rightText",value:function(){return i(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var e=this.data.substr(7,6);return i(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"rightEncode",this).call(this,e,"RRRRRR")}},{key:"encodeGuarded",value:function(){var e=i(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(e.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(e.push({data:"00"}),e.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),e}}]),u=h,t.default=u},function(e,t,n){"use strict";var r,i,o,a,s,l,u;function c(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function f(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),-1!==e.search(/^[0-9]{7}$/)&&(e+=s(e)),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,t))}Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e},i=function e(t,n,r){var i,o,a;return null===t&&(t=Function.prototype),void 0===(i=Object.getOwnPropertyDescriptor(t,n))?null===(o=Object.getPrototypeOf(t))?void 0:e(o,n,r):"value"in i?i.value:void 0!==(a=i.get)?a.call(r):void 0},o=n(248),a=(u=o)&&u.__esModule?u:{default:u},s=function(e){return(10-e.substr(0,7).split("").map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+t:e+3*t},0)%10)%10},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(f,a.default),r(f,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===s(this.data)}},{key:"leftText",value:function(){return i(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var e=this.data.substr(0,4);return i(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"leftEncode",this).call(this,e,"LLLL")}},{key:"rightText",value:function(){return i(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var e=this.data.substr(4,4);return i(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"rightEncode",this).call(this,e,"RRRR")}}]),l=f,t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,l,u,c;function f(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function h(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,t))}Object.defineProperty(t,"__esModule",{value:!0}),i=function(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e},o=n(145),a=n(146),s=r(a),l=r(n(62)),u=function(e){return e.split("").map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+9*t:e+3*t},0)%10},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(h,l.default),i(h,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var e=o.EAN5_STRUCTURE[u(this.data)];return{data:"1011"+(0,s.default)(this.data,e,"01"),text:this.text}}}]),c=h,t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,l;function u(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function c(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e,t))}Object.defineProperty(t,"__esModule",{value:!0}),i=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e},o=n(145),a=n(146),s=r(a),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,r(n(62)).default),i(c,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var e=o.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,s.default)(this.data,e,"01"),text:this.text}}}]),l=c,t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){var n,r,i=parseInt(e[e.length-1]),o=f[i],a="",s=0;for(n=0;n<o.length;n++)a+="X"===(r=o[n])?e[s++]:r;return""+(a=""+t+a)+(0,c.checksum)(a)}var a,s,l,u,c,f,h,d;function p(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function g(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);var n=i(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,e,t));if(n.isValid=!1,-1!==e.search(/^[0-9]{6}$/))n.middleDigits=e,n.upcA=o(e,"0"),n.text=t.text||""+n.upcA[0]+e+n.upcA[n.upcA.length-1],n.isValid=!0;else{if(-1===e.search(/^[01][0-9]{7}$/))return i(n);if(n.middleDigits=e.substring(1,e.length-1),n.upcA=o(n.middleDigits,e[0]),n.upcA[n.upcA.length-1]!==e[e.length-1])return i(n);n.isValid=!0}return n.displayValue=t.displayValue,t.fontSize>10*t.width?n.fontSize=10*t.width:n.fontSize=t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}Object.defineProperty(t,"__esModule",{value:!0}),a=function(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e},s=n(146),l=r(s),u=r(n(62)),c=n(249),f=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],h=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(g,u.default),a(g,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=this.encodeMiddleDigits(),{data:e+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101",options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),e}},{key:"encodeMiddleDigits",value:function(){var e=this.upcA[0],t=this.upcA[this.upcA.length-1],n=h[parseInt(t)][parseInt(e)];return(0,l.default)(this.middleDigits,n)}}]),d=g,t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ITF14=t.ITF=void 0,i=r(n(250)),o=r(n(342)),t.ITF=i.default,t.ITF14=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.START_BIN="1010",t.END_BIN="11101",t.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},function(e,t,n){"use strict";var r,i,o,a,s,l;function u(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function c(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),-1!==e.search(/^[0-9]{13}$/)&&(e+=a(e)),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e,t))}Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e},i=n(250),o=(l=i)&&l.__esModule?l:{default:l},a=function(e){var t=e.substr(0,13).split("").map(function(e){return parseInt(e,10)}).reduce(function(e,t,n){return e+t*(3-n%2*2)},0);return 10*Math.ceil(t/10)-t},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,o.default),r(c,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===a(this.data)}}]),s=c,t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,l;Object.defineProperty(t,"__esModule",{value:!0}),t.MSI1110=t.MSI1010=t.MSI11=t.MSI10=t.MSI=void 0,i=r(n(147)),o=r(n(344)),a=r(n(345)),s=r(n(346)),l=r(n(347)),t.MSI=i.default,t.MSI10=o.default,t.MSI11=a.default,t.MSI1010=s.default,t.MSI1110=l.default},function(e,t,n){"use strict";var r,i,o,a,s;function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e+(0,o.mod10)(e),t))}Object.defineProperty(t,"__esModule",{value:!0}),r=n(147),i=(s=r)&&s.__esModule?s:{default:s},o=n(176),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,i.default),a=l,t.default=a},function(e,t,n){"use strict";var r,i,o,a,s;function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e+(0,o.mod11)(e),t))}Object.defineProperty(t,"__esModule",{value:!0}),r=n(147),i=(s=r)&&s.__esModule?s:{default:s},o=n(176),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,i.default),a=l,t.default=a},function(e,t,n){"use strict";var r,i,o,a,s;function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),e+=(0,o.mod10)(e),e+=(0,o.mod10)(e),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e,t))}Object.defineProperty(t,"__esModule",{value:!0}),r=n(147),i=(s=r)&&s.__esModule?s:{default:s},o=n(176),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,i.default),a=l,t.default=a},function(e,t,n){"use strict";var r,i,o,a,s;function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),e+=(0,o.mod11)(e),e+=(0,o.mod10)(e),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e,t))}Object.defineProperty(t,"__esModule",{value:!0}),r=n(147),i=(s=r)&&s.__esModule?s:{default:s},o=n(176),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,i.default),a=l,t.default=a},function(e,t,n){"use strict";var r,i,o,a;function s(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e,t));return n.number=parseInt(e,10),n}Object.defineProperty(t,"__esModule",{value:!0}),t.pharmacode=void 0,r=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e},i=n(62),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,((a=i)&&a.__esModule?a:{default:a}).default),r(l,[{key:"encode",value:function(){for(var e=this.number,t="";!isNaN(e)&&0!=e;)e=e%2==0?(t="11100"+t,(e-2)/2):(t="100"+t,(e-1)/2);return{data:t=t.slice(0,-2),text:this.text}}},{key:"valid",value:function(){return 3<=this.number&&this.number<=131070}}]),o=l,t.pharmacode=o},function(e,t,n){"use strict";var r,i,o,a;function s(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),0===e.search(/^[0-9\-\$\:\.\+\/]+$/)&&(e="A"+e+"A");var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e.toUpperCase(),t));return n.text=n.options.text||n.text.replace(/[A-D]/g,""),n}Object.defineProperty(t,"__esModule",{value:!0}),t.codabar=void 0,r=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e},i=n(62),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,((a=i)&&a.__esModule?a:{default:a}).default),r(l,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){var e,t=[],n=this.getEncodings();for(e=0;e<this.data.length;e++)t.push(n[this.data.charAt(e)]),e!==this.data.length-1&&t.push("0");return{text:this.text,data:t.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"101100110011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),o=l,t.codabar=o},function(e,t,n){"use strict";var r,i,o,a;function s(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function l(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t.GenericBarcode=void 0,r=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e},i=n(62),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,((a=i)&&a.__esModule?a:{default:a}).default),r(l,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),o=l,t.GenericBarcode=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var r=[];return function e(t){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else t.text=t.text||"",t.data=t.data||"",r.push(t)}(e),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t,n;if("string"==typeof e)return function(e){var t,n,r=document.querySelectorAll(e);{if(0===r.length)return;for(t=[],n=0;n<r.length;n++)t.push(i(r[n]));return t}}(e);if(Array.isArray(e)){for(t=[],n=0;n<e.length;n++)t.push(i(e[n]));return t}if("undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLImageElement)return function(e){var t=document.createElement("canvas");return{element:t,options:(0,s.default)(e),renderer:u.default.CanvasRenderer,afterRender:function(){e.setAttribute("src",t.toDataURL())}}}(e);if(e&&"svg"===e.nodeName||"undefined"!=typeof SVGElement&&e instanceof SVGElement)return{element:e,options:(0,s.default)(e),renderer:u.default.SVGRenderer};if("undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement)return{element:e,options:(0,s.default)(e),renderer:u.default.CanvasRenderer};if(e&&e.getContext)return{element:e,renderer:u.default.CanvasRenderer};if(e&&"object"===(void 0===e?"undefined":o(e))&&!e.nodeName)return{element:e,renderer:u.default.ObjectRenderer};throw new c.InvalidElementException}var o,a,s,l,u,c;Object.defineProperty(t,"__esModule",{value:!0}),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(354),s=r(a),l=n(355),u=r(l),c=n(254),t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(251),o=r(i),a=n(252),s=r(a),t.default=function(e){var t,n={};for(t in s.default)s.default.hasOwnProperty(t)&&(e.hasAttribute("jsbarcode-"+t.toLowerCase())&&(n[t]=e.getAttribute("jsbarcode-"+t.toLowerCase())),e.hasAttribute("data-"+t.toLowerCase())&&(n[t]=e.getAttribute("data-"+t.toLowerCase())));return n.value=e.getAttribute("jsbarcode-value")||e.getAttribute("data-value"),n=(0,o.default)(n)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(356)),o=r(n(357)),a=r(n(358)),t.default={CanvasRenderer:i.default,SVGRenderer:o.default,ObjectRenderer:a.default}},function(e,t,n){"use strict";var r,i,o,a,s,l;function u(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function c(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),this.canvas=e,this.encodings=t,this.options=n}Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e},i=n(177),o=(l=i)&&l.__esModule?l:{default:l},a=n(253),r(c,[{key:"render",value:function(){var e,t;if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");for(this.prepareCanvas(),e=0;e<this.encodings.length;e++)t=(0,o.default)(this.options,this.encodings[e].options),this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e]);this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var e,t,n=this.canvas.getContext("2d");n.save(),(0,a.calculateEncodingAttributes)(this.encodings,this.options,n),e=(0,a.getTotalWidthOfEncodings)(this.encodings),t=(0,a.getMaximumHeightOfEncodings)(this.encodings),this.canvas.width=e+this.options.marginLeft+this.options.marginRight,this.canvas.height=t,n.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(n.fillStyle=this.options.background,n.fillRect(0,0,this.canvas.width,this.canvas.height)),n.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(e,t){var n,r,i,o=this.canvas.getContext("2d"),a=t.data;for(n="top"==e.textPosition?e.marginTop+e.fontSize+e.textMargin:e.marginTop,o.fillStyle=e.lineColor,r=0;r<a.length;r++)i=r*e.width+t.barcodePadding,"1"===a[r]?o.fillRect(i,n,e.width,e.height):a[r]&&o.fillRect(i,n,e.width,e.height*a[r])}},{key:"drawCanvasText",value:function(e,t){var n,r,i=this.canvas.getContext("2d"),o=e.fontOptions+" "+e.fontSize+"px "+e.font;e.displayValue&&(r="top"==e.textPosition?e.marginTop+e.fontSize-e.textMargin:e.height+e.textMargin+e.marginTop+e.fontSize,i.font=o,"left"==e.textAlign||0<t.barcodePadding?(n=0,i.textAlign="left"):"right"==e.textAlign?(n=t.width-1,i.textAlign="right"):(n=t.width/2,i.textAlign="center"),i.fillText(t.text,n,r))}},{key:"moveCanvasDrawing",value:function(e){this.canvas.getContext("2d").translate(e.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),s=c,t.default=s},function(e,t,n){"use strict";var r,i,o,a,s,l,u;function c(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function f(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),this.svg=e,this.encodings=t,this.options=n,this.document=n.xmlDocument||document}Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e},i=n(177),o=(u=i)&&u.__esModule?u:{default:u},a=n(253),s="http://www.w3.org/2000/svg",r(f,[{key:"render",value:function(){var e,t,n,r,i=this.options.marginLeft;for(this.prepareSVG(),e=0;e<this.encodings.length;e++)t=this.encodings[e],n=(0,o.default)(this.options,t.options),r=this.createGroup(i,n.marginTop,this.svg),this.setGroupOptions(r,n),this.drawSvgBarcode(r,n,t),this.drawSVGText(r,n,t),i+=t.width}},{key:"prepareSVG",value:function(){for(var e,t,n;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,a.calculateEncodingAttributes)(this.encodings,this.options),e=(0,a.getTotalWidthOfEncodings)(this.encodings),t=(0,a.getMaximumHeightOfEncodings)(this.encodings),n=e+this.options.marginLeft+this.options.marginRight,this.setSvgAttributes(n,t),this.options.background&&this.drawRect(0,0,n,t,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(e,t,n){var r,i,o,a,s=n.data;for(r="top"==t.textPosition?t.fontSize+t.textMargin:0,a=o=i=0;a<s.length;a++)o=a*t.width+n.barcodePadding,"1"===s[a]?i++:0<i&&(this.drawRect(o-t.width*i,r,t.width*i,t.height,e),i=0);0<i&&this.drawRect(o-t.width*(i-1),r,t.width*i,t.height,e)}},{key:"drawSVGText",value:function(e,t,n){var r,i,o=this.document.createElementNS(s,"text");t.displayValue&&(o.setAttribute("style","font:"+t.fontOptions+" "+t.fontSize+"px "+t.font),i="top"==t.textPosition?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,"left"==t.textAlign||0<n.barcodePadding?(r=0,o.setAttribute("text-anchor","start")):"right"==t.textAlign?(r=n.width-1,o.setAttribute("text-anchor","end")):(r=n.width/2,o.setAttribute("text-anchor","middle")),o.setAttribute("x",r),o.setAttribute("y",i),o.appendChild(this.document.createTextNode(n.text)),e.appendChild(o))}},{key:"setSvgAttributes",value:function(e,t){var n=this.svg;n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+e+" "+t),n.setAttribute("xmlns",s),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(e,t,n){var r=this.document.createElementNS(s,"g");return r.setAttribute("transform","translate("+e+", "+t+")"),n.appendChild(r),r}},{key:"setGroupOptions",value:function(e,t){e.setAttribute("style","fill:"+t.lineColor+";")}},{key:"drawRect",value:function(e,t,n,r,i){var o=this.document.createElementNS(s,"rect");return o.setAttribute("x",e),o.setAttribute("y",t),o.setAttribute("width",n),o.setAttribute("height",r),i.appendChild(o),o}}]),l=f,t.default=l},function(e,t,n){"use strict";var r;function i(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function o(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.object=e,this.encodings=t,this.options=n}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(o,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),r=o,t.default=r},function(e,t,n){"use strict";var r;function i(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.api=e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(o,[{key:"handleCatch",value:function(e){if("InvalidInputException"!==e.name)throw e;if(this.api._options.valid===this.api._defaults.valid)throw e.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(e){try{var t=e.apply(void 0,arguments);return this.api._options.valid(!0),t}catch(e){return this.handleCatch(e),this.api}}}]),r=o,t.default=r},,function(e,t,n){var r,i,o;i=[n(0),n(52),n(362)],void 0===(o="function"==typeof(r=function(k){var o;function e(e){var t,n;while(e.length&&e[0]!==document){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}function t(){this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};k.extend(this._defaults,this.regional[""]);this.regional.en=k.extend(true,{},this.regional[""]);this.regional["en-US"]=k.extend(true,{},this.regional.en);this.dpDiv=n(k("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){k(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){k(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){k(this).removeClass("ui-datepicker-next-hover")}}).on("mouseover",t,a)}function a(){if(!k.datepicker._isDisabledDatepicker(o.inline?o.dpDiv.parent()[0]:o.input[0])){k(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");k(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){k(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){k(this).addClass("ui-datepicker-next-hover")}}}function f(e,t){k.extend(e,t);for(var n in t){if(t[n]==null){e[n]=t[n]}}return e}return k.extend(k.ui,{datepicker:{version:"1.12.1"}}),k.extend(t.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return f(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var n,r,i;r="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(i=this._newInst(k(e),r)).settings=k.extend({},t||{}),"input"===n?this._connectDatepicker(e,i):r&&this._inlineDatepicker(e,i)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?n(k("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var n=k(e);t.append=k([]),t.trigger=k([]),n.hasClass(this.markerClassName)||(this._attachments(n,t),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),k.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var n,r,i,o=this._get(t,"appendText"),a=this._get(t,"isRTL");t.append&&t.append.remove(),o&&(t.append=k("<span class='"+this._appendClass+"'>"+o+"</span>"),e[a?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(n=this._get(t,"showOn"))&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(r=this._get(t,"buttonText"),i=this._get(t,"buttonImage"),t.trigger=k(this._get(t,"buttonImageOnly")?k("<img/>").addClass(this._triggerClass).attr({src:i,alt:r,title:r}):k("<button type='button'></button>").addClass(this._triggerClass).html(i?k("<img/>").attr({src:i,alt:r,title:r}):r)),e[a?"before":"after"](t.trigger),t.trigger.on("click",function(){return k.datepicker._datepickerShowing&&k.datepicker._lastInput===e[0]?k.datepicker._hideDatepicker():(k.datepicker._datepickerShowing&&k.datepicker._lastInput!==e[0]&&k.datepicker._hideDatepicker(),k.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,r,i,o=new Date(2009,11,20),a=this._get(e,"dateFormat");a.match(/[DM]/)&&(t=function(e){for(i=r=n=0;i<e.length;i++)e[i].length>n&&(n=e[i].length,r=i);return r},o.setMonth(t(this._get(e,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(t(this._get(e,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),e.input.attr("size",this._formatDate(e,o).length)}},_inlineDatepicker:function(e,t){var n=k(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(t.dpDiv),k.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,n,r,i){var o,a,s,l,u,c=this._dialogInst;return c||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=k("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),k("body").append(this._dialogInput),(c=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},k.data(this._dialogInput[0],"datepicker",c)),f(c.settings,r||{}),t=t&&t.constructor===Date?this._formatDate(c,t):t,this._dialogInput.val(t),this._pos=i?i.length?i:[i.pageX,i.pageY]:null,this._pos||(a=document.documentElement.clientWidth,s=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[a/2-100+l,s/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),c.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),k.blockUI&&k.blockUI(this.dpDiv),k.data(this._dialogInput[0],"datepicker",c),this},_destroyDatepicker:function(e){var t,n=k(e),r=k.data(e,"datepicker");n.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),k.removeData(e,"datepicker"),"input"===t?(r.append.remove(),r.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||n.removeClass(this.markerClassName).empty(),o===r&&(o=null))},_enableDatepicker:function(t){var e,n,r=k(t),i=k.data(t,"datepicker");r.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((n=r.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=k.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,n,r=k(t),i=k.data(t,"datepicker");r.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((n=r.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=k.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return k.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,n){var r,i,o,a,s=this._getInst(e);if(2===arguments.length&&"string"==typeof t)return"defaults"===t?k.extend({},k.datepicker._defaults):s?"all"===t?k.extend({},s.settings):this._get(s,t):null;r=t||{},"string"==typeof t&&((r={})[t]=n),s&&(this._curInst===s&&this._hideDatepicker(),i=this._getDateDatepicker(e,!0),o=this._getMinMaxDate(s,"min"),a=this._getMinMaxDate(s,"max"),f(s.settings,r),null!==o&&void 0!==r.dateFormat&&void 0===r.minDate&&(s.settings.minDate=this._formatDate(s,o)),null!==a&&void 0!==r.dateFormat&&void 0===r.maxDate&&(s.settings.maxDate=this._formatDate(s,a)),"disabled"in r&&(r.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(k(e),s),this._autoSize(s),this._setDate(s,i),this._updateAlternate(s),this._updateDatepicker(s))},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(e){var t,n,r,i=k.datepicker._getInst(e.target),o=!0,a=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,k.datepicker._datepickerShowing)switch(e.keyCode){case 9:k.datepicker._hideDatepicker(),o=!1;break;case 13:return(r=k("td."+k.datepicker._dayOverClass+":not(."+k.datepicker._currentClass+")",i.dpDiv))[0]&&k.datepicker._selectDay(e.target,i.selectedMonth,i.selectedYear,r[0]),(t=k.datepicker._get(i,"onSelect"))?(n=k.datepicker._formatDate(i),t.apply(i.input?i.input[0]:null,[n,i])):k.datepicker._hideDatepicker(),!1;case 27:k.datepicker._hideDatepicker();break;case 33:k.datepicker._adjustDate(e.target,e.ctrlKey?-k.datepicker._get(i,"stepBigMonths"):-k.datepicker._get(i,"stepMonths"),"M");break;case 34:k.datepicker._adjustDate(e.target,e.ctrlKey?+k.datepicker._get(i,"stepBigMonths"):+k.datepicker._get(i,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&k.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&k.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&k.datepicker._adjustDate(e.target,a?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&k.datepicker._adjustDate(e.target,e.ctrlKey?-k.datepicker._get(i,"stepBigMonths"):-k.datepicker._get(i,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&k.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&k.datepicker._adjustDate(e.target,a?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&k.datepicker._adjustDate(e.target,e.ctrlKey?+k.datepicker._get(i,"stepBigMonths"):+k.datepicker._get(i,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&k.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else 36===e.keyCode&&e.ctrlKey?k.datepicker._showDatepicker(this):o=!1;o&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,n,r=k.datepicker._getInst(e.target);if(k.datepicker._get(r,"constrainInput"))return t=k.datepicker._possibleChars(k.datepicker._get(r,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!t||-1<t.indexOf(n)},_doKeyUp:function(e){var t=k.datepicker._getInst(e.target);if(t.input.val()!==t.lastVal)try{k.datepicker.parseDate(k.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,k.datepicker._getFormatConfig(t))&&(k.datepicker._setDateFromField(t),k.datepicker._updateAlternate(t),k.datepicker._updateDatepicker(t))}catch(e){}return!0},_showDatepicker:function(e){var t,n,r,i,o,a,s;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=k("input",e.parentNode)[0]),k.datepicker._isDisabledDatepicker(e)||k.datepicker._lastInput===e||(t=k.datepicker._getInst(e),k.datepicker._curInst&&k.datepicker._curInst!==t&&(k.datepicker._curInst.dpDiv.stop(!0,!0),t&&k.datepicker._datepickerShowing&&k.datepicker._hideDatepicker(k.datepicker._curInst.input[0])),!1!==(r=(n=k.datepicker._get(t,"beforeShow"))?n.apply(e,[e,t]):{})&&(f(t.settings,r),t.lastVal=null,k.datepicker._lastInput=e,k.datepicker._setDateFromField(t),k.datepicker._inDialog&&(e.value=""),k.datepicker._pos||(k.datepicker._pos=k.datepicker._findPos(e),k.datepicker._pos[1]+=e.offsetHeight),i=!1,k(e).parents().each(function(){return!(i|="fixed"===k(this).css("position"))}),o={left:k.datepicker._pos[0],top:k.datepicker._pos[1]},k.datepicker._pos=null,t.dpDiv.empty(),t.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),k.datepicker._updateDatepicker(t),o=k.datepicker._checkOffset(t,o,i),t.dpDiv.css({position:k.datepicker._inDialog&&k.blockUI?"static":i?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),t.inline||(a=k.datepicker._get(t,"showAnim"),s=k.datepicker._get(t,"duration"),t.dpDiv.css("z-index",function(e){var t,n;for(;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}(k(e))+1),k.datepicker._datepickerShowing=!0,k.effects&&k.effects.effect[a]?t.dpDiv.show(a,k.datepicker._get(t,"showOptions"),s):t.dpDiv[a||"show"](a?s:null),k.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),k.datepicker._curInst=t)))},_updateDatepicker:function(e){this.maxRows=4,(o=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,n=this._getNumberOfMonths(e),r=n[1],i=e.dpDiv.find("."+this._dayOverClass+" a");0<i.length&&a.apply(i.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<r&&e.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",17*r+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===k.datepicker._curInst&&k.datepicker._datepickerShowing&&k.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),t=e.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,n){var r=e.dpDiv.outerWidth(),i=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,s=document.documentElement.clientWidth+(n?0:k(document).scrollLeft()),l=document.documentElement.clientHeight+(n?0:k(document).scrollTop());return t.left-=this._get(e,"isRTL")?r-o:0,t.left-=n&&t.left===e.input.offset().left?k(document).scrollLeft():0,t.top-=n&&t.top===e.input.offset().top+a?k(document).scrollTop():0,t.left-=Math.min(t.left,t.left+r>s&&r<s?Math.abs(t.left+r-s):0),t.top-=Math.min(t.top,t.top+i>l&&i<l?Math.abs(i+a):0),t},_findPos:function(e){for(var t,n=this._getInst(e),r=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||k.expr.filters.hidden(e));)e=e[r?"previousSibling":"nextSibling"];return[(t=k(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,n,r,i,o=this._curInst;!o||e&&o!==k.data(e,"datepicker")||this._datepickerShowing&&(t=this._get(o,"showAnim"),n=this._get(o,"duration"),r=function(){k.datepicker._tidyDialog(o)},k.effects&&(k.effects.effect[t]||k.effects[t])?o.dpDiv.hide(t,k.datepicker._get(o,"showOptions"),n,r):o.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?n:null,r),t||r(),this._datepickerShowing=!1,(i=this._get(o,"onClose"))&&i.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),k.blockUI&&(k.unblockUI(),k("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(k.datepicker._curInst){var t=k(e.target),n=k.datepicker._getInst(t[0]);(t[0].id===k.datepicker._mainDivId||0!==t.parents("#"+k.datepicker._mainDivId).length||t.hasClass(k.datepicker.markerClassName)||t.closest("."+k.datepicker._triggerClass).length||!k.datepicker._datepickerShowing||k.datepicker._inDialog&&k.blockUI)&&(!t.hasClass(k.datepicker.markerClassName)||k.datepicker._curInst===n)||k.datepicker._hideDatepicker()}},_adjustDate:function(e,t,n){var r=k(e),i=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(i,t+("M"===n?this._get(i,"showCurrentAtPos"):0),n),this._updateDatepicker(i))},_gotoToday:function(e){var t,n=k(e),r=this._getInst(n[0]);this._get(r,"gotoCurrent")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(t=new Date,r.selectedDay=t.getDate(),r.drawMonth=r.selectedMonth=t.getMonth(),r.drawYear=r.selectedYear=t.getFullYear()),this._notifyChange(r),this._adjustDate(n)},_selectMonthYear:function(e,t,n){var r=k(e),i=this._getInst(r[0]);i["selected"+("M"===n?"Month":"Year")]=i["draw"+("M"===n?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(r)},_selectDay:function(e,t,n,r){var i,o=k(e);k(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||((i=this._getInst(o[0])).selectedDay=i.currentDay=k("a",r).html(),i.selectedMonth=i.currentMonth=t,i.selectedYear=i.currentYear=n,this._selectDate(e,this._formatDate(i,i.currentDay,i.currentMonth,i.currentYear)))},_clearDate:function(e){var t=k(e);this._selectDate(t,"")},_selectDate:function(e,t){var n,r=k(e),i=this._getInst(r[0]);t=null!=t?t:this._formatDate(i),i.input&&i.input.val(t),this._updateAlternate(i),(n=this._get(i,"onSelect"))?n.apply(i.input?i.input[0]:null,[t,i]):i.input&&i.input.trigger("change"),i.inline?this._updateDatepicker(i):(this._hideDatepicker(),this._lastInput=i.input[0],"object"!=typeof i.input[0]&&i.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,n,r,i=this._get(e,"altField");i&&(t=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),r=this.formatDate(t,n,this._getFormatConfig(e)),k(i).val(r))},noWeekends:function(e){var t=e.getDay();return[0<t&&t<6,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),t=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(n,o,e){if(null==n||null==o)throw"Invalid arguments";if(""===(o="object"==typeof o?o.toString():o+""))return null;function a(e){var t=s+1<n.length&&n.charAt(s+1)===e;return t&&s++,t}function t(e){var t=a(e),n="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,r=new RegExp("^\\d{"+("y"===e?n:1)+","+n+"}"),i=o.substring(f).match(r);if(!i)throw"Missing number at position "+f;return f+=i[0].length,parseInt(i[0],10)}function r(e,t,n){var r=-1,i=k.map(a(e)?n:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(k.each(i,function(e,t){var n=t[1];if(o.substr(f,n.length).toLowerCase()===n.toLowerCase())return r=t[0],f+=n.length,!1}),-1!==r)return r+1;throw"Unknown name at position "+f}function i(){if(o.charAt(f)!==n.charAt(s))throw"Unexpected literal at position "+f;f++}var s,l,u,c,f=0,h=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,d="string"!=typeof h?h:(new Date).getFullYear()%100+parseInt(h,10),p=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,g=(e?e.dayNames:null)||this._defaults.dayNames,v=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,m=(e?e.monthNames:null)||this._defaults.monthNames,y=-1,b=-1,w=-1,x=-1,_=!1;for(s=0;s<n.length;s++)if(_)"'"!==n.charAt(s)||a("'")?i():_=!1;else switch(n.charAt(s)){case"d":w=t("d");break;case"D":r("D",p,g);break;case"o":x=t("o");break;case"m":b=t("m");break;case"M":b=r("M",v,m);break;case"y":y=t("y");break;case"@":y=(c=new Date(t("@"))).getFullYear(),b=c.getMonth()+1,w=c.getDate();break;case"!":y=(c=new Date((t("!")-this._ticksTo1970)/1e4)).getFullYear(),b=c.getMonth()+1,w=c.getDate();break;case"'":a("'")?i():_=!0;break;default:i()}if(f<o.length&&(u=o.substr(f),!/^\s+/.test(u)))throw"Extra/unparsed characters found in date: "+u;if(-1===y?y=(new Date).getFullYear():y<100&&(y+=(new Date).getFullYear()-(new Date).getFullYear()%100+(y<=d?0:-100)),-1<x)for(b=1,w=x;;){if(w<=(l=this._getDaysInMonth(y,b-1)))break;b++,w-=l}if((c=this._daylightSavingAdjust(new Date(y,b-1,w))).getFullYear()!==y||c.getMonth()+1!==b||c.getDate()!==w)throw"Invalid date";return c},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(n,e,t){if(!e)return"";function i(e){var t=a+1<n.length&&n.charAt(a+1)===e;return t&&a++,t}function r(e,t,n){var r=""+t;if(i(e))for(;r.length<n;)r="0"+r;return r}function o(e,t,n,r){return i(e)?r[t]:n[t]}var a,s=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,l=(t?t.dayNames:null)||this._defaults.dayNames,u=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,c=(t?t.monthNames:null)||this._defaults.monthNames,f="",h=!1;if(e)for(a=0;a<n.length;a++)if(h)"'"!==n.charAt(a)||i("'")?f+=n.charAt(a):h=!1;else switch(n.charAt(a)){case"d":f+=r("d",e.getDate(),2);break;case"D":f+=o("D",e.getDay(),s,l);break;case"o":f+=r("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":f+=r("m",e.getMonth()+1,2);break;case"M":f+=o("M",e.getMonth(),u,c);break;case"y":f+=i("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":f+=e.getTime();break;case"!":f+=1e4*e.getTime()+this._ticksTo1970;break;case"'":i("'")?f+="'":h=!0;break;default:f+=n.charAt(a)}return f},_possibleChars:function(n){function e(e){var t=r+1<n.length&&n.charAt(r+1)===e;return t&&r++,t}var r,t="",i=!1;for(r=0;r<n.length;r++)if(i)"'"!==n.charAt(r)||e("'")?t+=n.charAt(r):i=!1;else switch(n.charAt(r)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":e("'")?t+="'":i=!0;break;default:t+=n.charAt(r)}return t},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var n=this._get(e,"dateFormat"),r=e.lastVal=e.input?e.input.val():null,i=this._getDefaultDate(e),o=i,a=this._getFormatConfig(e);try{o=this.parseDate(n,r,a)||i}catch(e){r=t?"":r}e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),e.currentDay=r?o.getDate():0,e.currentMonth=r?o.getMonth():0,e.currentYear=r?o.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(s,e,t){var n,r,i=null==e||""===e?t:"string"==typeof e?function(e){try{return k.datepicker.parseDate(k.datepicker._get(s,"dateFormat"),e,k.datepicker._getFormatConfig(s))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?k.datepicker._getDate(s):null)||new Date,n=t.getFullYear(),r=t.getMonth(),i=t.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=o.exec(e);a;){switch(a[2]||"d"){case"d":case"D":i+=parseInt(a[1],10);break;case"w":case"W":i+=7*parseInt(a[1],10);break;case"m":case"M":r+=parseInt(a[1],10),i=Math.min(i,k.datepicker._getDaysInMonth(n,r));break;case"y":case"Y":n+=parseInt(a[1],10),i=Math.min(i,k.datepicker._getDaysInMonth(n,r))}a=o.exec(e)}return new Date(n,r,i)}(e):"number"==typeof e?isNaN(e)?t:(n=e,(r=new Date).setDate(r.getDate()+n),r):new Date(e.getTime());return(i=i&&"Invalid Date"===i.toString()?t:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var r=!t,i=e.selectedMonth,o=e.selectedYear,a=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=a.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=a.getMonth(),e.drawYear=e.selectedYear=e.currentYear=a.getFullYear(),i===e.selectedMonth&&o===e.selectedYear||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(r?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){k.datepicker._adjustDate(n,-t,"M")},next:function(){k.datepicker._adjustDate(n,+t,"M")},hide:function(){k.datepicker._hideDatepicker()},today:function(){k.datepicker._gotoToday(n)},selectDay:function(){return k.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return k.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return k.datepicker._selectMonthYear(n,this,"Y"),!1}};k(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,n,r,i,o,a,s,l,u,c,f,h,d,p,g,v,m,y,b,w,x,_,k,S,C,T,O,E,M,D,A,L,P,N,I,j,R,F,z,H=new Date,W=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),B=this._get(e,"isRTL"),U=this._get(e,"showButtonPanel"),q=this._get(e,"hideIfNoPrevNext"),G=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),V=this._get(e,"showCurrentAtPos"),K=this._get(e,"stepMonths"),$=1!==Y[0]||1!==Y[1],X=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(e,"min"),Q=this._getMinMaxDate(e,"max"),Z=e.drawMonth-V,ee=e.drawYear;if(Z<0&&(Z+=12,ee--),Q)for(t=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-Y[0]*Y[1]+1,Q.getDate())),t=J&&t<J?J:t;this._daylightSavingAdjust(new Date(ee,Z,1))>t;)--Z<0&&(Z=11,ee--);for(e.drawMonth=Z,e.drawYear=ee,n=this._get(e,"prevText"),n=G?this.formatDate(n,this._daylightSavingAdjust(new Date(ee,Z-K,1)),this._getFormatConfig(e)):n,r=this._canAdjustMonth(e,-1,ee,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"e":"w")+"'>"+n+"</span></a>":q?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"e":"w")+"'>"+n+"</span></a>",i=this._get(e,"nextText"),i=G?this.formatDate(i,this._daylightSavingAdjust(new Date(ee,Z+K,1)),this._getFormatConfig(e)):i,o=this._canAdjustMonth(e,1,ee,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"w":"e")+"'>"+i+"</span></a>":q?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"w":"e")+"'>"+i+"</span></a>",a=this._get(e,"currentText"),s=this._get(e,"gotoCurrent")&&e.currentDay?X:W,a=G?this.formatDate(a,s,this._getFormatConfig(e)):a,l=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",u=U?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(B?l:"")+(this._isInRange(e,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(B?"":l)+"</div>":"",c=parseInt(this._get(e,"firstDay"),10),c=isNaN(c)?0:c,f=this._get(e,"showWeek"),h=this._get(e,"dayNames"),d=this._get(e,"dayNamesMin"),p=this._get(e,"monthNames"),g=this._get(e,"monthNamesShort"),v=this._get(e,"beforeShowDay"),m=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),b=this._getDefaultDate(e),w="",_=0;_<Y[0];_++){for(k="",this.maxRows=4,S=0;S<Y[1];S++){if(C=this._daylightSavingAdjust(new Date(ee,Z,e.selectedDay)),T=" ui-corner-all",O="",$){if(O+="<div class='ui-datepicker-group",1<Y[1])switch(S){case 0:O+=" ui-datepicker-group-first",T=" ui-corner-"+(B?"right":"left");break;case Y[1]-1:O+=" ui-datepicker-group-last",T=" ui-corner-"+(B?"left":"right");break;default:O+=" ui-datepicker-group-middle",T=""}O+="'>"}for(O+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&0===_?B?o:r:"")+(/all|right/.test(T)&&0===_?B?r:o:"")+this._generateMonthYearHeader(e,Z,ee,J,Q,0<_||0<S,p,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",E=f?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",x=0;x<7;x++)E+="<th scope='col'"+(5<=(x+c+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+h[M=(x+c)%7]+"'>"+d[M]+"</span></th>";for(O+=E+"</tr></thead><tbody>",D=this._getDaysInMonth(ee,Z),ee===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,D)),A=(this._getFirstDayOfMonth(ee,Z)-c+7)%7,L=Math.ceil((A+D)/7),P=$&&this.maxRows>L?this.maxRows:L,this.maxRows=P,N=this._daylightSavingAdjust(new Date(ee,Z,1-A)),I=0;I<P;I++){for(O+="<tr>",j=f?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(N)+"</td>":"",x=0;x<7;x++)R=v?v.apply(e.input?e.input[0]:null,[N]):[!0,""],z=(F=N.getMonth()!==Z)&&!y||!R[0]||J&&N<J||Q&&Q<N,j+="<td class='"+(5<=(x+c+6)%7?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(N.getTime()===C.getTime()&&Z===e.selectedMonth&&e._keyEvent||b.getTime()===N.getTime()&&b.getTime()===C.getTime()?" "+this._dayOverClass:"")+(z?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!m?"":" "+R[1]+(N.getTime()===X.getTime()?" "+this._currentClass:"")+(N.getTime()===W.getTime()?" ui-datepicker-today":""))+"'"+(F&&!m||!R[2]?"":" title='"+R[2].replace(/'/g,"&#39;")+"'")+(z?"":" data-handler='selectDay' data-event='click' data-month='"+N.getMonth()+"' data-year='"+N.getFullYear()+"'")+">"+(F&&!m?"&#xa0;":z?"<span class='ui-state-default'>"+N.getDate()+"</span>":"<a class='ui-state-default"+(N.getTime()===W.getTime()?" ui-state-highlight":"")+(N.getTime()===X.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'>"+N.getDate()+"</a>")+"</td>",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);O+=j+"</tr>"}11<++Z&&(Z=0,ee++),k+=O+="</tbody></table>"+($?"</div>"+(0<Y[0]&&S===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}w+=k}return w+=u,e._keyEvent=!1,w},_generateMonthYearHeader:function(e,t,n,r,i,o,a,s){var l,u,c,f,h,d,p,g,v=this._get(e,"changeMonth"),m=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",w="";if(o||!v)w+="<span class='ui-datepicker-month'>"+a[t]+"</span>";else{for(l=r&&r.getFullYear()===n,u=i&&i.getFullYear()===n,w+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=r.getMonth())&&(!u||c<=i.getMonth())&&(w+="<option value='"+c+"'"+(c===t?" selected='selected'":"")+">"+s[c]+"</option>");w+="</select>"}if(y||(b+=w+(!o&&v&&m?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",o||!m)b+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(f=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),p=(d=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t})(f[0]),g=Math.max(p,d(f[1]||"")),p=r?Math.max(p,r.getFullYear()):p,g=i?Math.min(g,i.getFullYear()):g,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=g;p++)e.yearshtml+="<option value='"+p+"'"+(p===n?" selected='selected'":"")+">"+p+"</option>";e.yearshtml+="</select>",b+=e.yearshtml,e.yearshtml=null}return b+=this._get(e,"yearSuffix"),y&&(b+=(!o&&v&&m?"":"&#xa0;")+w),b+="</div>"},_adjustInstDate:function(e,t,n){var r=e.selectedYear+("Y"===n?t:0),i=e.selectedMonth+("M"===n?t:0),o=Math.min(e.selectedDay,this._getDaysInMonth(r,i))+("D"===n?t:0),a=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(r,i,o)));e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),i=n&&t<n?n:t;return r&&r<i?r:i},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,r){var i=this._getNumberOfMonths(e),o=this._daylightSavingAdjust(new Date(n,r+(t<0?t:i[0]*i[1]),1));return t<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(e,o)},_isInRange:function(e,t){var n,r,i=this._getMinMaxDate(e,"min"),o=this._getMinMaxDate(e,"max"),a=null,s=null,l=this._get(e,"yearRange");return l&&(n=l.split(":"),r=(new Date).getFullYear(),a=parseInt(n[0],10),s=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(a+=r),n[1].match(/[+\-].*/)&&(s+=r)),(!i||t.getTime()>=i.getTime())&&(!o||t.getTime()<=o.getTime())&&(!a||t.getFullYear()>=a)&&(!s||t.getFullYear()<=s)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,r){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(r,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),k.fn.datepicker=function(e){if(!this.length)return this;k.datepicker.initialized||(k(document).on("mousedown",k.datepicker._checkExternalClick),k.datepicker.initialized=!0),0===k("#"+k.datepicker._mainDivId).length&&k("body").append(k.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?k.datepicker["_"+e+"Datepicker"].apply(k.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?k.datepicker["_"+e+"Datepicker"].apply(k.datepicker,[this].concat(t)):k.datepicker._attachDatepicker(this,e)}):k.datepicker["_"+e+"Datepicker"].apply(k.datepicker,[this[0]].concat(t))},k.datepicker=new t,k.datepicker.initialized=!1,k.datepicker.uuid=(new Date).getTime(),k.datepicker.version="1.12.1",k.datepicker})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[n(0),n(52)],void 0===(o="function"==typeof(r=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}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){},function(e,t,n){},,function(e,t,n){},function(e,t,n){},,function(e,t,n){!function(D){"use strict";function A(e,t,n,r,i,o){this.indented=e;this.column=t;this.type=n;this.info=r;this.align=i;this.prev=o}function L(e,t,n,r){var i=e.indented;if(e.context&&e.context.type=="statement"&&n!="statement")i=e.context.indented;return e.context=new A(i,t,n,r,null,e.context)}function P(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}function N(e,t,n){if(t.prevToken=="variable"||t.prevToken=="type")return true;if(/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n)))return true;if(t.typeAtEndOfLine&&e.column()==e.indentation())return true}function I(e){for(;;){if(!e||e.type=="top")return true;if(e.type=="}"&&e.prev.info!="namespace")return false;e=e.prev}}function e(e){var t={},n=e.split(" ");for(var r=0;r<n.length;++r)t[n[r]]=true;return t}function j(e,t){if(typeof e==="function"){return e(t)}else{return e.propertyIsEnumerable(t)}}D.defineMode("clike",function(e,s){var l=e.indentUnit,u=s.statementIndentUnit||l,c=s.dontAlignCalls,o=s.keywords||{},a=s.types||{},f=s.builtin||{},h=s.blockKeywords||{},d=s.defKeywords||{},p=s.atoms||{},g=s.hooks||{},v=s.multiLineStrings,m=s.indentStatements!==false,t=s.indentSwitch!==false,y=s.namespaceSeparator,b=s.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,w=s.numberStart||/[\d\.]/,x=s.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,_=s.isOperatorChar||/[+\-*&%=<>!?|\/]/,k=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/;var S,C;function T(e,t){var n=e.next();if(g[n]){var r=g[n](e,t);if(r!==false)return r}if(n=='"'||n=="'"){t.tokenize=O(n);return t.tokenize(e,t)}if(b.test(n)){S=n;return null}if(w.test(n)){e.backUp(1);if(e.match(x))return"number";e.next()}if(n=="/"){if(e.eat("*")){t.tokenize=E;return E(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(_.test(n)){while(!e.match(/^\/[\/*]/,false)&&e.eat(_)){}return"operator"}e.eatWhile(k);if(y)while(e.match(y))e.eatWhile(k);var i=e.current();if(j(o,i)){if(j(h,i))S="newstatement";if(j(d,i))C=true;return"keyword"}if(j(a,i))return"type";if(j(f,i)){if(j(h,i))S="newstatement";return"builtin"}if(j(p,i))return"atom";return"variable"}function O(o){return function(e,t){var n=false,r,i=false;while((r=e.next())!=null){if(r==o&&!n){i=true;break}n=!n&&r=="\\"}if(i||!(n||v))t.tokenize=null;return"string"}}function E(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=null;break}n=r=="*"}return"comment"}function M(e,t){if(s.typeFirstDefinitions&&e.eol()&&I(t.context))t.typeAtEndOfLine=N(e,t,e.pos)}return{startState:function(e){return{tokenize:null,context:new A((e||0)-l,0,"top",null,false),indented:0,startOfLine:true,prevToken:null}},token:function(e,t){var n=t.context;if(e.sol()){if(n.align==null)n.align=false;t.indented=e.indentation();t.startOfLine=true}if(e.eatSpace()){M(e,t);return null}S=C=null;var r=(t.tokenize||T)(e,t);if(r=="comment"||r=="meta")return r;if(n.align==null)n.align=true;if(S==";"||S==":"||S==","&&e.match(/^\s*(?:\/\/.*)?$/,false))while(t.context.type=="statement")P(t);else if(S=="{")L(t,e.column(),"}");else if(S=="[")L(t,e.column(),"]");else if(S=="(")L(t,e.column(),")");else if(S=="}"){while(n.type=="statement")n=P(t);if(n.type=="}")n=P(t);while(n.type=="statement")n=P(t)}else if(S==n.type)P(t);else if(m&&((n.type=="}"||n.type=="top")&&S!=";"||n.type=="statement"&&S=="newstatement")){L(t,e.column(),"statement",e.current())}if(r=="variable"&&(t.prevToken=="def"||s.typeFirstDefinitions&&N(e,t,e.start)&&I(t.context)&&e.match(/^\s*\(/,false)))r="def";if(g.token){var i=g.token(e,t,r);if(i!==undefined)r=i}if(r=="def"&&s.styleDefs===false)r="variable";t.startOfLine=false;t.prevToken=C?"def":r||S;M(e,t);return r},indent:function(e,t){if(e.tokenize!=T&&e.tokenize!=null||e.typeAtEndOfLine)return D.Pass;var n=e.context,r=t&&t.charAt(0);if(n.type=="statement"&&r=="}")n=n.prev;if(s.dontIndentStatements)while(n.type=="statement"&&s.dontIndentStatements.test(n.info))n=n.prev;if(g.indent){var i=g.indent(e,n,t);if(typeof i=="number")return i}var o=r==n.type;var a=n.prev&&n.prev.info=="switch";if(s.allmanIndentation&&/[{(]/.test(r)){while(n.type!="top"&&n.type!="}")n=n.prev;return n.indented}if(n.type=="statement")return n.indented+(r=="{"?0:u);if(n.align&&(!c||n.type!=")"))return n.column+(o?0:1);if(n.type==")"&&!o)return n.indented+u;return n.indented+(o?0:l)+(!o&&a&&!/^(?:case|default)\b/.test(t)?l:0)},electricInput:t?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var t="auto if break case register continue return default do sizeof "+"static else struct switch extern typedef union for goto while enum const volatile",n="int long char short double float unsigned signed void size_t ptrdiff_t";function i(e,t){if(!t.startOfLine)return false;for(var n,r=null;n=e.peek();){if(n=="\\"&&e.match(/^.$/)){r=i;break}else if(n=="/"&&e.match(/^\/[\/\*]/,false)){break}e.next()}t.tokenize=r;return"meta"}function r(e,t){if(t.prevToken=="type")return"type";return false}function o(e){e.eatWhile(/[\w\.']/);return"number"}function a(e,t){e.backUp(1);if(e.match(/(R|u8R|uR|UR|LR)/)){var n=e.match(/"([^\s\\()]{0,16})\(/);if(!n){return false}t.cpp11RawStringDelim=n[1];t.tokenize=u;return u(e,t)}if(e.match(/(u8|u|U|L)/)){if(e.match(/["']/,false)){return"string"}return false}e.next();return false}function s(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function l(e,t){var n;while((n=e.next())!=null){if(n=='"'&&!e.eat('"')){t.tokenize=null;break}}return"string"}function u(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");var r=e.match(new RegExp(".*?\\)"+n+'"'));if(r)t.tokenize=null;else e.skipToEnd();return"string"}function c(e,t){if(typeof e=="string")e=[e];var n=[];function r(e){if(e)for(var t in e)if(e.hasOwnProperty(t))n.push(t)}r(t.keywords);r(t.types);r(t.builtin);r(t.atoms);if(n.length){t.helperType=e[0];D.registerHelper("hintWords",e[0],n)}for(var i=0;i<e.length;++i)D.defineMIME(e[i],t)}function f(e,t){var n=false;while(!e.eol()){if(!n&&e.match('"""')){t.tokenize=null;break}n=e.next()=="\\"&&!n}return"string"}function h(r){return function(e,t){var n;while(n=e.next()){if(n=="*"&&e.eat("/")){if(r==1){t.tokenize=null;break}else{t.tokenize=h(r-1);return t.tokenize(e,t)}}else if(n=="/"&&e.eat("*")){t.tokenize=h(r+1);return t.tokenize(e,t)}}return"comment"}}function d(o){return function(e,t){var n=false,r,i=false;while(!e.eol()){if(!o&&!n&&e.match('"')){i=true;break}if(o&&e.match('"""')){i=true;break}r=e.next();if(!n&&r=="$"&&e.match("{"))e.skipTo("}");n=!n&&r=="\\"&&!o}if(i||!o)t.tokenize=null;return"string"}}c(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:e(t),types:e(n+" bool _Complex _Bool float_t double_t intptr_t intmax_t "+"int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t "+"uint32_t uint64_t"),blockKeywords:e("case do else for if switch while struct"),defKeywords:e("struct"),typeFirstDefinitions:true,atoms:e("null true false"),hooks:{"#":i,"*":r},modeProps:{fold:["brace","include"]}}),c(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:e(t+" asm dynamic_cast namespace reinterpret_cast try explicit new "+"static_cast typeid catch operator template typename class friend private "+"this using const_cast inline public throw virtual delete mutable protected "+"alignas alignof constexpr decltype nullptr noexcept thread_local final "+"static_assert override"),types:e(n+" bool wchar_t"),blockKeywords:e("catch class do else finally for if struct switch try while"),defKeywords:e("class namespace struct enum union"),typeFirstDefinitions:true,atoms:e("true false null"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,hooks:{"#":i,"*":r,u:a,U:a,L:a,R:a,0:o,1:o,2:o,3:o,4:o,5:o,6:o,7:o,8:o,9:o,token:function(e,t,n){if(n=="variable"&&e.peek()=="("&&(t.prevToken==";"||t.prevToken==null||t.prevToken=="}")&&s(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),c("text/x-java",{name:"clike",keywords:e("abstract assert break case catch class const continue default "+"do else enum extends final finally float for goto if implements import "+"instanceof interface native new package private protected public "+"return static strictfp super switch synchronized this throw throws transient "+"try volatile while @interface"),types:e("byte short int long float double boolean char void Boolean Byte Character Double Float "+"Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:e("catch class do else finally for if switch try while"),defKeywords:e("class interface enum @interface"),typeFirstDefinitions:true,atoms:e("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){if(e.match("interface",false))return false;e.eatWhile(/[\w\$_]/);return"meta"}},modeProps:{fold:["brace","import"]}}),c("text/x-csharp",{name:"clike",keywords:e("abstract as async await base break case catch checked class const continue"+" default delegate do else enum event explicit extern finally fixed for"+" foreach goto if implicit in interface internal is lock namespace new"+" operator out override params private protected public readonly ref return sealed"+" sizeof stackalloc static struct switch this throw try typeof unchecked"+" unsafe using virtual void volatile while add alias ascending descending dynamic from get"+" global group into join let orderby partial remove select set value var yield"),types:e("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func"+" Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32"+" UInt64 bool byte char decimal double short int long object"+" sbyte float string ushort uint ulong"),blockKeywords:e("catch class do else finally for foreach if struct switch try while"),defKeywords:e("class interface namespace struct var"),typeFirstDefinitions:true,atoms:e("true false null"),hooks:{"@":function(e,t){if(e.eat('"')){t.tokenize=l;return l(e,t)}e.eatWhile(/[\w\$_]/);return"meta"}}}),c("text/x-scala",{name:"clike",keywords:e("abstract case catch class def do else extends final finally for forSome if "+"implicit import lazy match new null object override package private protected return "+"sealed super this throw trait try type val var while with yield _ "+"assert assume require print println printf readLine readBoolean readByte readShort "+"readChar readInt readLong readFloat readDouble"),types:e("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either "+"Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable "+"Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering "+"Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder "+"StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector "+"Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable "+"Compiler Double Exception Float Integer Long Math Number Object Package Pair Process "+"Runtime Runnable SecurityManager Short StackTraceElement StrictMath String "+"StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:true,blockKeywords:e("catch class enum do else finally for forSome if match switch try while"),defKeywords:e("class enum def object package trait type val var"),atoms:e("true false null"),indentStatements:false,indentSwitch:false,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){e.eatWhile(/[\w\$_]/);return"meta"},'"':function(e,t){if(!e.match('""'))return false;t.tokenize=f;return t.tokenize(e,t)},"'":function(e){e.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},"=":function(e,t){var n=t.context;if(n.type=="}"&&n.align&&e.eat(">")){t.context=new A(n.indented,n.column,n.type,n.info,null,n.prev);return"operator"}else{return false}},"/":function(e,t){if(!e.eat("*"))return false;t.tokenize=h(1);return t.tokenize(e,t)}},modeProps:{closeBrackets:{triples:'"'}}}),c("text/x-kotlin",{name:"clike",keywords:e("package as typealias class interface this super val "+"var fun for is in This throw return "+"break continue object if else while do try when !in !is as? "+"file import where by get set abstract enum open inner override private public internal "+"protected catch finally out final vararg reified dynamic companion constructor init "+"sealed field property receiver param sparam lateinit data inline noinline tailrec "+"external annotation crossinline const operator infix suspend actual expect"),types:e("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable "+"Compiler Double Exception Float Integer Long Math Number Object Package Pair Process "+"Runtime Runnable SecurityManager Short StackTraceElement StrictMath String "+"StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),intendSwitch:false,indentStatements:false,multiLineStrings:true,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:e("catch class do else finally for if where try while enum"),defKeywords:e("class val var object interface fun"),atoms:e("true false null this"),hooks:{'"':function(e,t){t.tokenize=d(e.match('""'));return t.tokenize(e,t)}},modeProps:{closeBrackets:{triples:'"'}}}),c(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:e("sampler1D sampler2D sampler3D samplerCube "+"sampler1DShadow sampler2DShadow "+"const attribute uniform varying "+"break continue discard return "+"for while do if else struct "+"in out inout"),types:e("float int bool void "+"vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 "+"mat2 mat3 mat4"),blockKeywords:e("for while do if else struct"),builtin:e("radians degrees sin cos tan asin acos atan "+"pow exp log exp2 sqrt inversesqrt "+"abs sign floor ceil fract mod min max clamp mix step smoothstep "+"length distance dot cross normalize ftransform faceforward "+"reflect refract matrixCompMult "+"lessThan lessThanEqual greaterThan greaterThanEqual "+"equal notEqual any all not "+"texture1D texture1DProj texture1DLod texture1DProjLod "+"texture2D texture2DProj texture2DLod texture2DProjLod "+"texture3D texture3DProj texture3DLod texture3DProjLod "+"textureCube textureCubeLod "+"shadow1D shadow2D shadow1DProj shadow2DProj "+"shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod "+"dFdx dFdy fwidth "+"noise1 noise2 noise3 noise4"),atoms:e("true false "+"gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex "+"gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 "+"gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 "+"gl_FogCoord gl_PointCoord "+"gl_Position gl_PointSize gl_ClipVertex "+"gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor "+"gl_TexCoord gl_FogFragCoord "+"gl_FragCoord gl_FrontFacing "+"gl_FragData gl_FragDepth "+"gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix "+"gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse "+"gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse "+"gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose "+"gl_ProjectionMatrixInverseTranspose "+"gl_ModelViewProjectionMatrixInverseTranspose "+"gl_TextureMatrixInverseTranspose "+"gl_NormalScale gl_DepthRange gl_ClipPlane "+"gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel "+"gl_FrontLightModelProduct gl_BackLightModelProduct "+"gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ "+"gl_FogParameters "+"gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords "+"gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats "+"gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits "+"gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits "+"gl_MaxDrawBuffers"),indentSwitch:false,hooks:{"#":i},modeProps:{fold:["brace","include"]}}),c("text/x-nesc",{name:"clike",keywords:e(t+"as atomic async call command component components configuration event generic "+"implementation includes interface module new norace nx_struct nx_union post provides "+"signal task uses abstract extends"),types:e(n),blockKeywords:e("case do else for if switch while struct"),atoms:e("null true false"),hooks:{"#":i},modeProps:{fold:["brace","include"]}}),c("text/x-objectivec",{name:"clike",keywords:e(t+"inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in "+"inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),types:e(n),atoms:e("YES NO NULL NILL ON OFF true false"),hooks:{"@":function(e){e.eatWhile(/[\w\$]/);return"keyword"},"#":i,indent:function(e,t,n){if(t.type=="statement"&&/^@\w/.test(n))return t.indented}},modeProps:{fold:"brace"}}),c("text/x-squirrel",{name:"clike",keywords:e("base break clone continue const default delete enum extends function in class"+" foreach local resume return this throw typeof yield constructor instanceof static"),types:e(n),blockKeywords:e("case catch class else for foreach if switch try while"),defKeywords:e("function local class"),typeFirstDefinitions:true,atoms:e("true false null"),hooks:{"#":i},modeProps:{fold:["brace","include"]}});var p=null;function g(o){return function(e,t){var n=false,r,i=false;while(!e.eol()){if(!n&&e.match('"')&&(o=="single"||e.match('""'))){i=true;break}if(!n&&e.match("``")){p=g(o);i=true;break}r=e.next();n=o=="single"&&!n&&r=="\\"}if(i)t.tokenize=null;return"string"}}c("text/x-ceylon",{name:"clike",keywords:e("abstracts alias assembly assert assign break case catch class continue dynamic else"+" exists extends finally for function given if import in interface is let module new"+" nonempty object of out outer package return satisfies super switch then this throw"+" try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:e("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:e("class dynamic function interface module object package value"),builtin:e("abstract actual aliased annotation by default deprecated doc final formal late license"+" native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:true,typeFirstDefinitions:true,atoms:e("true false null larger smaller equal empty finished"),indentSwitch:false,styleDefs:false,hooks:{"@":function(e){e.eatWhile(/[\w\$_]/);return"meta"},'"':function(e,t){t.tokenize=g(e.match('""')?"triple":"single");return t.tokenize(e,t)},"`":function(e,t){if(!p||!e.match("`"))return false;t.tokenize=p;p=null;return t.tokenize(e,t)},"'":function(e){e.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},token:function(e,t,n){if((n=="variable"||n=="type")&&t.prevToken=="."){return"variable-2"}}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n(58))},function(e,t,n){!function(e){"use strict";e.defineMode("vbscript",function(r,o){var a="error";function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var s=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]");var l=new RegExp("^((<>)|(<=)|(>=))");var u=new RegExp("^[\\.,]");var c=new RegExp("^[\\(\\)]");var f=new RegExp("^[A-Za-z][_A-Za-z0-9]*");var t=["class","sub","select","while","if","function","property","with","for"];var n=["else","elseif","case"];var i=["next","loop","wend"];var h=e(["and","or","not","xor","is","mod","eqv","imp"]);var d=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"];var p=["true","false","nothing","empty","null"];var g=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"];var v=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"];var m=["WScript","err","debug","RegExp"];var y=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"];var b=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"];var w=["server","response","request","session","application"];var x=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"];var _=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"];var k=b.concat(y);m=m.concat(v);if(r.isASP){m=m.concat(w);k=k.concat(_,x)}var S=e(d);var C=e(p);var T=e(g);var O=e(m);var E=e(k);var M='"';var D=e(t);var A=e(n);var L=e(i);var P=e(["end"]);var N=e(["do"]);var I=e(["on error resume next","exit"]);var j=e(["rem"]);function R(e,t){t.currentIndent++}function F(e,t){t.currentIndent--}function z(e,t){if(e.eatSpace()){return"space"}var n=e.peek();if(n==="'"){e.skipToEnd();return"comment"}if(e.match(j)){e.skipToEnd();return"comment"}if(e.match(/^((&H)|(&O))?[0-9\.]/i,false)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,false)){var r=false;if(e.match(/^\d*\.\d+/i)){r=true}else if(e.match(/^\d+\.\d*/)){r=true}else if(e.match(/^\.\d+/)){r=true}if(r){e.eat(/J/i);return"number"}var i=false;if(e.match(/^&H[0-9a-f]+/i)){i=true}else if(e.match(/^&O[0-7]+/i)){i=true}else if(e.match(/^[1-9]\d*F?/)){e.eat(/J/i);i=true}else if(e.match(/^0(?![\dx])/i)){i=true}if(i){e.eat(/L/i);return"number"}}if(e.match(M)){t.tokenize=H(e.current());return t.tokenize(e,t)}if(e.match(l)||e.match(s)||e.match(h)){return"operator"}if(e.match(u)){return null}if(e.match(c)){return"bracket"}if(e.match(I)){t.doInCurrentLine=true;return"keyword"}if(e.match(N)){R(e,t);t.doInCurrentLine=true;return"keyword"}if(e.match(D)){if(!t.doInCurrentLine)R(e,t);else t.doInCurrentLine=false;return"keyword"}if(e.match(A)){return"keyword"}if(e.match(P)){F(e,t);F(e,t);return"keyword"}if(e.match(L)){if(!t.doInCurrentLine)F(e,t);else t.doInCurrentLine=false;return"keyword"}if(e.match(S)){return"keyword"}if(e.match(C)){return"atom"}if(e.match(E)){return"variable-2"}if(e.match(T)){return"builtin"}if(e.match(O)){return"variable-2"}if(e.match(f)){return"variable"}e.next();return a}function H(n){var r=n.length==1;var i="string";return function(e,t){while(!e.eol()){e.eatWhile(/[^'"]/);if(e.match(n)){t.tokenize=z;return i}else{e.eat(/['"]/)}}if(r){if(o.singleLineStringErrors){return a}else{t.tokenize=z}}return i}}function W(e,t){var n=t.tokenize(e,t);var r=e.current();if(r==="."){n=t.tokenize(e,t);r=e.current();if(n&&(n.substr(0,8)==="variable"||n==="builtin"||n==="keyword")){if(n==="builtin"||n==="keyword")n="variable";if(k.indexOf(r.substr(1))>-1)n="variable-2";return n}else{return a}}return n}var B={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:z,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:false,ignoreKeyword:false}},token:function(e,t){if(e.sol()){t.currentIndent+=t.nextLineIndent;t.nextLineIndent=0;t.doInCurrentLine=0}var n=W(e,t);t.lastToken={style:n,content:e.current()};if(n==="space")n=null;return n},indent:function(e,t){var n=t.replace(/^\s+|\s+$/g,"");if(n.match(L)||n.match(P)||n.match(A))return r.indentUnit*(e.currentIndent-1);if(e.currentIndent<0)return 0;return e.currentIndent*r.indentUnit}};return B}),e.defineMIME("text/vbscript","vbscript")}(n(58))},function(e,t,n){!function(e){"use strict";e.defineMode("pascal",function(){function e(e){var t={},n=e.split(" ");for(var r=0;r<n.length;++r)t[n[r]]=true;return t}var i=e("and array begin case const div do downto else end file for forward integer "+"boolean char function goto if in label mod nil not of or packed procedure "+"program record repeat set string then to type until var while with");var o={null:true};var a=/[+\-*&%=<>!?|\/]/;function r(e,t){var n=e.next();if(n=="#"&&t.startOfLine){e.skipToEnd();return"meta"}if(n=='"'||n=="'"){t.tokenize=s(n);return t.tokenize(e,t)}if(n=="("&&e.eat("*")){t.tokenize=l;return l(e,t)}if(/[\[\]{}\(\),;\:\.]/.test(n)){return null}if(/\d/.test(n)){e.eatWhile(/[\w\.]/);return"number"}if(n=="/"){if(e.eat("/")){e.skipToEnd();return"comment"}}if(a.test(n)){e.eatWhile(a);return"operator"}e.eatWhile(/[\w\$_]/);var r=e.current();if(i.propertyIsEnumerable(r))return"keyword";if(o.propertyIsEnumerable(r))return"atom";return"variable"}function s(o){return function(e,t){var n=false,r,i=false;while((r=e.next())!=null){if(r==o&&!n){i=true;break}n=!n&&r=="\\"}if(i||!n)t.tokenize=null;return"string"}}function l(e,t){var n=false,r;while(r=e.next()){if(r==")"&&n){t.tokenize=null;break}n=r=="*"}return"comment"}return{startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||r)(e,t);if(n=="comment"||n=="meta")return n;return n},electricChars:"{}"}}),e.defineMIME("text/x-pascal","pascal")}(n(58))},function(e,t,n){function c(e,t,n){var r,i,o,a,s=e.getLineHandle(t.line),l=t.ch-1,u=n&&n.afterCursor;return null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className)),(r=!u&&0<=l&&v[s.text.charAt(l)]||v[s.text.charAt(++l)])?(i=">"==r.charAt(1)?1:-1,n&&n.strict&&0<i!=(l==t.ch)?null:(o=e.getTokenTypeAt(g(t.line,l+1)),null==(a=f(e,g(t.line,l+(0<i?1:0)),i,o||null,n))?null:{from:g(t.line,l),to:a&&a.pos,match:a&&a.ch==r.charAt(0),forward:0<i})):null}function f(e,t,n,r,i){var o,a,s,l,u,c=i&&i.maxScanLineLength||1e4,f=i&&i.maxScanLines||1e3,h=[],d=i&&i.bracketRegex?i.bracketRegex:/[(){}[\]]/,p=0<n?Math.min(t.line+f,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-f);for(o=t.line;o!=p;o+=n)if((a=e.getLine(o))&&(s=0<n?0:a.length-1,l=0<n?a.length:-1,!(a.length>c)))for(o==t.line&&(s=t.ch-(n<0?1:0));s!=l;s+=n)if(u=a.charAt(s),d.test(u)&&(void 0===r||e.getTokenTypeAt(g(o,s+1))==r))if(">"==v[u].charAt(1)==0<n)h.push(u);else{if(!h.length)return{pos:g(o,s),ch:u};h.pop()}return o-n!=(0<n?e.lastLine():e.firstLine())&&null}function r(e,t,n){var r,i,o,a,s=e.state.matchBrackets.maxHighlightLineLength||1e3,l=[],u=e.listSelections();for(r=0;r<u.length;r++)(i=u[r].empty()&&c(e,u[r].head,n))&&e.getLine(i.from.line).length<=s&&(o=i.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket",l.push(e.markText(i.from,g(i.from.line,i.from.ch+1),{className:o})),i.to&&e.getLine(i.to.line).length<=s&&l.push(e.markText(i.to,g(i.to.line,i.to.ch+1),{className:o})));if(l.length){if(h&&e.state.focused&&e.focus(),a=function(){e.operation(function(){for(var e=0;e<l.length;e++)l[e].clear()})},!t)return a;setTimeout(a,800)}}function i(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=r(e,!1,e.state.matchBrackets)})}var o,h,g,v;o=n(58),h=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),g=o.Pos,v={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},o.defineOption("matchBrackets",!1,function(e,t,n){n&&n!=o.Init&&(e.off("cursorActivity",i),e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)),t&&(e.state.matchBrackets="object"==typeof t?t:{},e.on("cursorActivity",i))}),o.defineExtension("matchBrackets",function(){r(this,!0)}),o.defineExtension("findMatchingBracket",function(e,t,n){return!n&&"boolean"!=typeof t||(t=n?(n.strict=t,n):t?{strict:!0}:null),c(this,e,t)}),o.defineExtension("scanForBracket",function(e,t,n,r){return f(this,e,t,n,r)})},function(e,t,n){!function(i){"use strict";var s="CodeMirror-activeline",l="CodeMirror-activeline-background",u="CodeMirror-activeline-gutter";function c(e){for(var t=0;t<e.state.activeLines.length;t++){e.removeLineClass(e.state.activeLines[t],"wrap",s);e.removeLineClass(e.state.activeLines[t],"background",l);e.removeLineClass(e.state.activeLines[t],"gutter",u)}}function f(e,t){if(e.length!=t.length)return false;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return false;return true}function o(t,e){var n=[];for(var r=0;r<e.length;r++){var i=e[r];var o=t.getOption("styleActiveLine");if(typeof o=="object"&&o.nonEmpty?i.anchor.line!=i.head.line:!i.empty())continue;var a=t.getLineHandleVisualStart(i.head.line);if(n[n.length-1]!=a)n.push(a)}if(f(t.state.activeLines,n))return;t.operation(function(){c(t);for(var e=0;e<n.length;e++){t.addLineClass(n[e],"wrap",s);t.addLineClass(n[e],"background",l);t.addLineClass(n[e],"gutter",u)}t.state.activeLines=n})}function a(e,t){o(e,t.ranges)}i.defineOption("styleActiveLine",false,function(e,t,n){var r=n==i.Init?false:n;if(t==r)return;if(r){e.off("beforeSelectionChange",a);c(e);delete e.state.activeLines}if(t){e.state.activeLines=[];o(e,e.listSelections());e.on("beforeSelectionChange",a)}})}(n(58))},function(e,t,n){!function(l){"use strict";function r(n,e){if(typeof n=="string")n=new RegExp(n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e?"gi":"g");else if(!n.global)n=new RegExp(n.source,n.ignoreCase?"gi":"g");return{token:function(e){n.lastIndex=e.pos;var t=n.exec(e.string);if(t&&t.index==e.pos){e.pos+=t[0].length||1;return"searching"}else if(t){e.pos=t.index}else{e.skipToEnd()}}}}function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null;this.overlay=null}function u(e){return e.state.search||(e.state.search=new t)}function i(e){return typeof e=="string"&&e==e.toLowerCase()}function c(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:true})}function f(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:true,closeOnEnter:false,onClose:function(){y(e)},onKeyDown:i})}function h(e,t,n,r,i){if(e.openDialog)e.openDialog(t,i,{value:r,selectValueOnOpen:true});else i(prompt(n,r))}function d(e,t,n,r){if(e.openConfirm)e.openConfirm(t,r);else if(confirm(n))r[0]()}function p(e){return e.replace(/\\(.)/g,function(e,t){if(t=="n")return"\n";if(t=="r")return"\r";return t})}function o(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t){try{e=new RegExp(t[1],t[2].indexOf("i")==-1?"":"i")}catch(e){}}else{e=p(e)}if(typeof e=="string"?e=="":e.test(""))e=/x^/;return e}var g='<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>';function v(e,t,n){t.queryText=n;t.query=o(n);e.removeOverlay(t.overlay,i(t.query));t.overlay=r(t.query,i(t.query));e.addOverlay(t.overlay);if(e.showMatchesOnScrollbar){if(t.annotate){t.annotate.clear();t.annotate=null}t.annotate=e.showMatchesOnScrollbar(t.query,i(t.query))}}function n(o,t,e,n){var r=u(o);if(r.query)return m(o,t);var i=o.getSelection()||r.lastQuery;if(i instanceof RegExp&&i.source=="x^")i=null;if(e&&o.openDialog){var a=null;var s=function(e,t){l.e_stop(t);if(!e)return;if(e!=r.queryText){v(o,r,e);r.posFrom=r.posTo=o.getCursor()}if(a)a.style.opacity=1;m(o,t.shiftKey,function(e,t){var n;if(t.line<3&&document.querySelector&&(n=o.display.wrapper.querySelector(".CodeMirror-dialog"))&&n.getBoundingClientRect().bottom-4>o.cursorCoords(t,"window").top)(a=n).style.opacity=.4})};f(o,g,i,s,function(e,t){var n=l.keyName(e);var r=o.getOption("extraKeys"),i=r&&r[n]||l.keyMap[o.getOption("keyMap")][n];if(i=="findNext"||i=="findPrev"||i=="findPersistentNext"||i=="findPersistentPrev"){l.e_stop(e);v(o,u(o),t);o.execCommand(i)}else if(i=="find"||i=="findPersistent"){l.e_stop(e);s(t,e)}});if(n&&i){v(o,r,i);m(o,t)}}else{h(o,g,"Search for:",i,function(e){if(e&&!r.query)o.operation(function(){v(o,r,e);r.posFrom=r.posTo=o.getCursor();m(o,t)})})}}function m(n,r,i){n.operation(function(){var e=u(n);var t=c(n,e.query,r?e.posFrom:e.posTo);if(!t.find(r)){t=c(n,e.query,r?l.Pos(n.lastLine()):l.Pos(n.firstLine(),0));if(!t.find(r))return}n.setSelection(t.from(),t.to());n.scrollIntoView({from:t.from(),to:t.to()},20);e.posFrom=t.from();e.posTo=t.to();if(i)i(t.from(),t.to())})}function y(t){t.operation(function(){var e=u(t);e.lastQuery=e.query;if(!e.query)return;e.query=e.queryText=null;t.removeOverlay(e.overlay);if(e.annotate){e.annotate.clear();e.annotate=null}})}var a=' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',b='<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',w='<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>';function x(t,r,i){t.operation(function(){for(var e=c(t,r);e.findNext();){if(typeof r!="string"){var n=t.getRange(e.from(),e.to()).match(r);e.replace(i.replace(/\$(\d)/g,function(e,t){return n[t]}))}else e.replace(i)}})}function s(s,e){if(s.getOption("readOnly"))return;var t=s.getSelection()||u(s).lastQuery;var n='<span class="CodeMirror-search-label">'+(e?"Replace all:":"Replace:")+"</span>";h(s,n+a,n,t,function(a){if(!a)return;a=o(a);h(s,b,"Replace with:","",function(r){r=p(r);if(e){x(s,a,r)}else{y(s);var i=c(s,a,s.getCursor("from"));var o=function(){var e=i.from(),t;if(!(t=i.findNext())){i=c(s,a);if(!(t=i.findNext())||e&&i.from().line==e.line&&i.from().ch==e.ch)return}s.setSelection(i.from(),i.to());s.scrollIntoView({from:i.from(),to:i.to()});d(s,w,"Replace?",[function(){n(t)},o,function(){x(s,a,r)}])};var n=function(n){i.replace(typeof a=="string"?r:r.replace(/\$(\d)/g,function(e,t){return n[t]}));o()};o()}})})}l.commands.find=function(e){y(e);n(e)},l.commands.findPersistent=function(e){y(e);n(e,false,true)},l.commands.findPersistentNext=function(e){n(e,false,true,true)},l.commands.findPersistentPrev=function(e){n(e,true,true,true)},l.commands.findNext=n,l.commands.findPrev=function(e){n(e,true)},l.commands.clearSearch=y,l.commands.replace=s,l.commands.replaceAll=function(e){s(e,true)}}(n(58),n(203),n(375))},function(e,t,n){function f(e,t,n){var r=e.getWrapperElement(),i=r.appendChild(document.createElement("div"));return i.className=n?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?i.innerHTML=t:i.appendChild(t),i}function h(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}var d;(d=n(58)).defineExtension("openDialog",function(e,t,n){function r(e){if("string"==typeof e)s.value=e;else{if(o)return;o=!0,i.parentNode.removeChild(i),a.focus(),n.onClose&&n.onClose(i)}}var i,o,a,s,l;return n=n||{},h(this,null),i=f(this,e,n.bottom),o=!1,a=this,(s=i.getElementsByTagName("input")[0])?(s.focus(),n.value&&(s.value=n.value,!1!==n.selectValueOnOpen&&s.select()),n.onInput&&d.on(s,"input",function(e){n.onInput(e,s.value,r)}),n.onKeyUp&&d.on(s,"keyup",function(e){n.onKeyUp(e,s.value,r)}),d.on(s,"keydown",function(e){n&&n.onKeyDown&&n.onKeyDown(e,s.value,r)||((27==e.keyCode||!1!==n.closeOnEnter&&13==e.keyCode)&&(s.blur(),d.e_stop(e),r()),13==e.keyCode&&t(s.value,e))}),!1!==n.closeOnBlur&&d.on(s,"blur",r)):(l=i.getElementsByTagName("button")[0])&&(d.on(l,"click",function(){r(),a.focus()}),!1!==n.closeOnBlur&&d.on(l,"blur",r),l.focus()),r}),d.defineExtension("openConfirm",function(e,t,n){function r(){a||(a=!0,i.parentNode.removeChild(i),s.focus())}var i,o,a,s,l,u,c;for(h(this,null),o=(i=f(this,e,n&&n.bottom)).getElementsByTagName("button"),a=!1,s=this,l=1,o[0].focus(),u=0;u<o.length;++u)c=o[u],function(t){d.on(c,"click",function(e){d.e_preventDefault(e),r(),t&&t(s)})}(t[u]),d.on(c,"blur",function(){--l,setTimeout(function(){l<=0&&r()},200)}),d.on(c,"focus",function(){++l})}),d.defineExtension("openNotification",function(e,t){function n(){i||(i=!0,clearTimeout(o),r.parentNode.removeChild(r))}var r,i,o,a;return h(this,n),r=f(this,e,t&&t.bottom),i=!1,a=t&&void 0!==t.duration?t.duration:5e3,d.on(r,"click",function(e){d.e_preventDefault(e),n()}),a&&(o=setTimeout(n,a)),n})},function(e,t,n){!function(i){"use strict";var n={style:"matchhighlight",minChars:2,delay:100,wordsOnly:false,annotateScrollbar:false,showToken:false,trim:true};function o(e){this.options={};for(var t in n)this.options[t]=(e&&e.hasOwnProperty(t)?e:n)[t];this.overlay=this.timeout=null;this.matchesonscroll=null;this.active=false}function a(e){var t=e.state.matchHighlighter;if(t.active||e.hasFocus())r(e,t)}function s(e){var t=e.state.matchHighlighter;if(!t.active){t.active=true;r(e,t)}}function r(e,t){clearTimeout(t.timeout);t.timeout=setTimeout(function(){l(e)},t.options.delay)}function c(e,t,n,r){var i=e.state.matchHighlighter;e.addOverlay(i.overlay=d(t,n,r));if(i.options.annotateScrollbar&&e.showMatchesOnScrollbar){var o=n?new RegExp("\\b"+t+"\\b"):t;i.matchesonscroll=e.showMatchesOnScrollbar(o,false,{className:"CodeMirror-selection-highlight-scrollbar"})}}function f(e){var t=e.state.matchHighlighter;if(t.overlay){e.removeOverlay(t.overlay);t.overlay=null;if(t.matchesonscroll){t.matchesonscroll.clear();t.matchesonscroll=null}}}function l(u){u.operation(function(){var e=u.state.matchHighlighter;f(u);if(!u.somethingSelected()&&e.options.showToken){var t=e.options.showToken===true?/[\w$]/:e.options.showToken;var n=u.getCursor(),r=u.getLine(n.line),i=n.ch,o=i;while(i&&t.test(r.charAt(i-1)))--i;while(o<r.length&&t.test(r.charAt(o)))++o;if(i<o)c(u,r.slice(i,o),t,e.options.style);return}var a=u.getCursor("from"),s=u.getCursor("to");if(a.line!=s.line)return;if(e.options.wordsOnly&&!h(u,a,s))return;var l=u.getRange(a,s);if(e.options.trim)l=l.replace(/^\s+|\s+$/g,"");if(l.length>=e.options.minChars)c(u,l,false,e.options.style)})}function h(e,t,n){var r=e.getRange(t,n);if(r.match(/^\w+$/)!==null){if(t.ch>0){var i={line:t.line,ch:t.ch-1};var o=e.getRange(i,t);if(o.match(/\W/)===null)return false}if(n.ch<e.getLine(t.line).length){var i={line:n.line,ch:n.ch+1};var o=e.getRange(n,i);if(o.match(/\W/)===null)return false}return true}else return false}function u(e,t){return(!e.start||!t.test(e.string.charAt(e.start-1)))&&(e.pos==e.string.length||!t.test(e.string.charAt(e.pos)))}function d(t,n,r){return{token:function(e){if(e.match(t)&&(!n||u(e,n)))return r;e.next();e.skipTo(t.charAt(0))||e.skipToEnd()}}}i.defineOption("highlightSelectionMatches",false,function(e,t,n){if(n&&n!=i.Init){f(e);clearTimeout(e.state.matchHighlighter.timeout);e.state.matchHighlighter=null;e.off("cursorActivity",a);e.off("focus",s)}if(t){var r=e.state.matchHighlighter=new o(t);if(e.hasFocus()){r.active=true;l(e)}else{e.on("focus",s)}e.on("cursorActivity",a)}})}(n(58),n(377))},function(e,t,n){!function(u){"use strict";function r(e,t,n,r){this.cm=e;this.options=r;var i={listenForChanges:false};for(var o in r)i[o]=r[o];if(!i.className)i.className="CodeMirror-search-match";this.annotation=e.annotateScrollbar(i);this.query=t;this.caseFold=n;this.gap={from:e.firstLine(),to:e.lastLine()+1};this.matches=[];this.update=null;this.findMatches();this.annotation.update(this.matches);var a=this;e.on("change",this.changeHandler=function(e,t){a.onChange(t)})}u.defineExtension("showMatchesOnScrollbar",function(e,t,n){if(typeof n=="string")n={className:n};if(!n)n={};return new r(this,e,t,n)});var i=1e3;function c(e,t,n){if(e<=t)return e;return Math.max(t,e+n)}r.prototype.findMatches=function(){if(!this.gap)return;for(var e=0;e<this.matches.length;e++){var t=this.matches[e];if(t.from.line>=this.gap.to)break;if(t.to.line>=this.gap.from)this.matches.splice(e--,1)}var n=this.cm.getSearchCursor(this.query,u.Pos(this.gap.from,0),this.caseFold);var r=this.options&&this.options.maxMatches||i;while(n.findNext()){var t={from:n.from(),to:n.to()};if(t.from.line>=this.gap.to)break;this.matches.splice(e++,0,t);if(this.matches.length>r)break}this.gap=null},r.prototype.onChange=function(e){var t=e.from.line;var n=u.changeEnd(e).line;var r=n-e.to.line;if(this.gap){this.gap.from=Math.min(c(this.gap.from,t,r),e.from.line);this.gap.to=Math.max(c(this.gap.to,t,r),e.from.line)}else{this.gap={from:e.from.line,to:n+1}}if(r)for(var i=0;i<this.matches.length;i++){var o=this.matches[i];var a=c(o.from.line,t,r);if(a!=o.from.line)o.from=u.Pos(a,o.from.ch);var s=c(o.to.line,t,r);if(s!=o.to.line)o.to=u.Pos(s,o.to.ch)}clearTimeout(this.update);var l=this;this.update=setTimeout(function(){l.updateAfterChange()},250)},r.prototype.updateAfterChange=function(){this.findMatches();this.annotation.update(this.matches)},r.prototype.clear=function(){this.cm.off("change",this.changeHandler);this.annotation.clear()}}(n(58),n(203),n(378))},function(e,t,n){!function(e){"use strict";function t(e,t){this.cm=e;this.options=t;this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight");this.annotations=[];this.doRedraw=this.doUpdate=null;this.div=e.getWrapperElement().appendChild(document.createElement("div"));this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none";this.computeScale();function n(e){clearTimeout(r.doRedraw);r.doRedraw=setTimeout(function(){r.redraw()},e)}var r=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate);r.doUpdate=setTimeout(function(){if(r.computeScale())n(20)},100)});e.on("markerAdded",this.resizeHandler);e.on("markerCleared",this.resizeHandler);if(t.listenForChanges!==false)e.on("change",this.changeHandler=function(){n(250)})}e.defineExtension("annotateScrollbar",function(e){if(typeof e=="string")e={className:e};return new t(this,e)}),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm;var t=(e.getWrapperElement().clientHeight-e.display.barHeight-this.buttonHeight*2)/e.getScrollerElement().scrollHeight;if(t!=this.hScale){this.hScale=t;return true}},t.prototype.update=function(e){this.annotations=e;this.redraw()},t.prototype.redraw=function(e){if(e!==false)this.computeScale();var r=this.cm,t=this.hScale;var n=document.createDocumentFragment(),i=this.annotations;var o=r.getOption("lineWrapping");var a=o&&r.defaultTextHeight()*1.5;var s=null,l=null;function u(e,t){if(s!=e.line){s=e.line;l=r.getLineHandle(s)}if(l.widgets&&l.widgets.length||o&&l.height>a)return r.charCoords(e,"local")[t?"top":"bottom"];var n=r.heightAtLine(l,"local");return n+(t?0:l.height)}var c=r.lastLine();if(r.display.barWidth)for(var f=0,h;f<i.length;f++){var d=i[f];if(d.to.line>c)continue;var p=h||u(d.from,true)*t;var g=u(d.to,false)*t;while(f<i.length-1){if(i[f+1].to.line>c)break;h=u(i[f+1].from,true)*t;if(h>g+.9)break;d=i[++f];g=u(d.to,false)*t}if(g==p)continue;var v=Math.max(g-p,3);var m=n.appendChild(document.createElement("div"));m.style.cssText="position: absolute; right: 0px; width: "+Math.max(r.display.barWidth-1,2)+"px; top: "+(p+this.buttonHeight)+"px; height: "+v+"px";m.className=this.options.className;if(d.id){m.setAttribute("annotation-id",d.id)}}this.div.textContent="";this.div.appendChild(n)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler);this.cm.off("markerAdded",this.resizeHandler);this.cm.off("markerCleared",this.resizeHandler);if(this.changeHandler)this.cm.off("change",this.changeHandler);this.div.parentNode.removeChild(this.div)}}(n(58))},,,,,,,function(e,t,n){var r,i,o;i=[n(0),n(258),n(387),n(259),n(388),n(389),n(390),n(52),n(204)],void 0===(o="function"==typeof(r=function(b){return b.widget("ui.draggable",b.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(e){var t=this.options;return!(this.helper||t.disabled||0<b(e.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===t.iframeFix?"iframe":t.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=b(this);return b("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var t=b.ui.safeActiveElement(this.document[0]);b(e.target).closest(t).length||b.ui.safeBlur(t)},_mouseStart:function(e){var t=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),b.ui.ddmanager&&(b.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=0<this.helper.parents().filter(function(){return"fixed"===b(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,t.cursorAt&&this._adjustOffsetFromHelper(t.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),b.ui.ddmanager&&!t.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),b.ui.ddmanager&&b.ui.ddmanager.dragStart(this,e),!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(e,t){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!t){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp(new b.Event("mouseup",e)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",b.ui.ddmanager&&b.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var t=this,n=!1;return b.ui.ddmanager&&!this.options.dropBehaviour&&(n=b.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==t._trigger("stop",e)&&t._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),b.ui.ddmanager&&b.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),b.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new b.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!b(e.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(e){var t=this.options,n=b.isFunction(t.helper),r=n?b(t.helper.apply(this.element[0],[e])):"clone"===t.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"===t.appendTo?this.element[0].parentNode:t.appendTo),n&&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(e){"string"==typeof e&&(e=e.split(" ")),b.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),t=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==t&&b.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.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 e,t,n,r=this.options,i=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),(n=(t=b(r.containment))[0])&&(e=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t)):this.containment=r.containment:this.containment=[0,0,b(i).width()-this.helperProportions.width-this.margins.left,(b(i).height()||i.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[b(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,b(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,b(window).scrollLeft()+b(window).width()-this.helperProportions.width-this.margins.left,b(window).scrollTop()+(b(window).height()||i.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,r=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:r?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:r?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,r,i,o,a=this.options,s=this._isRootNode(this.scrollParent[0]),l=e.pageX,u=e.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(n=this.relativeContainer?(r=this.relativeContainer.offset(),[this.containment[0]+r.left,this.containment[1]+r.top,this.containment[2]+r.left,this.containment[3]+r.top]):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)),a.grid&&(i=a.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,u=n?i-this.offset.click.top>=n[1]||i-this.offset.click.top>n[3]?i:i-this.offset.click.top>=n[1]?i-a.grid[1]:i+a.grid[1]:i,o=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.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-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(l=this.originalPageX),"x"===a.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:s?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:s?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(e,t,n){return n=n||this._uiHash(),b.ui.plugin.call(this,e,[t,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),b.Widget.prototype._trigger.call(this,e,t,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),b.ui.plugin.add("draggable","connectToSortable",{start:function(t,e,n){var r=b.extend({},e,{item:n.element});n.sortables=[],b(n.options.connectToSortable).each(function(){var e=b(this).sortable("instance");e&&!e.options.disabled&&(n.sortables.push(e),e.refreshPositions(),e._trigger("activate",t,r))})},stop:function(t,e,n){var r=b.extend({},e,{item:n.element});n.cancelHelperRemoval=!1,b.each(n.sortables,function(){var e=this;e.isOver?(e.isOver=0,n.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,r))})},drag:function(n,r,i){b.each(i.sortables,function(){var e=!1,t=this;t.positionAbs=i.positionAbs,t.helperProportions=i.helperProportions,t.offset.click=i.offset.click,t._intersectsWith(t.containerCache)&&(e=!0,b.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==t&&this._intersectsWith(this.containerCache)&&b.contains(t.element[0],this.element[0])&&(e=!1),e})),e?(t.isOver||(t.isOver=1,i._parent=r.helper.parent(),t.currentItem=r.helper.appendTo(t.element).data("ui-sortable-item",!0),t.options._helper=t.options.helper,t.options.helper=function(){return r.helper[0]},n.target=t.currentItem[0],t._mouseCapture(n,!0),t._mouseStart(n,!0,!0),t.offset.click.top=i.offset.click.top,t.offset.click.left=i.offset.click.left,t.offset.parent.left-=i.offset.parent.left-t.offset.parent.left,t.offset.parent.top-=i.offset.parent.top-t.offset.parent.top,i._trigger("toSortable",n),i.dropped=t.element,b.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,t.fromOutside=i),t.currentItem&&(t._mouseDrag(n),r.position=t.position)):t.isOver&&(t.isOver=0,t.cancelHelperRemoval=!0,t.options._revert=t.options.revert,t.options.revert=!1,t._trigger("out",n,t._uiHash(t)),t._mouseStop(n,!0),t.options.revert=t.options._revert,t.options.helper=t.options._helper,t.placeholder&&t.placeholder.remove(),r.helper.appendTo(i._parent),i._refreshOffsets(n),r.position=i._generatePosition(n,!0),i._trigger("fromSortable",n),i.dropped=!1,b.each(i.sortables,function(){this.refreshPositions()}))})}}),b.ui.plugin.add("draggable","cursor",{start:function(e,t,n){var r=b("body"),i=n.options;r.css("cursor")&&(i._cursor=r.css("cursor")),r.css("cursor",i.cursor)},stop:function(e,t,n){var r=n.options;r._cursor&&b("body").css("cursor",r._cursor)}}),b.ui.plugin.add("draggable","opacity",{start:function(e,t,n){var r=b(t.helper),i=n.options;r.css("opacity")&&(i._opacity=r.css("opacity")),r.css("opacity",i.opacity)},stop:function(e,t,n){var r=n.options;r._opacity&&b(t.helper).css("opacity",r._opacity)}}),b.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(e,t,n){var r=n.options,i=!1,o=n.scrollParentNotHidden[0],a=n.document[0];o!==a&&"HTML"!==o.tagName?(r.axis&&"x"===r.axis||(n.overflowOffset.top+o.offsetHeight-e.pageY<r.scrollSensitivity?o.scrollTop=i=o.scrollTop+r.scrollSpeed:e.pageY-n.overflowOffset.top<r.scrollSensitivity&&(o.scrollTop=i=o.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(n.overflowOffset.left+o.offsetWidth-e.pageX<r.scrollSensitivity?o.scrollLeft=i=o.scrollLeft+r.scrollSpeed:e.pageX-n.overflowOffset.left<r.scrollSensitivity&&(o.scrollLeft=i=o.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(e.pageY-b(a).scrollTop()<r.scrollSensitivity?i=b(a).scrollTop(b(a).scrollTop()-r.scrollSpeed):b(window).height()-(e.pageY-b(a).scrollTop())<r.scrollSensitivity&&(i=b(a).scrollTop(b(a).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(e.pageX-b(a).scrollLeft()<r.scrollSensitivity?i=b(a).scrollLeft(b(a).scrollLeft()-r.scrollSpeed):b(window).width()-(e.pageX-b(a).scrollLeft())<r.scrollSensitivity&&(i=b(a).scrollLeft(b(a).scrollLeft()+r.scrollSpeed)))),!1!==i&&b.ui.ddmanager&&!r.dropBehaviour&&b.ui.ddmanager.prepareOffsets(n,e)}}),b.ui.plugin.add("draggable","snap",{start:function(e,t,n){var r=n.options;n.snapElements=[],b(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each(function(){var e=b(this),t=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:t.top,left:t.left})})},drag:function(e,t,n){var r,i,o,a,s,l,u,c,f,h,d=n.options,p=d.snapTolerance,g=t.offset.left,v=g+n.helperProportions.width,m=t.offset.top,y=m+n.helperProportions.height;for(f=n.snapElements.length-1;0<=f;f--)l=(s=n.snapElements[f].left-n.margins.left)+n.snapElements[f].width,c=(u=n.snapElements[f].top-n.margins.top)+n.snapElements[f].height,v<s-p||l+p<g||y<u-p||c+p<m||!b.contains(n.snapElements[f].item.ownerDocument,n.snapElements[f].item)?(n.snapElements[f].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,b.extend(n._uiHash(),{snapItem:n.snapElements[f].item})),n.snapElements[f].snapping=!1):("inner"!==d.snapMode&&(r=Math.abs(u-y)<=p,i=Math.abs(c-m)<=p,o=Math.abs(s-v)<=p,a=Math.abs(l-g)<=p,r&&(t.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),i&&(t.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),o&&(t.position.left=n._convertPositionTo("relative",{top:0,left:s-n.helperProportions.width}).left),a&&(t.position.left=n._convertPositionTo("relative",{top:0,left:l}).left)),h=r||i||o||a,"outer"!==d.snapMode&&(r=Math.abs(u-m)<=p,i=Math.abs(c-y)<=p,o=Math.abs(s-g)<=p,a=Math.abs(l-v)<=p,r&&(t.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),i&&(t.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),o&&(t.position.left=n._convertPositionTo("relative",{top:0,left:s}).left),a&&(t.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left)),!n.snapElements[f].snapping&&(r||i||o||a||h)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,b.extend(n._uiHash(),{snapItem:n.snapElements[f].item})),n.snapElements[f].snapping=r||i||o||a||h)}}),b.ui.plugin.add("draggable","stack",{start:function(e,t,n){var r,i=n.options,o=b.makeArray(b(i.stack)).sort(function(e,t){return(parseInt(b(e).css("zIndex"),10)||0)-(parseInt(b(t).css("zIndex"),10)||0)});o.length&&(r=parseInt(b(o[0]).css("zIndex"),10)||0,b(o).each(function(e){b(this).css("zIndex",r+e)}),this.css("zIndex",r+o.length))}}),b.ui.plugin.add("draggable","zIndex",{start:function(e,t,n){var r=b(t.helper),i=n.options;r.css("zIndex")&&(i._zIndex=r.css("zIndex")),r.css("zIndex",i.zIndex)},stop:function(e,t,n){var r=n.options;r._zIndex&&b(t.helper).css("zIndex",r._zIndex)}}),b.ui.draggable})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[n(0),n(52)],void 0===(o="function"==typeof(r=function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[n(0),n(52)],void 0===(o="function"==typeof(r=function(r){return r.extend(r.expr[":"],{data:r.expr.createPseudo?r.expr.createPseudo(function(t){return function(e){return!!r.data(e,t)}}):function(e,t,n){return!!r.data(e,n[3])}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[n(0),n(52)],void 0===(o="function"==typeof(r=function(e){return e.ui.safeActiveElement=function(t){var n;try{n=t.activeElement}catch(e){n=t.body}if(!n){n=t.body}if(!n.nodeName){n=t.body}return n}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[n(0),n(52)],void 0===(o="function"==typeof(r=function(t){return t.ui.safeBlur=function(e){if(e&&e.nodeName.toLowerCase()!=="body"){t(e).trigger("blur")}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[n(0),n(52)],void 0===(o="function"==typeof(r=function(o){return o.fn.scrollParent=function(e){var t=this.css("position"),n=t==="absolute",r=e?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter(function(){var e=o(this);if(n&&e.css("position")==="static"){return false}return r.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return t==="fixed"||!i.length?o(this[0].ownerDocument||document):i}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){},,,,,,function(e,t,n){var r,i,o;i=[n(0),n(258),n(398),n(259),n(52),n(204)],void 0===(o="function"==typeof(r=function(y){return y.widget("ui.resizable",y.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(e,t){if("hidden"===y(e).css("overflow"))return!1;var n,r=t&&"left"===t?"scrollLeft":"scrollTop";return 0<e[r]||(e[r]=1,n=0<e[r],e[r]=0,n)},_create:function(){var e,t=this.options,n=this;this._addClass("ui-resizable"),y.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(y("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),t.autoHide&&y(this.element).on("mouseenter",function(){t.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())}).on("mouseleave",function(){t.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();function e(e){y(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()}var t;return this.elementIsWrapper&&(e(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var e,t,n,r,i,o=this.options,a=this;if(this.handles=o.handles||(y(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=y(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},t=0;t<n.length;t++)r="ui-resizable-"+(e=y.trim(n[t])),i=y("<div>"),this._addClass(i,"ui-resizable-handle "+r),i.css({zIndex:o.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(i);this._renderAxis=function(e){var t,n,r,i;for(t in e=e||this.element,this.handles)this.handles[t].constructor===String?this.handles[t]=this.element.children(this.handles[t]).first().show():(this.handles[t].jquery||this.handles[t].nodeType)&&(this.handles[t]=y(this.handles[t]),this._on(this.handles[t],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=y(this.handles[t],this.element),i=/sw|ne|nw|se|n|s/.test(t)?n.outerHeight():n.outerWidth(),r=["padding",/ne|nw|n/.test(t)?"Top":/se|sw|s/.test(t)?"Bottom":/^e$/.test(t)?"Right":"Left"].join(""),e.css(r,i),this._proportionallyResize()),this._handles=this._handles.add(this.handles[t])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=i&&i[1]?i[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var t,n,r=!1;for(t in this.handles)(n=y(this.handles[t])[0])!==e.target&&!y.contains(n,e.target)||(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var t,n,r,i=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),t=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),i.containment&&(t+=y(i.containment).scrollLeft()||0,n+=y(i.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:t,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:t,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof i.aspectRatio?i.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=y(".ui-resizable-"+this.axis).css("cursor"),y("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var t,n,r=this.originalMousePosition,i=this.axis,o=e.pageX-r.left||0,a=e.pageY-r.top||0,s=this._change[i];return this._updatePrevProperties(),s&&(t=s.apply(this,[e,o,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(t=this._updateRatio(t,e)),t=this._respectSize(t,e),this._updateCache(t),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),y.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var t,n,r,i,o,a,s,l=this.options,u=this;return this._helper&&(r=(n=(t=this._proportionallyResizeElements).length&&/textarea/i.test(t[0].nodeName))&&this._hasScroll(t[0],"left")?0:u.sizeDiff.height,i=n?0:u.sizeDiff.width,o={width:u.helper.width()-i,height:u.helper.height()-r},a=parseFloat(u.element.css("left"))+(u.position.left-u.originalPosition.left)||null,s=parseFloat(u.element.css("top"))+(u.position.top-u.originalPosition.top)||null,l.animate||this.element.css(y.extend(o,{top:s,left:a})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!l.animate&&this._proportionallyResize()),y("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,n,r,i,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||e)&&(t=o.minHeight*this.aspectRatio,r=o.minWidth/this.aspectRatio,n=o.maxHeight*this.aspectRatio,i=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),r>o.minHeight&&(o.minHeight=r),n<o.maxWidth&&(o.maxWidth=n),i<o.maxHeight&&(o.maxHeight=i)),this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,n=this.size,r=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===r&&(e.left=t.left+(n.width-e.width),e.top=null),"nw"===r&&(e.top=t.top+(n.height-e.height),e.left=t.left+(n.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,n=this.axis,r=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,i=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,a=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,s=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,u=/sw|nw|w/.test(n),c=/nw|ne|n/.test(n);return o&&(e.width=t.minWidth),a&&(e.height=t.minHeight),r&&(e.width=t.maxWidth),i&&(e.height=t.maxHeight),o&&u&&(e.left=s-t.minWidth),r&&u&&(e.left=s-t.maxWidth),a&&c&&(e.top=l-t.minHeight),i&&c&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,n=[],r=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],i=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)n[t]=parseFloat(r[t])||0,n[t]+=parseFloat(i[t])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,n=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,t=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||y("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++t.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize;return{left:this.originalPosition.left+t,width:n.width-t}},n:function(e,t,n){var r=this.originalSize;return{top:this.originalPosition.top+n,height:r.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(e,t,n){return y.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,t,n]))},sw:function(e,t,n){return y.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,t,n]))},ne:function(e,t,n){return y.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,t,n]))},nw:function(e,t,n){return y.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,t,n]))}},_propagate:function(e,t){y.ui.plugin.call(this,e,[t,this.ui()]),"resize"!==e&&this._trigger(e,t,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),y.ui.plugin.add("resizable","animate",{stop:function(t){var n=y(this).resizable("instance"),e=n.options,r=n._proportionallyResizeElements,i=r.length&&/textarea/i.test(r[0].nodeName),o=i&&n._hasScroll(r[0],"left")?0:n.sizeDiff.height,a=i?0:n.sizeDiff.width,s={width:n.size.width-a,height:n.size.height-o},l=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,u=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(y.extend(s,u&&l?{top:u,left:l}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var e={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};r&&r.length&&y(r[0]).css({width:e.width,height:e.height}),n._updateCache(e),n._propagate("resize",t)}})}}),y.ui.plugin.add("resizable","containment",{start:function(){var n,r,e,t,i,o,a,s=y(this).resizable("instance"),l=s.options,u=s.element,c=l.containment,f=c instanceof y?c.get(0):/parent/.test(c)?u.parent().get(0):c;f&&(s.containerElement=y(f),/document/.test(c)||c===document?(s.containerOffset={left:0,top:0},s.containerPosition={left:0,top:0},s.parentData={element:y(document),left:0,top:0,width:y(document).width(),height:y(document).height()||document.body.parentNode.scrollHeight}):(n=y(f),r=[],y(["Top","Right","Left","Bottom"]).each(function(e,t){r[e]=s._num(n.css("padding"+t))}),s.containerOffset=n.offset(),s.containerPosition=n.position(),s.containerSize={height:n.innerHeight()-r[3],width:n.innerWidth()-r[1]},e=s.containerOffset,t=s.containerSize.height,i=s.containerSize.width,o=s._hasScroll(f,"left")?f.scrollWidth:i,a=s._hasScroll(f)?f.scrollHeight:t,s.parentData={element:f,left:e.left,top:e.top,width:o,height:a}))},resize:function(e){var t,n,r,i,o=y(this).resizable("instance"),a=o.options,s=o.containerOffset,l=o.position,u=o._aspectRatio||e.shiftKey,c={top:0,left:0},f=o.containerElement,h=!0;f[0]!==document&&/static/.test(f.css("position"))&&(c=s),l.left<(o._helper?s.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-s.left:o.position.left-c.left),u&&(o.size.height=o.size.width/o.aspectRatio,h=!1),o.position.left=a.helper?s.left:0),l.top<(o._helper?s.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-s.top:o.position.top),u&&(o.size.width=o.size.height*o.aspectRatio,h=!1),o.position.top=o._helper?s.top:0),r=o.containerElement.get(0)===o.element.parent().get(0),i=/relative|absolute/.test(o.containerElement.css("position")),r&&i?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),t=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-c.left:o.offset.left-s.left)),n=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-c.top:o.offset.top-s.top)),t+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-t,u&&(o.size.height=o.size.width/o.aspectRatio,h=!1)),n+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-n,u&&(o.size.width=o.size.height*o.aspectRatio,h=!1)),h||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=y(this).resizable("instance"),t=e.options,n=e.containerOffset,r=e.containerPosition,i=e.containerElement,o=y(e.helper),a=o.offset(),s=o.outerWidth()-e.sizeDiff.width,l=o.outerHeight()-e.sizeDiff.height;e._helper&&!t.animate&&/relative/.test(i.css("position"))&&y(this).css({left:a.left-r.left-n.left,width:s,height:l}),e._helper&&!t.animate&&/static/.test(i.css("position"))&&y(this).css({left:a.left-r.left-n.left,width:s,height:l})}}),y.ui.plugin.add("resizable","alsoResize",{start:function(){var e=y(this).resizable("instance").options;y(e.alsoResize).each(function(){var e=y(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,n){var t=y(this).resizable("instance"),r=t.options,i=t.originalSize,o=t.originalPosition,a={height:t.size.height-i.height||0,width:t.size.width-i.width||0,top:t.position.top-o.top||0,left:t.position.left-o.left||0};y(r.alsoResize).each(function(){var e=y(this),r=y(this).data("ui-resizable-alsoresize"),i={},t=e.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];y.each(t,function(e,t){var n=(r[t]||0)+(a[t]||0);n&&0<=n&&(i[t]=n||null)}),e.css(i)})},stop:function(){y(this).removeData("ui-resizable-alsoresize")}}),y.ui.plugin.add("resizable","ghost",{start:function(){var e=y(this).resizable("instance"),t=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:t.height,width:t.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==y.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=y(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=y(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),y.ui.plugin.add("resizable","grid",{resize:function(){var e,t=y(this).resizable("instance"),n=t.options,r=t.size,i=t.originalSize,o=t.originalPosition,a=t.axis,s="number"==typeof n.grid?[n.grid,n.grid]:n.grid,l=s[0]||1,u=s[1]||1,c=Math.round((r.width-i.width)/l)*l,f=Math.round((r.height-i.height)/u)*u,h=i.width+c,d=i.height+f,p=n.maxWidth&&n.maxWidth<h,g=n.maxHeight&&n.maxHeight<d,v=n.minWidth&&n.minWidth>h,m=n.minHeight&&n.minHeight>d;n.grid=s,v&&(h+=l),m&&(d+=u),p&&(h-=l),g&&(d-=u),/^(se|s|e)$/.test(a)?(t.size.width=h,t.size.height=d):/^(ne)$/.test(a)?(t.size.width=h,t.size.height=d,t.position.top=o.top-f):/^(sw)$/.test(a)?(t.size.width=h,t.size.height=d,t.position.left=o.left-c):((d-u<=0||h-l<=0)&&(e=t._getPaddingPlusBorderDimensions(this)),0<d-u?(t.size.height=d,t.position.top=o.top-f):(d=u-e.height,t.size.height=d,t.position.top=o.top+i.height-d),0<h-l?(t.size.width=h,t.position.left=o.left-c):(h=l-e.width,t.size.width=h,t.position.left=o.left+i.width-h))}}),y.ui.resizable})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[n(0),n(52)],void 0===(o="function"==typeof(r=function(e){return e.fn.extend({disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(e+".ui-disableSelection",function(e){e.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){},,,,,,function(e,t,n){"use strict";(function(e){function t(e,t,n){e[t]||Object.defineProperty(e,t,{writable:!0,configurable:!0,value:n})}if(n(406),n(584),n(585),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;t(String.prototype,"padLeft","".padStart),t(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&t(Array,e,Function.call.bind([][e]))})}).call(this,n(174))},function(e,t,n){n(407),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(489),n(490),n(491),n(492),n(493),n(494),n(495),n(498),n(499),n(500),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(509),n(510),n(226),n(511),n(512),n(277),n(513),n(514),n(515),n(516),n(517),n(278),n(280),n(281),n(518),n(519),n(520),n(521),n(522),n(523),n(524),n(525),n(526),n(527),n(528),n(529),n(530),n(531),n(532),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(540),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(582),n(583),e.exports=n(79)},function(e,t,n){"use strict";var r,i,o=n(20),a=n(49),s=n(36),l=n(9),u=n(54),c=n(91).KEY,f=n(21),h=n(179),d=n(131),p=n(103),g=n(28),v=n(261),m=n(206),y=n(408),b=n(409),w=n(209),x=n(19),_=n(56),k=n(72),S=n(90),C=n(107),T=n(264),O=n(63),E=n(37),M=n(105),D=O.f,A=E.f,L=T.f,P=o.Symbol,N=o.JSON,I=N&&N.stringify,j="prototype",R=g("_hidden"),F=g("toPrimitive"),z={}.propertyIsEnumerable,H=h("symbol-registry"),W=h("symbols"),B=h("op-symbols"),U=Object[j],q="function"==typeof P,G=o.QObject,Y=!G||!G[j]||!G[j].findChild,V=s&&f(function(){return 7!=C(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=D(U,t);r&&delete U[t],A(e,t,n),r&&e!==U&&A(U,t,r)}:A,K=function(e){var t=W[e]=C(P[j]);return t._k=e,t},$=q&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},X=function(e,t,n){return e===U&&X(B,t,n),x(e),t=k(t,!0),x(n),a(W,t)?(n.enumerable?(a(e,R)&&e[R][t]&&(e[R][t]=!1),n=C(n,{enumerable:S(0,!1)})):(a(e,R)||A(e,R,S(1,{})),e[R][t]=!0),V(e,t,n)):A(e,t,n)},J=function(e,t){x(e);for(var n,r=b(t=_(t)),i=0,o=r.length;i<o;)X(e,n=r[i++],t[n]);return e},Q=function(e,t){return void 0===t?C(e):J(C(e),t)},Z=function(e){var t=z.call(this,e=k(e,!0));return!(this===U&&a(W,e)&&!a(B,e))&&(!(t||!a(this,e)||!a(W,e)||a(this,R)&&this[R][e])||t)},ee=function(e,t){if(e=_(e),t=k(t,!0),e!==U||!a(W,t)||a(B,t)){var n=D(e,t);return!n||!a(W,t)||a(e,R)&&e[R][t]||(n.enumerable=!0),n}},te=function(e){for(var t,n=L(_(e)),r=[],i=0;n.length>i;)a(W,t=n[i++])||t==R||t==c||r.push(t);return r},ne=function(e){for(var t,n=e===U,r=L(n?B:_(e)),i=[],o=0;r.length>o;)!a(W,t=r[o++])||n&&!a(U,t)||i.push(W[t]);return i};for(q||(u((P=function(e){var t,n;if(this instanceof P)throw TypeError("Symbol is not a constructor!");return t=p(0<arguments.length?e:void 0),n=function(e){this===U&&n.call(B,e),a(this,R)&&a(this[R],t)&&(this[R][t]=!1),V(this,t,S(1,e))},s&&Y&&V(U,t,{configurable:!0,set:n}),K(t)})[j],"toString",function(){return this._k}),O.f=ee,E.f=X,n(108).f=T.f=te,n(149).f=Z,n(181).f=ne,s&&!n(104)&&u(U,"propertyIsEnumerable",Z,!0),v.f=function(e){return K(g(e))}),l(l.G+l.W+l.F*!q,{Symbol:P}),r="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),i=0;r.length>i;)g(r[i++]);for(r=M(g.store),i=0;r.length>i;)m(r[i++]);l(l.S+l.F*!q,"Symbol",{for:function(e){return a(H,e+="")?H[e]:H[e]=P(e)},keyFor:function(e){if($(e))return y(H,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),l(l.S+l.F*!q,"Object",{create:Q,defineProperty:X,defineProperties:J,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne}),N&&l(l.S+l.F*(!q||f(function(){var e=P();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!$(e)){for(var t,n,r=[e],i=1;i<arguments.length;)r.push(arguments[i++]);return"function"==typeof(t=r[1])&&(n=t),!n&&w(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!$(t))return t}),r[1]=t,I.apply(N,r)}}}),P[j][F]||n(53)(P[j],F,P[j].valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){var s=n(105),l=n(56);e.exports=function(e,t){for(var n,r=l(e),i=s(r),o=i.length,a=0;a<o;)if(r[n=i[a++]]===t)return n}},function(e,t,n){var s=n(105),l=n(181),u=n(149);e.exports=function(e){var t,n,r,i,o=s(e),a=l.f;if(a)for(t=a(e),n=u.f,r=0;t.length>r;)n.call(e,i=t[r++])&&o.push(i);return o}},function(e,t,n){var r=n(9);r(r.S,"Object",{create:n(107)})},function(e,t,n){var r=n(9);r(r.S+r.F*!n(36),"Object",{defineProperty:n(37).f})},function(e,t,n){var r=n(9);r(r.S+r.F*!n(36),"Object",{defineProperties:n(263)})},function(e,t,n){var r=n(56),i=n(63).f;n(73)("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},function(e,t,n){var r=n(45),i=n(64);n(73)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(45),i=n(105);n(73)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(73)("getOwnPropertyNames",function(){return n(264).f})},function(e,t,n){var r=n(24),i=n(91).onFreeze;n(73)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(e,t,n){var r=n(24),i=n(91).onFreeze;n(73)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(e,t,n){var r=n(24),i=n(91).onFreeze;n(73)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(e,t,n){var r=n(24);n(73)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(e,t,n){var r=n(24);n(73)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(e,t,n){var r=n(24);n(73)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(e,t,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(265)})},function(e,t,n){var r=n(9);r(r.S,"Object",{is:n(266)})},function(e,t,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(211).set})},function(e,t,n){"use strict";var r=n(150),i={};i[n(28)("toStringTag")]="z",i+""!="[object z]"&&n(54)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(9);r(r.P,"Function",{bind:n(267)})},function(e,t,n){var r=n(37).f,i=n(90),o=n(49),a=Function.prototype,s=/^\s*function ([^ (]*)/,l="name",u=Object.isExtensible||function(){return!0};l in a||n(36)&&r(a,l,{configurable:!0,get:function(){try{var e=(""+this).match(s)[1];return o(this,l)||!u(this)||r(this,l,i(5,e)),e}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(24),i=n(64),o=n(28)("hasInstance"),a=Function.prototype;o in a||n(37).f(a,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(9),i=n(268);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(e,t,n){var r=n(9),i=n(269);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(e,t,n){"use strict";var r,i,o,a=n(20),s=n(49),l=n(66),u=n(213),c=n(72),f=n(21),h=n(108).f,d=n(63).f,p=n(37).f,g=n(132).trim,v="Number",m=a[v],y=m,b=m.prototype,w=l(n(107)(b))==v,x="trim"in String.prototype,_=function(e){var t,n,r,i,o,a,s,l,u=c(e,!1);if("string"==typeof u&&2<u.length)if(43===(t=(u=x?u.trim():g(u,3)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=0,s=(o=u.slice(2)).length;a<s;a++)if((l=o.charCodeAt(a))<48||i<l)return NaN;return parseInt(o,r)}return+u};if(!m(" 0o1")||!m("0b1")||m("+0x1")){for(m=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof m&&(w?f(function(){b.valueOf.call(n)}):l(n)!=v)?u(new y(_(t)),n,m):_(t)},r=n(36)?h(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),i=0;r.length>i;i++)s(y,o=r[i])&&!s(m,o)&&p(m,o,d(y,o));(m.prototype=b).constructor=m,n(54)(a,v,m)}},function(e,t,n){"use strict";var r=n(9),u=n(92),c=n(270),f=n(214),i=1..toFixed,o=Math.floor,a=[0,0,0,0,0,0],h="Number.toFixed: incorrect invocation!",d="0",p=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*a[n],a[n]=r%1e7,r=o(r/1e7)},g=function(e){for(var t=6,n=0;0<=--t;)n+=a[t],a[t]=o(n/e),n=n%e*1e7},v=function(){for(var e,t=6,n="";0<=--t;)""===n&&0!==t&&0===a[t]||(e=String(a[t]),n=""===n?e:n+f.call(d,7-e.length)+e);return n},m=function(e,t,n){return 0===t?n:t%2==1?m(e,t-1,n*e):m(e*e,t/2,n)},y=function(e){for(var t=0,n=e;4096<=n;)t+=12,n/=4096;for(;2<=n;)t+=1,n/=2;return t};r(r.P+r.F*(!!i&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(21)(function(){i.call({})})),"Number",{toFixed:function(e){var t,n,r,i,o=c(this,h),a=u(e),s="",l=d;if(a<0||20<a)throw RangeError(h);if(o!=o)return"NaN";if(o<=-1e21||1e21<=o)return String(o);if(o<0&&(s="-",o=-o),1e-21<o)if(n=(t=y(o*m(2,69,1))-69)<0?o*m(2,-t,1):o/m(2,t,1),n*=4503599627370496,0<(t=52-t)){for(p(0,n),r=a;7<=r;)p(1e7,0),r-=7;for(p(m(10,r,1),0),r=t-1;23<=r;)g(1<<23),r-=23;g(1<<r),p(1,1),g(2),l=v()}else p(0,n),p(1<<-t,0),l=v()+f.call(d,a);return l=0<a?s+((i=l.length)<=a?"0."+f.call(d,a-i)+l:l.slice(0,i-a)+"."+l.slice(i-a)):s+l}})},function(e,t,n){"use strict";var r=n(9),i=n(21),o=n(270),a=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(9);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(9),i=n(20).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var r=n(9);r(r.S,"Number",{isInteger:n(271)})},function(e,t,n){var r=n(9);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(9),i=n(271),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){var r=n(9);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(9);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(9),i=n(269);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,n){var r=n(9),i=n(268);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,n){var r=n(9),i=n(272),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:94906265.62425156<e?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t,n){var r=n(9),i=Math.asinh;r(r.S+r.F*!(i&&0<1/i(0)),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var r=n(9),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(9),i=n(215);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(9);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(9),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,n){var r=n(9),i=n(216);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,n){var r=n(9),o=n(215),i=Math.pow,a=i(2,-52),s=i(2,-23),l=i(2,127)*(2-s),u=i(2,-126),c=function(e){return e+1/a-1/a};r(r.S,"Math",{fround:function(e){var t,n,r=Math.abs(e),i=o(e);return r<u?i*c(r/u/s)*u*s:l<(n=(t=(1+s/a)*r)-(t-r))||n!=n?i*(1/0):i*n}})},function(e,t,n){var r=n(9),l=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,o=0,a=arguments.length,s=0;o<a;)s<(n=l(arguments[o++]))?(i=i*(r=s/n)*r+1,s=n):i+=0<n?(r=n/s)*r:n;return s===1/0?1/0:s*Math.sqrt(i)}})},function(e,t,n){var r=n(9),i=Math.imul;r(r.S+r.F*n(21)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(9);r(r.S,"Math",{log10:function(e){return Math.log(e)/Math.LN10}})},function(e,t,n){var r=n(9);r(r.S,"Math",{log1p:n(272)})},function(e,t,n){var r=n(9);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(9);r(r.S,"Math",{sign:n(215)})},function(e,t,n){var r=n(9),i=n(216),o=Math.exp;r(r.S+r.F*n(21)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(9),i=n(216),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){var r=n(9);r(r.S,"Math",{trunc:function(e){return(0<e?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(9),o=n(106),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;i<r;){if(t=+arguments[i++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(9),a=n(56),s=n(40);r(r.S,"String",{raw:function(e){for(var t=a(e.raw),n=s(t.length),r=arguments.length,i=[],o=0;o<n;)i.push(String(t[o++])),o<r&&i.push(String(arguments[o]));return i.join("")}})},function(e,t,n){"use strict";n(132)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";var r=n(217)(!0);n(218)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r=n(9),i=n(217)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(9),s=n(40),l=n(220),u="endsWith",c=""[u];r(r.P+r.F*n(221)(u),"String",{endsWith:function(e,t){var n=l(this,e,u),r=1<arguments.length?t:void 0,i=s(n.length),o=void 0===r?i:Math.min(s(r),i),a=String(e);return c?c.call(n,a,o):n.slice(o-a.length,o)===a}})},function(e,t,n){"use strict";var r=n(9),i=n(220);r(r.P+r.F*n(221)("includes"),"String",{includes:function(e,t){return!!~i(this,e,"includes").indexOf(e,1<arguments.length?t:void 0)}})},function(e,t,n){var r=n(9);r(r.P,"String",{repeat:n(214)})},function(e,t,n){"use strict";var r=n(9),o=n(40),a=n(220),s="startsWith",l=""[s];r(r.P+r.F*n(221)(s),"String",{startsWith:function(e,t){var n=a(this,e,s),r=o(Math.min(1<arguments.length?t:void 0,n.length)),i=String(e);return l?l.call(n,i,r):n.slice(r,r+i.length)===i}})},function(e,t,n){"use strict";n(57)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(e,t,n){"use strict";n(57)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(57)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(57)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";n(57)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(57)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(e,t,n){"use strict";n(57)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(e,t,n){"use strict";n(57)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";n(57)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(e,t,n){"use strict";n(57)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";n(57)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(57)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(57)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){var r=n(9);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(9),i=n(45),o=n(72);r(r.P+r.F*n(21)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(){var e=i(this),t=o(e);return"number"!=typeof t||isFinite(t)?e.toISOString():null}})},function(e,t,n){"use strict";var r=n(9),i=n(21),o=Date.prototype.getTime,a=function(e){return 9<e?e:"0"+e};r(r.P+r.F*(i(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!i(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var e=this.getUTCFullYear(),t=this.getUTCMilliseconds(),n=e<0?"-":9999<e?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"."+(99<t?t:"0"+a(t))+"Z"}})},function(e,t,n){var r=Date.prototype,i="Invalid Date",o=r.toString,a=r.getTime;new Date(NaN)+""!=i&&n(54)(r,"toString",function(){var e=a.call(this);return e==e?o.call(this):i})},function(e,t,n){var r=n(28)("toPrimitive"),i=Date.prototype;r in i||n(53)(i,r,n(488))},function(e,t,n){"use strict";var r=n(19),i=n(72);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),"number"!=e)}},function(e,t,n){var r=n(9);r(r.S,"Array",{isArray:n(209)})},function(e,t,n){"use strict";var p=n(80),r=n(9),g=n(45),v=n(273),m=n(222),y=n(40),b=n(223),w=n(224);r(r.S+r.F*!n(184)(function(e){Array.from(e)}),"Array",{from:function(e,t,n){var r,i,o,a,s=g(e),l="function"==typeof this?this:Array,u=arguments.length,c=1<u?t:void 0,f=void 0!==c,h=0,d=w(s);if(f&&(c=p(c,2<u?n:void 0,2)),null==d||l==Array&&m(d))for(i=new l(r=y(s.length));h<r;h++)b(i,h,f?c(s[h],h):s[h]);else for(a=d.call(s),i=new l;!(o=a.next()).done;h++)b(i,h,f?v(a,c,[o.value,h],!0):o.value);return i.length=h,i}})},function(e,t,n){"use strict";var r=n(9),i=n(223);r(r.S+r.F*n(21)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);e<t;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(9),i=n(56),o=[].join;r(r.P+r.F*(n(148)!=Object||!n(68)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(9),i=n(210),u=n(66),c=n(106),f=n(40),h=[].slice;r(r.P+r.F*n(21)(function(){i&&h.call(i)}),"Array",{slice:function(e,t){var n,r,i,o,a,s=f(this.length),l=u(this);if(t=void 0===t?s:t,"Array"==l)return h.call(this,e,t);for(n=c(e,s),r=c(t,s),i=f(r-n),o=Array(i),a=0;a<i;a++)o[a]="String"==l?this.charAt(n+a):this[n+a];return o}})},function(e,t,n){"use strict";var r=n(9),i=n(55),o=n(45),a=n(21),s=[].sort,l=[1,2,3];r(r.P+r.F*(a(function(){l.sort(void 0)})||!a(function(){l.sort(null)})||!n(68)(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},function(e,t,n){"use strict";var r=n(9),i=n(74)(0),o=n(68)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e,t){return i(this,e,t)}})},function(e,t,n){var r=n(497);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(24),i=n(209),o=n(28)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(9),i=n(74)(1);r(r.P+r.F*!n(68)([].map,!0),"Array",{map:function(e,t){return i(this,e,t)}})},function(e,t,n){"use strict";var r=n(9),i=n(74)(2);r(r.P+r.F*!n(68)([].filter,!0),"Array",{filter:function(e,t){return i(this,e,t)}})},function(e,t,n){"use strict";var r=n(9),i=n(74)(3);r(r.P+r.F*!n(68)([].some,!0),"Array",{some:function(e,t){return i(this,e,t)}})},function(e,t,n){"use strict";var r=n(9),i=n(74)(4);r(r.P+r.F*!n(68)([].every,!0),"Array",{every:function(e,t){return i(this,e,t)}})},function(e,t,n){"use strict";var r=n(9),i=n(274);r(r.P+r.F*!n(68)([].reduce,!0),"Array",{reduce:function(e,t){return i(this,e,arguments.length,t,!1)}})},function(e,t,n){"use strict";var r=n(9),i=n(274);r(r.P+r.F*!n(68)([].reduceRight,!0),"Array",{reduceRight:function(e,t){return i(this,e,arguments.length,t,!0)}})},function(e,t,n){"use strict";var r=n(9),i=n(180)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(68)(o)),"Array",{indexOf:function(e,t){return a?o.apply(this,arguments)||0:i(this,e,t)}})},function(e,t,n){"use strict";var r=n(9),o=n(56),a=n(92),s=n(40),l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(68)(l)),"Array",{lastIndexOf:function(e,t){if(u)return l.apply(this,arguments)||0;var n=o(this),r=s(n.length),i=r-1;for(1<arguments.length&&(i=Math.min(i,a(t))),i<0&&(i=r+i);0<=i;i--)if(i in n&&n[i]===e)return i||0;return-1}})},function(e,t,n){var r=n(9);r(r.P,"Array",{copyWithin:n(275)}),n(134)("copyWithin")},function(e,t,n){var r=n(9);r(r.P,"Array",{fill:n(225)}),n(134)("fill")},function(e,t,n){"use strict";var r=n(9),i=n(74)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),n(134)("find")},function(e,t,n){"use strict";var r=n(9),i=n(74)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),n(134)(o)},function(e,t,n){n(109)("Array")},function(e,t,n){var r,i,o,a=n(20),s=n(213),l=n(37).f,u=n(108).f,c=n(183),f=n(185),h=a.RegExp,d=h,p=h.prototype,g=/a/g,v=/a/g,m=new h(g)!==g;if(n(36)&&(!m||n(21)(function(){return v[n(28)("match")]=!1,h(g)!=g||h(v)==v||"/a/i"!=h(g,"i")}))){for(h=function(e,t){var n=this instanceof h,r=c(e),i=void 0===t;return!n&&r&&e.constructor===h&&i?e:s(m?new d(r&&!i?e.source:e,t):d((r=e instanceof h)?e.source:e,r&&i?f.call(e):t),n?this:p,h)},r=function(t){t in h||l(h,t,{configurable:!0,get:function(){return d[t]},set:function(e){d[t]=e}})},i=u(d),o=0;i.length>o;)r(i[o++]);(p.constructor=h).prototype=p,n(54)(a,"RegExp",h)}n(109)("RegExp")},function(e,t,n){"use strict";var r,i,o,a,s,l;n(277),r=n(19),i=n(185),o=n(36),s=/./[a="toString"],l=function(e){n(54)(RegExp.prototype,a,e,!0)},n(21)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?l(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):s.name!=a&&l(function(){return s.call(this)})},function(e,t,n){n(186)("match",1,function(r,i,e){return[function(e){"use strict";var t=r(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,t):new RegExp(e)[i](String(t))},e]})},function(e,t,n){n(186)("replace",2,function(i,o,a){return[function(e,t){"use strict";var n=i(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,n,t):a.call(String(n),e,t)},a]})},function(e,t,n){n(186)("search",1,function(r,i,e){return[function(e){"use strict";var t=r(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,t):new RegExp(e)[i](String(t))},e]})},function(e,t,n){n(186)("split",2,function(i,o,a){"use strict";var d,p=n(183),g=a,v=[].push,e="split",m="length",y="lastIndex";return"c"=="abbc"[e](/(b)*/)[1]||4!="test"[e](/(?:)/,-1)[m]||2!="ab"[e](/(?:ab)*/)[m]||4!="."[e](/(.?)(.?)/)[m]||1<"."[e](/()()/)[m]||""[e](/.?/)[m]?(d=void 0===/()??/.exec("")[1],a=function(e,t){var n,r,i,o,a,s,l,u,c,f,h=String(this);if(void 0===e&&0===t)return[];if(!p(e))return g.call(h,e,t);for(n=[],r=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),o=void(i=0)===t?4294967295:t>>>0,a=new RegExp(e.source,r+"g"),d||(s=new RegExp("^"+a.source+"$(?!\\s)",r));(l=a.exec(h))&&!(i<(u=l.index+l[0][m])&&(n.push(h.slice(i,l.index)),!d&&1<l[m]&&l[0].replace(s,function(){for(f=1;f<arguments[m]-2;f++)void 0===arguments[f]&&(l[f]=void 0)}),1<l[m]&&l.index<h[m]&&v.apply(n,l.slice(1)),c=l[0][m],i=u,n[m]>=o));)a[y]===l.index&&a[y]++;return i===h[m]?!c&&a.test("")||n.push(""):n.push(h.slice(i)),n[m]>o?n.slice(0,o):n}):"0"[e](void 0,0)[m]&&(a=function(e,t){return void 0===e&&0===t?[]:g.call(this,e,t)}),[function(e,t){var n=i(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,n,t):a.call(String(n),e,t)},a]})},function(e,t,n){"use strict";var o,r,i,a,s,l,u,c,f,h,d,p,g,v,m,y,b,w=n(104),x=n(20),_=n(80),k=n(150),S=n(9),C=n(24),T=n(55),O=n(110),E=n(135),M=n(227),D=n(228).set,A=n(229)(),L="Promise",P=x.TypeError,N=x.process,I=x[L];N=x.process,o="process"==k(N),r=function(){},l=!!function(){try{var e=I.resolve(1),t=(e.constructor={})[n(28)("species")]=function(e){e(r,r)};return(o||"function"==typeof PromiseRejectionEvent)&&e.then(r)instanceof t}catch(e){}}(),u=function(e,t){return e===t||e===I&&t===s},c=function(e){var t;return!(!C(e)||"function"!=typeof(t=e.then))&&t},f=function(e){return u(I,e)?new h(e):new a(e)},h=a=function(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw P("Bad Promise constructor");n=e,r=t}),this.resolve=T(n),this.reject=T(r)},d=function(e){try{e()}catch(e){return{error:e}}},p=function(u,n){if(!u._n){u._n=!0;var r=u._c;A(function(){for(var s=u._v,l=1==u._s,e=0,t=function(e){var t,n,r=l?e.ok:e.fail,i=e.resolve,o=e.reject,a=e.domain;try{r?(l||(2==u._h&&m(u),u._h=1),!0===r?t=s:(a&&a.enter(),t=r(s),a&&a.exit()),t===e.promise?o(P("Promise-chain cycle")):(n=c(t))?n.call(t,i,o):i(t)):o(s)}catch(e){o(e)}};r.length>e;)t(r[e++]);u._c=[],u._n=!1,n&&!u._h&&g(u)})}},g=function(i){D.call(x,function(){var e,t,n,r=i._v;if(v(i)&&(e=d(function(){o?N.emit("unhandledRejection",r,i):(t=x.onunhandledrejection)?t({promise:i,reason:r}):(n=x.console)&&n.error&&n.error("Unhandled promise rejection",r)}),i._h=o||v(i)?2:1),i._a=void 0,e)throw e.error})},v=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if((t=n[r++]).fail||!v(t.promise))return!1;return!0},m=function(t){D.call(x,function(){var e;o?N.emit("rejectionHandled",t):(e=x.onrejectionhandled)&&e({promise:t,reason:t._v})})},y=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),p(t,!0))},b=function(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw P("Promise can't be resolved itself");(n=c(e))?A(function(){var t={_w:r,_d:!1};try{n.call(e,_(b,t,1),_(y,t,1))}catch(e){y.call(t,e)}}):(r._v=e,r._s=1,p(r,!1))}catch(e){y.call({_w:r,_d:!1},e)}}},l||(I=function(e){O(this,I,L,"_h"),T(e),i.call(this);try{e(_(b,this,1),_(y,this,1))}catch(e){y.call(this,e)}},(i=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(111)(I.prototype,{then:function(e,t){var n=f(M(this,I));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=o?N.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&p(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),h=function(){var e=new i;this.promise=e,this.resolve=_(b,e,1),this.reject=_(y,e,1)}),S(S.G+S.W+S.F*!l,{Promise:I}),n(131)(I,L),n(109)(L),s=n(79)[L],S(S.S+S.F*!l,L,{reject:function(e){var t=f(this);return(0,t.reject)(e),t.promise}}),S(S.S+S.F*(w||!l),L,{resolve:function(e){if(e instanceof I&&u(e.constructor,this))return e;var t=f(this);return(0,t.resolve)(e),t.promise}}),S(S.S+S.F*!(l&&n(184)(function(e){I.all(e).catch(r)})),L,{all:function(e){var a=this,t=f(a),s=t.resolve,l=t.reject,n=d(function(){var r=[],i=0,o=1;E(e,!1,function(e){var t=i++,n=!1;r.push(void 0),o++,a.resolve(e).then(function(e){n||(n=!0,r[t]=e,--o||s(r))},l)}),--o||s(r)});return n&&l(n.error),t.promise},race:function(e){var t=this,n=f(t),r=n.reject,i=d(function(){E(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(e,t,n){"use strict";var r=n(282);n(187)("WeakSet",function(t){return function(e){return t(this,0<arguments.length?e:void 0)}},{add:function(e){return r.def(this,e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(9),i=n(188),o=n(230),u=n(19),c=n(106),f=n(40),a=n(24),s=n(20).ArrayBuffer,h=n(227),d=o.ArrayBuffer,p=o.DataView,l=i.ABV&&s.isView,g=d.prototype.slice,v=i.VIEW,m="ArrayBuffer";r(r.G+r.W+r.F*(s!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,m,{isView:function(e){return l&&l(e)||a(e)&&v in e}}),r(r.P+r.U+r.F*n(21)(function(){return!new d(2).slice(1,void 0).byteLength}),m,{slice:function(e,t){if(void 0!==g&&void 0===t)return g.call(u(this),e);for(var n=u(this).byteLength,r=c(e,n),i=c(void 0===t?n:t,n),o=new(h(this,d))(f(i-r)),a=new p(this),s=new p(o),l=0;r<i;)s.setUint8(l++,a.getUint8(r++));return o}}),n(109)(m)},function(e,t,n){var r=n(9);r(r.G+r.W+r.F*!n(188).ABV,{DataView:n(230).DataView})},function(e,t,n){n(81)("Int8",1,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(81)("Uint8",1,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(81)("Uint8",1,function(r){return function(e,t,n){return r(this,e,t,n)}},!0)},function(e,t,n){n(81)("Int16",2,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(81)("Uint16",2,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(81)("Int32",4,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(81)("Uint32",4,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(81)("Float32",4,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){n(81)("Float64",8,function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,t,n){var r=n(9),o=n(55),a=n(19),s=(n(20).Reflect||{}).apply,l=Function.apply;r(r.S+r.F*!n(21)(function(){s(function(){})}),"Reflect",{apply:function(e,t,n){var r=o(e),i=a(n);return s?s(r,t,i):l.call(r,t,i)}})},function(e,t,n){var r=n(9),l=n(107),u=n(55),c=n(19),f=n(24),i=n(21),h=n(267),d=(n(20).Reflect||{}).construct,p=i(function(){function e(){}return!(d(function(){},[],e)instanceof e)}),g=!i(function(){d(function(){})});r(r.S+r.F*(p||g),"Reflect",{construct:function(e,t,n){var r,i,o,a,s;if(u(e),c(t),r=arguments.length<3?e:u(n),g&&!p)return d(e,t,r);if(e!=r)return o=r.prototype,a=l(f(o)?o:Object.prototype),s=Function.apply.call(e,a,t),f(s)?s:a;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}return(i=[null]).push.apply(i,t),new(h.apply(e,i))}})},function(e,t,n){var r=n(37),i=n(9),o=n(19),a=n(72);i(i.S+i.F*n(21)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){o(e),t=a(t,!0),o(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(9),i=n(63).f,o=n(19);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(9),i=n(19),o=function(e){this._t=i(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(219)(o,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,n){var a=n(63),s=n(64),l=n(49),r=n(9),u=n(24),c=n(19);r(r.S,"Reflect",{get:function e(t,n){var r,i,o=arguments.length<3?t:arguments[2];return c(t)===o?t[n]:(r=a.f(t,n))?l(r,"value")?r.value:void 0!==r.get?r.get.call(o):void 0:u(i=s(t))?e(i,n,o):void 0}})},function(e,t,n){var r=n(63),i=n(9),o=n(19);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},function(e,t,n){var r=n(9),i=n(64),o=n(19);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){var r=n(9);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(9),i=n(19),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,n){var r=n(9);r(r.S,"Reflect",{ownKeys:n(283)})},function(e,t,n){var r=n(9),i=n(19),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,n){var l=n(37),u=n(63),c=n(64),f=n(49),r=n(9),h=n(90),d=n(19),p=n(24);r(r.S,"Reflect",{set:function e(t,n,r){var i,o,a=arguments.length<4?t:arguments[3],s=u.f(d(t),n);if(!s){if(p(o=c(t)))return e(o,n,r,a);s=h(0)}return f(s,"value")?!(!1===s.writable||!p(a)||((i=u.f(a,n)||h(0)).value=r,l.f(a,n,i),0)):void 0!==s.set&&(s.set.call(a,r),!0)}})},function(e,t,n){var r=n(9),i=n(211);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(9),i=n(180)(!0);r(r.P,"Array",{includes:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),n(134)("includes")},function(e,t,n){"use strict";var r=n(9),i=n(217)(!0);r(r.P,"String",{at:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(9),i=n(284);r(r.P,"String",{padStart:function(e,t){return i(this,e,1<arguments.length?t:void 0,!0)}})},function(e,t,n){"use strict";var r=n(9),i=n(284);r(r.P,"String",{padEnd:function(e,t){return i(this,e,1<arguments.length?t:void 0,!1)}})},function(e,t,n){"use strict";n(132)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,n){"use strict";n(132)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,n){"use strict";var r=n(9),i=n(67),o=n(40),a=n(183),s=n(185),l=RegExp.prototype,u=function(e,t){this._r=e,this._s=t};n(219)(u,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),r(r.P,"String",{matchAll:function(e){if(i(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in l?String(e.flags):s.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(e.lastIndex),new u(r,t)}})},function(e,t,n){n(206)("asyncIterator")},function(e,t,n){n(206)("observable")},function(e,t,n){var r=n(9),s=n(283),l=n(56),u=n(63),c=n(223);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n=l(e),r=u.f,i=s(n),o={},a=0;i.length>a;)c(o,t=i[a++],r(n,t));return o}})},function(e,t,n){var r=n(9),i=n(285)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){var r=n(9),i=n(285)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(9),i=n(45),o=n(55),a=n(37);n(36)&&r(r.P+n(189),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(9),i=n(45),o=n(55),a=n(37);n(36)&&r(r.P+n(189),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(9),i=n(45),o=n(72),a=n(64),s=n(63).f;n(36)&&r(r.P+n(189),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.get}while(n=a(n))}})},function(e,t,n){"use strict";var r=n(9),i=n(45),o=n(72),a=n(64),s=n(63).f;n(36)&&r(r.P+n(189),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.set}while(n=a(n))}})},function(e,t,n){var r=n(9);r(r.P+r.R,"Map",{toJSON:n(286)("Map")})},function(e,t,n){var r=n(9);r(r.P+r.R,"Set",{toJSON:n(286)("Set")})},function(e,t,n){var r=n(9);r(r.S,"System",{global:n(20)})},function(e,t,n){var r=n(9),i=n(66);r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,n){var r=n(9);r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,n){var r=n(9);r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,n){var r=n(9);r(r.S,"Math",{imulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>16,s=r>>16,l=(a*o>>>0)+(i*o>>>16);return a*s+(l>>16)+((i*s>>>0)+(65535&l)>>16)}})},function(e,t,n){var r=n(9);r(r.S,"Math",{umulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>>16,s=r>>>16,l=(a*o>>>0)+(i*o>>>16);return a*s+(l>>>16)+((i*s>>>0)+(65535&l)>>>16)}})},function(e,t,n){var r=n(82),i=n(19),o=r.key,a=r.set;r.exp({defineMetadata:function(e,t,n,r){a(e,t,i(n),o(r))}})},function(e,t,n){var r=n(82),a=n(19),s=r.key,l=r.map,u=r.store;r.exp({deleteMetadata:function(e,t,n){var r,i=arguments.length<3?void 0:s(n),o=l(a(t),i,!1);return!(void 0===o||!o.delete(e))&&(!!o.size||((r=u.get(t)).delete(i),!!r.size||u.delete(t)))}})},function(e,t,n){var r=n(82),i=n(19),o=n(64),a=r.has,s=r.get,l=r.key,u=function(e,t,n){var r,i=a(e,t,n);return i?s(e,t,n):null!==(r=o(t))?u(e,r,n):void 0};r.exp({getMetadata:function(e,t,n){return u(e,i(t),arguments.length<3?void 0:l(n))}})},function(e,t,n){var o=n(280),a=n(287),r=n(82),i=n(19),s=n(64),l=r.keys,u=r.key,c=function(e,t){var n,r=l(e,t),i=s(e);return null===i?r:(n=c(i,t)).length?r.length?a(new o(r.concat(n))):n:r};r.exp({getMetadataKeys:function(e,t){return c(i(e),arguments.length<2?void 0:u(t))}})},function(e,t,n){var r=n(82),i=n(19),o=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t,n){return o(e,i(t),arguments.length<3?void 0:a(n))}})},function(e,t,n){var r=n(82),i=n(19),o=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(e,t){return o(i(e),arguments.length<2?void 0:a(t))}})},function(e,t,n){var r=n(82),i=n(19),o=n(64),a=r.has,s=r.key,l=function(e,t,n){var r,i=a(e,t,n);return!!i||null!==(r=o(t))&&l(e,r,n)};r.exp({hasMetadata:function(e,t,n){return l(e,i(t),arguments.length<3?void 0:s(n))}})},function(e,t,n){var r=n(82),i=n(19),o=r.has,a=r.key;r.exp({hasOwnMetadata:function(e,t,n){return o(e,i(t),arguments.length<3?void 0:a(n))}})},function(e,t,n){var r=n(82),i=n(19),o=n(55),a=r.key,s=r.set;r.exp({metadata:function(n,r){return function(e,t){s(n,r,(void 0!==t?i:o)(e),a(t))}}})},function(e,t,n){var r=n(9),i=n(229)(),o=n(20).process,a="process"==n(66)(o);r(r.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var i,o,r=n(9),a=n(20),s=n(79),l=n(229)(),u=n(28)("observable"),c=n(55),f=n(19),h=n(110),d=n(111),p=n(53),g=n(135),v=g.RETURN,m=function(e){return null==e?void 0:c(e)},y=function(e){var t=e._c;t&&(e._c=void 0,t())},b=function(e){return void 0===e._o},w=function(e){b(e)||(e._o=void 0,y(e))},x=function(t,e){f(t),this._c=void 0,this._o=t,t=new i(this);try{var n=e(t),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:c(n),this._c=n)}catch(e){return void t.error(e)}b(this)&&y(this)};x.prototype=d({},{unsubscribe:function(){w(this)}}),(i=function(e){this._s=e}).prototype=d({},{next:function(e){var t,n,r=this._s;if(!b(r)){t=r._o;try{if(n=m(t.next))return n.call(t,e)}catch(e){try{w(r)}finally{throw e}}}},error:function(e){var t,n,r=this._s;if(b(r))throw e;t=r._o,r._o=void 0;try{if(!(n=m(t.error)))throw e;e=n.call(t,e)}catch(e){try{y(r)}finally{throw e}}return y(r),e},complete:function(e){var t,n,r=this._s;if(!b(r)){t=r._o,r._o=void 0;try{e=(n=m(t.complete))?n.call(t,e):void 0}catch(e){try{y(r)}finally{throw e}}return y(r),e}}}),d((o=function(e){h(this,o,"Observable","_f")._f=c(e)}).prototype,{subscribe:function(e){return new x(e,this._f)},forEach:function(r){var i=this;return new(s.Promise||a.Promise)(function(e,t){c(r);var n=i.subscribe({next:function(e){try{return r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e})})}}),d(o,{from:function(e){var t,n="function"==typeof this?this:o,r=m(f(e)[u]);return r?(t=f(r.call(e))).constructor===n?t:new n(function(e){return t.subscribe(e)}):new n(function(t){var n=!1;return l(function(){if(!n){try{if(g(e,!1,function(e){if(t.next(e),n)return v})===v)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}}),function(){n=!0}})},of:function(){for(var e=0,t=arguments.length,r=Array(t);e<t;)r[e]=arguments[e++];return new("function"==typeof this?this:o)(function(t){var n=!1;return l(function(){if(!n){for(var e=0;e<r.length;++e)if(t.next(r[e]),n)return;t.complete()}}),function(){n=!0}})}}),p(o.prototype,u,function(){return this}),r(r.G,{Observable:o}),n(109)("Observable")},function(e,t,n){var r=n(20),i=n(9),o=n(182),a=n(580),s=r.navigator,l=!!s&&/MSIE .\./.test(s.userAgent),u=function(n){return l?function(e,t){return n(o(a,[].slice.call(arguments,2),"function"==typeof e?e:Function(e)),t)}:n};i(i.G+i.B+i.F*l,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(e,t,n){"use strict";var r=n(581),u=n(182),c=n(55);e.exports=function(){for(var i=c(this),o=arguments.length,a=Array(o),e=0,s=r._,l=!1;e<o;)(a[e]=arguments[e++])===s&&(l=!0);return function(){var e,t=arguments.length,n=0,r=0;if(!l&&!t)return u(i,a,this);if(e=a.slice(),l)for(;n<o;n++)e[n]===s&&(e[n]=arguments[r++]);for(;r<t;)e.push(arguments[r++]);return u(i,e,this)}}},function(e,t,n){e.exports=n(20)},function(e,t,n){var r=n(9),i=n(228);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){var r,i,o,a,s,l,u=n(226),c=n(54),f=n(20),h=n(53),d=n(133),p=n(28),g=p("iterator"),v=p("toStringTag"),m=d.Array;for(r=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],i=0;i<5;i++)if(s=(a=f[o=r[i]])&&a.prototype)for(l in s[g]||h(s,g,m),s[v]||h(s,v,o),d[o]=m,u)s[l]||c(s,l,u[l],!0)},function(L,e,t){(function(e){!function(e){"use strict";function o(e,t,n,r){var i=t&&t.prototype instanceof s?t:s,o=Object.create(i.prototype),a=new f(r||[]);return o._invoke=function(o,a,s){var l=g;return function(e,t){var n,r,i;if(l===m)throw new Error("Generator is already running");if(l===y){if("throw"===e)throw t;return d()}for(s.method=e,s.arg=t;;){if((n=s.delegate)&&(r=c(n,s))){if(r===b)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===g)throw l=y,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l=m,"normal"===(i=u(o,a,s)).type){if(l=s.done?y:v,i.arg===b)continue;return{value:i.arg,done:s.done}}"throw"===i.type&&(l=y,s.method="throw",s.arg=i.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function s(){}function n(){}function t(){}function r(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function a(s){function l(e,t,n,r){var i,o,a=u(s[e],s,t);if("throw"!==a.type)return(o=(i=a.arg).value)&&"object"==typeof o&&C.call(o,"__await")?Promise.resolve(o.__await).then(function(e){l("next",e,n,r)},function(e){l("throw",e,n,r)}):Promise.resolve(o).then(function(e){i.value=e,n(i)},r);r(a.arg)}var t;"object"==typeof e.process&&e.process.domain&&(l=e.process.domain.bind(l)),this._invoke=function(n,r){function e(){return new Promise(function(e,t){l(n,r,e,t)})}return t=t?t.then(e,e):e()}}function c(e,t){var n,r,i=e.iterator[t.method];if(i!==p)return"throw"===(n=u(i,e.iterator,t.arg)).type?(t.method="throw",t.arg=n.arg,t.delegate=null,b):(r=n.arg)?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=p),t.delegate=null,b):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b);if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=p,c(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}function i(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function l(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function f(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(i,this),this.reset(!0)}function h(t){var e,n,r;if(t){if(e=t[O])return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(r=function e(){for(;++n<t.length;)if(C.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=p,e.done=!0,e}).next=r}return{next:d}}function d(){return{value:p,done:!0}}var p,g,v,m,y,b,w,x,_,k,S=Object.prototype,C=S.hasOwnProperty,T="function"==typeof Symbol?Symbol:{},O=T.iterator||"@@iterator",E=T.asyncIterator||"@@asyncIterator",M=T.toStringTag||"@@toStringTag",D="object"==typeof L,A=e.regeneratorRuntime;A?D&&(L.exports=A):((A=e.regeneratorRuntime=D?L.exports:{}).wrap=o,g="suspendedStart",v="suspendedYield",m="executing",y="completed",b={},(w={})[O]=function(){return this},(_=(x=Object.getPrototypeOf)&&x(x(h([]))))&&_!==S&&C.call(_,O)&&(w=_),k=t.prototype=s.prototype=Object.create(w),n.prototype=k.constructor=t,t.constructor=n,t[M]=n.displayName="GeneratorFunction",A.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))},A.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,t):(e.__proto__=t,M in e||(e[M]="GeneratorFunction")),e.prototype=Object.create(k),e},A.awrap=function(e){return{__await:e}},r(a.prototype),a.prototype[E]=function(){return this},A.AsyncIterator=a,A.async=function(e,t,n,r){var i=new a(o(e,t,n,r));return A.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},r(k),k[M]="Generator",k[O]=function(){return this},k.toString=function(){return"[object Generator]"},A.keys=function(n){var e,r=[];for(e in n)r.push(e);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},A.values=h,f.prototype={constructor:f,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=p,this.done=!1,this.delegate=null,this.method="next",this.arg=p,this.tryEntries.forEach(l),!e)for(var t in this)"t"===t.charAt(0)&&C.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=p)},stop:function(){var e;if(this.done=!0,"throw"===(e=this.tryEntries[0].completion).type)throw e.arg;return this.rval},dispatchException:function(n){function e(e,t){return o.type="throw",o.arg=n,r.next=e,t&&(r.method="next",r.arg=p),!!t}var r,t,i,o,a,s;if(this.done)throw n;for(t=(r=this).tryEntries.length-1;0<=t;--t){if(i=this.tryEntries[t],o=i.completion,"root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev)if(a=C.call(i,"catchLoc"),s=C.call(i,"finallyLoc"),a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}},abrupt:function(e,t){var n,r,i,o;for(n=this.tryEntries.length-1;0<=n;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&C.call(r,"finallyLoc")&&this.prev<r.finallyLoc){i=r;break}return i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null),(o=i?i.completion:{}).type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){var t,n;for(t=this.tryEntries.length-1;0<=t;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),l(n),b},catch:function(e){var t,n,r,i;for(t=this.tryEntries.length-1;0<=t;--t)if((n=this.tryEntries[t]).tryLoc===e)return"throw"===(r=n.completion).type&&(i=r.arg,l(n)),i;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=p),b}})}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,t(174))},function(e,t,n){n(586),e.exports=n(79).RegExp.escape},function(e,t,n){var r=n(9),i=n(587)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return i(e)}})},function(e,t){e.exports=function(t,n){var r=n===Object(n)?function(e){return n[e]}:n;return function(e){return String(e).replace(t,r)}}},function(e,t,n){"use strict";function r(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function i(e){return"string"!=typeof e&&(e=String(e)),e}function o(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return v.iterable&&(e[Symbol.iterator]=function(){return e}),e}function s(t){this.map={},t instanceof s?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function a(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function l(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function u(e){var t=new FileReader,n=l(t);return t.readAsArrayBuffer(e),n}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:v.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:v.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:v.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():v.arrayBuffer&&v.blob&&function(e){return e&&DataView.prototype.isPrototypeOf(e)}(e)?(this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):v.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||y(e))?this._bodyArrayBuffer=c(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},v.blob&&(this.blob=function(){var e=a(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?a(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var e=a(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=l(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){var t,n=new Uint8Array(e),r=new Array(n.length);for(t=0;t<n.length;t++)r[t]=String.fromCharCode(n[t]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},v.formData&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}function h(e,t){var n=(t=t||{}).body;if(e instanceof h){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new s(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new s(t.headers)),this.method=function(e){var t=e.toUpperCase();return-1<b.indexOf(t)?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(e){var i=new FormData;return e.trim().split("&").forEach(function(e){var t,n,r;e&&(n=(t=e.split("=")).shift().replace(/\+/g," "),r=t.join("=").replace(/\+/g," "),i.append(decodeURIComponent(n),decodeURIComponent(r)))}),i}function p(e,t){t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new s(t.headers),this.url=t.url||"",this._initBody(e)}function g(o,a){return new Promise(function(n,e){function t(){r.abort()}var r,i=new h(o,a);if(i.signal&&i.signal.aborted)return e(new x("Aborted","AbortError"));(r=new XMLHttpRequest).onload=function(){var e,t={status:r.status,statusText:r.statusText,headers:function(e){var i=new s,t=e.replace(/\r?\n[\t ]+/g," ");return t.split(/\r?\n/).forEach(function(e){var t,n=e.split(":"),r=n.shift().trim();r&&(t=n.join(":").trim(),i.append(r,t))}),i}(r.getAllResponseHeaders()||"")};t.url="responseURL"in r?r.responseURL:t.headers.get("X-Request-URL"),e="response"in r?r.response:r.responseText,n(new p(e,t))},r.onerror=function(){e(new TypeError("Network request failed"))},r.ontimeout=function(){e(new TypeError("Network request failed"))},r.onabort=function(){e(new x("Aborted","AbortError"))},r.open(i.method,i.url,!0),"include"===i.credentials?r.withCredentials=!0:"omit"===i.credentials&&(r.withCredentials=!1),"responseType"in r&&v.blob&&(r.responseType="blob"),i.headers.forEach(function(e,t){r.setRequestHeader(t,e)}),i.signal&&(i.signal.addEventListener("abort",t),r.onreadystatechange=function(){4===r.readyState&&i.signal.removeEventListener("abort",t)}),r.send(void 0===i._bodyInit?null:i._bodyInit)})}var v,m,y,b,w,x;n.r(t),n.d(t,"Headers",function(){return s}),n.d(t,"Request",function(){return h}),n.d(t,"Response",function(){return p}),n.d(t,"DOMException",function(){return x}),n.d(t,"fetch",function(){return g}),(v={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self}).arrayBuffer&&(m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],y=ArrayBuffer.isView||function(e){return e&&-1<m.indexOf(Object.prototype.toString.call(e))}),s.prototype.append=function(e,t){e=r(e),t=i(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},s.prototype.delete=function(e){delete this.map[r(e)]},s.prototype.get=function(e){return e=r(e),this.has(e)?this.map[e]:null},s.prototype.has=function(e){return this.map.hasOwnProperty(r(e))},s.prototype.set=function(e,t){this.map[r(e)]=i(t)},s.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},s.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),o(n)},s.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),o(t)},s.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),o(n)},v.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries),b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"],h.prototype.clone=function(){return new h(this,{body:this._bodyInit})},f.call(h.prototype),f.call(p.prototype),p.prototype.clone=function(){return new p(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},p.error=function(){var e=new p(null,{status:0,statusText:""});return e.type="error",e},w=[301,302,303,307,308],p.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new p(null,{status:t,headers:{location:e}})},x=self.DOMException;try{new x}catch(e){(x=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),x.prototype.constructor=x}g.polyfill=!0,self.fetch||(self.fetch=g,self.Headers=s,self.Request=h,self.Response=p)}]]);