Current Directory: /home/astoriaah/www/templates/yootheme/vendor/yootheme/theme/app
Viewing File: /home/astoriaah/www/templates/yootheme/vendor/yootheme/theme/app/vue.min.js
!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,o,a){for(var s,l,u,c=0,f=[];c<r.length;c++)l=r[c],i[l]&&f.push(i[l][0]),i[l]=0;for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s]);for(n&&n(r,o,a);f.length;)f.shift()();if(a)for(c=0;c<a.length;c++)u=t(t.s=a[c]);return u};var r={},i={12:0};t.m=e,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t.oe=function(e){throw console.error(e),e},t(t.s=154)}([,,function(e,t){e.exports=jQuery},function(e,t,n){"use strict";(function(t){/*!
* Vue.js v1.0.28
* (c) 2016 Evan You
* Released under the MIT License.
*/
function n(e,t,r){if(i(e,t))return void(e[t]=r);if(e._isVue)return void n(e._data,t,r);var o=e.__ob__;if(!o)return void(e[t]=r);if(o.convert(t,r),o.dep.notify(),o.vms)for(var a=o.vms.length;a--;){var s=o.vms[a];s._proxy(t),s._digest()}return r}function r(e,t){if(i(e,t)){delete e[t];var n=e.__ob__;if(!n)return void(e._isVue&&(delete e._data[t],e._digest()));if(n.dep.notify(),n.vms)for(var r=n.vms.length;r--;){var o=n.vms[r];o._unproxy(t),o._digest()}}}function i(e,t){return jn.call(e,t)}function o(e){return Dn.test(e)}function a(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function s(e){return null==e?"":e.toString()}function l(e){if("string"!=typeof e)return e;var t=Number(e);return isNaN(t)?e:t}function u(e){return"true"===e||"false"!==e&&e}function c(e){var t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function f(e){return e.replace(Fn,d)}function d(e,t){return t?t.toUpperCase():""}function h(e){return e.replace(In,"$1-$2").replace(In,"$1-$2").toLowerCase()}function p(e){return e.replace(Hn,d)}function v(e,t){return function(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}}function m(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function g(e,t){for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function y(e){return null!==e&&"object"==typeof e}function b(e){return Rn.call(e)===zn}function w(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function x(e,t){var n,r,i,o,a,s=function s(){var l=Date.now()-o;l<t&&l>=0?n=setTimeout(s,t-l):(n=null,a=e.apply(i,r),n||(i=r=null))};return function(){return i=this,r=arguments,o=Date.now(),n||(n=setTimeout(s,t)),a}}function k(e,t){for(var n=e.length;n--;)if(e[n]===t)return n;return-1}function C(e){var t=function t(){if(!t.cancelled)return e.apply(this,arguments)};return t.cancel=function(){t.cancelled=!0},t}function _(e,t){return e==t||!(!y(e)||!y(t))&&JSON.stringify(e)===JSON.stringify(t)}function S(e){return/native code/.test(e.toString())}function O(e){this.size=0,this.limit=e,this.head=this.tail=void 0,this._keymap=Object.create(null)}function M(){return ar.charCodeAt(ur+1)}function T(){return ar.charCodeAt(++ur)}function A(){return ur>=lr}function N(){for(;M()===kr;)T()}function E(e){return e===yr||e===br}function L(e){return Cr[e]}function $(e,t){return _r[e]===t}function P(){for(var e,t=T();!A();)if((e=T())===xr)T();else if(e===t)break}function j(e){for(var t=0,n=e;!A();)if(e=M(),E(e))P();else if(n===e&&t++,$(n,e)&&t--,T(),0===t)break}function D(){for(var e=ur;!A();)if(cr=M(),E(cr))P();else if(L(cr))j(cr);else if(cr===wr){if(T(),(cr=M())!==wr){fr!==pr&&fr!==gr||(fr=vr);break}T()}else{if(cr===kr&&(fr===mr||fr===gr)){N();break}fr===vr&&(fr=mr),T()}return ar.slice(e+1,ur)||null}function F(){for(var e=[];!A();)e.push(I());return e}function I(){var e,t={};return fr=vr,t.name=D().trim(),fr=gr,e=H(),e.length&&(t.args=e),t}function H(){for(var e=[];!A()&&fr!==vr;){var t=D();if(!t)break;e.push(R(t))}return e}function R(e){if(hr.test(e))return{value:l(e),dynamic:!1};var t=c(e),n=t===e;return{value:n?e:t,dynamic:n}}function z(e){var t=dr.get(e);if(t)return t;ar=e,sr={},lr=ar.length,ur=-1,cr="",fr=pr;var n;return ar.indexOf("|")<0?sr.expression=ar.trim():(sr.expression=D().trim(),n=F(),n.length&&(sr.filters=n)),dr.put(e,sr),sr}function W(e){return e.replace(Or,"\\$&")}function B(){var e=W(Pr.delimiters[0]),t=W(Pr.delimiters[1]),n=W(Pr.unsafeDelimiters[0]),r=W(Pr.unsafeDelimiters[1]);Tr=new RegExp(n+"((?:.|\\n)+?)"+r+"|"+e+"((?:.|\\n)+?)"+t,"g"),Ar=new RegExp("^"+n+"((?:.|\\n)+?)"+r+"$"),Mr=new O(1e3)}function V(e){Mr||B();var t=Mr.get(e);if(t)return t;if(!Tr.test(e))return null;for(var n,r,i,o,a,s,l=[],u=Tr.lastIndex=0;n=Tr.exec(e);)r=n.index,r>u&&l.push({value:e.slice(u,r)}),i=Ar.test(n[0]),o=i?n[1]:n[2],a=o.charCodeAt(0),s=42===a,o=s?o.slice(1):o,l.push({tag:!0,value:o.trim(),html:i,oneTime:s}),u=r+n[0].length;return u<e.length&&l.push({value:e.slice(u)}),Mr.put(e,l),l}function U(e,t){return e.length>1?e.map(function(e){return q(e,t)}).join("+"):q(e[0],t,!0)}function q(e,t,n){return e.tag?e.oneTime&&t?'"'+t.$eval(e.value)+'"':G(e.value,n):'"'+e.value+'"'}function G(e,t){if(Nr.test(e)){var n=z(e);return n.filters?"this._applyFilters("+n.expression+",null,"+JSON.stringify(n.filters)+",false)":"("+e+")"}return t?e:"("+e+")"}function K(e,t,n,r){J(e,1,function(){t.appendChild(e)},n,r)}function Y(e,t,n,r){J(e,1,function(){re(e,t)},n,r)}function X(e,t,n){J(e,-1,function(){oe(e)},t,n)}function J(e,t,n,r,i){var o=e.__v_trans;if(!o||!o.hooks&&!Zn||!r._isCompiled||r.$parent&&!r.$parent._isCompiled)return n(),void(i&&i());o[t>0?"enter":"leave"](n,i)}function Z(e){if("string"==typeof e){var n=e;e=document.querySelector(e),e||"production"!==t.env.NODE_ENV&&jr("Cannot find element: "+n)}return e}function Q(e){if(!e)return!1;var t=e.ownerDocument.documentElement,n=e.parentNode;return t===e||t===n||!(!n||1!==n.nodeType||!t.contains(n))}function ee(e,t){var n=e.getAttribute(t);return null!==n&&e.removeAttribute(t),n}function te(e,t){var n=ee(e,":"+t);return null===n&&(n=ee(e,"v-bind:"+t)),n}function ne(e,t){return e.hasAttribute(t)||e.hasAttribute(":"+t)||e.hasAttribute("v-bind:"+t)}function re(e,t){t.parentNode.insertBefore(e,t)}function ie(e,t){t.nextSibling?re(e,t.nextSibling):t.parentNode.appendChild(e)}function oe(e){e.parentNode.removeChild(e)}function ae(e,t){t.firstChild?re(e,t.firstChild):t.appendChild(e)}function se(e,t){var n=e.parentNode;n&&n.replaceChild(t,e)}function le(e,t,n,r){e.addEventListener(t,n,r)}function ue(e,t,n){e.removeEventListener(t,n)}function ce(e){var t=e.className;return"object"==typeof t&&(t=t.baseVal||""),t}function fe(e,t){Kn&&!/svg$/.test(e.namespaceURI)?e.className=t:e.setAttribute("class",t)}function de(e,t){if(e.classList)e.classList.add(t);else{var n=" "+ce(e)+" ";n.indexOf(" "+t+" ")<0&&fe(e,(n+t).trim())}}function he(e,t){if(e.classList)e.classList.remove(t);else{for(var n=" "+ce(e)+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");fe(e,n.trim())}e.className||e.removeAttribute("class")}function pe(e,t){var n,r;if(ge(e)&&ke(e.content)&&(e=e.content),e.hasChildNodes())for(ve(e),r=t?document.createDocumentFragment():document.createElement("div");n=e.firstChild;)r.appendChild(n);return r}function ve(e){for(var t;t=e.firstChild,me(t);)e.removeChild(t);for(;t=e.lastChild,me(t);)e.removeChild(t)}function me(e){return e&&(3===e.nodeType&&!e.data.trim()||8===e.nodeType)}function ge(e){return e.tagName&&"template"===e.tagName.toLowerCase()}function ye(e,t){var n=Pr.debug?document.createComment(e):document.createTextNode(t?" ":"");return n.__v_anchor=!0,n}function be(e){if(e.hasAttributes())for(var t=e.attributes,n=0,r=t.length;n<r;n++){var i=t[n].name;if(Ir.test(i))return f(i.replace(Ir,""))}}function we(e,t,n){for(var r;e!==t;)r=e.nextSibling,n(e),e=r;n(t)}function xe(e,t,n,r,i){function o(){if(s++,a&&s>=l.length){for(var e=0;e<l.length;e++)r.appendChild(l[e]);i&&i()}}var a=!1,s=0,l=[];we(e,t,function(e){e===t&&(a=!0),l.push(e),X(e,n,o)})}function ke(e){return e&&11===e.nodeType}function Ce(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function _e(e,n){var r=e.tagName.toLowerCase(),i=e.hasAttributes();if(Hr.test(r)||Rr.test(r)){if(i)return Se(e,n)}else{if(Le(n,"components",r))return{id:r};var o=i&&Se(e,n);if(o)return o;if("production"!==t.env.NODE_ENV){var a=n._componentNameMap&&n._componentNameMap[r];a?jr("Unknown custom element: <"+r+"> - did you mean <"+a+">? HTML is case-insensitive, remember to use kebab-case in templates."):zr(e,r)&&jr("Unknown custom element: <"+r+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.')}}}function Se(e,t){var n=e.getAttribute("is");if(null!=n){if(Le(t,"components",n))return e.removeAttribute("is"),{id:n}}else if(null!=(n=te(e,"is")))return{id:n,dynamic:!0}}function Oe(e,t){var r,o,a;for(r in t)o=e[r],a=t[r],i(e,r)?y(o)&&y(a)&&Oe(o,a):n(e,r,a);return e}function Me(e,t){var n=Object.create(e||null);return t?g(n,Ne(t)):n}function Te(e){if(e.components){var n,r=e.components=Ne(e.components),i=Object.keys(r);if("production"!==t.env.NODE_ENV)var o=e._componentNameMap={};for(var a=0,s=i.length;a<s;a++){var l=i[a];Hr.test(l)||Rr.test(l)?"production"!==t.env.NODE_ENV&&jr("Do not use built-in or reserved HTML elements as component id: "+l):("production"!==t.env.NODE_ENV&&(o[l.replace(/-/g,"").toLowerCase()]=h(l)),n=r[l],b(n)&&(r[l]=Nn.extend(n)))}}}function Ae(e){var t,n,r=e.props;if(Wn(r))for(e.props={},t=r.length;t--;)n=r[t],"string"==typeof n?e.props[n]=null:n.name&&(e.props[n.name]=n);else if(b(r)){var i=Object.keys(r);for(t=i.length;t--;)"function"==typeof(n=r[i[t]])&&(r[i[t]]={type:n})}}function Ne(e){if(Wn(e)){for(var n,r={},i=e.length;i--;){n=e[i];var o="function"==typeof n?n.options&&n.options.name||n.id:n.name||n.id;o?r[o]=n:"production"!==t.env.NODE_ENV&&jr('Array-syntax assets must provide a "name" or "id" field.')}return r}return e}function Ee(e,n,r){function o(t){var i=Wr[t]||Br;s[t]=i(e[t],n[t],r,t)}Te(n),Ae(n),"production"!==t.env.NODE_ENV&&n.propsData&&!r&&jr("propsData can only be used as an instantiation option.");var a,s={};if(n.extends&&(e="function"==typeof n.extends?Ee(e,n.extends.options,r):Ee(e,n.extends,r)),n.mixins)for(var l=0,u=n.mixins.length;l<u;l++){var c=n.mixins[l],f=c.prototype instanceof Nn?c.options:c;e=Ee(e,f,r)}for(a in e)o(a);for(a in n)i(e,a)||o(a);return s}function Le(e,n,r,i){if("string"==typeof r){var o,a=e[n],s=a[r]||a[o=f(r)]||a[o.charAt(0).toUpperCase()+o.slice(1)];return"production"!==t.env.NODE_ENV&&i&&!s&&jr("Failed to resolve "+n.slice(0,-1)+": "+r,e),s}}function $e(){this.id=Vr++,this.subs=[]}function Pe(e){Kr=!1,e(),Kr=!0}function je(e){if(this.value=e,this.dep=new $e,w(e,"__ob__",this),Wn(e)){(Bn?De:Fe)(e,qr,Gr),this.observeArray(e)}else this.walk(e)}function De(e,t){e.__proto__=t}function Fe(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];w(e,o,t[o])}}function Ie(e,t){if(e&&"object"==typeof e){var n;return i(e,"__ob__")&&e.__ob__ instanceof je?n=e.__ob__:Kr&&(Wn(e)||b(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new je(e)),n&&t&&n.addVm(t),n}}function He(e,t,n){var r=new $e,i=Object.getOwnPropertyDescriptor(e,t);if(!i||!1!==i.configurable){var o=i&&i.get,a=i&&i.set,s=Ie(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=o?o.call(e):n;if($e.target&&(r.depend(),s&&s.dep.depend(),Wn(t)))for(var i,a=0,l=t.length;a<l;a++)(i=t[a])&&i.__ob__&&i.__ob__.dep.depend();return t},set:function(t){t!==(o?o.call(e):n)&&(a?a.call(e,t):n=t,s=Ie(t),r.notify())}})}}function Re(e){if(void 0===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:case 48:return e;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return t>=97&&t<=122||t>=65&&t<=90?"ident":t>=49&&t<=57?"number":"else"}function ze(e){var t=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(o(t)?c(t):"*"+t)}function We(e){var t,n,r,i,o,a,s,l=[],u=-1,c=ni,f=0,d=[];for(d[Qr]=function(){void 0!==r&&(l.push(r),r=void 0)},d[Zr]=function(){void 0===r?r=n:r+=n},d[ei]=function(){d[Zr](),f++},d[ti]=function(){if(f>0)f--,c=ri,d[Zr]();else{if(f=0,!1===(r=ze(r)))return!1;d[Qr]()}};null!=c;)if(u++,"\\"!==(t=e[u])||!function(){var t=e[u+1];if(c===ii&&"'"===t||c===oi&&'"'===t)return u++,n="\\"+t,d[Zr](),!0}()){if(i=Re(t),s=li[c],(o=s[i]||s.else||si)===si)return;if(c=o[0],(a=d[o[1]])&&(n=o[2],n=void 0===n?t:n,!1===a()))return;if(c===ai)return l.raw=e,l}}function Be(e){var t=Jr.get(e);return t||(t=We(e))&&Jr.put(e,t),t}function Ve(e,t){return Qe(t).get(e)}function Ue(e,r,i){var o=e;if("string"==typeof r&&(r=We(r)),!r||!y(e))return!1;for(var a,s,l=0,u=r.length;l<u;l++)a=e,s=r[l],"*"===s.charAt(0)&&(s=Qe(s.slice(1)).get.call(o,o)),l<u-1?(e=e[s],y(e)||(e={},"production"!==t.env.NODE_ENV&&a._isVue&&ui(r,a),n(a,s,e))):Wn(e)?e.$set(s,i):s in e?e[s]=i:("production"!==t.env.NODE_ENV&&e._isVue&&ui(r,e),n(e,s,i));return!0}function qe(){}function Ge(e,t){var n=Ci.length;return Ci[n]=t?e.replace(gi,"\\n"):e,'"'+n+'"'}function Ke(e){var t=e.charAt(0),n=e.slice(1);return hi.test(n)?e:(n=n.indexOf('"')>-1?n.replace(bi,Ye):n,t+"scope."+n)}function Ye(e,t){return Ci[t]}function Xe(e){vi.test(e)&&"production"!==t.env.NODE_ENV&&jr("Avoid using reserved keywords in expression: "+e),Ci.length=0;var n=e.replace(yi,Ge).replace(mi,"");return n=(" "+n).replace(xi,Ke).replace(bi,Ye),Je(n)}function Je(e){try{return new Function("scope","return "+e+";")}catch(n){return"production"!==t.env.NODE_ENV&&jr(n.toString().match(/unsafe-eval|CSP/)?"It seems you are using the default build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. Use the CSP-compliant build instead: http://vuejs.org/guide/installation.html#CSP-compliant-build":"Invalid expression. Generated function body: "+e),qe}}function Ze(e){var n=Be(e);if(n)return function(e,t){Ue(e,n,t)};"production"!==t.env.NODE_ENV&&jr("Invalid setter expression: "+e)}function Qe(e,t){e=e.trim();var n=fi.get(e);if(n)return t&&!n.set&&(n.set=Ze(n.exp)),n;var r={exp:e};return r.get=et(e)&&e.indexOf("[")<0?Je("scope."+e):Xe(e),t&&(r.set=Ze(e)),fi.put(e,r),r}function et(e){return wi.test(e)&&!ki.test(e)&&"Math."!==e.slice(0,5)}function tt(){Si.length=0,Oi.length=0,Mi={},Ti={},Ai=!1}function nt(){for(var e=!0;e;)e=!1,rt(Si),rt(Oi),Si.length?e=!0:(Un&&Pr.devtools&&Un.emit("flush"),tt())}function rt(e){for(var n=0;n<e.length;n++){var r=e[n],i=r.id;if(Mi[i]=null,r.run(),"production"!==t.env.NODE_ENV&&null!=Mi[i]&&(Ti[i]=(Ti[i]||0)+1,Ti[i]>Pr._maxUpdateCount)){jr('You may have an infinite update loop for watcher with expression "'+r.expression+'"',r.vm);break}}e.length=0}function it(e){var t=e.id;if(null==Mi[t]){var n=e.user?Oi:Si;Mi[t]=n.length,n.push(e),Ai||(Ai=!0,rr(nt))}}function ot(e,t,n,r){r&&g(this,r);var i="function"==typeof t;if(this.vm=e,e._watchers.push(this),this.expression=t,this.cb=n,this.id=++Ni,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ir,this.newDepIds=new ir,this.prevError=null,i)this.getter=t,this.setter=void 0;else{var o=Qe(t,this.twoWay);this.getter=o.get,this.setter=o.set}this.value=this.lazy?void 0:this.get(),this.queued=this.shallow=!1}function at(e,t){var n=void 0,r=void 0;t||(t=Ei,t.clear());var i=Wn(e),o=y(e);if((i||o)&&Object.isExtensible(e)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(i)for(n=e.length;n--;)at(e[n],t);else if(o)for(r=Object.keys(e),n=r.length;n--;)at(e[r[n]],t)}}function st(e){return ge(e)&&ke(e.content)}function lt(e,t){var n=t?e:e.trim(),r=$i.get(n);if(r)return r;var i=document.createDocumentFragment(),o=e.match(Di),a=Fi.test(e),s=Ii.test(e);if(o||a||s){var l=o&&o[1],u=ji[l]||ji.efault,c=u[0],f=u[1],d=u[2],h=document.createElement("div");for(h.innerHTML=f+e+d;c--;)h=h.lastChild;for(var p;p=h.firstChild;)i.appendChild(p)}else i.appendChild(document.createTextNode(e));return t||ve(i),$i.put(n,i),i}function ut(e){if(st(e))return lt(e.innerHTML);if("SCRIPT"===e.tagName)return lt(e.textContent);for(var t,n=ct(e),r=document.createDocumentFragment();t=n.firstChild;)r.appendChild(t);return ve(r),r}function ct(e){if(!e.querySelectorAll)return e.cloneNode();var t,n,r,i=e.cloneNode(!0);if(Hi){var o=i;if(st(e)&&(e=e.content,o=i.content),n=e.querySelectorAll("template"),n.length)for(r=o.querySelectorAll("template"),t=r.length;t--;)r[t].parentNode.replaceChild(ct(n[t]),r[t])}if(Ri)if("TEXTAREA"===e.tagName)i.value=e.value;else if(n=e.querySelectorAll("textarea"),n.length)for(r=i.querySelectorAll("textarea"),t=r.length;t--;)r[t].value=n[t].value;return i}function ft(e,t,n){var r,i;return ke(e)?(ve(e),t?ct(e):e):("string"==typeof e?n||"#"!==e.charAt(0)?i=lt(e,n):(i=Pi.get(e))||(r=document.getElementById(e.slice(1)))&&(i=ut(r),Pi.put(e,i)):e.nodeType&&(i=ut(e)),i&&t?ct(i):i)}function dt(e,t,n,r,i,o){this.children=[],this.childFrags=[],this.vm=t,this.scope=i,this.inserted=!1,this.parentFrag=o,o&&o.childFrags.push(this),this.unlink=e(t,n,r,i,this),(this.single=1===n.childNodes.length&&!n.childNodes[0].__v_anchor)?(this.node=n.childNodes[0],this.before=ht,this.remove=pt):(this.node=ye("fragment-start"),this.end=ye("fragment-end"),this.frag=n,ae(this.node,n),n.appendChild(this.end),this.before=vt,this.remove=mt),this.node.__v_frag=this}function ht(e,t){this.inserted=!0,(!1!==t?Y:re)(this.node,e,this.vm),Q(this.node)&&this.callHook(gt)}function pt(){this.inserted=!1;var e=Q(this.node),t=this;this.beforeRemove(),X(this.node,this.vm,function(){e&&t.callHook(yt),t.destroy()})}function vt(e,t){this.inserted=!0;var n=this.vm,r=!1!==t?Y:re;we(this.node,this.end,function(t){r(t,e,n)}),Q(this.node)&&this.callHook(gt)}function mt(){this.inserted=!1;var e=this,t=Q(this.node);this.beforeRemove(),xe(this.node,this.end,this.vm,this.frag,function(){t&&e.callHook(yt),e.destroy()})}function gt(e){!e._isAttached&&Q(e.$el)&&e._callHook("attached")}function yt(e){e._isAttached&&!Q(e.$el)&&e._callHook("detached")}function bt(e,t){this.vm=e;var n,r="string"==typeof t;r||ge(t)&&!t.hasAttribute("v-if")?n=ft(t,!0):(n=document.createDocumentFragment(),n.appendChild(t)),this.template=n;var i,o=e.constructor.cid;if(o>0){var a=o+(r?t:Ce(t));i=Bi.get(a),i||(i=Xt(n,e.$options,!0),Bi.put(a,i))}else i=Xt(n,e.$options,!0);this.linker=i}function wt(e,t,n){var r=e.node.previousSibling;if(r){for(e=r.__v_frag;!(e&&e.forId===n&&e.inserted||r===t);){if(!(r=r.previousSibling))return;e=r.__v_frag}return e}}function xt(e){for(var t=-1,n=new Array(Math.floor(e));++t<e;)n[t]=t;return n}function kt(e,t,n,r){return r?"$index"===r?e:r.charAt(0).match(/\w/)?Ve(n,r):n[r]:t||n}function Ct(e){var t=e.node;if(e.end)for(;!t.__vue__&&t!==e.end&&t.nextSibling;)t=t.nextSibling;return t.__vue__}function _t(e,t,n){for(var r,i,o=t?[]:null,a=0,s=e.options.length;a<s;a++)if(r=e.options[a],n?r.hasAttribute("selected"):r.selected){if(i=r.hasOwnProperty("_value")?r._value:r.value,!t)return i;o.push(i)}return o}function St(e,t){for(var n=e.length;n--;)if(_(e[n],t))return n;return-1}function Ot(e,t){var n=t.map(function(e){var t=e.charCodeAt(0);return t>47&&t<58?parseInt(e,10):1===e.length&&(t=e.toUpperCase().charCodeAt(0))>64&&t<91?t:eo[e]});return n=[].concat.apply([],n),function(t){if(n.indexOf(t.keyCode)>-1)return e.call(this,t)}}function Mt(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function Tt(e){return function(t){return t.preventDefault(),e.call(this,t)}}function At(e){return function(t){if(t.target===t.currentTarget)return e.call(this,t)}}function Nt(e){if(oo[e])return oo[e];var t=Et(e);return oo[e]=oo[t]=t,t}function Et(e){e=h(e);var t=f(e),n=t.charAt(0).toUpperCase()+t.slice(1);ao||(ao=document.createElement("div"));var r,i=no.length;if("filter"!==t&&t in ao.style)return{kebab:e,camel:t};for(;i--;)if((r=ro[i]+n)in ao.style)return{kebab:no[i]+e,camel:r}}function Lt(e){var t=[];if(Wn(e))for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i)if("string"==typeof i)t.push(i);else for(var o in i)i[o]&&t.push(o)}else if(y(e))for(var a in e)e[a]&&t.push(a);return t}function $t(e,t,n){if(t=t.trim(),-1===t.indexOf(" "))return void n(e,t);for(var r=t.split(/\s+/),i=0,o=r.length;i<o;i++)n(e,r[i])}function Pt(e,t,n){function r(){++o>=i?n():e[o].call(t,r)}var i=e.length,o=0;e[0].call(t,r)}function jt(e,n,r){for(var i,a,s,l,u,c,d,p=[],v=r.$options.propsData,m=Object.keys(n),g=m.length;g--;)if(a=m[g],i=n[a]||ko,"production"===t.env.NODE_ENV||"$data"!==a)if(u=f(a),Co.test(u)){if(d={name:a,path:u,options:i,mode:xo.ONE_WAY,raw:null},s=h(a),null===(l=te(e,s))&&(null!==(l=te(e,s+".sync"))?d.mode=xo.TWO_WAY:null!==(l=te(e,s+".once"))&&(d.mode=xo.ONE_TIME)),null!==l)d.raw=l,c=z(l),l=c.expression,d.filters=c.filters,o(l)&&!c.filters?d.optimizedLiteral=!0:(d.dynamic=!0,"production"===t.env.NODE_ENV||d.mode!==xo.TWO_WAY||_o.test(l)||(d.mode=xo.ONE_WAY,jr("Cannot bind two-way prop with non-settable parent path: "+l,r))),d.parentPath=l,"production"!==t.env.NODE_ENV&&i.twoWay&&d.mode!==xo.TWO_WAY&&jr('Prop "'+a+'" expects a two-way binding type.',r);else if(null!==(l=ee(e,s)))d.raw=l;else if(v&&null!==(l=v[a]||v[u]))d.raw=l;else if("production"!==t.env.NODE_ENV){var y=u.toLowerCase();l=/[A-Z\-]/.test(a)&&(e.getAttribute(y)||e.getAttribute(":"+y)||e.getAttribute("v-bind:"+y)||e.getAttribute(":"+y+".once")||e.getAttribute("v-bind:"+y+".once")||e.getAttribute(":"+y+".sync")||e.getAttribute("v-bind:"+y+".sync")),l?jr("Possible usage error for prop `"+y+"` - did you mean `"+s+"`? HTML is case-insensitive, remember to use kebab-case for props in templates.",r):!i.required||v&&(a in v||u in v)||jr("Missing required prop: "+a,r)}p.push(d)}else"production"!==t.env.NODE_ENV&&jr('Invalid prop key: "'+a+'". Prop keys must be valid identifiers.',r);else jr("Do not use $data as prop.",r);return Dt(p)}function Dt(e){return function(t,n){t._props={};for(var r,o,a,s,f,d=t.$options.propsData,p=e.length;p--;)if(r=e[p],f=r.raw,o=r.path,a=r.options,t._props[o]=r,d&&i(d,o)&&It(t,r,d[o]),null===f)It(t,r,void 0);else if(r.dynamic)r.mode===xo.ONE_TIME?(s=(n||t._context||t).$get(r.parentPath),It(t,r,s)):t._context?t._bindDir({name:"prop",def:Oo,prop:r},null,null,n):It(t,r,t.$get(r.parentPath));else if(r.optimizedLiteral){var v=c(f);s=v===f?u(l(f)):v,It(t,r,s)}else s=a.type===Boolean&&(""===f||f===h(r.name))||f,It(t,r,s)}}function Ft(e,t,n,r){var i=t.dynamic&&et(t.parentPath),o=n;void 0===o&&(o=Rt(e,t)),o=Wt(t,o,e);var a=o!==n;zt(t,o,e)||(o=void 0),i&&!a?Pe(function(){r(o)}):r(o)}function It(e,t,n){Ft(e,t,n,function(n){He(e,t.path,n)})}function Ht(e,t,n){Ft(e,t,n,function(n){e[t.path]=n})}function Rt(e,n){var r=n.options;if(!i(r,"default"))return r.type!==Boolean&&void 0;var o=r.default;return y(o)&&"production"!==t.env.NODE_ENV&&jr('Invalid default value for prop "'+n.name+'": Props with type Object/Array must use a factory function to return the default value.',e),"function"==typeof o&&r.type!==Function?o.call(e):o}function zt(e,n,r){if(!e.options.required&&(null===e.raw||null==n))return!0;var i=e.options,o=i.type,a=!o,s=[];if(o){Wn(o)||(o=[o]);for(var l=0;l<o.length&&!a;l++){var u=Bt(n,o[l]);s.push(u.expectedType),a=u.valid}}if(!a)return"production"!==t.env.NODE_ENV&&jr('Invalid prop: type check failed for prop "'+e.name+'". Expected '+s.map(Vt).join(", ")+", got "+Ut(n)+".",r),!1;var c=i.validator;return!(c&&!c(n))||("production"!==t.env.NODE_ENV&&jr('Invalid prop: custom validator check failed for prop "'+e.name+'".',r),!1)}function Wt(e,n,r){var i=e.options.coerce;return i?"function"==typeof i?i(n):("production"!==t.env.NODE_ENV&&jr('Invalid coerce for prop "'+e.name+'": expected function, got '+typeof i+".",r),n):n}function Bt(e,t){var n,r;return t===String?(r="string",n=typeof e===r):t===Number?(r="number",n=typeof e===r):t===Boolean?(r="boolean",n=typeof e===r):t===Function?(r="function",n=typeof e===r):t===Object?(r="object",n=b(e)):t===Array?(r="array",n=Wn(e)):n=e instanceof t,{valid:n,expectedType:r}}function Vt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):"custom type"}function Ut(e){return Object.prototype.toString.call(e).slice(8,-1)}function qt(e){Mo.push(e),To||(To=!0,rr(Gt))}function Gt(){for(var e=document.documentElement.offsetHeight,t=0;t<Mo.length;t++)Mo[t]();return Mo=[],To=!1,e}function Kt(e,n,r,i){this.id=n,this.el=e,this.enterClass=r&&r.enterClass||n+"-enter",this.leaveClass=r&&r.leaveClass||n+"-leave",this.hooks=r,this.vm=i,this.pendingCssEvent=this.pendingCssCb=this.cancel=this.pendingJsCb=this.op=this.cb=null,this.justEntered=!1,this.entered=this.left=!1,this.typeCache={},this.type=r&&r.type,"production"!==t.env.NODE_ENV&&this.type&&this.type!==Ao&&this.type!==No&&jr('invalid CSS transition type for transition="'+this.id+'": '+this.type,i);var o=this;["enterNextTick","enterDone","leaveNextTick","leaveDone"].forEach(function(e){o[e]=v(o[e],o)})}function Yt(e){if(/svg$/.test(e.namespaceURI)){var t=e.getBoundingClientRect();return!(t.width||t.height)}return!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function Xt(e,t,n){var r=n||!t._asComponent?rn(e,t):null,i=r&&r.terminal||xn(e)||!e.hasChildNodes()?null:cn(e.childNodes,t);return function(e,t,n,o,a){var s=m(t.childNodes),l=Jt(function(){r&&r(e,t,n,o,a),i&&i(e,s,n,o,a)},e);return Qt(e,l)}}function Jt(e,n){"production"===t.env.NODE_ENV&&(n._directives=[]);var r=n._directives.length;e();var i=n._directives.slice(r);Zt(i);for(var o=0,a=i.length;o<a;o++)i[o]._bind();return i}function Zt(e){if(0!==e.length){var t,n,r,i,o={},a=0,s=[];for(t=0,n=e.length;t<n;t++){var l=e[t],u=l.descriptor.def.priority||Bo,c=o[u];c||(c=o[u]=[],s.push(u)),c.push(l)}for(s.sort(function(e,t){return e>t?-1:e===t?0:1}),t=0,n=s.length;t<n;t++){var f=o[s[t]];for(r=0,i=f.length;r<i;r++)e[a++]=f[r]}}}function Qt(e,t,n,r){function i(i){en(e,t,i),n&&r&&en(n,r)}return i.dirs=t,i}function en(e,n,r){for(var i=n.length;i--;)n[i]._teardown(),"production"===t.env.NODE_ENV||r||e._directives.$remove(n[i])}function tn(e,t,n,r){var i=jt(t,n,e),o=Jt(function(){i(e,r)},e);return Qt(e,o)}function nn(e,n,r){var i,o,a=n._containerAttrs,s=n._replacerAttrs;if(11!==e.nodeType)n._asComponent?(a&&r&&(i=gn(a,r)),s&&(o=gn(s,n))):o=gn(e.attributes,n);else if("production"!==t.env.NODE_ENV&&a){var l=a.filter(function(e){return e.name.indexOf("_v-")<0&&!Ho.test(e.name)&&"slot"!==e.name}).map(function(e){return'"'+e.name+'"'});if(l.length){var u=l.length>1,c=n.el.tagName.toLowerCase();"component"===c&&n.name&&(c+=":"+n.name),jr("Attribute"+(u?"s ":" ")+l.join(", ")+(u?" are":" is")+" ignored on component <"+c+"> because the component is a fragment instance: http://vuejs.org/guide/components.html#Fragment-Instance")}}return n._containerAttrs=n._replacerAttrs=null,function(e,t,n){var r,a=e._context;a&&i&&(r=Jt(function(){i(a,t,null,n)},a));var s=Jt(function(){o&&o(e,t)},e);return Qt(e,s,a,r)}}function rn(e,t){var n=e.nodeType;return 1!==n||xn(e)?3===n&&e.data.trim()?an(e,t):null:on(e,t)}function on(e,t){if("TEXTAREA"===e.tagName){if(null!==ee(e,"v-pre"))return vn;var n=V(e.value);n&&(e.setAttribute(":value",U(n)),e.value="")}var r,i=e.hasAttributes(),o=i&&m(e.attributes);return i&&(r=pn(e,o,t)),r||(r=dn(e,t)),r||(r=hn(e,t)),!r&&i&&(r=gn(o,t)),r}function an(e,t){if(e._skip)return sn;var n=V(e.wholeText);if(!n)return null;for(var r=e.nextSibling;r&&3===r.nodeType;)r._skip=!0,r=r.nextSibling;for(var i,o,a=document.createDocumentFragment(),s=0,l=n.length;s<l;s++)o=n[s],i=o.tag?ln(o,t):document.createTextNode(o.value),a.appendChild(i);return un(n,a)}function sn(e,t){oe(t)}function ln(e,t){function n(t){if(!e.descriptor){var n=z(e.value);e.descriptor={name:t,def:yo[t],expression:n.expression,filters:n.filters}}}var r;return e.oneTime?r=document.createTextNode(e.value):e.html?(r=document.createComment("v-html"),n("html")):(r=document.createTextNode(" "),n("text")),r}function un(e,t){return function(n,r,i,o){for(var a,l,u,c=t.cloneNode(!0),f=m(c.childNodes),d=0,h=e.length;d<h;d++)a=e[d],l=a.value,a.tag&&(u=f[d],a.oneTime?(l=(o||n).$eval(l),a.html?se(u,ft(l,!0)):u.data=s(l)):n._bindDir(a.descriptor,u,i,o));se(r,c)}}function cn(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)i=e[a],n=rn(i,t),r=n&&n.terminal||"SCRIPT"===i.tagName||!i.hasChildNodes()?null:cn(i.childNodes,t),o.push(n,r);return o.length?fn(o):null}function fn(e){return function(t,n,r,i,o){for(var a,s,l,u=0,c=0,f=e.length;u<f;c++){a=n[c],s=e[u++],l=e[u++];var d=m(a.childNodes);s&&s(t,a,r,i,o),l&&l(t,d,r,i,o)}}}function dn(e,t){var n=e.tagName.toLowerCase();if(!Hr.test(n)){var r=Le(t,"elementDirectives",n);return r?mn(e,n,"",t,r):void 0}}function hn(e,t){var n=_e(e,t);if(n){var r=be(e),i={name:"component",ref:r,expression:n.id,def:Fo.component,modifiers:{literal:!n.dynamic}},o=function(e,t,n,o,a){r&&He((o||e).$refs,r,null),e._bindDir(i,t,n,o,a)};return o.terminal=!0,o}}function pn(e,t,n){if(null!==ee(e,"v-pre"))return vn;if(e.hasAttribute("v-else")){var r=e.previousElementSibling;if(r&&r.hasAttribute("v-if"))return vn}for(var i,o,a,s,l,u,c,f,d,h,p=0,v=t.length;p<v;p++)i=t[p],o=i.name.replace(zo,""),(l=o.match(Ro))&&(d=Le(n,"directives",l[1]))&&d.terminal&&(!h||(d.priority||Vo)>h.priority)&&(h=d,c=i.name,s=yn(i.name),a=i.value,u=l[1],f=l[2]);return h?mn(e,u,a,n,h,c,f,s):void 0}function vn(){}function mn(e,t,n,r,i,o,a,s){var l=z(n),u={name:t,arg:a,expression:l.expression,filters:l.filters,raw:n,attr:o,modifiers:s,def:i};"for"!==t&&"router-view"!==t||(u.ref=be(e));var c=function(e,t,n,r,i){u.ref&&He((r||e).$refs,u.ref,null),e._bindDir(u,t,n,r,i)};return c.terminal=!0,c}function gn(e,n){function r(e,t,n){var r=n&&wn(n),i=!r&&z(a);m.push({name:e,attr:s,raw:l,def:t,arg:c,modifiers:f,expression:i&&i.expression,filters:i&&i.filters,interp:n,hasOneTime:r})}for(var i,o,a,s,l,u,c,f,d,h,p,v=e.length,m=[];v--;)if(i=e[v],o=s=i.name,a=l=i.value,h=V(a),c=null,f=yn(o),o=o.replace(zo,""),h)a=U(h),c=o,r("bind",yo.bind,h),"production"!==t.env.NODE_ENV&&"class"===o&&Array.prototype.some.call(e,function(e){return":class"===e.name||"v-bind:class"===e.name})&&jr('class="'+l+'": Do not mix mustache interpolation and v-bind for "class" on the same element. Use one or the other.',n);else if(Wo.test(o))f.literal=!Io.test(o),r("transition",Fo.transition);else if(Ho.test(o))c=o.replace(Ho,""),r("on",yo.on);else if(Io.test(o))u=o.replace(Io,""),"style"===u||"class"===u?r(u,Fo[u]):(c=u,r("bind",yo.bind));else if(p=o.match(Ro)){if(u=p[1],c=p[2],"else"===u)continue;d=Le(n,"directives",u,!0),d&&r(u,d)}if(m.length)return bn(m)}function yn(e){var t=Object.create(null),n=e.match(zo);if(n)for(var r=n.length;r--;)t[n[r].slice(1)]=!0;return t}function bn(e){return function(t,n,r,i,o){for(var a=e.length;a--;)t._bindDir(e[a],n,r,i,o)}}function wn(e){for(var t=e.length;t--;)if(e[t].oneTime)return!0}function xn(e){return"SCRIPT"===e.tagName&&(!e.hasAttribute("type")||"text/javascript"===e.getAttribute("type"))}function kn(e,t){return t&&(t._containerAttrs=_n(e)),ge(e)&&(e=ft(e)),t&&(t._asComponent&&!t.template&&(t.template="<slot></slot>"),t.template&&(t._content=pe(e),e=Cn(e,t))),ke(e)&&(ae(ye("v-start",!0),e),e.appendChild(ye("v-end",!0))),e}function Cn(e,n){var r=n.template,i=ft(r,!0);if(i){var o=i.firstChild;if(!o)return i;var a=o.tagName&&o.tagName.toLowerCase();return n.replace?(e===document.body&&"production"!==t.env.NODE_ENV&&jr("You are mounting an instance with a template to <body>. This will replace <body> entirely. You should probably use `replace: false` here."),i.childNodes.length>1||1!==o.nodeType||"component"===a||Le(n,"components",a)||ne(o,"is")||Le(n,"elementDirectives",a)||o.hasAttribute("v-for")||o.hasAttribute("v-if")?i:(n._replacerAttrs=_n(o),Sn(e,o),o)):(e.appendChild(i),e)}"production"!==t.env.NODE_ENV&&jr("Invalid template option: "+r)}function _n(e){if(1===e.nodeType&&e.hasAttributes())return m(e.attributes)}function Sn(e,t){for(var n,r,i=e.attributes,o=i.length;o--;)n=i[o].name,r=i[o].value,t.hasAttribute(n)||Uo.test(n)?"class"===n&&!V(r)&&(r=r.trim())&&r.split(/\s+/).forEach(function(e){de(t,e)}):t.setAttribute(n,r)}function On(e,n){if(n){for(var r,i,o=e._slotContents=Object.create(null),a=0,s=n.children.length;a<s;a++)r=n.children[a],(i=r.getAttribute("slot"))&&(o[i]||(o[i]=[])).push(r),"production"!==t.env.NODE_ENV&&te(r,"slot")&&jr('The "slot" attribute must be static.',e.$parent);for(i in o)o[i]=Mn(o[i],n);if(n.hasChildNodes()){var l=n.childNodes;if(1===l.length&&3===l[0].nodeType&&!l[0].data.trim())return;o.default=Mn(n.childNodes,n)}}}function Mn(e,t){var n=document.createDocumentFragment();e=m(e);for(var r=0,i=e.length;r<i;r++){var o=e[r];!ge(o)||o.hasAttribute("v-if")||o.hasAttribute("v-for")||(t.removeChild(o),o=ft(o,!0)),n.appendChild(o)}return n}function Tn(){}function An(e,n,r,i,o,a){this.vm=n,this.el=r,this.descriptor=e,this.name=e.name,this.expression=e.expression,this.arg=e.arg,this.modifiers=e.modifiers,this.filters=e.filters,this.literal=this.modifiers&&this.modifiers.literal,this._locked=!1,this._bound=!1,this._listeners=null,this._host=i,this._scope=o,this._frag=a,"production"!==t.env.NODE_ENV&&this.el&&(this.el._vue_directives=this.el._vue_directives||[],this.el._vue_directives.push(this))}function Nn(e){this._init(e)}function En(e,t,n){return n=n?parseInt(n,10):0,t=l(t),"number"==typeof t?e.slice(n,n+t):e}function Ln(e,t,n){if(e=Zo(e),null==t)return e;if("function"==typeof t)return e.filter(t);t=(""+t).toLowerCase();for(var r,i,o,a,s="in"===n?3:2,l=Array.prototype.concat.apply([],m(arguments,s)),u=[],c=0,f=e.length;c<f;c++)if(r=e[c],o=r&&r.$value||r,a=l.length){for(;a--;)if("$key"===(i=l[a])&&Pn(r.$key,t)||Pn(Ve(o,i),t)){u.push(r);break}}else Pn(r,t)&&u.push(r);return u}function $n(e){function t(e,t,n){var i=r[n];return i&&("$key"!==i&&(y(e)&&"$value"in e&&(e=e.$value),y(t)&&"$value"in t&&(t=t.$value)),e=y(e)?Ve(e,i):e,t=y(t)?Ve(t,i):t),e===t?0:e>t?o:-o}var n=null,r=void 0;e=Zo(e);var i=m(arguments,1),o=i[i.length-1];"number"==typeof o?(o=o<0?-1:1,i=i.length>1?i.slice(0,-1):i):o=1;var a=i[0];return a?("function"==typeof a?n=function(e,t){return a(e,t)*o}:(r=Array.prototype.concat.apply([],i),n=function(e,i,o){return o=o||0,o>=r.length-1?t(e,i,o):t(e,i,o)||n(e,i,o+1)}),e.slice().sort(n)):e}function Pn(e,t){var n;if(b(e)){var r=Object.keys(e);for(n=r.length;n--;)if(Pn(e[r[n]],t))return!0}else if(Wn(e)){for(n=e.length;n--;)if(Pn(e[n],t))return!0}else if(null!=e)return e.toString().toLowerCase().indexOf(t)>-1}var jn=Object.prototype.hasOwnProperty,Dn=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,Fn=/-(\w)/g,In=/([^-])([A-Z])/g,Hn=/(?:^|[-_\/])(\w)/g,Rn=Object.prototype.toString,zn="[object Object]",Wn=Array.isArray,Bn="__proto__"in{},Vn="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Un=Vn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,qn=Vn&&window.navigator.userAgent.toLowerCase(),Gn=qn&&qn.indexOf("trident")>0,Kn=qn&&qn.indexOf("msie 9.0")>0,Yn=qn&&qn.indexOf("android")>0,Xn=qn&&/iphone|ipad|ipod|ios/.test(qn),Jn=void 0,Zn=void 0,Qn=void 0,er=void 0;if(Vn&&!Kn){var tr=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,nr=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;Jn=tr?"WebkitTransition":"transition",Zn=tr?"webkitTransitionEnd":"transitionend",Qn=nr?"WebkitAnimation":"animation",er=nr?"webkitAnimationEnd":"animationend"}var rr=function(){function e(){n=!1;var e=t.slice(0);t.length=0;for(var r=0;r<e.length;r++)e[r]()}var t=[],n=!1,r=void 0;if("undefined"!=typeof Promise&&S(Promise)){var i=Promise.resolve(),o=function(){};r=function(){i.then(e),Xn&&setTimeout(o)}}else if("undefined"!=typeof MutationObserver){var a=1,s=new MutationObserver(e),l=document.createTextNode(String(a));s.observe(l,{characterData:!0}),r=function(){a=(a+1)%2,l.data=String(a)}}else r=setTimeout;return function(i,o){var a=o?function(){i.call(o)}:i;t.push(a),n||(n=!0,r(e,0))}}(),ir=void 0;"undefined"!=typeof Set&&S(Set)?ir=Set:(ir=function(){this.set=Object.create(null)},ir.prototype.has=function(e){return void 0!==this.set[e]},ir.prototype.add=function(e){this.set[e]=1},ir.prototype.clear=function(){this.set=Object.create(null)});var or=O.prototype;or.put=function(e,t){var n,r=this.get(e,!0);return r||(this.size===this.limit&&(n=this.shift()),r={key:e},this._keymap[e]=r,this.tail?(this.tail.newer=r,r.older=this.tail):this.head=r,this.tail=r,this.size++),r.value=t,n},or.shift=function(){var e=this.head;return e&&(this.head=this.head.newer,this.head.older=void 0,e.newer=e.older=void 0,this._keymap[e.key]=void 0,this.size--),e},or.get=function(e,t){var n=this._keymap[e];if(void 0!==n)return n===this.tail?t?n:n.value:(n.newer&&(n===this.head&&(this.head=n.newer),n.newer.older=n.older),n.older&&(n.older.newer=n.newer),n.newer=void 0,n.older=this.tail,this.tail&&(this.tail.newer=n),this.tail=n,t?n:n.value)};var ar,sr,lr,ur,cr,fr,dr=new O(1e3),hr=/^in$|^-?\d+/,pr=0,vr=1,mr=2,gr=3,yr=34,br=39,wr=124,xr=92,kr=32,Cr={91:1,123:1,40:1},_r={91:93,123:125,40:41},Sr=Object.freeze({parseDirective:z}),Or=/[-.*+?^${}()|[\]\/\\]/g,Mr=void 0,Tr=void 0,Ar=void 0,Nr=/[^|]\|[^|]/,Er=Object.freeze({compileRegex:B,parseText:V,tokensToExp:U}),Lr=["{{","}}"],$r=["{{{","}}}"],Pr=Object.defineProperties({debug:!1,silent:!1,async:!0,warnExpressionErrors:!0,devtools:"production"!==t.env.NODE_ENV,_delimitersChanged:!0,_assetTypes:["component","directive","elementDirective","filter","transition","partial"],_propBindingModes:{ONE_WAY:0,TWO_WAY:1,ONE_TIME:2},_maxUpdateCount:100},{delimiters:{get:function(){return Lr},set:function(e){Lr=e,B()},configurable:!0,enumerable:!0},unsafeDelimiters:{get:function(){return $r},set:function(e){$r=e,B()},configurable:!0,enumerable:!0}}),jr=void 0,Dr=void 0;"production"!==t.env.NODE_ENV&&function(){var e="undefined"!=typeof console;jr=function(t,n){e&&!Pr.silent&&console.error("[Vue warn]: "+t+(n?Dr(n):""))},Dr=function(e){var t=e._isVue?e.$options.name:e.name;return t?" (found in component: <"+h(t)+">)":""}}();var Fr=Object.freeze({appendWithTransition:K,beforeWithTransition:Y,removeWithTransition:X,applyTransition:J}),Ir=/^v-ref:/,Hr=/^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option|nav|article|section|header|footer)$/i,Rr=/^(slot|partial|component)$/i,zr=void 0;"production"!==t.env.NODE_ENV&&(zr=function(e,t){return t.indexOf("-")>-1?e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:/HTMLUnknownElement/.test(e.toString())&&!/^(data|time|rtc|rb|details|dialog|summary)$/.test(t)});var Wr=Pr.optionMergeStrategies=Object.create(null);Wr.data=function(e,n,r){return r?e||n?function(){var t="function"==typeof n?n.call(r):n,i="function"==typeof e?e.call(r):void 0;return t?Oe(t,i):i}:void 0:n?"function"!=typeof n?("production"!==t.env.NODE_ENV&&jr('The "data" option should be a function that returns a per-instance value in component definitions.',r),e):e?function(){return Oe(n.call(this),e.call(this))}:n:e},Wr.el=function(e,n,r){if(!r&&n&&"function"!=typeof n)return void("production"!==t.env.NODE_ENV&&jr('The "el" option should be a function that returns a per-instance value in component definitions.',r));var i=n||e;return r&&"function"==typeof i?i.call(r):i},Wr.init=Wr.created=Wr.ready=Wr.attached=Wr.detached=Wr.beforeCompile=Wr.compiled=Wr.beforeDestroy=Wr.destroyed=Wr.activate=function(e,t){return t?e?e.concat(t):Wn(t)?t:[t]:e},Pr._assetTypes.forEach(function(e){Wr[e+"s"]=Me}),Wr.watch=Wr.events=function(e,t){if(!t)return e;if(!e)return t;var n={};g(n,e);for(var r in t){var i=n[r],o=t[r];i&&!Wn(i)&&(i=[i]),n[r]=i?i.concat(o):[o]}return n},Wr.props=Wr.methods=Wr.computed=function(e,t){if(!t)return e;if(!e)return t;var n=Object.create(null);return g(n,e),g(n,t),n};var Br=function(e,t){return void 0===t?e:t},Vr=0;$e.target=null,$e.prototype.addSub=function(e){this.subs.push(e)},$e.prototype.removeSub=function(e){this.subs.$remove(e)},$e.prototype.depend=function(){$e.target.addDep(this)},$e.prototype.notify=function(){for(var e=m(this.subs),t=0,n=e.length;t<n;t++)e[t].update()};var Ur=Array.prototype,qr=Object.create(Ur);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=Ur[e];w(qr,e,function(){for(var n=arguments.length,r=new Array(n);n--;)r[n]=arguments[n];var i,o=t.apply(this,r),a=this.__ob__;switch(e){case"push":case"unshift":i=r;break;case"splice":i=r.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o})}),w(Ur,"$set",function(e,t){return e>=this.length&&(this.length=Number(e)+1),this.splice(e,1,t)[0]}),w(Ur,"$remove",function(e){if(this.length){var t=k(this,e);return t>-1?this.splice(t,1):void 0}});var Gr=Object.getOwnPropertyNames(qr),Kr=!0;je.prototype.walk=function(e){for(var t=Object.keys(e),n=0,r=t.length;n<r;n++)this.convert(t[n],e[t[n]])},je.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ie(e[t])},je.prototype.convert=function(e,t){He(this.value,e,t)},je.prototype.addVm=function(e){(this.vms||(this.vms=[])).push(e)},je.prototype.removeVm=function(e){this.vms.$remove(e)};var Yr=Object.freeze({defineReactive:He,set:n,del:r,hasOwn:i,isLiteral:o,isReserved:a,_toString:s,toNumber:l,toBoolean:u,stripQuotes:c,camelize:f,hyphenate:h,classify:p,bind:v,toArray:m,extend:g,isObject:y,isPlainObject:b,def:w,debounce:x,indexOf:k,cancellable:C,looseEqual:_,isArray:Wn,hasProto:Bn,inBrowser:Vn,devtools:Un,isIE:Gn,isIE9:Kn,isAndroid:Yn,isIOS:Xn,get transitionProp(){return Jn},get transitionEndEvent(){return Zn},get animationProp(){return Qn},get animationEndEvent(){return er},nextTick:rr,get _Set(){return ir},query:Z,inDoc:Q,getAttr:ee,getBindAttr:te,hasBindAttr:ne,before:re,after:ie,remove:oe,prepend:ae,replace:se,on:le,off:ue,setClass:fe,addClass:de,removeClass:he,extractContent:pe,trimNode:ve,isTemplate:ge,createAnchor:ye,findRef:be,mapNodeRange:we,removeNodeRange:xe,isFragment:ke,getOuterHTML:Ce,mergeOptions:Ee,resolveAsset:Le,checkComponentAttr:_e,commonTagRE:Hr,reservedTagRE:Rr,get warn(){return jr}}),Xr=0,Jr=new O(1e3),Zr=0,Qr=1,ei=2,ti=3,ni=0,ri=4,ii=5,oi=6,ai=7,si=8,li=[];li[ni]={ws:[ni],ident:[3,Zr],"[":[ri],eof:[ai]},li[1]={ws:[1],".":[2],"[":[ri],eof:[ai]},li[2]={ws:[2],ident:[3,Zr]},li[3]={ident:[3,Zr],0:[3,Zr],number:[3,Zr],ws:[1,Qr],".":[2,Qr],"[":[ri,Qr],eof:[ai,Qr]},li[ri]={"'":[ii,Zr],'"':[oi,Zr],"[":[ri,ei],"]":[1,ti],eof:si,else:[ri,Zr]},li[ii]={"'":[ri,Zr],eof:si,else:[ii,Zr]},li[oi]={'"':[ri,Zr],eof:si,else:[oi,Zr]};var ui;"production"!==t.env.NODE_ENV&&(ui=function(e,t){jr('You are setting a non-existent path "'+e.raw+'" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.',t)});var ci=Object.freeze({parsePath:Be,getPath:Ve,setPath:Ue}),fi=new O(1e3),di="Math,Date,this,true,false,null,undefined,Infinity,NaN,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,parseInt,parseFloat",hi=new RegExp("^("+di.replace(/,/g,"\\b|")+"\\b)"),pi="break,case,class,catch,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,in,instanceof,let,return,super,switch,throw,try,var,while,with,yield,enum,await,implements,package,protected,static,interface,private,public",vi=new RegExp("^("+pi.replace(/,/g,"\\b|")+"\\b)"),mi=/\s/g,gi=/\n/g,yi=/[\{,]\s*[\w\$_]+\s*:|('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\"']|\\.)*`|`(?:[^`\\]|\\.)*`)|new |typeof |void /g,bi=/"(\d+)"/g,wi=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,xi=/[^\w$\.](?:[A-Za-z_$][\w$]*)/g,ki=/^(?:true|false|null|undefined|Infinity|NaN)$/,Ci=[],_i=Object.freeze({parseExpression:Qe,isSimplePath:et}),Si=[],Oi=[],Mi={},Ti={},Ai=!1,Ni=0;ot.prototype.get=function(){this.beforeGet();var e,n=this.scope||this.vm;try{e=this.getter.call(n,n)}catch(e){"production"!==t.env.NODE_ENV&&Pr.warnExpressionErrors&&jr('Error when evaluating expression "'+this.expression+'": '+e.toString(),this.vm)}return this.deep&&at(e),this.preProcess&&(e=this.preProcess(e)),this.filters&&(e=n._applyFilters(e,null,this.filters,!1)),this.postProcess&&(e=this.postProcess(e)),this.afterGet(),e},ot.prototype.set=function(e){var n=this.scope||this.vm;this.filters&&(e=n._applyFilters(e,this.value,this.filters,!0));try{this.setter.call(n,n,e)}catch(e){"production"!==t.env.NODE_ENV&&Pr.warnExpressionErrors&&jr('Error when evaluating setter "'+this.expression+'": '+e.toString(),this.vm)}var r=n.$forContext;if(r&&r.alias===this.expression){if(r.filters)return void("production"!==t.env.NODE_ENV&&jr("It seems you are using two-way binding on a v-for alias ("+this.expression+"), and the v-for has filters. This will not work properly. Either remove the filters or use an array of objects and bind to object properties instead.",this.vm));r._withLock(function(){n.$key?r.rawValue[n.$key]=e:r.rawValue.$set(n.$index,e)})}},ot.prototype.beforeGet=function(){$e.target=this},ot.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ot.prototype.afterGet=function(){$e.target=null;for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ot.prototype.update=function(e){this.lazy?this.dirty=!0:this.sync||!Pr.async?this.run():(this.shallow=this.queued?!!e&&this.shallow:!!e,this.queued=!0,"production"!==t.env.NODE_ENV&&Pr.debug&&(this.prevError=new Error("[vue] async stack trace")),it(this))},ot.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||(y(e)||this.deep)&&!this.shallow){var n=this.value;this.value=e;var r=this.prevError;if("production"!==t.env.NODE_ENV&&Pr.debug&&r){this.prevError=null;try{this.cb.call(this.vm,e,n)}catch(e){throw rr(function(){throw r},0),e}}else this.cb.call(this.vm,e,n)}this.queued=this.shallow=!1}},ot.prototype.evaluate=function(){var e=$e.target;this.value=this.get(),this.dirty=!1,$e.target=e},ot.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},ot.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||this.vm._watchers.$remove(this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.vm=this.cb=this.value=null}};var Ei=new ir,Li={bind:function(){this.attr=3===this.el.nodeType?"data":"textContent"},update:function(e){this.el[this.attr]=s(e)}},$i=new O(1e3),Pi=new O(1e3),ji={efault:[0,"",""],legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]};ji.td=ji.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],ji.option=ji.optgroup=[1,'<select multiple="multiple">',"</select>"],ji.thead=ji.tbody=ji.colgroup=ji.caption=ji.tfoot=[1,"<table>","</table>"],ji.g=ji.defs=ji.symbol=ji.use=ji.image=ji.text=ji.circle=ji.ellipse=ji.line=ji.path=ji.polygon=ji.polyline=ji.rect=[1,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events"version="1.1">',"</svg>"];var Di=/<([\w:-]+)/,Fi=/&#?\w+?;/,Ii=/<!--/,Hi=function(){if(Vn){var e=document.createElement("div");return e.innerHTML="<template>1</template>",!e.cloneNode(!0).firstChild.innerHTML}return!1}(),Ri=function(){if(Vn){var e=document.createElement("textarea");return e.placeholder="t","t"===e.cloneNode(!0).value}return!1}(),zi=Object.freeze({cloneNode:ct,parseTemplate:ft}),Wi={bind:function(){8===this.el.nodeType&&(this.nodes=[],this.anchor=ye("v-html"),se(this.el,this.anchor))},update:function(e){e=s(e),this.nodes?this.swap(e):this.el.innerHTML=e},swap:function(e){for(var t=this.nodes.length;t--;)oe(this.nodes[t]);var n=ft(e,!0,!0);this.nodes=m(n.childNodes),re(n,this.anchor)}};dt.prototype.callHook=function(e){var t,n;for(t=0,n=this.childFrags.length;t<n;t++)this.childFrags[t].callHook(e);for(t=0,n=this.children.length;t<n;t++)e(this.children[t])},dt.prototype.beforeRemove=function(){var e,t;for(e=0,t=this.childFrags.length;e<t;e++)this.childFrags[e].beforeRemove(!1);for(e=0,t=this.children.length;e<t;e++)this.children[e].$destroy(!1,!0);var n=this.unlink.dirs;for(e=0,t=n.length;e<t;e++)n[e]._watcher&&n[e]._watcher.teardown()},dt.prototype.destroy=function(){this.parentFrag&&this.parentFrag.childFrags.$remove(this),this.node.__v_frag=null,this.unlink()};var Bi=new O(5e3);bt.prototype.create=function(e,t,n){var r=ct(this.template);return new dt(this.linker,this.vm,r,e,t,n)};var Vi=0,Ui={priority:2200,terminal:!0,params:["track-by","stagger","enter-stagger","leave-stagger"],bind:function(){"production"!==t.env.NODE_ENV&&this.el.hasAttribute("v-if")&&jr("<"+this.el.tagName.toLowerCase()+' v-for="'+this.expression+'" v-if="'+this.el.getAttribute("v-if")+'">: Using v-if and v-for on the same element is not recommended - consider filtering the source Array instead.',this.vm);var e=this.expression.match(/(.*) (?:in|of) (.*)/);if(e){var n=e[1].match(/\((.*),(.*)\)/);n?(this.iterator=n[1].trim(),this.alias=n[2].trim()):this.alias=e[1].trim(),this.expression=e[2]}if(!this.alias)return void("production"!==t.env.NODE_ENV&&jr('Invalid v-for expression "'+this.descriptor.raw+'": alias is required.',this.vm));this.id="__v-for__"+ ++Vi;var r=this.el.tagName;this.isOption=("OPTION"===r||"OPTGROUP"===r)&&"SELECT"===this.el.parentNode.tagName,this.start=ye("v-for-start"),this.end=ye("v-for-end"),se(this.el,this.end),re(this.start,this.end),this.cache=Object.create(null),this.factory=new bt(this.vm,this.el)},update:function(e){this.diff(e),this.updateRef(),this.updateModel()},diff:function(e){var t,n,r,o,a,s,l=e[0],u=this.fromObject=y(l)&&i(l,"$key")&&i(l,"$value"),c=this.params.trackBy,f=this.frags,d=this.frags=new Array(e.length),h=this.alias,p=this.iterator,v=this.start,m=this.end,g=Q(v),b=!f;for(t=0,n=e.length;t<n;t++)l=e[t],o=u?l.$key:null,a=u?l.$value:l,s=!y(a),r=!b&&this.getCachedFrag(a,t,o),r?(r.reused=!0,r.scope.$index=t,o&&(r.scope.$key=o),p&&(r.scope[p]=null!==o?o:t),(c||u||s)&&Pe(function(){r.scope[h]=a})):(r=this.create(a,h,t,o),r.fresh=!b),d[t]=r,b&&r.before(m);if(!b){var w=0,x=f.length-d.length;for(this.vm._vForRemoving=!0,t=0,n=f.length;t<n;t++)r=f[t],r.reused||(this.deleteCachedFrag(r),this.remove(r,w++,x,g));this.vm._vForRemoving=!1,w&&(this.vm._watchers=this.vm._watchers.filter(function(e){return e.active}));var k,C,_,S=0;for(t=0,n=d.length;t<n;t++)r=d[t],k=d[t-1],C=k?k.staggerCb?k.staggerAnchor:k.end||k.node:v,r.reused&&!r.staggerCb?(_=wt(r,v,this.id))===k||_&&wt(_,v,this.id)===k||this.move(r,C):this.insert(r,S++,C,g),r.reused=r.fresh=!1}},create:function(e,t,n,r){var i=this._host,o=this._scope||this.vm,a=Object.create(o);a.$refs=Object.create(o.$refs),a.$els=Object.create(o.$els),a.$parent=o,a.$forContext=this,Pe(function(){He(a,t,e)}),He(a,"$index",n),r?He(a,"$key",r):a.$key&&w(a,"$key",null),this.iterator&&He(a,this.iterator,null!==r?r:n);var s=this.factory.create(i,a,this._frag);return s.forId=this.id,this.cacheFrag(e,s,n,r),s},updateRef:function(){var e=this.descriptor.ref;if(e){var t,n=(this._scope||this.vm).$refs;this.fromObject?(t={},this.frags.forEach(function(e){t[e.scope.$key]=Ct(e)})):t=this.frags.map(Ct),n[e]=t}},updateModel:function(){if(this.isOption){var e=this.start.parentNode,t=e&&e.__v_model;t&&t.forceUpdate()}},insert:function(e,t,n,r){e.staggerCb&&(e.staggerCb.cancel(),e.staggerCb=null);var i=this.getStagger(e,t,null,"enter");if(r&&i){var o=e.staggerAnchor;o||(o=e.staggerAnchor=ye("stagger-anchor"),o.__v_frag=e),ie(o,n);var a=e.staggerCb=C(function(){e.staggerCb=null,e.before(o),oe(o)});setTimeout(a,i)}else{var s=n.nextSibling;s||(ie(this.end,n),s=this.end),e.before(s)}},remove:function(e,t,n,r){if(e.staggerCb)return e.staggerCb.cancel(),void(e.staggerCb=null);var i=this.getStagger(e,t,n,"leave");if(r&&i){var o=e.staggerCb=C(function(){e.staggerCb=null,e.remove()});setTimeout(o,i)}else e.remove()},move:function(e,t){t.nextSibling||this.end.parentNode.appendChild(this.end),e.before(t.nextSibling,!1)},cacheFrag:function(e,n,r,o){var a,s=this.params.trackBy,l=this.cache,u=!y(e);o||s||u?(a=kt(r,o,e,s),l[a]?"$index"!==s&&"production"!==t.env.NODE_ENV&&this.warnDuplicate(e):l[a]=n):(a=this.id,i(e,a)?null===e[a]?e[a]=n:"production"!==t.env.NODE_ENV&&this.warnDuplicate(e):Object.isExtensible(e)?w(e,a,n):"production"!==t.env.NODE_ENV&&jr("Frozen v-for objects cannot be automatically tracked, make sure to provide a track-by key.")),n.raw=e},getCachedFrag:function(e,n,r){var i,o=this.params.trackBy,a=!y(e);if(r||o||a){var s=kt(n,r,e,o);i=this.cache[s]}else i=e[this.id];return i&&(i.reused||i.fresh)&&"production"!==t.env.NODE_ENV&&this.warnDuplicate(e),i},deleteCachedFrag:function(e){var t=e.raw,n=this.params.trackBy,r=e.scope,o=r.$index,a=i(r,"$key")&&r.$key,s=!y(t);if(n||a||s){var l=kt(o,a,t,n);this.cache[l]=null}else t[this.id]=null,e.raw=null},getStagger:function(e,t,n,r){r+="Stagger";var i=e.node.__v_trans,o=i&&i.hooks,a=o&&(o[r]||o.stagger);return a?a.call(e,t,n):t*parseInt(this.params[r]||this.params.stagger,10)},_preProcess:function(e){return this.rawValue=e,e},_postProcess:function(e){if(Wn(e))return e;if(b(e)){for(var t,n=Object.keys(e),r=n.length,i=new Array(r);r--;)t=n[r],i[r]={$key:t,$value:e[t]};return i}return"number"!=typeof e||isNaN(e)||(e=xt(e)),e||[]},unbind:function(){if(this.descriptor.ref&&((this._scope||this.vm).$refs[this.descriptor.ref]=null),this.frags)for(var e,t=this.frags.length;t--;)e=this.frags[t],this.deleteCachedFrag(e),e.destroy()}};"production"!==t.env.NODE_ENV&&(Ui.warnDuplicate=function(e){jr('Duplicate value found in v-for="'+this.descriptor.raw+'": '+JSON.stringify(e)+'. Use track-by="$index" if you are expecting duplicate values.',this.vm)});var qi={priority:2100,terminal:!0,bind:function(){var e=this.el;if(e.__vue__)"production"!==t.env.NODE_ENV&&jr('v-if="'+this.expression+'" cannot be used on an instance root element.',this.vm),this.invalid=!0;else{var n=e.nextElementSibling;n&&null!==ee(n,"v-else")&&(oe(n),this.elseEl=n),this.anchor=ye("v-if"),se(e,this.anchor)}},update:function(e){this.invalid||(e?this.frag||this.insert():this.remove())},insert:function(){this.elseFrag&&(this.elseFrag.remove(),this.elseFrag=null),this.factory||(this.factory=new bt(this.vm,this.el)),this.frag=this.factory.create(this._host,this._scope,this._frag),this.frag.before(this.anchor)},remove:function(){this.frag&&(this.frag.remove(),this.frag=null),this.elseEl&&!this.elseFrag&&(this.elseFactory||(this.elseFactory=new bt(this.elseEl._context||this.vm,this.elseEl)),this.elseFrag=this.elseFactory.create(this._host,this._scope,this._frag),this.elseFrag.before(this.anchor))},unbind:function(){this.frag&&this.frag.destroy(),this.elseFrag&&this.elseFrag.destroy()}},Gi={bind:function(){var e=this.el.nextElementSibling;e&&null!==ee(e,"v-else")&&(this.elseEl=e)},update:function(e){this.apply(this.el,e),this.elseEl&&this.apply(this.elseEl,!e)},apply:function(e,t){function n(){e.style.display=t?"":"none"}Q(e)?J(e,t?1:-1,n,this.vm):n()}},Ki={bind:function(){var e=this,t=this.el,n="range"===t.type,r=this.params.lazy,i=this.params.number,o=this.params.debounce,a=!1;if(Yn||n||(this.on("compositionstart",function(){a=!0}),this.on("compositionend",function(){a=!1,r||e.listener()})),this.focused=!1,n||r||(this.on("focus",function(){e.focused=!0}),this.on("blur",function(){e.focused=!1,e._frag&&!e._frag.inserted||e.rawListener()})),this.listener=this.rawListener=function(){if(!a&&e._bound){var r=i||n?l(t.value):t.value;e.set(r),rr(function(){e._bound&&!e.focused&&e.update(e._watcher.value)})}},o&&(this.listener=x(this.listener,o)),this.hasjQuery="function"==typeof jQuery,this.hasjQuery){var s=jQuery.fn.on?"on":"bind";jQuery(t)[s]("change",this.rawListener),r||jQuery(t)[s]("input",this.listener)}else this.on("change",this.rawListener),r||this.on("input",this.listener);!r&&Kn&&(this.on("cut",function(){rr(e.listener)}),this.on("keyup",function(t){46!==t.keyCode&&8!==t.keyCode||e.listener()})),(t.hasAttribute("value")||"TEXTAREA"===t.tagName&&t.value.trim())&&(this.afterBind=this.listener)},update:function(e){(e=s(e))!==this.el.value&&(this.el.value=e)},unbind:function(){var e=this.el;if(this.hasjQuery){var t=jQuery.fn.off?"off":"unbind";jQuery(e)[t]("change",this.listener),jQuery(e)[t]("input",this.listener)}}},Yi={bind:function(){var e=this,t=this.el;this.getValue=function(){if(t.hasOwnProperty("_value"))return t._value;var n=t.value;return e.params.number&&(n=l(n)),n},this.listener=function(){e.set(e.getValue())},this.on("change",this.listener),t.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(e){this.el.checked=_(e,this.getValue())}},Xi={bind:function(){var e=this,t=this,n=this.el;this.forceUpdate=function(){t._watcher&&t.update(t._watcher.get())};var r=this.multiple=n.hasAttribute("multiple");this.listener=function(){var e=_t(n,r);e=t.params.number?Wn(e)?e.map(l):l(e):e,t.set(e)},this.on("change",this.listener);var i=_t(n,r,!0);(r&&i.length||!r&&null!==i)&&(this.afterBind=this.listener),this.vm.$on("hook:attached",function(){rr(e.forceUpdate)}),Q(n)||rr(this.forceUpdate)},update:function(e){var t=this.el;t.selectedIndex=-1;for(var n,r,i=this.multiple&&Wn(e),o=t.options,a=o.length;a--;)n=o[a],r=n.hasOwnProperty("_value")?n._value:n.value,n.selected=i?St(e,r)>-1:_(e,r)},unbind:function(){this.vm.$off("hook:attached",this.forceUpdate)}},Ji={bind:function(){function e(){var e=n.checked;return e&&n.hasOwnProperty("_trueValue")?n._trueValue:!e&&n.hasOwnProperty("_falseValue")?n._falseValue:e}var t=this,n=this.el;this.getValue=function(){return n.hasOwnProperty("_value")?n._value:t.params.number?l(n.value):n.value},this.listener=function(){var r=t._watcher.get();if(Wn(r)){var i=t.getValue(),o=k(r,i);n.checked?o<0&&t.set(r.concat(i)):o>-1&&t.set(r.slice(0,o).concat(r.slice(o+1)))}else t.set(e())},this.on("change",this.listener),n.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(e){var t=this.el;Wn(e)?t.checked=k(e,this.getValue())>-1:t.hasOwnProperty("_trueValue")?t.checked=_(e,t._trueValue):t.checked=!!e}},Zi={text:Ki,radio:Yi,select:Xi,checkbox:Ji},Qi={priority:800,twoWay:!0,handlers:Zi,params:["lazy","number","debounce"],bind:function(){this.checkFilters(),this.hasRead&&!this.hasWrite&&"production"!==t.env.NODE_ENV&&jr('It seems you are using a read-only filter with v-model="'+this.descriptor.raw+'". You might want to use a two-way filter to ensure correct behavior.',this.vm);var e,n=this.el,r=n.tagName;if("INPUT"===r)e=Zi[n.type]||Zi.text;else if("SELECT"===r)e=Zi.select;else{if("TEXTAREA"!==r)return void("production"!==t.env.NODE_ENV&&jr("v-model does not support element type: "+r,this.vm));e=Zi.text}n.__v_model=this,e.bind.call(this),this.update=e.update,this._unbind=e.unbind},checkFilters:function(){var e=this.filters;if(e)for(var t=e.length;t--;){var n=Le(this.vm.$options,"filters",e[t].name);("function"==typeof n||n.read)&&(this.hasRead=!0),n.write&&(this.hasWrite=!0)}},unbind:function(){this.el.__v_model=null,this._unbind&&this._unbind()}},eo={esc:27,tab:9,enter:13,space:32,delete:[8,46],up:38,left:37,right:39,down:40},to={priority:700,acceptStatement:!0,keyCodes:eo,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var e=this;this.iframeBind=function(){le(e.el.contentWindow,e.arg,e.handler,e.modifiers.capture)},this.on("load",this.iframeBind)}},update:function(e){if(this.descriptor.raw||(e=function(){}),"function"!=typeof e)return void("production"!==t.env.NODE_ENV&&jr("v-on:"+this.arg+'="'+this.expression+'" expects a function value, got '+e,this.vm));this.modifiers.stop&&(e=Mt(e)),this.modifiers.prevent&&(e=Tt(e)),this.modifiers.self&&(e=At(e));var n=Object.keys(this.modifiers).filter(function(e){return"stop"!==e&&"prevent"!==e&&"self"!==e&&"capture"!==e});n.length&&(e=Ot(e,n)),this.reset(),this.handler=e,this.iframeBind?this.iframeBind():le(this.el,this.arg,this.handler,this.modifiers.capture)},reset:function(){var e=this.iframeBind?this.el.contentWindow:this.el;this.handler&&ue(e,this.arg,this.handler)},unbind:function(){this.reset()}},no=["-webkit-","-moz-","-ms-"],ro=["Webkit","Moz","ms"],io=/!important;?$/,oo=Object.create(null),ao=null,so={deep:!0,update:function(e){"string"==typeof e?this.el.style.cssText=e:Wn(e)?this.handleObject(e.reduce(g,{})):this.handleObject(e||{})},handleObject:function(e){var t,n,r=this.cache||(this.cache={});for(t in r)t in e||(this.handleSingle(t,null),delete r[t]);for(t in e)(n=e[t])!==r[t]&&(r[t]=n,this.handleSingle(t,n))},handleSingle:function(e,n){if(e=Nt(e))if(null!=n&&(n+=""),n){var r=io.test(n)?"important":"";r?("production"!==t.env.NODE_ENV&&jr("It's probably a bad idea to use !important with inline rules. This feature will be deprecated in a future version of Vue."),n=n.replace(io,"").trim(),this.el.style.setProperty(e.kebab,n,r)):this.el.style[e.camel]=n}else this.el.style[e.camel]=""}},lo=/^xlink:/,uo=/^v-|^:|^@|^(?:is|transition|transition-mode|debounce|track-by|stagger|enter-stagger|leave-stagger)$/,co=/^(?:value|checked|selected|muted)$/,fo=/^(?:draggable|contenteditable|spellcheck)$/,ho={value:"_value","true-value":"_trueValue","false-value":"_falseValue"},po={priority:850,bind:function(){var e=this.arg,n=this.el.tagName;e||(this.deep=!0);var r=this.descriptor,i=r.interp;if(i&&(r.hasOneTime&&(this.expression=U(i,this._scope||this.vm)),(uo.test(e)||"name"===e&&("PARTIAL"===n||"SLOT"===n))&&("production"!==t.env.NODE_ENV&&jr(e+'="'+r.raw+'": attribute interpolation is not allowed in Vue.js directives and special attributes.',this.vm),this.el.removeAttribute(e),this.invalid=!0),"production"!==t.env.NODE_ENV)){var o=e+'="'+r.raw+'": ';"src"===e&&jr(o+'interpolation in "src" attribute will cause a 404 request. Use v-bind:src instead.',this.vm),"style"===e&&jr(o+'interpolation in "style" attribute will cause the attribute to be discarded in Internet Explorer. Use v-bind:style instead.',this.vm)}},update:function(e){if(!this.invalid){var t=this.arg;this.arg?this.handleSingle(t,e):this.handleObject(e||{})}},handleObject:so.handleObject,handleSingle:function(e,t){var n=this.el,r=this.descriptor.interp;if(this.modifiers.camel&&(e=f(e)),!r&&co.test(e)&&e in n){var i="value"===e&&null==t?"":t;n[e]!==i&&(n[e]=i)}var o=ho[e];if(!r&&o){n[o]=t;var a=n.__v_model;a&&a.listener()}if("value"===e&&"TEXTAREA"===n.tagName)return void n.removeAttribute(e);fo.test(e)?n.setAttribute(e,t?"true":"false"):null!=t&&!1!==t?"class"===e?(n.__v_trans&&(t+=" "+n.__v_trans.id+"-transition"),fe(n,t)):lo.test(e)?n.setAttributeNS("http://www.w3.org/1999/xlink",e,!0===t?"":t):n.setAttribute(e,!0===t?"":t):n.removeAttribute(e)}},vo={priority:1500,bind:function(){if(this.arg){var e=this.id=f(this.arg),t=(this._scope||this.vm).$els;i(t,e)?t[e]=this.el:He(t,e,this.el)}},unbind:function(){var e=(this._scope||this.vm).$els;e[this.id]===this.el&&(e[this.id]=null)}},mo={bind:function(){"production"!==t.env.NODE_ENV&&jr("v-ref:"+this.arg+" must be used on a child component. Found on <"+this.el.tagName.toLowerCase()+">.",this.vm)}},go={bind:function(){var e=this.el;this.vm.$once("pre-hook:compiled",function(){e.removeAttribute("v-cloak")})}},yo={text:Li,html:Wi,for:Ui,if:qi,show:Gi,model:Qi,on:to,bind:po,el:vo,ref:mo,cloak:go},bo={deep:!0,update:function(e){e?"string"==typeof e?this.setClass(e.trim().split(/\s+/)):this.setClass(Lt(e)):this.cleanup()},setClass:function(e){this.cleanup(e);for(var t=0,n=e.length;t<n;t++){var r=e[t];r&&$t(this.el,r,de)}this.prevKeys=e},cleanup:function(e){var t=this.prevKeys;if(t)for(var n=t.length;n--;){var r=t[n];(!e||e.indexOf(r)<0)&&$t(this.el,r,he)}}},wo={priority:1500,params:["keep-alive","transition-mode","inline-template"],bind:function(){this.el.__vue__?"production"!==t.env.NODE_ENV&&jr('cannot mount component "'+this.expression+'" on already mounted element: '+this.el):(this.keepAlive=this.params.keepAlive,this.keepAlive&&(this.cache={}),this.params.inlineTemplate&&(this.inlineTemplate=pe(this.el,!0)),this.pendingComponentCb=this.Component=null,this.pendingRemovals=0,this.pendingRemovalCb=null,this.anchor=ye("v-component"),se(this.el,this.anchor),this.el.removeAttribute("is"),this.el.removeAttribute(":is"),this.descriptor.ref&&this.el.removeAttribute("v-ref:"+h(this.descriptor.ref)),this.literal&&this.setComponent(this.expression))},update:function(e){this.literal||this.setComponent(e)},setComponent:function(e,t){if(this.invalidatePending(),e){var n=this;this.resolveComponent(e,function(){n.mountComponent(t)})}else this.unbuild(!0),this.remove(this.childVM,t),this.childVM=null},resolveComponent:function(e,t){var n=this;this.pendingComponentCb=C(function(r){n.ComponentName=r.options.name||("string"==typeof e?e:null),n.Component=r,t()}),this.vm._resolveComponent(e,this.pendingComponentCb)},mountComponent:function(e){this.unbuild(!0);var t=this,n=this.Component.options.activate,r=this.getCached(),i=this.build();n&&!r?(this.waitingFor=i,Pt(n,i,function(){t.waitingFor===i&&(t.waitingFor=null,t.transition(i,e))})):(r&&i._updateRef(),this.transition(i,e))},invalidatePending:function(){this.pendingComponentCb&&(this.pendingComponentCb.cancel(),this.pendingComponentCb=null)},build:function(e){var n=this.getCached();if(n)return n;if(this.Component){var r={name:this.ComponentName,el:ct(this.el),template:this.inlineTemplate,parent:this._host||this.vm,_linkerCachable:!this.inlineTemplate,_ref:this.descriptor.ref,_asComponent:!0,_isRouterView:this._isRouterView,_context:this.vm,_scope:this._scope,_frag:this._frag};e&&g(r,e);var i=new this.Component(r);return this.keepAlive&&(this.cache[this.Component.cid]=i),"production"!==t.env.NODE_ENV&&this.el.hasAttribute("transition")&&i._isFragment&&jr("Transitions will not work on a fragment instance. Template: "+i.$options.template,i),i}},getCached:function(){return this.keepAlive&&this.cache[this.Component.cid]},unbuild:function(e){this.waitingFor&&(this.keepAlive||this.waitingFor.$destroy(),this.waitingFor=null);var t=this.childVM;if(!t||this.keepAlive)return void(t&&(t._inactive=!0,t._updateRef(!0)));t.$destroy(!1,e)},remove:function(e,t){var n=this.keepAlive;if(e){this.pendingRemovals++,this.pendingRemovalCb=t;var r=this;e.$remove(function(){r.pendingRemovals--,n||e._cleanup(),!r.pendingRemovals&&r.pendingRemovalCb&&(r.pendingRemovalCb(),r.pendingRemovalCb=null)})}else t&&t()},transition:function(e,t){var n=this,r=this.childVM;switch(r&&(r._inactive=!0),e._inactive=!1,this.childVM=e,n.params.transitionMode){case"in-out":e.$before(n.anchor,function(){n.remove(r,t)});break;case"out-in":n.remove(r,function(){e.$before(n.anchor,t)});break;default:n.remove(r),e.$before(n.anchor,t)}},unbind:function(){if(this.invalidatePending(),this.unbuild(),this.cache){for(var e in this.cache)this.cache[e].$destroy();this.cache=null}}},xo=Pr._propBindingModes,ko={},Co=/^[$_a-zA-Z]+[\w$]*$/,_o=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\[[^\[\]]+\])*$/,So=Pr._propBindingModes,Oo={bind:function(){var e=this.vm,t=e._context,n=this.descriptor.prop,r=n.path,i=n.parentPath,o=n.mode===So.TWO_WAY,a=this.parentWatcher=new ot(t,i,function(t){Ht(e,n,t)},{twoWay:o,filters:n.filters,scope:this._scope});if(It(e,n,a.value),o){var s=this;e.$once("pre-hook:created",function(){s.childWatcher=new ot(e,r,function(e){a.set(e)},{sync:!0})})}},unbind:function(){this.parentWatcher.teardown(),this.childWatcher&&this.childWatcher.teardown()}},Mo=[],To=!1,Ao="transition",No="animation",Eo=Jn+"Duration",Lo=Qn+"Duration",$o=Vn&&window.requestAnimationFrame,Po=$o?function(e){$o(function(){$o(e)})}:function(e){setTimeout(e,50)},jo=Kt.prototype;jo.enter=function(e,t){this.cancelPending(),this.callHook("beforeEnter"),this.cb=t,de(this.el,this.enterClass),e(),this.entered=!1,this.callHookWithCb("enter"),this.entered||(this.cancel=this.hooks&&this.hooks.enterCancelled,qt(this.enterNextTick))},jo.enterNextTick=function(){var e=this;this.justEntered=!0,Po(function(){e.justEntered=!1});var t=this.enterDone,n=this.getCssTransitionType(this.enterClass);this.pendingJsCb?n===Ao&&he(this.el,this.enterClass):n===Ao?(he(this.el,this.enterClass),this.setupCssCb(Zn,t)):n===No?this.setupCssCb(er,t):t()},jo.enterDone=function(){this.entered=!0,this.cancel=this.pendingJsCb=null,he(this.el,this.enterClass),this.callHook("afterEnter"),this.cb&&this.cb()},jo.leave=function(e,t){this.cancelPending(),this.callHook("beforeLeave"),this.op=e,this.cb=t,de(this.el,this.leaveClass),this.left=!1,this.callHookWithCb("leave"),this.left||(this.cancel=this.hooks&&this.hooks.leaveCancelled,this.op&&!this.pendingJsCb&&(this.justEntered?this.leaveDone():qt(this.leaveNextTick)))},jo.leaveNextTick=function(){var e=this.getCssTransitionType(this.leaveClass);if(e){var t=e===Ao?Zn:er;this.setupCssCb(t,this.leaveDone)}else this.leaveDone()},jo.leaveDone=function(){this.left=!0,this.cancel=this.pendingJsCb=null,this.op(),he(this.el,this.leaveClass),this.callHook("afterLeave"),this.cb&&this.cb(),this.op=null},jo.cancelPending=function(){this.op=this.cb=null;var e=!1;this.pendingCssCb&&(e=!0,ue(this.el,this.pendingCssEvent,this.pendingCssCb),this.pendingCssEvent=this.pendingCssCb=null),this.pendingJsCb&&(e=!0,this.pendingJsCb.cancel(),this.pendingJsCb=null),e&&(he(this.el,this.enterClass),he(this.el,this.leaveClass)),this.cancel&&(this.cancel.call(this.vm,this.el),this.cancel=null)},jo.callHook=function(e){this.hooks&&this.hooks[e]&&this.hooks[e].call(this.vm,this.el)},jo.callHookWithCb=function(e){var t=this.hooks&&this.hooks[e];t&&(t.length>1&&(this.pendingJsCb=C(this[e+"Done"])),t.call(this.vm,this.el,this.pendingJsCb))},jo.getCssTransitionType=function(e){if(!(!Zn||document.hidden||this.hooks&&!1===this.hooks.css||Yt(this.el))){var t=this.type||this.typeCache[e];if(t)return t;var n=this.el.style,r=window.getComputedStyle(this.el),i=n[Eo]||r[Eo];if(i&&"0s"!==i)t=Ao;else{var o=n[Lo]||r[Lo];o&&"0s"!==o&&(t=No)}return t&&(this.typeCache[e]=t),t}},jo.setupCssCb=function(e,t){this.pendingCssEvent=e;var n=this,r=this.el,i=this.pendingCssCb=function(o){o.target===r&&(ue(r,e,i),n.pendingCssEvent=n.pendingCssCb=null,!n.pendingJsCb&&t&&t())};le(r,e,i)};var Do={priority:1100,update:function(e,t){var n=this.el,r=Le(this.vm.$options,"transitions",e);e=e||"v",t=t||"v",n.__v_trans=new Kt(n,e,r,this.vm),he(n,t+"-transition"),de(n,e+"-transition")}},Fo={style:so,class:bo,component:wo,prop:Oo,transition:Do},Io=/^v-bind:|^:/,Ho=/^v-on:|^@/,Ro=/^v-([^:]+)(?:$|:(.*)$)/,zo=/\.[^\.]+/g,Wo=/^(v-bind:|:)?transition$/,Bo=1e3,Vo=2e3;vn.terminal=!0;var Uo=/[^\w\-:\.]/,qo=Object.freeze({compile:Xt,compileAndLinkProps:tn,compileRoot:nn,transclude:kn,resolveSlots:On}),Go=/^v-on:|^@/;An.prototype._bind=function(){var e=this.name,t=this.descriptor;if(("cloak"!==e||this.vm._isCompiled)&&this.el&&this.el.removeAttribute){var n=t.attr||"v-"+e;this.el.removeAttribute(n)}var r=t.def;if("function"==typeof r?this.update=r:g(this,r),this._setupParams(),this.bind&&this.bind(),this._bound=!0,this.literal)this.update&&this.update(t.raw);else if((this.expression||this.modifiers)&&(this.update||this.twoWay)&&!this._checkStatement()){var i=this;this.update?this._update=function(e,t){i._locked||i.update(e,t)}:this._update=Tn;var o=this._preProcess?v(this._preProcess,this):null,a=this._postProcess?v(this._postProcess,this):null,s=this._watcher=new ot(this.vm,this.expression,this._update,{filters:this.filters,twoWay:this.twoWay,deep:this.deep,preProcess:o,postProcess:a,scope:this._scope});this.afterBind?this.afterBind():this.update&&this.update(s.value)}},An.prototype._setupParams=function(){if(this.params){var e=this.params;this.params=Object.create(null);for(var t,n,r,i=e.length;i--;)t=h(e[i]),r=f(t),n=te(this.el,t),null!=n?this._setupParamWatcher(r,n):null!=(n=ee(this.el,t))&&(this.params[r]=""===n||n)}},An.prototype._setupParamWatcher=function(e,t){var n=this,r=!1,i=(this._scope||this.vm).$watch(t,function(t,i){if(n.params[e]=t,r){var o=n.paramWatchers&&n.paramWatchers[e];o&&o.call(n,t,i)}else r=!0},{immediate:!0,user:!1});(this._paramUnwatchFns||(this._paramUnwatchFns=[])).push(i)},An.prototype._checkStatement=function(){var e=this.expression;if(e&&this.acceptStatement&&!et(e)){var t=Qe(e).get,n=this._scope||this.vm,r=function(e){n.$event=e,t.call(n,n),n.$event=null};return this.filters&&(r=n._applyFilters(r,null,this.filters)),this.update(r),!0}},An.prototype.set=function(e){this.twoWay?this._withLock(function(){this._watcher.set(e)}):"production"!==t.env.NODE_ENV&&jr("Directive.set() can only be used inside twoWaydirectives.")},An.prototype._withLock=function(e){var t=this;t._locked=!0,e.call(t),rr(function(){t._locked=!1})},An.prototype.on=function(e,t,n){le(this.el,e,t,n),(this._listeners||(this._listeners=[])).push([e,t])},An.prototype._teardown=function(){if(this._bound){this._bound=!1,this.unbind&&this.unbind(),this._watcher&&this._watcher.teardown();var e,n=this._listeners;if(n)for(e=n.length;e--;)ue(this.el,n[e][0],n[e][1]);var r=this._paramUnwatchFns;if(r)for(e=r.length;e--;)r[e]();"production"!==t.env.NODE_ENV&&this.el&&this.el._vue_directives.$remove(this),this.vm=this.el=this._watcher=this._listeners=null}};var Ko=/[^|]\|[^|]/;!function(e){e.prototype._init=function(e){e=e||{},this.$el=null,this.$parent=e.parent,this.$root=this.$parent?this.$parent.$root:this,this.$children=[],this.$refs={},this.$els={},this._watchers=[],this._directives=[],this._uid=Xr++,this._isVue=!0,this._events={},this._eventsCount={},this._isFragment=!1,this._fragment=this._fragmentStart=this._fragmentEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=this._vForRemoving=!1,this._unlinkFn=null,this._context=e._context||this.$parent,this._scope=e._scope,this._frag=e._frag,this._frag&&this._frag.children.push(this),this.$parent&&this.$parent.$children.push(this),e=this.$options=Ee(this.constructor.options,e,this),this._updateRef(),this._data={},this._callHook("init"),this._initState(),this._initEvents(),this._callHook("created"),e.el&&this.$mount(e.el)}}(Nn),function(e){function n(){}function r(e,t){var n=new ot(t,e,null,{lazy:!0});return function(){return n.dirty&&n.evaluate(),$e.target&&n.depend(),n.value}}Object.defineProperty(e.prototype,"$data",{get:function(){return this._data},set:function(e){e!==this._data&&this._setData(e)}}),e.prototype._initState=function(){this._initProps(),this._initMeta(),this._initMethods(),this._initData(),this._initComputed()},e.prototype._initProps=function(){var e=this.$options,n=e.el,r=e.props;r&&!n&&"production"!==t.env.NODE_ENV&&jr("Props will not be compiled if no `el` option is provided at instantiation.",this),n=e.el=Z(n),this._propsUnlinkFn=n&&1===n.nodeType&&r?tn(this,n,r,this._scope):null},e.prototype._initData=function(){var e=this.$options.data,n=this._data=e?e():{};b(n)||(n={},"production"!==t.env.NODE_ENV&&jr("data functions should return an object.",this));var r,o,a=this._props,s=Object.keys(n);for(r=s.length;r--;)o=s[r],a&&i(a,o)?"production"!==t.env.NODE_ENV&&jr('Data field "'+o+'" is already defined as a prop. To provide default value for a prop, use the "default" prop option; if you want to pass prop values to an instantiation call, use the "propsData" option.',this):this._proxy(o);Ie(n,this)},e.prototype._setData=function(e){e=e||{};var t=this._data;this._data=e;var n,r,o;for(n=Object.keys(t),o=n.length;o--;)(r=n[o])in e||this._unproxy(r);for(n=Object.keys(e),o=n.length;o--;)r=n[o],i(this,r)||this._proxy(r);t.__ob__.removeVm(this),Ie(e,this),this._digest()},e.prototype._proxy=function(e){if(!a(e)){var t=this;Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return t._data[e]},set:function(n){t._data[e]=n}})}},e.prototype._unproxy=function(e){a(e)||delete this[e]},e.prototype._digest=function(){for(var e=0,t=this._watchers.length;e<t;e++)this._watchers[e].update(!0)},e.prototype._initComputed=function(){var e=this.$options.computed;if(e)for(var t in e){var i=e[t],o={enumerable:!0,configurable:!0};"function"==typeof i?(o.get=r(i,this),o.set=n):(o.get=i.get?!1!==i.cache?r(i.get,this):v(i.get,this):n,o.set=i.set?v(i.set,this):n),Object.defineProperty(this,t,o)}},e.prototype._initMethods=function(){var e=this.$options.methods;if(e)for(var t in e)this[t]=v(e[t],this)},e.prototype._initMeta=function(){var e=this.$options._meta;if(e)for(var t in e)He(this,t,e[t])}}(Nn),function(e){function n(e,t){for(var n,r,i,o=t.attributes,a=0,s=o.length;a<s;a++)n=o[a].name,Go.test(n)&&(n=n.replace(Go,""),r=o[a].value,et(r)&&(r+=".apply(this, $arguments)"),i=(e._scope||e._context).$eval(r,!0),i._fromParent=!0,e.$on(n.replace(Go),i))}function r(e,t,n){if(n){var r,o,a,s;for(o in n)if(r=n[o],Wn(r))for(a=0,s=r.length;a<s;a++)i(e,t,o,r[a]);else i(e,t,o,r)}}function i(e,n,r,o,a){var s=typeof o;if("function"===s)e[n](r,o,a);else if("string"===s){var l=e.$options.methods,u=l&&l[o];u?e[n](r,u,a):"production"!==t.env.NODE_ENV&&jr('Unknown method: "'+o+'" when registering callback for '+n+': "'+r+'".',e)}else o&&"object"===s&&i(e,n,r,o.handler,o)}function o(){this._isAttached||(this._isAttached=!0,this.$children.forEach(a))}function a(e){!e._isAttached&&Q(e.$el)&&e._callHook("attached")}function s(){this._isAttached&&(this._isAttached=!1,this.$children.forEach(l))}function l(e){e._isAttached&&!Q(e.$el)&&e._callHook("detached")}e.prototype._initEvents=function(){var e=this.$options;e._asComponent&&n(this,e.el),r(this,"$on",e.events),r(this,"$watch",e.watch)},e.prototype._initDOMHooks=function(){this.$on("hook:attached",o),this.$on("hook:detached",s)},e.prototype._callHook=function(e){this.$emit("pre-hook:"+e);var t=this.$options[e];if(t)for(var n=0,r=t.length;n<r;n++)t[n].call(this);this.$emit("hook:"+e)}}(Nn),function(e){e.prototype._updateRef=function(e){var t=this.$options._ref;if(t){var n=(this._scope||this._context).$refs;e?n[t]===this&&(n[t]=null):n[t]=this}},e.prototype._compile=function(e){var t=this.$options,n=e;if(e=kn(e,t),this._initElement(e),1!==e.nodeType||null===ee(e,"v-pre")){var r=this._context&&this._context.$options,i=nn(e,t,r);On(this,t._content);var o,a=this.constructor;t._linkerCachable&&((o=a.linker)||(o=a.linker=Xt(e,t)));var s=i(this,e,this._scope),l=o?o(this,e):Xt(e,t)(this,e);this._unlinkFn=function(){s(),l(!0)},t.replace&&se(n,e),this._isCompiled=!0,this._callHook("compiled")}},e.prototype._initElement=function(e){ke(e)?(this._isFragment=!0,this.$el=this._fragmentStart=e.firstChild,this._fragmentEnd=e.lastChild,3===this._fragmentStart.nodeType&&(this._fragmentStart.data=this._fragmentEnd.data=""),this._fragment=e):this.$el=e,this.$el.__vue__=this,this._callHook("beforeCompile")},e.prototype._bindDir=function(e,t,n,r,i){this._directives.push(new An(e,this,t,n,r,i))},e.prototype._destroy=function(e,t){if(this._isBeingDestroyed)return void(t||this._cleanup());var n,r,i=this,o=function(){!n||r||t||i._cleanup()};e&&this.$el&&(r=!0,this.$remove(function(){r=!1,o()})),this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var a,s=this.$parent;for(s&&!s._isBeingDestroyed&&(s.$children.$remove(this),this._updateRef(!0)),a=this.$children.length;a--;)this.$children[a].$destroy();for(this._propsUnlinkFn&&this._propsUnlinkFn(),this._unlinkFn&&this._unlinkFn(),a=this._watchers.length;a--;)this._watchers[a].teardown();this.$el&&(this.$el.__vue__=null),n=!0,o()},e.prototype._cleanup=function(){this._isDestroyed||(this._frag&&this._frag.children.$remove(this),this._data&&this._data.__ob__&&this._data.__ob__.removeVm(this),this.$el=this.$parent=this.$root=this.$children=this._watchers=this._context=this._scope=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off())}}(Nn),function(e){e.prototype._applyFilters=function(e,t,n,r){var i,o,a,s,l,u,c,f,d;for(u=0,c=n.length;u<c;u++)if(i=n[r?c-u-1:u],(o=Le(this.$options,"filters",i.name,!0))&&"function"==typeof(o=r?o.write:o.read||o)){if(a=r?[e,t]:[e],l=r?2:1,i.args)for(f=0,d=i.args.length;f<d;f++)s=i.args[f],a[f+l]=s.dynamic?this.$get(s.value):s.value;e=o.apply(this,a)}return e},e.prototype._resolveComponent=function(n,r){var i;if(i="function"==typeof n?n:Le(this.$options,"components",n,!0))if(i.options)r(i);else if(i.resolved)r(i.resolved);else if(i.requested)i.pendingCallbacks.push(r);else{i.requested=!0;var o=i.pendingCallbacks=[r];i.call(this,function(t){b(t)&&(t=e.extend(t)),i.resolved=t;for(var n=0,r=o.length;n<r;n++)o[n](t)},function(e){"production"!==t.env.NODE_ENV&&jr("Failed to resolve async component"+("string"==typeof n?": "+n:"")+". "+(e?"\nReason: "+e:""))})}}}(Nn),function(e){function t(e){return JSON.parse(JSON.stringify(e))}e.prototype.$get=function(e,t){var n=Qe(e);if(n){if(t){var r=this;return function(){r.$arguments=m(arguments);var e=n.get.call(r,r);return r.$arguments=null,e}}try{return n.get.call(this,this)}catch(e){}}},e.prototype.$set=function(e,t){var n=Qe(e,!0);n&&n.set&&n.set.call(this,this,t)},e.prototype.$delete=function(e){r(this._data,e)},e.prototype.$watch=function(e,t,n){var r,i=this;"string"==typeof e&&(r=z(e),e=r.expression);var o=new ot(i,e,t,{deep:n&&n.deep,sync:n&&n.sync,filters:r&&r.filters,user:!n||!1!==n.user});return n&&n.immediate&&t.call(i,o.value),function(){o.teardown()}},e.prototype.$eval=function(e,t){if(Ko.test(e)){var n=z(e),r=this.$get(n.expression,t);return n.filters?this._applyFilters(r,null,n.filters):r}return this.$get(e,t)},e.prototype.$interpolate=function(e){var t=V(e),n=this;return t?1===t.length?n.$eval(t[0].value)+"":t.map(function(e){return e.tag?n.$eval(e.value):e.value}).join(""):e},e.prototype.$log=function(e){var n=e?Ve(this._data,e):this._data;if(n&&(n=t(n)),!e){var r;for(r in this.$options.computed)n[r]=t(this[r]);if(this._props)for(r in this._props)n[r]=t(this[r])}console.log(n)}}(Nn),function(e){function t(e,t,r,i,o,a){t=n(t);var s=!Q(t),l=!1===i||s?o:a,u=!s&&!e._isAttached&&!Q(e.$el);return e._isFragment?(we(e._fragmentStart,e._fragmentEnd,function(n){l(n,t,e)}),r&&r()):l(e.$el,t,e,r),u&&e._callHook("attached"),e}function n(e){return"string"==typeof e?document.querySelector(e):e}function r(e,t,n,r){t.appendChild(e),r&&r()}function i(e,t,n,r){re(e,t),r&&r()}function o(e,t,n){oe(e),n&&n()}e.prototype.$nextTick=function(e){rr(e,this)},e.prototype.$appendTo=function(e,n,i){return t(this,e,n,i,r,K)},e.prototype.$prependTo=function(e,t,r){return e=n(e),e.hasChildNodes()?this.$before(e.firstChild,t,r):this.$appendTo(e,t,r),this},e.prototype.$before=function(e,n,r){return t(this,e,n,r,i,Y)},e.prototype.$after=function(e,t,r){return e=n(e),e.nextSibling?this.$before(e.nextSibling,t,r):this.$appendTo(e.parentNode,t,r),this},e.prototype.$remove=function(e,t){if(!this.$el.parentNode)return e&&e();var n=this._isAttached&&Q(this.$el);n||(t=!1);var r=this,i=function(){n&&r._callHook("detached"),e&&e()};return this._isFragment?xe(this._fragmentStart,this._fragmentEnd,this,this._fragment,i):(!1===t?o:X)(this.$el,this,i),this}}(Nn),function(e){function t(e,t,r){var i=e.$parent;if(i&&r&&!n.test(t))for(;i;)i._eventsCount[t]=(i._eventsCount[t]||0)+r,i=i.$parent}e.prototype.$on=function(e,n){return(this._events[e]||(this._events[e]=[])).push(n),t(this,e,1),this},e.prototype.$once=function(e,t){function n(){r.$off(e,n),t.apply(this,arguments)}var r=this;return n.fn=t,this.$on(e,n),this},e.prototype.$off=function(e,n){var r;if(!arguments.length){if(this.$parent)for(e in this._events)(r=this._events[e])&&t(this,e,-r.length);return this._events={},this}if(!(r=this._events[e]))return this;if(1===arguments.length)return t(this,e,-r.length),this._events[e]=null,this;for(var i,o=r.length;o--;)if((i=r[o])===n||i.fn===n){t(this,e,-1),r.splice(o,1);break}return this},e.prototype.$emit=function(e){var t="string"==typeof e;e=t?e:e.name;var n=this._events[e],r=t||!n;if(n){n=n.length>1?m(n):n;var i=t&&n.some(function(e){return e._fromParent});i&&(r=!1);for(var o=m(arguments,1),a=0,s=n.length;a<s;a++){var l=n[a];!0!==l.apply(this,o)||i&&!l._fromParent||(r=!0)}}return r},e.prototype.$broadcast=function(e){var t="string"==typeof e;if(e=t?e:e.name,this._eventsCount[e]){var n=this.$children,r=m(arguments);t&&(r[0]={name:e,source:this});for(var i=0,o=n.length;i<o;i++){var a=n[i];a.$emit.apply(a,r)&&a.$broadcast.apply(a,r)}return this}},e.prototype.$dispatch=function(e){var t=this.$emit.apply(this,arguments);if(t){var n=this.$parent,r=m(arguments);for(r[0]={name:e,source:this};n;)t=n.$emit.apply(n,r),n=t?n.$parent:null;return this}};var n=/^hook:/}(Nn),function(e){function n(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}e.prototype.$mount=function(e){return this._isCompiled?void("production"!==t.env.NODE_ENV&&jr("$mount() should be called only once.",this)):(e=Z(e),e||(e=document.createElement("div")),this._compile(e),this._initDOMHooks(),Q(this.$el)?(this._callHook("attached"),n.call(this)):this.$once("hook:attached",n),this)},e.prototype.$destroy=function(e,t){this._destroy(e,t)},e.prototype.$compile=function(e,t,n,r){return Xt(e,this.$options,!0)(this,e,t,n,r)}}(Nn);var Yo={priority:2300,params:["name"],bind:function(){var e=this.params.name||"default",t=this.vm._slotContents&&this.vm._slotContents[e];t&&t.hasChildNodes()?this.compile(t.cloneNode(!0),this.vm._context,this.vm):this.fallback()},compile:function(e,t,n){if(e&&t){if(this.el.hasChildNodes()&&1===e.childNodes.length&&1===e.childNodes[0].nodeType&&e.childNodes[0].hasAttribute("v-if")){var r=document.createElement("template");r.setAttribute("v-else",""),r.innerHTML=this.el.innerHTML,r._context=this.vm,e.appendChild(r)}var i=n?n._scope:this._scope;this.unlink=t.$compile(e,n,i,this._frag)}e?se(this.el,e):oe(this.el)},fallback:function(){this.compile(pe(this.el,!0),this.vm)},unbind:function(){this.unlink&&this.unlink()}},Xo={priority:1750,params:["name"],paramWatchers:{name:function(e){qi.remove.call(this),e&&this.insert(e)}},bind:function(){this.anchor=ye("v-partial"),se(this.el,this.anchor),this.insert(this.params.name)},insert:function(e){var t=Le(this.vm.$options,"partials",e,!0);t&&(this.factory=new bt(this.vm,t),qi.insert.call(this))},unbind:function(){this.frag&&this.frag.destroy()}},Jo={slot:Yo,partial:Xo},Zo=Ui._postProcess,Qo=/(\d{3})(?=\d)/g,ea={orderBy:$n,filterBy:Ln,limitBy:En,json:{read:function(e,t){return"string"==typeof e?e:JSON.stringify(e,null,arguments.length>1?t:2)},write:function(e){try{return JSON.parse(e)}catch(t){return e}}},capitalize:function(e){return e||0===e?(e=e.toString(),e.charAt(0).toUpperCase()+e.slice(1)):""},uppercase:function(e){return e||0===e?e.toString().toUpperCase():""},lowercase:function(e){return e||0===e?e.toString().toLowerCase():""},currency:function(e,t,n){if(e=parseFloat(e),!isFinite(e)||!e&&0!==e)return"";t=null!=t?t:"$",n=null!=n?n:2;var r=Math.abs(e).toFixed(n),i=n?r.slice(0,-1-n):r,o=i.length%3,a=o>0?i.slice(0,o)+(i.length>3?",":""):"",s=n?r.slice(-1-n):"";return(e<0?"-":"")+t+a+i.slice(o).replace(Qo,"$1,")+s},pluralize:function(e){var t=m(arguments,1),n=t.length;if(n>1){var r=e%10-1;return r in t?t[r]:t[n-1]}return t[0]+(1===e?"":"s")},debounce:function(e,t){if(e)return t||(t=300),x(e,t)}};!function(e){function i(e){return new Function("return function "+p(e)+" (options) { this._init(options) }")()}e.options={directives:yo,elementDirectives:Jo,filters:ea,transitions:{},components:{},partials:{},replace:!0},e.util=Yr,e.config=Pr,e.set=n,e.delete=r,e.nextTick=rr,e.compiler=qo,e.FragmentFactory=bt,e.internalDirectives=Fo,e.parsers={path:ci,text:Er,template:zi,directive:Sr,expression:_i},e.cid=0;var o=1;e.extend=function(e){e=e||{};var n=this,r=0===n.cid;if(r&&e._Ctor)return e._Ctor;var a=e.name||n.options.name;"production"!==t.env.NODE_ENV&&(/^[a-zA-Z][\w-]*$/.test(a)||(jr('Invalid component name: "'+a+'". Component names can only contain alphanumeric characaters and the hyphen.'),a=null));var s=i(a||"VueComponent");return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=o++,s.options=Ee(n.options,e),s.super=n,s.extend=n.extend,Pr._assetTypes.forEach(function(e){s[e]=n[e]}),a&&(s.options.components[a]=s),r&&(e._Ctor=s),s},e.use=function(e){if(!e.installed){var t=m(arguments,1);return t.unshift(this),"function"==typeof e.install?e.install.apply(e,t):e.apply(null,t),e.installed=!0,this}},e.mixin=function(t){e.options=Ee(e.options,t)},Pr._assetTypes.forEach(function(n){e[n]=function(r,i){return i?("production"!==t.env.NODE_ENV&&"component"===n&&(Hr.test(r)||Rr.test(r))&&jr("Do not use built-in or reserved HTML elements as component id: "+r),"component"===n&&b(i)&&(i.name||(i.name=r),i=e.extend(i)),this.options[n+"s"][r]=i,i):this.options[n+"s"][r]}}),g(e.transition,Fr)}(Nn),Nn.version="1.0.28",setTimeout(function(){Pr.devtools&&(Un?Un.emit("init",Nn):"production"!==t.env.NODE_ENV&&Vn&&/Chrome\/\d+/.test(window.navigator.userAgent)&&console.log("Download the Vue Devtools for a better development experience:\nhttps://github.com/vuejs/vue-devtools"))},0),e.exports=Nn}).call(t,n(90))},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(53),i=n(23),o=n(107),a=n(15),s=n(37),l=n(13),u=Object.prototype,c=u.hasOwnProperty,f=o(function(e,t){if(s(t)||a(t))return void i(t,l(t),e);for(var n in t)c.call(t,n)&&r(e,n,t[n])});e.exports=f},function(e,t,n){var r=n(202),i=n(107),o=i(function(e,t,n){r(e,t,n)});e.exports=o},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},,function(e,t,n){function r(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?s(e)?o(e[0],e[1]):i(e):l(e)}var i=n(239),o=n(251),a=n(38),s=n(4),l=n(257);e.exports=r},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.head.appendChild(e.createElement("style")).sheet}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e||(e=r()),"[object HTMLDocument]"===Object.prototype.toString.call(e)&&(e=r(e)),n)for(;e.cssRules.length;)e.deleteRule(0);return t.forEach(function(t,n){return e.insertRule(t,n)}),e}function o(e){var t=document.createElement("a");return t.href=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.b64Encode=t.MutationObserver=t.removeClass=t.addClass=t.classify=t.off=t.on=void 0,t.createStyleSheet=r,t.addStyleRules=i,t.parseUrl=o;var a=n(3),s=function(e){return e&&e.__esModule?e:{default:e}}(a);t.on=s.default.util.on,t.off=s.default.util.off,t.classify=s.default.util.classify,t.addClass=s.default.util.addClass,t.removeClass=s.default.util.removeClass,t.MutationObserver=window.MutationObserver||window.WebKitMutationObserver,t.b64Encode=function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))}},,function(e,t,n){var r=n(94),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){function r(e){return a(e)?i(e):o(e)}var i=n(93),o=n(95),a=n(15);e.exports=r},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){function r(e){return null!=e&&o(e.length)&&!i(e)}var i=n(46),o=n(65);e.exports=r},function(e,t){e.exports=UIkit},function(e,t,n){function r(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}var i=n(57);e.exports=r},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function r(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function i(e,t,n,i){var o=r(e,t,n,i);return o.setAttribute("role","presentation"),o}function o(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function a(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function s(t,n){var r=t.className;e(n).test(r)||(t.className+=(r?" ":"")+n)}function l(t,n){for(var r=t.split(" "),i=0;i<r.length;i++)r[i]&&!e(r[i]).test(n)&&(n+=" "+r[i]);return n}function u(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function c(e,t,n){t||(t={});for(var r in e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function f(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(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}}function d(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}function h(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}function p(e){for(;Ka.length<=e;)Ka.push(v(Ka)+" ");return Ka[e]}function v(e){return e[e.length-1]}function m(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function g(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function y(){}function b(e,t){var n;return Object.create?n=Object.create(e):(y.prototype=e,n=new y),t&&c(t,n),n}function w(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Ya.test(e))}function x(e,t){return t?!!(t.source.indexOf("\\w")>-1&&w(e))||t.test(e):w(e)}function k(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function C(e){return e.charCodeAt(0)>=768&&Xa.test(e)}function _(e,t,n){for(;(n<0?t>0:t<e.length)&&C(e.charAt(t));)t+=n;return t}function S(e,t,n){for(var r=t>n?-1:1;;){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;e(o)?n=o:t=o+r}}function O(e,t,n){var o=this;this.input=n,o.scrollbarFiller=r("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=r("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=i("div",null,"CodeMirror-code"),o.selectionDiv=r("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=r("div",null,"CodeMirror-cursors"),o.measure=r("div",null,"CodeMirror-measure"),o.lineMeasure=r("div",null,"CodeMirror-measure"),o.lineSpace=i("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var a=i("div",[o.lineSpace],"CodeMirror-lines");o.mover=r("div",[a],null,"position: relative"),o.sizer=r("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=r("div",null,null,"position: absolute; height: "+Ba+"px; width: 1px;"),o.gutters=r("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=r("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=r("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),ba&&wa<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),xa||va&&Na||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,n.init(o)}function M(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!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 T(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function A(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function N(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function E(e){if(null==e.parent)return null;for(var t=e.parent,n=d(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function L(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);for(var a=0;a<e.lines.length;++a){var s=e.lines[a],l=s.height;if(t<l)break;t-=l}return n+a}function $(e,t){return t>=e.first&&t<e.first+e.size}function P(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function j(e,t,n){if(void 0===n&&(n=null),!(this instanceof j))return new j(e,t,n);this.line=e,this.ch=t,this.sticky=n}function D(e,t){return e.line-t.line||e.ch-t.ch}function F(e,t){return e.sticky==t.sticky&&0==D(e,t)}function I(e){return j(e.line,e.ch)}function H(e,t){return D(e,t)<0?t:e}function R(e,t){return D(e,t)<0?e:t}function z(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function W(e,t){if(t.line<e.first)return j(e.first,0);var n=e.first+e.size-1;return t.line>n?j(n,M(e,n).text.length):B(t,M(e,t.line).text.length)}function B(e,t){var n=e.ch;return null==n||n>t?j(e.line,t):n<0?j(e.line,0):e}function V(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=W(e,t[r]);return n}function U(){Ja=!0}function q(){Za=!0}function G(e,t,n){this.marker=e,this.from=t,this.to=n}function K(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Y(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function X(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function J(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);if(s||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new G(a,o.from,l?null:o.to))}}return r}function Z(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new G(a,l?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Q(e,t){if(t.full)return null;var n=$(e,t.from.line)&&M(e,t.from.line).markedSpans,r=$(e,t.to.line)&&M(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==D(t.from,t.to),s=J(n,i,a),l=Z(r,o,a),u=1==t.text.length,c=v(t.text).length+(u?i:0);if(s)for(var f=0;f<s.length;++f){var d=s[f];if(null==d.to){var h=K(l,d.marker);h?u&&(d.to=null==h.to?null:h.to+c):d.to=i}}if(l)for(var p=0;p<l.length;++p){var m=l[p];if(null!=m.to&&(m.to+=c),null==m.from){var g=K(s,m.marker);g||(m.from=c,u&&(s||(s=[])).push(m))}else m.from+=c,u&&(s||(s=[])).push(m)}s&&(s=ee(s)),l&&l!=s&&(l=ee(l));var y=[s];if(!u){var b,w=t.text.length-2;if(w>0&&s)for(var x=0;x<s.length;++x)null==s[x].to&&(b||(b=[])).push(new G(s[x].marker,null,null));for(var k=0;k<w;++k)y.push(b);y.push(l)}return y}function ee(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function te(e,t,n){var r=null;if(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;!n.readOnly||r&&-1!=d(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(D(u.to,s.from)<0||D(u.from,s.to)>0)){var c=[l,1],f=D(u.from,s.from),h=D(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(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 ne(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function re(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function ie(e){return e.inclusiveLeft?-1:0}function oe(e){return e.inclusiveRight?1:0}function ae(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=D(r.from,i.from)||ie(e)-ie(t);if(o)return-o;var a=D(r.to,i.to)||oe(e)-oe(t);return a||t.id-e.id}function se(e,t){var n,r=Za&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&null==(t?i.from:i.to)&&(!n||ae(n,i.marker)<0)&&(n=i.marker);return n}function le(e){return se(e,!0)}function ue(e){return se(e,!1)}function ce(e,t){var n,r=Za&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||ae(n,o.marker)<0)&&(n=o.marker)}return n}function fe(e,t,n,r,i){var o=M(e,t),a=Za&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=D(u.from,n)||ie(l.marker)-ie(i),f=D(u.to,r)||oe(l.marker)-oe(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?D(u.to,n)>=0:D(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?D(u.from,r)<=0:D(u.from,r)<0)))return!0}}}function de(e){for(var t;t=le(e);)e=t.find(-1,!0).line;return e}function he(e){for(var t;t=ue(e);)e=t.find(1,!0).line;return e}function pe(e){for(var t,n;t=ue(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function ve(e,t){var n=M(e,t),r=de(n);return n==r?t:E(r)}function me(e,t){if(t>e.lastLine())return t;var n,r=M(e,t);if(!ge(e,r))return t;for(;n=ue(r);)r=n.find(1,!0).line;return E(r)+1}function ge(e,t){var n=Za&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&ye(e,t,r))return!0}}function ye(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return ye(e,r.line,K(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&ye(e,t,i))return!0}function be(e){e=de(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;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;t+=s.height}return t}function we(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=le(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=ue(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function xe(e){var t=e.display,n=e.doc;t.maxLine=M(n,n.first),t.maxLineLength=we(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=we(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function ke(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}function Ce(e,t,n){var r;Qa=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:Qa=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Qa=i)}return null!=r?r:Qa}function _e(e,t){var n=e.order;return null==n&&(n=e.order=es(e.text,t)),n}function Se(e,t){return e._handlers&&e._handlers[t]||ts}function Oe(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=d(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Me(e,t){var n=Se(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function Te(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Me(e,n||t.type,e,t),Pe(t)||t.codemirrorIgnore}function Ae(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==d(n,t[r])&&n.push(t[r])}function Ne(e,t){return Se(e,t).length>0}function Ee(e){e.prototype.on=function(e,t){ns(this,e,t)},e.prototype.off=function(e,t){Oe(this,e,t)}}function Le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function $e(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Pe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function je(e){Le(e),$e(e)}function De(e){return e.target||e.srcElement}function Fe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),Ea&&e.ctrlKey&&1==t&&(t=3),t}function Ie(e){if(null==za){var t=r("span","");n(e,r("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(za=t.offsetWidth<=1&&t.offsetHeight>2&&!(ba&&wa<8))}var i=za?r("span",""):r("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function He(e){if(null!=Wa)return Wa;var r=n(e,document.createTextNode("AخA")),i=ja(r,0,1).getBoundingClientRect(),o=ja(r,1,2).getBoundingClientRect();return t(e),!(!i||i.left==i.right)&&(Wa=o.right-i.right<3)}function Re(e){if(null!=ss)return ss;var t=n(e,r("span","x")),i=t.getBoundingClientRect(),o=ja(t,0,1).getBoundingClientRect();return ss=Math.abs(i.left-o.left)>1}function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ls[e]=t}function We(e,t){us[e]=t}function Be(e){if("string"==typeof e&&us.hasOwnProperty(e))e=us[e];else if(e&&"string"==typeof e.name&&us.hasOwnProperty(e.name)){var t=us[e.name];"string"==typeof t&&(t={name:t}),e=b(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Be("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Be("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Be(t);var n=ls[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(cs.hasOwnProperty(t.name)){var i=cs[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}function Ue(e,t){c(t,cs.hasOwnProperty(e)?cs[e]:cs[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ge(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}function Ye(e,t,n,r){var i=[e.state.modeGen],o={};rt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=0;s<e.state.overlays.length;++s)!function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,rt(e,t.text,s.mode,n,function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1}(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Xe(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Je(e,E(t)),i=t.text.length>e.options.maxHighlightLength&&qe(e.doc.mode,r.state),o=Ye(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Je(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new hs(r,!0,t);var o=it(e,t,n),a=o>r.first&&M(r,o-1).stateAfter,s=a?hs.fromSaved(r,a,o):new hs(r,Ke(r.mode),o);return r.iter(o,t,function(n){Ze(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function Ze(e,t,n,r){var i=e.doc.mode,o=new fs(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Qe(i,n.state);!o.eol();)et(i,o,n.state),o.start=o.pos}function Qe(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ge(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function et(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ge(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.")}function tt(e,t,n,r){var i,o=e.doc,a=o.mode;t=W(o,t);var s,l=M(o,t.line),u=Je(e,t.line,n),c=new fs(l.text,e.options.tabSize,u);for(r&&(s=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=et(a,c,u.state),r&&s.push(new ps(c,i,qe(o.mode,u.state)));return r?s:new ps(c,i,u.state)}function nt(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";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function rt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,f=new fs(t,e.options.tabSize,r),d=e.options.addModeClass&&[null];for(""==t&&nt(Qe(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(s=!1,a&&Ze(e,t,r,f.pos),f.pos=t.length,l=null):l=nt(et(n,f,r.state,d),o),d){var h=d[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||c!=l){for(;u<f.start;)u=Math.min(f.start,u+5e3),i(u,c);c=l}f.start=f.pos}for(;u<f.pos;){var p=Math.min(f.pos,u+5e3);i(p,c),u=p}}function it(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=M(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof ds?u.lookAhead:0)<=o.modeFrontier))return s;var c=f(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function ot(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=M(e,r).stateAfter;if(i&&(!(i instanceof ds)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}function at(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),ne(e),re(e,n);var i=r?r(e):1;i!=e.height&&N(e,i)}function st(e){e.parent=null,ne(e)}function lt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?ys:gs;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function ut(e,t){var n=i("span",null,null,xa?"padding-right: .1px":null),r={pre:i("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(ba||xa)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var a=o?t.rest[o-1]:t.line,s=void 0;r.pos=0,r.addToken=ft,He(e.display.measure)&&(s=_e(a,e.doc.direction))&&(r.addToken=ht(r.addToken,s)),r.map=[];vt(a,r,Xe(e,a,t!=e.display.externalMeasured&&E(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=l(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=l(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ie(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(xa){var u=r.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Me(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=l(r.pre.className,r.textClass||"")),r}function ct(e){var t=r("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ft(e,t,n,i,o,a,s){if(t){var l,u=e.splitSpaces?dt(t,e.trailingSpace):t,c=e.cm.state.specialChars,f=!1;if(c.test(t)){l=document.createDocumentFragment();for(var d=0;;){c.lastIndex=d;var h=c.exec(t),v=h?h.index-d:t.length-d;if(v){var m=document.createTextNode(u.slice(d,d+v));ba&&wa<9?l.appendChild(r("span",[m])):l.appendChild(m),e.map.push(e.pos,e.pos+v,m),e.col+=v,e.pos+=v}if(!h)break;d+=v+1;var g=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;g=l.appendChild(r("span",p(b),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?(g=l.appendChild(r("span","\r"==h[0]?"␍":"","cm-invalidchar")),g.setAttribute("cm-text",h[0]),e.col+=1):(g=e.cm.options.specialCharPlaceholder(h[0]),g.setAttribute("cm-text",h[0]),ba&&wa<9?l.appendChild(r("span",[g])):l.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,l=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,l),ba&&wa<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||i||o||f||s){var w=n||"";i&&(w+=i),o&&(w+=o);var x=r("span",[l],w,s);return a&&(x.title=a),e.content.appendChild(x)}e.content.appendChild(l)}}function dt(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function ht(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var f=void 0,d=0;d<t.length&&(f=t[d],!(f.to>u&&f.from<=u));d++);if(f.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,f.to-u),i,o,null,s,l),o=null,r=r.slice(f.to-u),u=f.to}}}function pt(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function vt(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,f,d,h=i.length,p=0,v=1,m="",g=0;;){if(g==p){l=u=c=f=s="",d=null,g=1/0;for(var y=[],b=void 0,w=0;w<r.length;++w){var x=r[w],k=x.marker;"bookmark"==k.type&&x.from==p&&k.widgetNode?y.push(k):x.from<=p&&(null==x.to||x.to>p||k.collapsed&&x.to==p&&x.from==p)?(null!=x.to&&x.to!=p&&g>x.to&&(g=x.to,u=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&x.from==p&&(c+=" "+k.startStyle),k.endStyle&&x.to==g&&(b||(b=[])).push(k.endStyle,x.to),k.title&&!f&&(f=k.title),k.collapsed&&(!d||ae(d.marker,k)<0)&&(d=x)):x.from>p&&g>x.from&&(g=x.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==g&&(u+=" "+b[C]);if(!d||d.from==p)for(var _=0;_<y.length;++_)pt(t,0,y[_]);if(d&&(d.from||0)==p){if(pt(t,(null==d.to?h+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=h)break;for(var S=Math.min(h,g);;){if(m){var O=p+m.length;if(!d){var M=O>S?m.slice(0,S-p):m;t.addToken(t,M,a?a+l:l,c,p+M.length==g?u:"",f,s)}if(O>=S){m=m.slice(S-p),p=S;break}p=O,c=""}m=i.slice(o,o=n[v++]),a=lt(n[v++],t.cm.options)}}else for(var T=1;T<n.length;T+=2)t.addToken(t,i.slice(o,o=n[T]),lt(n[T+1],t.cm.options))}function mt(e,t,n){this.line=t,this.rest=pe(t),this.size=this.rest?E(v(this.rest))-n+1:1,this.node=this.text=null,this.hidden=ge(e,t)}function gt(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new mt(e.doc,M(e.doc,o),o);r=o+a.size,i.push(a)}return i}function yt(e){bs?bs.ops.push(e):e.ownsGroup=bs={ops:[e],delayedCallbacks:[]}}function bt(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)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function wt(e,t){var n=e.ownsGroup;if(n)try{bt(n)}finally{bs=null,t(n)}}function xt(e,t){var n=Se(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);bs?r=bs.delayedCallbacks:ws?r=ws:(r=ws=[],setTimeout(kt,0));for(var o=0;o<n.length;++o)!function(e){r.push(function(){return n[e].apply(null,i)})}(o)}}function kt(){var e=ws;ws=null;for(var t=0;t<e.length;++t)e[t]()}function Ct(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Mt(e,t):"gutter"==o?At(e,t,n,r):"class"==o?Tt(e,t):"widget"==o&&Nt(e,t,r)}t.changes=null}function _t(e){return e.node==e.text&&(e.node=r("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),ba&&wa<8&&(e.node.style.zIndex=2)),e.node}function St(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var i=_t(t);t.background=i.insertBefore(r("div",null,n),i.firstChild),e.display.input.setUneditable(t.background)}}function Ot(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):ut(e,t)}function Mt(e,t){var n=t.text.className,r=Ot(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Tt(e,t)):n&&(t.text.className=n)}function Tt(e,t){St(e,t),t.line.wrapClass?_t(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function At(e,t,n,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=_t(t);t.gutterBackground=r("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var s=_t(t),l=t.gutter=r("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(e.display.input.setUneditable(l),s.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=l.appendChild(r("div",P(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var u=0;u<e.options.gutters.length;++u){var c=e.options.gutters[u],f=a.hasOwnProperty(c)&&a[c];f&&l.appendChild(r("div",[f],"CodeMirror-gutter-elt","left: "+i.gutterLeft[c]+"px; width: "+i.gutterWidth[c]+"px"))}}}function Nt(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);Lt(e,t,n)}function Et(e,t,n,r){var i=Ot(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Tt(e,t),At(e,t,n,r),Lt(e,t,r),t.node}function Lt(e,t,n){if($t(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)$t(e,t.rest[r],t,n,!1)}function $t(e,t,n,i,o){if(t.widgets)for(var a=_t(n),s=0,l=t.widgets;s<l.length;++s){var u=l[s],c=r("div",[u.node],"CodeMirror-linewidget");u.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Pt(u,c,n,i),e.display.input.setUneditable(c),o&&u.above?a.insertBefore(c,n.gutter||n.text):a.appendChild(c),xt(u,"redraw")}}function Pt(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function jt(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!o(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),n(t.display.measure,r("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function Dt(e,t){for(var n=De(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Ft(e){return e.lineSpace.offsetTop}function It(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ht(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=n(e.measure,r("pre","x")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,o={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(e.cachedPaddingH=o),o}function Rt(e){return Ba-e.display.nativeBarWidth}function zt(e){return e.display.scroller.clientWidth-Rt(e)-e.display.barWidth}function Wt(e){return e.display.scroller.clientHeight-Rt(e)-e.display.barHeight}function Bt(e,t,n){var r=e.options.lineWrapping,i=r&&zt(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Vt(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(E(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Ut(e,t){t=de(t);var r=E(t),i=e.display.externalMeasured=new mt(e.doc,t,r);i.lineN=r;var o=i.built=ut(e,i);return i.text=o.pre,n(e.display.lineMeasure,o.pre),i}function qt(e,t,n,r){return Yt(e,Kt(e,t),n,r)}function Gt(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Mn(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Kt(e,t){var n=E(t),r=Gt(e,n);r&&!r.text?r=null:r&&r.changes&&(Ct(e,r,n,kn(e)),e.curOp.forceUpdate=!0),r||(r=Ut(e,t));var i=Vt(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Yt(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Bt(e,t.view,t.rect),t.hasHeights=!0),o=Zt(e,t,n,r),o.bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}function Xt(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?(i=t-s,o=i+1):(u==e.length-3||t==l&&e[u+3]>t)&&(o=l-s,i=o-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;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 Jt(e,t){var n=xs;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Zt(e,t,n,r){var i,o=Xt(t.map,n,r),a=o.node,s=o.start,l=o.end,u=o.collapse;if(3==a.nodeType){for(var c=0;c<4;c++){for(;s&&C(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+l<o.coverEnd&&C(t.line.text.charAt(o.coverStart+l));)++l;if(i=ba&&wa<9&&0==s&&l==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():Jt(ja(a,s,l).getClientRects(),r),i.left||i.right||0==s)break;l=s,s-=1,u="right"}ba&&wa<11&&(i=Qt(e.display.measure,i))}else{s>0&&(u=r="right");var f;i=e.options.lineWrapping&&(f=a.getClientRects()).length>1?f["right"==r?f.length-1:0]:a.getBoundingClientRect()}if(ba&&wa<9&&!s&&(!i||!i.left&&!i.right)){var d=a.parentNode.getClientRects()[0];i=d?{left:d.left,right:d.left+xn(e.display),top:d.top,bottom:d.bottom}:xs}for(var h=i.top-t.rect.top,p=i.bottom-t.rect.top,v=(h+p)/2,m=t.view.measure.heights,g=0;g<m.length-1&&!(v<m[g]);g++);var y=g?m[g-1]:0,b=m[g],w={left:("right"==u?i.right:i.left)-t.rect.left,right:("left"==u?i.left:i.right)-t.rect.left,top:y,bottom:b};return i.left||i.right||(w.bogus=!0),e.options.singleCursorHeightPerLine||(w.rtop=h,w.rbottom=p),w}function Qt(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Re(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function en(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function tn(e){e.display.externalMeasure=null,t(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)en(e.display.view[n])}function nn(e){tn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function rn(){return Ca&&Aa?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function on(){return Ca&&Aa?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function an(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=jt(e.widgets[n]));return t}function sn(e,t,n,r,i){if(!i){var o=an(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=be(t);if("local"==r?a+=Ft(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:on());var l=s.left+("window"==r?0:rn());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function ln(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=rn(),i-=on();else if("local"==n||!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 un(e,t,n,r,i){return r||(r=M(e.doc,t.line)),sn(e,r,qt(e,r,t.ch,i),n)}function cn(e,t,n,r,i,o){function a(t,a){var s=Yt(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,sn(e,r,s,n)}function s(e,t,n){var r=l[t],i=1==r.level;return a(n?e-1:e,i!=n)}r=r||M(e.doc,t.line),i||(i=Kt(e,r));var l=_e(r,e.doc.direction),u=t.ch,c=t.sticky;if(u>=r.text.length?(u=r.text.length,c="before"):u<=0&&(u=0,c="after"),!l)return a("before"==c?u-1:u,"before"==c);var f=Ce(l,u,c),d=Qa,h=s(u,f,"before"==c);return null!=d&&(h.other=s(u,d,"before"!=c)),h}function fn(e,t){var n=0;t=W(e.doc,t),e.options.lineWrapping||(n=xn(e.display)*t.ch);var r=M(e.doc,t.line),i=be(r)+Ft(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function dn(e,t,n,r,i){var o=j(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function hn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return dn(r.first,0,null,!0,-1);var i=L(r,n),o=r.first+r.size-1;if(i>o)return dn(r.first+r.size-1,M(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=M(r,i);;){var s=gn(e,a,i,t,n),l=ce(a,s.ch+(s.xRel>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=M(r,i=u.line)}}function pn(e,t,n,r){r-=an(t);var i=t.text.length,o=S(function(t){return Yt(e,n,t-1).bottom<=r},i,0);return i=S(function(t){return Yt(e,n,t).top>r},o,i),{begin:o,end:i}}function vn(e,t,n,r){return n||(n=Kt(e,t)),pn(e,t,n,sn(e,t,Yt(e,n,r),"line").top)}function mn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function gn(e,t,n,r,i){i-=be(t);var o=Kt(e,t),a=an(t),s=0,l=t.text.length,u=!0,c=_e(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?bn:yn)(e,t,n,o,c,r,i);u=1!=f.level,s=u?f.from:f.to-1,l=u?f.to:f.from-1}var d,h,p=null,v=null,m=S(function(t){var n=Yt(e,o,t);return n.top+=a,n.bottom+=a,!!mn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,v=n),!0)},s,l),g=!1;if(v){var y=r-v.left<v.right-r,b=y==u;m=p+(b?0:1),h=b?"after":"before",d=y?v.left:v.right}else{u||m!=l&&m!=s||m++,h=0==m?"after":m==t.text.length?"before":Yt(e,o,m-(u?1:0)).bottom+a<=i==u?"after":"before";var w=cn(e,j(n,m,h),"line",t,o);d=w.left,g=i<w.top||i>=w.bottom}return m=_(t.text,m,1),dn(n,m,h,g,r-d)}function yn(e,t,n,r,i,o,a){var s=S(function(s){var l=i[s],u=1!=l.level;return mn(cn(e,j(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=cn(e,j(n,u?l.from:l.to,u?"after":"before"),"line",t,r);mn(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function bn(e,t,n,r,i,o,a){var s=pn(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d<i.length;d++){var h=i[d];if(!(h.from>=u||h.to<=l)){var p=1!=h.level,v=Yt(e,r,p?Math.min(u,h.to)-1:Math.max(l,h.from)).right,m=v<o?o-v+1e9:v-o;(!c||f>m)&&(c=h,f=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function wn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ms){ms=r("pre");for(var i=0;i<49;++i)ms.appendChild(document.createTextNode("x")),ms.appendChild(r("br"));ms.appendChild(document.createTextNode("x"))}n(e.measure,ms);var o=ms.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function xn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=r("span","xxxxxxxxxx"),i=r("pre",[t]);n(e.measure,i);var o=t.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function kn(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,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:Cn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Cn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function _n(e){var t=wn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/xn(e.display)-3);return function(i){if(ge(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Sn(e){var t=e.doc,n=_n(e);t.iter(function(e){var t=n(e);t!=e.height&&N(e,t)})}function On(e,t,n,r){var i=e.display;if(!n&&"true"==De(t).getAttribute("cm-not-content"))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,u=hn(e,o,a);if(r&&1==u.xRel&&(l=M(e.doc,u.line).text).length==u.ch){var c=f(l,l.length,e.options.tabSize)-l.length;u=j(u.line,Math.max(0,Math.round((o-Ht(e.display).left)/xn(e.display))-c))}return u}function Mn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Tn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function An(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var l=s.empty();(l||e.options.showCursorWhenSelecting)&&Nn(e,s.head,i),l||Ln(e,s,o)}}return r}function Nn(e,t,n){var i=cn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=n.appendChild(r("div"," ","CodeMirror-cursor"));if(o.style.left=i.left+"px",o.style.top=i.top+"px",o.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",i.other){var a=n.appendChild(r("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=i.other.left+"px",a.style.top=i.other.top+"px",a.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function En(e,t){return e.top-t.top||e.left-t.left}function Ln(e,t,n){function i(e,t,n,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),l.appendChild(r("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?f-e:n)+"px;\n height: "+(i-t)+"px"))}function o(t,n,r){function o(n,r){return un(e,j(t,n),"div",h,r)}function a(t,n,r){var i=vn(e,h,null,t),a="ltr"==n==("after"==r)?"left":"right";return o("after"==r?i.begin:i.end-(/\s/.test(h.text.charAt(i.end-1))?2:1),a)[a]}var l,u,h=M(s,t),p=h.text.length,v=_e(h,s.direction);return ke(v,n||0,null==r?p:r,function(e,t,s,h){var m="ltr"==s,g=o(e,m?"left":"right"),y=o(t-1,m?"right":"left"),b=null==n&&0==e,w=null==r&&t==p,x=0==h,k=!v||h==v.length-1;if(y.top-g.top<=3){var C=(d?b:w)&&x,_=(d?w:b)&&k,S=C?c:(m?g:y).left,O=_?f:(m?y:g).right;i(S,g.top,O-S,g.bottom)}else{var M,T,A,N;m?(M=d&&b&&x?c:g.left,T=d?f:a(e,s,"before"),A=d?c:a(t,s,"after"),N=d&&w&&k?f:y.right):(M=d?a(e,s,"before"):c,T=!d&&b&&x?f:g.right,A=!d&&w&&k?c:y.left,N=d?a(t,s,"after"):f),i(M,g.top,T-M,g.bottom),g.bottom<y.top&&i(c,g.bottom,null,y.top),i(A,y.top,N-A,y.bottom)}(!l||En(g,l)<0)&&(l=g),En(y,l)<0&&(l=y),(!u||En(g,u)<0)&&(u=g),En(y,u)<0&&(u=y)}),{start:l,end:u}}var a=e.display,s=e.doc,l=document.createDocumentFragment(),u=Ht(e.display),c=u.left,f=Math.max(a.sizerWidth,zt(e)-a.sizer.offsetLeft)-u.right,d="ltr"==s.direction,h=t.from(),p=t.to();if(h.line==p.line)o(h.line,h.ch,p.ch);else{var v=M(s,h.line),m=M(s,p.line),g=de(v)==de(m),y=o(h.line,h.ch,g?v.text.length+1:null).end,b=o(p.line,g?0:null,p.ch).start;g&&(y.top<b.top-2?(i(y.right,y.top,null,y.bottom),i(c,b.top,b.left,b.bottom)):i(y.right,y.top,b.left-y.right,y.bottom)),y.bottom<b.top&&i(c,y.bottom,null,b.top)}n.appendChild(l)}function $n(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Pn(e){e.state.focused||(e.display.input.focus(),Dn(e))}function jn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Fn(e))},100)}function Dn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Me(e,"focus",e,t),e.state.focused=!0,s(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),xa&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),$n(e))}function Fn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Me(e,"blur",e,t),e.state.focused=!1,Ia(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function In(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=void 0;if(!i.hidden){if(ba&&wa<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=wn(t)),(l>.005||l<-.005)&&(N(i.line,o),Hn(i.line),i.rest))for(var u=0;u<i.rest.length;u++)Hn(i.rest[u])}}}function Hn(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Rn(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Ft(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=L(t,r),a=L(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=L(t,be(M(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=L(t,be(M(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function zn(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Cn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),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}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Wn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=P(e.options,t.first+t.size-1),i=e.display;if(n.length!=i.lineNumChars){var o=i.measure.appendChild(r("div",[r("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=o.firstChild.offsetWidth,s=o.offsetWidth-a;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(a,i.lineGutter.offsetWidth-s)+1,i.lineNumWidth=i.lineNumInnerWidth+s,i.lineNumChars=i.lineNumInnerWidth?n.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",$r(e),!0}return!1}function Bn(e,t){if(!Te(e,"scrollCursorIntoView")){var n=e.display,i=n.sizer.getBoundingClientRect(),o=null;if(t.top+i.top<0?o=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!Ma){var a=r("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Ft(e.display))+"px;\n height: "+(t.bottom-t.top+Rt(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}function Vn(e,t,n,r){null==r&&(r=0);var i;e.options.lineWrapping||t!=n||(t=t.ch?j(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?j(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=cn(e,t),l=n&&n!=t?cn(e,n):s;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=qn(e,i),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(Qn(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(tr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function Un(e,t){var n=qn(e,t);null!=n.scrollTop&&Qn(e,n.scrollTop),null!=n.scrollLeft&&tr(e,n.scrollLeft)}function qn(e,t){var n=e.display,r=wn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Wt(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+It(n),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);c!=i&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,d=zt(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left-(h?0:10)):t.right>d+f-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function Gn(e,t){null!=t&&(Jn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Kn(e){Jn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Yn(e,t,n){null==t&&null==n||Jn(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Xn(e,t){Jn(e),e.curOp.scrollToPos=t}function Jn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;Zn(e,fn(e,t.from),fn(e,t.to),t.margin)}}function Zn(e,t,n,r){var i=qn(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});Yn(e,i.scrollLeft,i.scrollTop)}function Qn(e,t){Math.abs(e.doc.scrollTop-t)<2||(va||Er(e,{top:t}),er(e,t,!0),va&&Er(e),_r(e,100))}function er(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function tr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,zn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function nr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+It(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+Rt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function rr(e,t){t||(t=nr(e));var n=e.display.barWidth,r=e.display.barHeight;ir(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&In(e),ir(e,nr(e)),n=e.display.barWidth,r=e.display.barHeight}function ir(e,t){var n=e.display,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",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",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"):n.gutterFiller.style.display=""}function or(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Ia(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new _s[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ns(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?tr(e,t):Qn(e,t)},e),e.display.scrollbars.addClass&&s(e.display.wrapper,e.display.scrollbars.addClass)}function ar(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ss},yt(e.curOp)}function sr(e){wt(e.curOp,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;lr(e)})}function lr(e){for(var t=e.ops,n=0;n<t.length;n++)ur(t[n]);for(var r=0;r<t.length;r++)cr(t[r]);for(var i=0;i<t.length;i++)fr(t[i]);for(var o=0;o<t.length;o++)dr(t[o]);for(var a=0;a<t.length;a++)hr(t[a])}function ur(e){var t=e.cm,n=t.display;Or(t),e.updateMaxLine&&xe(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Os(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function cr(e){e.updatedDisplay=e.mustUpdate&&Ar(e.cm,e.update)}function fr(e){var t=e.cm,n=t.display;e.updatedDisplay&&In(t),e.barMeasure=nr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=qt(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+Rt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-zt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function dr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&tr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==a();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&rr(t,e.barMeasure),e.updatedDisplay&&Pr(t,e.barMeasure),e.selectionChanged&&$n(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Pn(e.cm)}function hr(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&Nr(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&er(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&tr(t,e.scrollLeft,!0,!0),e.scrollToPos){Bn(t,Vn(t,W(r,e.scrollToPos.from),W(r,e.scrollToPos.to),e.scrollToPos.margin))}var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||Me(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&Me(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Me(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function pr(e,t){if(e.curOp)return t();ar(e);try{return t()}finally{sr(e)}}function vr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);ar(e);try{return t.apply(e,arguments)}finally{sr(e)}}}function mr(e){return function(){if(this.curOp)return e.apply(this,arguments);ar(this);try{return e.apply(this,arguments)}finally{sr(this)}}}function gr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);ar(t);try{return e.apply(this,arguments)}finally{sr(t)}}}function yr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Za&&ve(e.doc,t)<i.viewTo&&wr(e);else if(n<=i.viewFrom)Za&&me(e.doc,n+r)>i.viewFrom?wr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)wr(e);else if(t<=i.viewFrom){var o=xr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):wr(e)}else if(n>=i.viewTo){var a=xr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):wr(e)}else{var s=xr(e,t,t,-1),l=xr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(gt(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):wr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function br(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Mn(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==d(a,n)&&a.push(n)}}}function wr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function xr(e,t,n,r){var i,o=Mn(e,t),a=e.display.view;if(!Za||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;ve(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function kr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=gt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=gt(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Mn(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(gt(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Mn(e,n)))),r.viewTo=n}function Cr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function _r(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,u(Sr,e))}function Sr(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Je(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,l=Ye(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&d<a.length;++d)f=a[d]!=o.styles[d];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Ze(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return _r(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&pr(e,function(){for(var t=0;t<i.length;t++)br(e,i[t],"text")})}}function Or(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Rt(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Rt(e)+"px",t.scrollbarsClipped=!0)}function Mr(e){if(e.hasFocus())return null;var t=a();if(!t||!o(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&o(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Tr(e){if(e&&e.activeElt&&e.activeElt!=a()&&(e.activeElt.focus(),e.anchorNode&&o(document.body,e.anchorNode)&&o(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Ar(e,n){var r=e.display,i=e.doc;if(n.editorIsHidden)return wr(e),!1;if(!n.force&&n.visible.from>=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==Cr(e))return!1;Wn(e)&&(wr(e),n.dims=kn(e));var o=i.first+i.size,a=Math.max(n.visible.from-e.options.viewportMargin,i.first),s=Math.min(o,n.visible.to+e.options.viewportMargin);r.viewFrom<a&&a-r.viewFrom<20&&(a=Math.max(i.first,r.viewFrom)),r.viewTo>s&&r.viewTo-s<20&&(s=Math.min(o,r.viewTo)),Za&&(a=ve(e.doc,a),s=me(e.doc,s));var l=a!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;kr(e,a,s),r.viewOffset=be(M(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var u=Cr(e);if(!l&&0==u&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=Mr(e);return u>4&&(r.lineDiv.style.display="none"),Lr(e,r.updateLineNumbers,n.dims),u>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Tr(c),t(r.cursorDiv),t(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,l&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,_r(e,400)),r.updateLineNumbers=null,!0}function Nr(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=zt(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+It(e.display)-Wt(e),n.top)}),t.visible=Rn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Ar(e,t);r=!1){In(e);var i=nr(e);Tn(e),rr(e,i),Pr(e,i),t.force=!1}t.signal(e,"update",e),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 Er(e,t){var n=new Os(e,t);if(Ar(e,n)){In(e),Nr(e,n);var r=nr(e);Tn(e),rr(e,r),Pr(e,r),n.finish()}}function Lr(e,n,r){function i(t){var n=t.nextSibling;return xa&&Ea&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,a=e.options.lineNumbers,s=o.lineDiv,l=s.firstChild,u=o.view,c=o.viewFrom,f=0;f<u.length;f++){var h=u[f];if(h.hidden);else if(h.node&&h.node.parentNode==s){for(;l!=h.node;)l=i(l);var p=a&&null!=n&&n<=c&&h.lineNumber;h.changes&&(d(h.changes,"gutter")>-1&&(p=!1),Ct(e,h,c,r)),p&&(t(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(P(e.options,c)))),l=h.node.nextSibling}else{var v=Et(e,h,c,r);s.insertBefore(v,l)}c+=h.size}for(;l;)l=i(l)}function $r(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Pr(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+Rt(e)+"px"}function jr(e){var n=e.display.gutters,i=e.options.gutters;t(n);for(var o=0;o<i.length;++o){var a=i[o],s=n.appendChild(r("div",null,"CodeMirror-gutter "+a));"CodeMirror-linenumbers"==a&&(e.display.lineGutter=s,s.style.width=(e.display.lineNumWidth||1)+"px")}n.style.display=o?"":"none",$r(e)}function Dr(e){var t=d(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Fr(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Ir(e){var t=Fr(e);return t.x*=Ts,t.y*=Ts,t}function Hr(e,t){var n=Fr(t),r=n.x,i=n.y,o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,l=a.scrollHeight>a.clientHeight;if(r&&s||i&&l){if(i&&Ea&&xa)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&&!va&&!_a&&null!=Ts)return i&&l&&Qn(e,Math.max(0,a.scrollTop+i*Ts)),tr(e,Math.max(0,a.scrollLeft+r*Ts)),(!i||i&&l)&&Le(t),void(o.wheelStartX=null);if(i&&null!=Ts){var d=i*Ts,h=e.doc.scrollTop,p=h+o.wrapper.clientHeight;d<0?h=Math.max(0,h+d-50):p=Math.min(e.doc.height,p+d+50),Er(e,{top:h,bottom:p})}Ms<20&&(null==o.wheelStartX?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=r,o.wheelDY=i,setTimeout(function(){if(null!=o.wheelStartX){var e=a.scrollLeft-o.wheelStartX,t=a.scrollTop-o.wheelStartY,n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(Ts=(Ts*Ms+n)/(Ms+1),++Ms)}},200)):(o.wheelDX+=r,o.wheelDY+=i))}}function Rr(e,t){var n=e[t];e.sort(function(e,t){return D(e.from(),t.from())}),t=d(e,n);for(var r=1;r<e.length;r++){var i=e[r],o=e[r-1];if(D(o.to(),i.from())>=0){var a=R(o.from(),i.from()),s=H(o.to(),i.to()),l=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new Ns(l?s:a,l?a:s))}}return new As(e,t)}function zr(e,t){return new As([new Ns(e,t||e)],0)}function Wr(e){return e.text?j(e.from.line+e.text.length-1,v(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Br(e,t){if(D(e,t.from)<0)return e;if(D(e,t.to)<=0)return Wr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Wr(t).ch-t.to.ch),j(n,r)}function Vr(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Ns(Br(i.anchor,t),Br(i.head,t)))}return Rr(n,e.sel.primIndex)}function Ur(e,t,n){return e.line==t.line?j(n.line,e.ch-t.ch+n.ch):j(n.line+(e.line-t.line),e.ch)}function qr(e,t,n){for(var r=[],i=j(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Ur(s.from,i,o),u=Ur(Wr(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],f=D(c.head,c.anchor)<0;r[a]=new Ns(f?u:l,f?l:u)}else r[a]=new Ns(l,l)}return new As(r,e.sel.primIndex)}function Gr(e){e.doc.mode=Ve(e.options,e.doc.modeOption),Kr(e)}function Kr(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,_r(e,100),e.state.modeGen++,e.curOp&&yr(e)}function Yr(e,t){return 0==t.from.ch&&0==t.to.ch&&""==v(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Xr(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){at(e,n,i,r),xt(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new vs(u[o],i(o),r));return n}var s=t.from,l=t.to,u=t.text,c=M(e,s.line),f=M(e,l.line),d=v(u),h=i(u.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(Yr(e,t)){var m=a(0,u.length-1);o(f,f.text,h),p&&e.remove(s.line,p),m.length&&e.insert(s.line,m)}else if(c==f)if(1==u.length)o(c,c.text.slice(0,s.ch)+d+c.text.slice(l.ch),h);else{var g=a(1,u.length-1);g.push(new vs(d+c.text.slice(l.ch),h,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,g)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+f.text.slice(l.ch),i(0)),e.remove(s.line+1,p);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(f,d+f.text.slice(l.ch),h);var y=a(1,u.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,y)}xt(e,"change",e,t)}function Jr(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function Zr(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Sn(e),Gr(e),Qr(e),e.options.lineWrapping||xe(e),e.options.mode=t.modeOption,yr(e)}function Qr(e){("rtl"==e.doc.direction?s:Ia)(e.display.lineDiv,"CodeMirror-rtl")}function ei(e){pr(e,function(){Qr(e),yr(e)})}function ti(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function ni(e,t){var n={from:I(t.from),to:Wr(t),text:T(e,t.from,t.to)};return ui(e,n,t.from.line,t.to.line+1),Jr(e,function(e){return ui(e,n,t.from.line,t.to.line+1)},!0),n}function ri(e){for(;e.length;){if(!v(e).ranges)break;e.pop()}}function ii(e,t){return t?(ri(e.done),v(e.done)):e.done.length&&!v(e.done).ranges?v(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),v(e.done)):void 0}function oi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=ii(i,i.lastOp==r)))a=v(o.changes),0==D(t.from,t.to)&&0==D(t.from,a.to)?a.to=Wr(t):o.changes.push(ni(e,t));else{var l=v(i.done);for(l&&l.ranges||li(e.sel,i.done),o={changes:[ni(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||Me(e,"historyAdded")}function ai(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 si(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||ai(e,o,v(i.done),t))?i.done[i.done.length-1]=t:li(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&ri(i.undone)}function li(e,t){var n=v(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ui(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function ci(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function fi(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(ci(n[i]));return r}function di(e,t){var n=fi(e,t),r=Q(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){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function hi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?As.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&d(t,Number(c[1]))>-1&&(v(s)[f]=u[f],delete u[f])}}}return r}function pi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=D(t,i)<0;o!=D(n,i)<0?(i=t,t=n):o!=D(t,n)<0&&(t=n)}return new Ns(i,t)}return new Ns(n||t,t)}function vi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),xi(e,new As([pi(e.sel.primary(),t,n,i)],0),r)}function mi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=pi(e.sel.ranges[o],t[o],null,i);xi(e,Rr(r,e.sel.primIndex),n)}function gi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,xi(e,Rr(i,e.sel.primIndex),r)}function yi(e,t,n,r){xi(e,zr(t,n),r)}function bi(e,t,n){var r={ranges:t.ranges,update:function(t){var n=this;this.ranges=[];for(var r=0;r<t.length;r++)n.ranges[r]=new Ns(W(e,t[r].anchor),W(e,t[r].head))},origin:n&&n.origin};return Me(e,"beforeSelectionChange",e,r),e.cm&&Me(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Rr(r.ranges,r.ranges.length-1):t}function wi(e,t,n){var r=e.history.done,i=v(r);i&&i.ranges?(r[r.length-1]=t,ki(e,t,n)):xi(e,t,n)}function xi(e,t,n){ki(e,t,n),si(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function ki(e,t,n){(Ne(e,"beforeSelectionChange")||e.cm&&Ne(e.cm,"beforeSelectionChange"))&&(t=bi(e,t,n)),Ci(e,Si(e,t,n&&n.bias||(D(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!e.cm||Kn(e.cm)}function Ci(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,Ae(e.cm)),xt(e,"cursorActivity",e))}function _i(e){Ci(e,Si(e,e.sel,null,!1))}function Si(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Mi(e,a.anchor,s&&s.anchor,n,r),u=Mi(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Ns(l,u))}return i?Rr(i,t.primIndex):t}function Oi(e,t,n,r,i){var o=M(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker;if((null==s.from||(l.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(l.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(i&&(Me(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}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=Ti(e,u,-r,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=D(u,n))&&(r<0?c<0:c>0))return Oi(e,u,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(f=Ti(e,f,r,f.line==t.line?o:null)),f?Oi(e,f,t,r,i):null}}return t}function Mi(e,t,n,r,i){var o=r||1,a=Oi(e,t,n,o,i)||!i&&Oi(e,t,n,o,!0)||Oi(e,t,n,-o,i)||!i&&Oi(e,t,n,-o,!0);return a||(e.cantEdit=!0,j(e.first,0))}function Ti(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?W(e,j(t.line-1)):null:n>0&&t.ch==(r||M(e,t.line)).text.length?t.line<e.first+e.size-1?j(t.line+1,0):null:new j(t.line,t.ch+n)}function Ai(e){e.setSelection(j(e.firstLine(),0),j(e.lastLine()),Ua)}function Ni(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=W(e,t)),n&&(r.to=W(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),Me(e,"beforeChange",e,r),e.cm&&Me(e.cm,"beforeChange",e.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Ei(e,t,n){if(e.cm){if(!e.cm.curOp)return vr(e.cm,Ei)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ne(e,"beforeChange")||e.cm&&Ne(e.cm,"beforeChange"))||(t=Ni(e,t,!0))){var r=Ja&&!n&&te(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Li(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Li(e,t)}}function Li(e,t){if(1!=t.text.length||""!=t.text[0]||0!=D(t.from,t.to)){var n=Vr(e,t);oi(e,t,n,e.cm?e.cm.curOp.id:NaN),ji(e,t,n,Q(e,t));var r=[];Jr(e,function(e,n){n||-1!=d(r,e.history)||(Ri(e.history,t),r.push(e.history)),ji(e,t,null,Q(e,t))})}}function $i(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(i=s.pop(),!i.ranges){if(r)return void s.push(i);break}if(li(i,l),n&&!i.equals(e.sel))return void xi(e,i,{clearRedo:!1});a=i}var c=[];li(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=Ne(e,"beforeChange")||e.cm&&Ne(e.cm,"beforeChange"),h=i.changes.length-1;h>=0;--h){var p=function(n){var r=i.changes[n];if(r.origin=t,f&&!Ni(e,r,!1))return s.length=0,{};c.push(ni(e,r));var o=n?Vr(e,r):v(s);ji(e,r,o,di(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Wr(r)});var a=[];Jr(e,function(e,t){t||-1!=d(a,e.history)||(Ri(e.history,r),a.push(e.history)),ji(e,r,null,di(e,r))})}(h);if(p)return p.v}}}}function Pi(e,t){if(0!=t&&(e.first+=t,e.sel=new As(m(e.sel.ranges,function(e){return new Ns(j(e.anchor.line+t,e.anchor.ch),j(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){yr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)br(e.cm,r,"gutter")}}function ji(e,t,n,r){if(e.cm&&!e.cm.curOp)return vr(e.cm,ji)(e,t,n,r);if(t.to.line<e.first)return void Pi(e,t.text.length-1-(t.to.line-t.from.line));if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);Pi(e,i),t={from:j(e.first,0),to:j(t.to.line+i,t.to.ch),text:[v(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:j(o,M(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=T(e,t.from,t.to),n||(n=Vr(e,t)),e.cm?Di(e.cm,t,r):Xr(e,t,r),ki(e,n,Ua)}}function Di(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=E(de(M(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Ae(e),Xr(r,t,n,_n(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=we(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),ot(r,o.line),_r(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?yr(e):o.line!=a.line||1!=t.text.length||Yr(e.doc,t)?yr(e,o.line,a.line+1,u):br(e,o.line,"text");var c=Ne(e,"changes"),f=Ne(e,"change");if(f||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&xt(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function Fi(e,t,n,r,i){if(r||(r=n),D(r,n)<0){var o;o=[r,n],n=o[0],r=o[1]}"string"==typeof t&&(t=e.splitLines(t)),Ei(e,{from:n,to:r,text:t,origin:i})}function Ii(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function Hi(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var s=0;s<o.ranges.length;s++)Ii(o.ranges[s].anchor,t,n,r),Ii(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=j(u.from.line+r,u.from.ch),u.to=j(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function Ri(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;Hi(e.done,n,r,i),Hi(e.undone,n,r,i)}function zi(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=M(e,z(e,t)):i=E(t),null==i?null:(r(o,i)&&e.cm&&br(e.cm,i,n),o)}function Wi(e){var t=this;this.lines=e,this.parent=null;for(var n=0,r=0;r<e.length;++r)e[r].parent=t,n+=e[r].height;this.height=n}function Bi(e){var t=this;this.children=e;for(var n=0,r=0,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}function Vi(e,t,n){be(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Gn(e,n)}function Ui(e,t,n,r){var i=new Es(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),zi(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!ge(e,t)){var r=be(t)<e.scrollTop;N(t,t.height+jt(i)),r&&Gn(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&xt(o,"lineWidgetAdded",o,i,"number"==typeof t?t:E(t)),i}function qi(e,t,n,r,o){if(r&&r.shared)return Gi(e,t,n,r,o);if(e.cm&&!e.cm.curOp)return vr(e.cm,qi)(e,t,n,r,o);var a=new $s(e,o),s=D(t,n);if(r&&c(r,a,!1),s>0||0==s&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=i("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(fe(e,t.line,t,n,a)||t.line!=n.line&&fe(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");q()}a.addToHistory&&oi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,u=t.line,f=e.cm;if(e.iter(u,n.line+1,function(e){f&&a.collapsed&&!f.options.lineWrapping&&de(e)==f.display.maxLine&&(l=!0),a.collapsed&&u!=t.line&&N(e,0),X(e,new G(a,u==t.line?t.ch:null,u==n.line?n.ch:null)),++u}),a.collapsed&&e.iter(t.line,n.line+1,function(t){ge(e,t)&&N(t,0)}),a.clearOnEnter&&ns(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(U(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++Ls,a.atomic=!0),f){if(l&&(f.curOp.updateMaxLine=!0),a.collapsed)yr(f,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var d=t.line;d<=n.line;d++)br(f,d,"text");a.atomic&&_i(f.doc),xt(f,"markerAdded",f,a)}return a}function Gi(e,t,n,r,i){r=c(r),r.shared=!1;var o=[qi(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Jr(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(qi(e,W(e,t),W(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=v(o)}),new Ps(o,a)}function Ki(e){return e.findMarks(j(e.first,0),e.clipPos(j(e.lastLine())),function(e){return e.parent})}function Yi(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(D(o,a)){var s=qi(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Xi(e){for(var t=0;t<e.length;t++)!function(t){var n=e[t],r=[n.primary.doc];Jr(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==d(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}}(t)}function Ji(e){var t=this;if(eo(t),!Te(t,e)&&!Dt(t.display,e)){Le(e),ba&&(Fs=+new Date);var n=On(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,s=0;s<i;++s)!function(e,r){if(!t.options.allowDropFileTypes||-1!=d(t.options.allowDropFileTypes,e.type)){var s=new FileReader;s.onload=vr(t,function(){var e=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++a==i){n=W(t.doc,n);var l={from:n,to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};Ei(t.doc,l),wi(t.doc,zr(n,Wr(l)))}}),s.readAsText(e)}}(r[s],s);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var l=e.dataTransfer.getData("Text");if(l){var u;if(t.state.draggingText&&!t.state.draggingText.copy&&(u=t.listSelections()),ki(t.doc,zr(n,n)),u)for(var c=0;c<u.length;++c)Fi(t.doc,"",u[c].anchor,u[c].head,"drag");t.replaceSelection(l,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Zi(e,t){if(ba&&(!e.state.draggingText||+new Date-Fs<100))return void je(t);if(!Te(e,t)&&!Dt(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!Sa)){var n=r("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",_a&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),_a&&n.parentNode.removeChild(n)}}function Qi(e,t){var i=On(e,t);if(i){var o=document.createDocumentFragment();Nn(e,i,o),e.display.dragCursor||(e.display.dragCursor=r("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),n(e.display.dragCursor,o)}}function eo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function to(e){if(document.getElementsByClassName)for(var t=document.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}function no(){Is||(ro(),Is=!0)}function ro(){var e;ns(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,to(io)},100))}),ns(window,"blur",function(){return to(Fn)})}function io(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function oo(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var n,r,i,o,a=0;a<t.length-1;a++){var s=t[a];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))n=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);i=!0}}return n&&(e="Alt-"+e),r&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function ao(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}for(var i=m(n.split(" "),oo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function so(e,t,n,r){t=fo(t);var i=t.call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return so(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=so(e,t.fallthrough[o],n,r);if(a)return a}}}function lo(e){var t="string"==typeof e?e:Hs[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function uo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(Da?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(Da?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function co(e,t){if(_a&&34==e.keyCode&&e.char)return!1;var n=Hs[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),uo(n,e,t))}function fo(e){return"string"==typeof e?Bs[e]:e}function ho(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&D(o.from,v(r).to)<=0;){var a=r.pop();if(D(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}pr(e,function(){for(var t=r.length-1;t>=0;t--)Fi(e.doc,"",r[t].from,r[t].to,"+delete");Kn(e)})}function po(e,t,n){var r=_(e.text,t+n,n);return r<0||r>e.text.length?null:r}function vo(e,t,n){var r=po(e,t.ch,n);return null==r?null:new j(t.line,r,n<0?"after":"before")}function mo(e,t,n,r,i){if(e){var o=_e(n,t.doc.direction);if(o){var a,s=i<0?v(o):o[0],l=i<0==(1==s.level),u=l?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=Kt(t,n);a=i<0?n.text.length-1:0;var f=Yt(t,c,a).top;a=S(function(e){return Yt(t,c,e).top==f},i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=po(n,a,1))}else a=i<0?s.to:s.from;return new j(r,a,u)}}return new j(r,i<0?n.text.length:0,i<0?"before":"after")}function go(e,t,n,r){var i=_e(t,e.doc.direction);if(!i)return vo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Ce(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return vo(t,n,r);var s,l=function(e,n){return po(t,e instanceof j?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||Kt(e,t),vn(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,d=l(n,f?1:-1);if(null!=d&&(f?d<=a.to&&d<=c.end:d>=a.from&&d>=c.begin)){var h=f?"before":"after";return new j(n.line,d,h)}}var p=function(e,t,r){for(var o=function(e,t){return t?new j(n.line,l(e,1),"before"):new j(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},v=p(o+r,r,c);if(v)return v;var m=r>0?c.end:l(c.begin,-1);return null==m||r>0&&m==t.text.length||!(v=p(r>0?0:i.length-1,r,u(m)))?null:v}function yo(e,t){var n=M(e.doc,t),r=de(n);return r!=n&&(t=E(r)),mo(!0,e,r,t,1)}function bo(e,t){var n=M(e.doc,t),r=he(n);return r!=n&&(t=E(r)),mo(!0,e,n,t,-1)}function wo(e,t){var n=yo(e,t.line),r=M(e.doc,n.line),i=_e(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return j(n.line,a?0:o,n.sticky)}return n}function xo(e,t,n){if("string"==typeof t&&!(t=Vs[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=Va}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ko(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=so(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&so(t,e.options.extraKeys,n,e)||so(t,e.options.keyMap,n,e)}function Co(e,t,n,r){var i=e.state.keySeq;if(i){if(lo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Us.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),_o(e,i+" "+t,n,r))return!0}return _o(e,t,n,r)}function _o(e,t,n,r){var i=ko(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&xt(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Le(n),$n(e)),!!i}function So(e,t){var n=co(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?Co(e,"Shift-"+n,t,function(t){return xo(e,t,!0)})||Co(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return xo(e,t)}):Co(e,n,t,function(t){return xo(e,t)}))}function Oo(e,t,n){return Co(e,"'"+n+"'",t,function(t){return xo(e,t,!0)})}function Mo(e){var t=this;if(t.curOp.focus=a(),!Te(t,e)){ba&&wa<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=So(t,e);_a&&(qs=r?n:null,!r&&88==n&&!as&&(Ea?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||To(t)}}function To(e){function t(e){18!=e.keyCode&&e.altKey||(Ia(n,"CodeMirror-crosshair"),Oe(document,"keyup",t),Oe(document,"mouseover",t))}var n=e.display.lineDiv;s(n,"CodeMirror-crosshair"),ns(document,"keyup",t),ns(document,"mouseover",t)}function Ao(e){16==e.keyCode&&(this.doc.sel.shift=!1),Te(this,e)}function No(e){var t=this;if(!(Dt(t.display,e)||Te(t,e)||e.ctrlKey&&!e.altKey||Ea&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(_a&&n==qs)return qs=null,void Le(e);if(!_a||e.which&&!(e.which<10)||!So(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(Oo(t,e,i)||t.display.input.onKeyPress(e))}}}function Eo(e,t){var n=+new Date;return Ys&&Ys.compare(n,e,t)?(Ks=Ys=null,"triple"):Ks&&Ks.compare(n,e,t)?(Ys=new Gs(n,e,t),Ks=null,"double"):(Ks=new Gs(n,e,t),Ys=null,"single")}function Lo(e){var t=this,n=t.display;if(!(Te(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,Dt(n,e))return void(xa||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100)));if(!zo(t,e)){var r=On(t,e),i=Fe(e),o=r?Eo(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&$o(t,i,r,o,e)||(1==i?r?jo(t,r,o,e):De(e)==n.scroller&&Le(e):2==i?(r&&vi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(Fa?Wo(t,e):jn(t)))}}}function $o(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),o=(1==t?"Left":2==t?"Middle":"Right")+o,Co(e,uo(o,i),i,function(t){if("string"==typeof t&&(t=Vs[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=Va}finally{e.state.suppressEdits=!1}return r})}function Po(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=La?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=Ea?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(Ea?n.altKey:n.ctrlKey)),i}function jo(e,t,n,r){ba?setTimeout(u(Pn,e),0):e.curOp.focus=a();var i,o=Po(e,n,r),s=e.doc.sel;e.options.dragDrop&&rs&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(D((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(D(i.to(),t)>0||t.xRel<0)?Do(e,r,t,o):Io(e,r,t,o)}function Do(e,t,n,r){var i=e.display,o=!1,a=vr(e,function(t){xa&&(i.scroller.draggable=!1),e.state.draggingText=!1,Oe(i.wrapper.ownerDocument,"mouseup",a),Oe(i.wrapper.ownerDocument,"mousemove",s),Oe(i.scroller,"dragstart",l),Oe(i.scroller,"drop",a),o||(Le(t),r.addNew||vi(e.doc,n,null,null,r.extend),xa||ba&&9==wa?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),s=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},l=function(){return o=!0};xa&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),ns(i.wrapper.ownerDocument,"mouseup",a),ns(i.wrapper.ownerDocument,"mousemove",s),ns(i.scroller,"dragstart",l),ns(i.scroller,"drop",a),jn(e),setTimeout(function(){return i.input.focus()},20)}function Fo(e,t,n){if("char"==n)return new Ns(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ns(j(t.line,0),W(e.doc,j(t.line+1,0)));var r=n(e,t);return new Ns(r.from,r.to)}function Io(e,t,n,r){function i(t){if(0!=D(g,t))if(g=t,"rectangle"==r.unit){for(var i=[],o=e.options.tabSize,a=f(M(u,n.line).text,n.ch,o),s=f(M(u,t.line).text,t.ch,o),l=Math.min(a,s),v=Math.max(a,s),m=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=y;m++){var b=M(u,m).text,w=h(b,l,o);l==v?i.push(new Ns(j(m,w),j(m,w))):b.length>w&&i.push(new Ns(j(m,w),j(m,h(b,v,o))))}i.length||i.push(new Ns(n,n)),xi(u,Rr(p.ranges.slice(0,d).concat(i),d),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var x,k=c,C=Fo(e,t,r.unit),_=k.anchor;D(C.anchor,_)>0?(x=C.head,_=R(k.from(),C.anchor)):(x=C.anchor,_=H(k.to(),C.head));var S=p.ranges.slice(0);S[d]=Ho(e,new Ns(W(u,_),x)),xi(u,Rr(S,d),qa)}}function o(t){var n=++b,s=On(e,t,!0,"rectangle"==r.unit);if(s)if(0!=D(s,g)){e.curOp.focus=a(),i(s);var c=Rn(l,u);(s.line>=c.to||s.line<c.from)&&setTimeout(vr(e,function(){b==n&&o(t)}),150)}else{var f=t.clientY<y.top?-20:t.clientY>y.bottom?20:0;f&&setTimeout(vr(e,function(){b==n&&(l.scroller.scrollTop+=f,o(t))}),50)}}function s(t){e.state.selectingText=!1,b=1/0,Le(t),l.input.focus(),Oe(l.wrapper.ownerDocument,"mousemove",w),Oe(l.wrapper.ownerDocument,"mouseup",x),u.history.lastSelOrigin=null}var l=e.display,u=e.doc;Le(t);var c,d,p=u.sel,v=p.ranges;if(r.addNew&&!r.extend?(d=u.sel.contains(n),c=d>-1?v[d]:new Ns(n,n)):(c=u.sel.primary(),d=u.sel.primIndex),"rectangle"==r.unit)r.addNew||(c=new Ns(n,n)),n=On(e,t,!0,!0),d=-1;else{var m=Fo(e,n,r.unit);c=r.extend?pi(c,m.anchor,m.head,r.extend):m}r.addNew?-1==d?(d=v.length,xi(u,Rr(v.concat([c]),d),{scroll:!1,origin:"*mouse"})):v.length>1&&v[d].empty()&&"char"==r.unit&&!r.extend?(xi(u,Rr(v.slice(0,d).concat(v.slice(d+1)),0),{scroll:!1,origin:"*mouse"}),p=u.sel):gi(u,d,c,qa):(d=0,xi(u,new As([c],0),qa),p=u.sel);var g=n,y=l.wrapper.getBoundingClientRect(),b=0,w=vr(e,function(e){0!==e.buttons&&Fe(e)?o(e):s(e)}),x=vr(e,s);e.state.selectingText=x,ns(l.wrapper.ownerDocument,"mousemove",w),ns(l.wrapper.ownerDocument,"mouseup",x)}function Ho(e,t){var n=t.anchor,r=t.head,i=M(e.doc,n.line);if(0==D(n,r)&&n.sticky==r.sticky)return t;var o=_e(i);if(!o)return t;var a=Ce(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==(1!=s.level)?0:1);if(0==l||l==o.length)return t;var u;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=Ce(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);u=c==l-1||c==l?f<0:f>0}var d=o[l+(u?-1:0)],h=u==(1==d.level),p=h?d.from:d.to,v=h?"after":"before";return n.ch==p&&n.sticky==v?t:new Ns(new j(n.line,p,v),r)}function Ro(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!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Le(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ne(e,n))return Pe(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){return Me(e,n,e,L(e.doc,o),e.options.gutters[l],t),Pe(t)}}}function zo(e,t){return Ro(e,t,"gutterClick",!0)}function Wo(e,t){Dt(e.display,t)||Bo(e,t)||Te(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function Bo(e,t){return!!Ne(e,"gutterContextMenu")&&Ro(e,t,"gutterContextMenu",!1)}function Vo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),nn(e)}function Uo(e){jr(e),yr(e),zn(e)}function qo(e,t,n){if(!t!=!(n&&n!=Xs)){var r=e.display.dragFunctions,i=t?ns:Oe;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Go(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Ia(e.display.wrapper,"CodeMirror-wrap"),xe(e)),Sn(e),yr(e),nn(e),setTimeout(function(){return rr(e)},100)}function Ko(e,t){var n=this;if(!(this instanceof Ko))return new Ko(e,t);this.options=t=t?c(t):{},c(Js,t,!1),Dr(t);var r=t.value;"string"==typeof r&&(r=new Ds(r,t.mode,null,t.lineSeparator,t.direction)),this.doc=r;var i=new Ko.inputStyles[t.inputStyle](this),o=this.display=new O(e,r,i);o.wrapper.CodeMirror=this,jr(this),Vo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),or(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Ra,keySeq:null,specialChars:null},t.autofocus&&!Na&&o.input.focus(),ba&&wa<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Yo(this),no(),ar(this),this.curOp.forceUpdate=!0,Zr(this,r),t.autofocus&&!Na||this.hasFocus()?setTimeout(u(Dn,this),20):Fn(this);for(var a in Zs)Zs.hasOwnProperty(a)&&Zs[a](n,t[a],Xs);Wn(this),t.finishInit&&t.finishInit(this);for(var s=0;s<Qs.length;++s)Qs[s](n);sr(this),xa&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Yo(e){function t(){i.activeTouch&&(o=setTimeout(function(){return i.activeTouch=null},1e3),a=i.activeTouch,a.end=+new Date)}function n(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function r(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}var i=e.display;ns(i.scroller,"mousedown",vr(e,Lo)),ba&&wa<11?ns(i.scroller,"dblclick",vr(e,function(t){if(!Te(e,t)){var n=On(e,t);if(n&&!zo(e,t)&&!Dt(e.display,t)){Le(t);var r=e.findWordAt(n);vi(e.doc,r.anchor,r.head)}}})):ns(i.scroller,"dblclick",function(t){return Te(e,t)||Le(t)}),Fa||ns(i.scroller,"contextmenu",function(t){return Wo(e,t)});var o,a={end:0};ns(i.scroller,"touchstart",function(t){if(!Te(e,t)&&!n(t)&&!zo(e,t)){i.input.ensurePolled(),clearTimeout(o);var r=+new Date;i.activeTouch={start:r,moved:!1,prev:r-a.end<=300?a:null},1==t.touches.length&&(i.activeTouch.left=t.touches[0].pageX,i.activeTouch.top=t.touches[0].pageY)}}),ns(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ns(i.scroller,"touchend",function(n){var o=i.activeTouch;if(o&&!Dt(i,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var a,s=e.coordsChar(i.activeTouch,"page");a=!o.prev||r(o,o.prev)?new Ns(s,s):!o.prev.prev||r(o,o.prev.prev)?e.findWordAt(s):new Ns(j(s.line,0),W(e.doc,j(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Le(n)}t()}),ns(i.scroller,"touchcancel",t),ns(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Qn(e,i.scroller.scrollTop),tr(e,i.scroller.scrollLeft,!0),Me(e,"scroll",e))}),ns(i.scroller,"mousewheel",function(t){return Hr(e,t)}),ns(i.scroller,"DOMMouseScroll",function(t){return Hr(e,t)}),ns(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(t){Te(e,t)||je(t)},over:function(t){Te(e,t)||(Qi(e,t),je(t))},start:function(t){return Zi(e,t)},drop:vr(e,Ji),leave:function(t){Te(e,t)||eo(e)}};var s=i.input.getField();ns(s,"keyup",function(t){return Ao.call(e,t)}),ns(s,"keydown",vr(e,Mo)),ns(s,"keypress",vr(e,No)),ns(s,"focus",function(t){return Dn(e,t)}),ns(s,"blur",function(t){return Fn(e,t)})}function Xo(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Je(e,t).state:n="prev");var a=e.options.tabSize,s=M(o,t),l=f(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==Va||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?f(M(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",h=0;if(e.options.indentWithTabs)for(var v=Math.floor(u/a);v;--v)h+=a,d+="\t";if(h<u&&(d+=p(u-h)),d!=c)return Fi(o,d,j(t,0),j(t,c.length),"+input"),s.stateAfter=null,!0;for(var m=0;m<o.sel.ranges.length;m++){var g=o.sel.ranges[m];if(g.head.line==t&&g.head.ch<c.length){var y=j(t,c.length);gi(o,m,new Ns(y,y));break}}}function Jo(e){el=e}function Zo(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=e.state.pasteIncoming||"paste"==i,s=is(t),l=null;if(a&&r.ranges.length>1)if(el&&el.text.join("\n")==t){if(r.ranges.length%el.text.length==0){l=[];for(var u=0;u<el.text.length;u++)l.push(o.splitLines(el.text[u]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(l=m(s,function(e){return[e]}));for(var c,f=r.ranges.length-1;f>=0;f--){var d=r.ranges[f],h=d.from(),p=d.to();d.empty()&&(n&&n>0?h=j(h.line,h.ch-n):e.state.overwrite&&!a?p=j(p.line,Math.min(M(o,p.line).text.length,p.ch+v(s).length)):el&&el.lineWise&&el.text.join("\n")==t&&(h=p=j(h.line,0))),c=e.curOp.updateInput;var g={from:h,to:p,text:l?l[f%l.length]:s,origin:i||(a?"paste":e.state.cutIncoming?"cut":"+input")};Ei(e.doc,g),xt(e,"inputRead",e,g)}t&&!a&&ea(e,t),Kn(e),e.curOp.updateInput=c,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Qo(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||pr(t,function(){return Zo(t,n,0,null,"paste")}),!0}function ea(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,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)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Xo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(M(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Xo(e,i.head.line,"smart"));a&&xt(e,"electricInput",e,i.head.line)}}}function ta(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:j(i,0),head:j(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function na(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function ra(){var e=r("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=r("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return xa?e.style.width="1000px":e.setAttribute("wrap","off"),Ta&&(e.style.border="1px solid black"),na(e),t}function ia(e,t,n,r,i){function o(){var r=t.line+n;return!(r<e.first||r>=e.first+e.size)&&(t=new j(r,t.ch,t.sticky),u=M(e,r))}function a(r){var a;if(null==(a=i?go(e.cm,u,t,n):vo(u,t,n))){if(r||!o())return!1;t=mo(i,e.cm,u,t.line,n)}else t=a;return!0}var s=t,l=n,u=M(e,t.line);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||a(!h);h=!1){var p=u.text.charAt(t.ch)||"\n",v=x(p,d)?"w":f&&"\n"==p?"n":!f||/\s/.test(p)?null:"p";if(!f||h||v||(v="s"),c&&c!=v){n<0&&(n=1,a(),t.sticky="after");break}if(v&&(c=v),n>0&&!a(!h))break}var m=Mi(e,t,s,l,!0);return F(s,m)&&(m.hitSide=!0),m}function oa(e,t,n,r){var i,o=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*wn(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(var u;u=hn(e,a,i),u.outside;){if(n<0?i<=0:i>=o.height){u.hitSide=!0;break}i+=5*n}return u}function aa(e,t){var n=Gt(e,t.line);if(!n||n.hidden)return null;var r=M(e.doc,t.line),i=Vt(n,r,t.line),o=_e(r,e.doc.direction),a="left";if(o){a=Ce(o,t.ch)%2?"right":"left"}var s=Xt(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function sa(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function la(e,t){return t&&(e.bad=!0),e}function ua(e,t,n,r,i){function o(e){return function(t){return t.id==e}}function a(){c&&(u+=f,d&&(u+=f),c=d=!1)}function s(e){e&&(a(),u+=e)}function l(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void s(n);var u,h=t.getAttribute("cm-marker");if(h){var p=e.findMarks(j(r,0),j(i+1,0),o(+h));return void(p.length&&(u=p[0].find(0))&&s(T(e.doc,u.from,u.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var v=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;v&&a();for(var m=0;m<t.childNodes.length;m++)l(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(d=!0),v&&(c=!0)}else 3==t.nodeType&&s(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(var u="",c=!1,f=e.doc.lineSeparator(),d=!1;l(t),t!=n;)t=t.nextSibling,d=!1;return u}function ca(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return la(e.clipPos(j(e.display.viewTo-1)),!0);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 fa(o,t,n)}}function fa(e,t,n){function r(t,n,r){for(var i=-1;i<(f?f.length:0);i++)for(var o=i<0?c.map:f[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var l=E(i<0?e.line:e.rest[i]),u=o[a]+r;return(r<0||s!=t)&&(u=o[a+(r?1:0)]),j(l,u)}}}var i=e.text.firstChild,a=!1;if(!t||!o(i,t))return la(j(E(e.line),0),!0);if(t==i&&(a=!0,t=i.childNodes[n],n=0,!t)){var s=e.rest?v(e.rest):e.line;return la(j(E(s),s.text.length),a)}var l=3==t.nodeType?t:null,u=t;for(l||1!=t.childNodes.length||3!=t.firstChild.nodeType||(l=t.firstChild,n&&(n=l.nodeValue.length));u.parentNode!=i;)u=u.parentNode;var c=e.measure,f=c.maps,d=r(l,u,n);if(d)return la(d,a);for(var h=u.nextSibling,p=l?l.nodeValue.length-n:0;h;h=h.nextSibling){if(d=r(h,h.firstChild,0))return la(j(d.line,d.ch-p),a);p+=h.textContent.length}for(var m=u.previousSibling,g=n;m;m=m.previousSibling){if(d=r(m,m.firstChild,-1))return la(j(d.line,d.ch+g),a);g+=m.textContent.length}}function da(e,t){function n(){e.value=l.getValue()}if(t=t?c(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=a();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}var i;if(e.form&&(ns(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var s=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=s}}catch(e){}}t.finishInit=function(t){t.save=n,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,n(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(Oe(e.form,"submit",n),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var l=Ko(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return l}var ha=navigator.userAgent,pa=navigator.platform,va=/gecko\/\d/i.test(ha),ma=/MSIE \d/.test(ha),ga=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ha),ya=/Edge\/(\d+)/.exec(ha),ba=ma||ga||ya,wa=ba&&(ma?document.documentMode||6:+(ya||ga)[1]),xa=!ya&&/WebKit\//.test(ha),ka=xa&&/Qt\/\d+\.\d+/.test(ha),Ca=!ya&&/Chrome\//.test(ha),_a=/Opera\//.test(ha),Sa=/Apple Computer/.test(navigator.vendor),Oa=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ha),Ma=/PhantomJS/.test(ha),Ta=!ya&&/AppleWebKit/.test(ha)&&/Mobile\/\w+/.test(ha),Aa=/Android/.test(ha),Na=Ta||Aa||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ha),Ea=Ta||/Mac/.test(pa),La=/\bCrOS\b/.test(ha),$a=/win/i.test(pa),Pa=_a&&ha.match(/Version\/(\d*\.\d*)/);Pa&&(Pa=Number(Pa[1])),Pa&&Pa>=15&&(_a=!1,xa=!0);var ja,Da=Ea&&(ka||_a&&(null==Pa||Pa<12.11)),Fa=va||ba&&wa>=9,Ia=function(t,n){var r=t.className,i=e(n).exec(r);if(i){var o=r.slice(i.index+i[0].length);t.className=r.slice(0,i.index)+(o?i[1]+o:"")}};ja=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Ha=function(e){e.select()};Ta?Ha=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ba&&(Ha=function(e){try{e.select()}catch(e){}});var Ra=function(){this.id=null};Ra.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var za,Wa,Ba=30,Va={toString:function(){return"CodeMirror.Pass"}},Ua={scroll:!1},qa={origin:"*mouse"},Ga={origin:"+move"},Ka=[""],Ya=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Xa=/[\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]/,Ja=!1,Za=!1,Qa=null,es=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,l=/[1n]/;return function(n,r){var u="ltr"==r?"L":"R";if(0==n.length||"ltr"==r&&!i.test(n))return!1;for(var c=n.length,f=[],d=0;d<c;++d)f.push(e(n.charCodeAt(d)));for(var h=0,p=u;h<c;++h){var m=f[h];"m"==m?f[h]=p:p=m}for(var g=0,y=u;g<c;++g){var b=f[g];"1"==b&&"r"==y?f[g]="n":a.test(b)&&(y=b,"r"==b&&(f[g]="R"))}for(var w=1,x=f[0];w<c-1;++w){var k=f[w];"+"==k&&"1"==x&&"1"==f[w+1]?f[w]="1":","!=k||x!=f[w+1]||"1"!=x&&"n"!=x||(f[w]=x),x=k}for(var C=0;C<c;++C){var _=f[C];if(","==_)f[C]="N";else if("%"==_){var S=void 0;for(S=C+1;S<c&&"%"==f[S];++S);for(var O=C&&"!"==f[C-1]||S<c&&"1"==f[S]?"1":"N",M=C;M<S;++M)f[M]=O;C=S-1}}for(var T=0,A=u;T<c;++T){var N=f[T];"L"==A&&"1"==N?f[T]="L":a.test(N)&&(A=N)}for(var E=0;E<c;++E)if(o.test(f[E])){var L=void 0;for(L=E+1;L<c&&o.test(f[L]);++L);for(var $="L"==(E?f[E-1]:u),P="L"==(L<c?f[L]:u),j=$==P?$?"L":"R":u,D=E;D<L;++D)f[D]=j;E=L-1}for(var F,I=[],H=0;H<c;)if(s.test(f[H])){var R=H;for(++H;H<c&&s.test(f[H]);++H);I.push(new t(0,R,H))}else{var z=H,W=I.length;for(++H;H<c&&"L"!=f[H];++H);for(var B=z;B<H;)if(l.test(f[B])){z<B&&I.splice(W,0,new t(1,z,B));var V=B;for(++B;B<H&&l.test(f[B]);++B);I.splice(W,0,new t(2,V,B)),z=B}else++B;z<H&&I.splice(W,0,new t(1,z,H))}return"ltr"==r&&(1==I[0].level&&(F=n.match(/^\s+/))&&(I[0].from=F[0].length,I.unshift(new t(0,0,F[0].length))),1==v(I).level&&(F=n.match(/\s+$/))&&(v(I).to-=F[0].length,I.push(new t(0,c-F[0].length,c)))),"rtl"==r?I.reverse():I}}(),ts=[],ns=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ts).concat(n)}},rs=function(){if(ba&&wa<9)return!1;var e=r("div");return"draggable"in e||"dragDrop"in e}(),is=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},os=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},as=function(){var e=r("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),ss=null,ls={},us={},cs={},fs=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};fs.prototype.eol=function(){return this.pos>=this.string.length},fs.prototype.sol=function(){return this.pos==this.lineStart},fs.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fs.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},fs.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},fs.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},fs.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},fs.prototype.skipToEnd=function(){this.pos=this.string.length},fs.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},fs.prototype.backUp=function(e){this.pos-=e},fs.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=f(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},fs.prototype.indentation=function(){return f(this.string,null,this.tabSize)-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},fs.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},fs.prototype.current=function(){return this.string.slice(this.start,this.pos)},fs.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},fs.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},fs.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ds=function(e,t){this.state=e,this.lookAhead=t},hs=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};hs.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},hs.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;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}},hs.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},hs.fromSaved=function(e,t,n){return t instanceof ds?new hs(e,qe(e.mode,t.state),n,t.lookAhead):new hs(e,qe(e.mode,t),n)},hs.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ds(t,this.maxLookAhead):t};var ps=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},vs=function(e,t,n){this.text=e,re(this,t),this.height=n?n(this):1};vs.prototype.lineNo=function(){return E(this)},Ee(vs);var ms,gs={},ys={},bs=null,ws=null,xs={left:0,right:0,top:0,bottom:0},ks=function(e,t,n){this.cm=n;var i=this.vert=r("div",[r("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=r("div",[r("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=o.tabIndex=-1,e(i),e(o),ns(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),ns(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ba&&wa<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ks.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,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";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},ks.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ks.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ks.prototype.zeroWidthHack=function(){var e=Ea&&!Oa?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ra,this.disableVert=new Ra},ks.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},ks.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Cs=function(){};Cs.prototype.update=function(){return{bottom:0,right:0}},Cs.prototype.setScrollLeft=function(){},Cs.prototype.setScrollTop=function(){},Cs.prototype.clear=function(){};var _s={native:ks,null:Cs},Ss=0,Os=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Rn(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=zt(e),this.force=n,this.dims=kn(e),this.events=[]};Os.prototype.signal=function(e,t){Ne(e,t)&&this.events.push(arguments)},Os.prototype.finish=function(){for(var e=this,t=0;t<this.events.length;t++)Me.apply(null,e.events[t])};var Ms=0,Ts=null;ba?Ts=-.53:va?Ts=15:Ca?Ts=-.7:Sa&&(Ts=-1/3);var As=function(e,t){this.ranges=e,this.primIndex=t};As.prototype.primary=function(){return this.ranges[this.primIndex]},As.prototype.equals=function(e){var t=this;if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var r=t.ranges[n],i=e.ranges[n];if(!F(r.anchor,i.anchor)||!F(r.head,i.head))return!1}return!0},As.prototype.deepCopy=function(){for(var e=this,t=[],n=0;n<this.ranges.length;n++)t[n]=new Ns(I(e.ranges[n].anchor),I(e.ranges[n].head));return new As(t,this.primIndex)},As.prototype.somethingSelected=function(){for(var e=this,t=0;t<this.ranges.length;t++)if(!e.ranges[t].empty())return!0;return!1},As.prototype.contains=function(e,t){var n=this;t||(t=e);for(var r=0;r<this.ranges.length;r++){var i=n.ranges[r];if(D(t,i.from())>=0&&D(e,i.to())<=0)return r}return-1};var Ns=function(e,t){this.anchor=e,this.head=t};Ns.prototype.from=function(){return R(this.anchor,this.head)},Ns.prototype.to=function(){return H(this.anchor,this.head)},Ns.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Wi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,i=e+t;r<i;++r){var o=n.lines[r];n.height-=o.height,st(o),xt(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){var r=this;this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=r},iterN:function(e,t,n){for(var r=this,i=e+t;e<i;++e)if(n(r.lines[e]))return!0}},Bi.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){var n=this;this.size-=t;for(var r=0;r<this.children.length;++r){var i=n.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e),s=i.height;if(i.removeInner(e,a),n.height-=s-i.height,o==a&&(n.children.splice(r--,1),i.parent=null),0==(t-=a))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Wi))){var l=[];this.collapse(l),this.children=[new Wi(l)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n<this.children.length;++n)t.children[n].collapse(e)},insertInner:function(e,t,n){var r=this;this.size+=t.length,this.height+=n;for(var i=0;i<this.children.length;++i){var o=r.children[i],a=o.chunkSize();if(e<=a){if(o.insertInner(e,t,n),o.lines&&o.lines.length>50){for(var s=o.lines.length%25+25,l=s;l<o.lines.length;){var u=new Wi(o.lines.slice(l,l+=25));o.height-=u.height,r.children.splice(++i,0,u),u.parent=r}o.lines=o.lines.slice(0,s),r.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new Bi(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=d(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var i=new Bi(e.children);i.parent=e,e.children=[i,n],e=i}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,i=0;i<this.children.length;++i){var o=r.children[i],a=o.chunkSize();if(e<a){var s=Math.min(t,a-e);if(o.iterN(e,s,n))return!0;if(0==(t-=s))break;e=0}else e-=a}}};var Es=function(e,t,n){var r=this;if(n)for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);this.doc=e,this.node=t};Es.prototype.clear=function(){var e=this,t=this.doc.cm,n=this.line.widgets,r=this.line,i=E(r);if(null!=i&&n){for(var o=0;o<n.length;++o)n[o]==e&&n.splice(o--,1);n.length||(r.widgets=null);var a=jt(this);N(r,Math.max(0,r.height-a)),t&&(pr(t,function(){Vi(t,r,-a),br(t,i,"widget")}),xt(t,"lineWidgetCleared",t,this,i))}},Es.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=jt(this)-t;i&&(N(r,r.height+i),n&&pr(n,function(){n.curOp.forceUpdate=!0,Vi(n,r,i),xt(n,"lineWidgetChanged",n,e,E(r))}))},Ee(Es);var Ls=0,$s=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Ls};$s.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,n=t&&!t.curOp;if(n&&ar(t),Ne(this,"clear")){var r=this.find();r&&xt(this,"clear",r.from,r.to)}for(var i=null,o=null,a=0;a<this.lines.length;++a){var s=e.lines[a],l=K(s.markedSpans,e);t&&!e.collapsed?br(t,E(s),"text"):t&&(null!=l.to&&(o=E(s)),null!=l.from&&(i=E(s))),s.markedSpans=Y(s.markedSpans,l),null==l.from&&e.collapsed&&!ge(e.doc,s)&&t&&N(s,wn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var c=de(e.lines[u]),f=we(c);f>t.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&yr(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&_i(t.doc)),t&&xt(t,"markerCleared",t,this,i,o),n&&sr(t),this.parent&&this.parent.clear()}},$s.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var r,i,o=0;o<this.lines.length;++o){var a=n.lines[o],s=K(a.markedSpans,n);if(null!=s.from&&(r=j(t?a:E(a),s.from),-1==e))return r;if(null!=s.to&&(i=j(t?a:E(a),s.to),1==e))return i}return r&&{from:r,to:i}},$s.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&pr(r,function(){var i=t.line,o=E(t.line),a=Gt(r,o);if(a&&(en(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!ge(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=jt(n)-s;l&&N(i,i.height+l)}xt(r,"markerChanged",r,e)})},$s.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=d(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},$s.prototype.detachLine=function(e){if(this.lines.splice(d(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ee($s);var Ps=function(e,t){var n=this;this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=n};Ps.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)e.markers[t].clear();xt(this,"clear")}},Ps.prototype.find=function(e,t){return this.primary.find(e,t)},Ee(Ps);var js=0,Ds=function(e,t,n,r,i){if(!(this instanceof Ds))return new Ds(e,t,n,r,i);null==n&&(n=0),Bi.call(this,[new Wi([new vs("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=j(n,0);this.sel=zr(o),this.history=new ti(null),this.id=++js,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Xr(this,{from:o,to:o,text:e}),xi(this,zr(o),Ua)};Ds.prototype=b(Bi.prototype,{constructor:Ds,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,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=A(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:gr(function(e){var t=j(this.first,0),n=this.first+this.size-1;Ei(this,{from:t,to:j(n,M(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Yn(this.cm,0,0),xi(this,zr(t),Ua)}),replaceRange:function(e,t,n,r){t=W(this,t),n=n?W(this,n):t,Fi(this,e,t,n,r)},getRange:function(e,t,n){var r=T(this,W(this,e),W(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if($(this,e))return M(this,e)},getLineNumber:function(e){return E(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=M(this,e)),de(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return W(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:gr(function(e,t,n){yi(this,W(this,"number"==typeof e?j(e,t||0):e),null,n)}),setSelection:gr(function(e,t,n){yi(this,W(this,e),W(this,t||e),n)}),extendSelection:gr(function(e,t,n){vi(this,W(this,e),t&&W(this,t),n)}),extendSelections:gr(function(e,t){mi(this,V(this,e),t)}),extendSelectionsBy:gr(function(e,t){mi(this,V(this,m(this.sel.ranges,e)),t)}),setSelections:gr(function(e,t,n){var r=this;if(e.length){for(var i=[],o=0;o<e.length;o++)i[o]=new Ns(W(r,e[o].anchor),W(r,e[o].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),xi(this,Rr(i,t),n)}}),addSelection:gr(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Ns(W(this,e),W(this,t||e))),xi(this,Rr(r,r.length-1),n)}),getSelection:function(e){for(var t,n=this,r=this.sel.ranges,i=0;i<r.length;i++){var o=T(n,r[i].from(),r[i].to());t=t?t.concat(o):o}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=this,n=[],r=this.sel.ranges,i=0;i<r.length;i++){var o=T(t,r[i].from(),r[i].to());!1!==e&&(o=o.join(e||t.lineSeparator())),n[i]=o}return n},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:gr(function(e,t,n){for(var r=this,i=[],o=this.sel,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}}for(var l=t&&"end"!=t&&qr(this,i,t),u=i.length-1;u>=0;u--)Ei(r,i[u]);l?wi(this,l):this.cm&&Kn(this.cm)}),undo:gr(function(){$i(this,"undo")}),redo:gr(function(){$i(this,"redo")}),undoSelection:gr(function(){$i(this,"undo",!0)}),redoSelection:gr(function(){$i(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new ti(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:hi(this.history.done),undone:hi(this.history.undone)}},setHistory:function(e){var t=this.history=new ti(this.history.maxGeneration);t.done=hi(e.done.slice(0),null,!0),t.undone=hi(e.undone.slice(0),null,!0)},setGutterMarker:gr(function(e,t,n){return zi(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&k(r)&&(e.gutterMarkers=null),!0})}),clearGutter:gr(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&zi(t,n,"gutter",function(){return n.gutterMarkers[e]=null,k(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!$(this,e))return null;if(t=e,!(e=M(this,e)))return null}else if(null==(t=E(e)))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:gr(function(t,n,r){return zi(this,t,"gutter"==n?"gutter":"class",function(t){var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass";if(t[i]){if(e(r).test(t[i]))return!1;t[i]+=" "+r}else t[i]=r;return!0})}),removeLineClass:gr(function(t,n,r){return zi(this,t,"gutter"==n?"gutter":"class",function(t){var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass",o=t[i];if(!o)return!1;if(null==r)t[i]=null;else{var a=o.match(e(r));if(!a)return!1;var s=a.index+a[0].length;t[i]=o.slice(0,a.index)+(a.index&&s!=o.length?" ":"")+o.slice(s)||null}return!0})}),addLineWidget:gr(function(e,t,n){return Ui(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return qi(this,W(this,e),W(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=W(this,e),qi(this,e,e,n,"bookmark")},findMarksAt:function(e){e=W(this,e);var t=[],n=M(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=W(this,e),t=W(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),W(this,j(n,t))},indexFromPos:function(e){e=W(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Ds(A(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Ds(A(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Yi(r,Ki(this)),r},unlinkDoc:function(e){var t=this;if(e instanceof Ko&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var r=t.linked[n];if(r.doc==e){t.linked.splice(n,1),e.unlinkDoc(t),Xi(Ki(t));break}}if(e.history==this.history){var i=[e.id];Jr(e,function(e){return i.push(e.id)},!0),e.history=new ti(null),e.history.done=hi(this.history.done,i),e.history.undone=hi(this.history.undone,i)}},iterLinkedDocs:function(e){Jr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):is(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:gr(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&ei(this.cm))})}),Ds.prototype.eachLine=Ds.prototype.iter;for(var Fs=0,Is=!1,Hs={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"},Rs=0;Rs<10;Rs++)Hs[Rs+48]=Hs[Rs+96]=String(Rs);for(var zs=65;zs<=90;zs++)Hs[zs]=String.fromCharCode(zs);for(var Ws=1;Ws<=12;Ws++)Hs[Ws+111]=Hs[Ws+63235]="F"+Ws;var Bs={};Bs.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"},Bs.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"},Bs.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"},Bs.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"]},Bs.default=Ea?Bs.macDefault:Bs.pcDefault;var Vs={selectAll:Ai,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ua)},killLine:function(e){return ho(e,function(t){if(t.empty()){var n=M(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:j(t.head.line+1,0)}:{from:t.head,to:j(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return ho(e,function(t){return{from:j(t.from().line,0),to:W(e.doc,j(t.to().line+1,0))}})},delLineLeft:function(e){return ho(e,function(e){return{from:j(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return ho(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return ho(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},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(j(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(j(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return yo(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return wo(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return bo(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},Ga)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},Ga)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?wo(e,t.head):r},Ga)},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){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=f(e.getLine(o.line),o.ch,r);t.push(p(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return pr(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=M(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new j(i.line,i.ch-1)),i.ch>0)i=new j(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),j(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=M(e.doc,i.line-1).text;a&&(i=new j(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),j(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ns(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return pr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Kn(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}},Us=new Ra,qs=null,Gs=function(e,t,n){this.time=e,this.pos=t,this.button=n};Gs.prototype.compare=function(e,t,n){return this.time+400>e&&0==D(t,this.pos)&&n==this.button};var Ks,Ys,Xs={toString:function(){return"CodeMirror.Init"}},Js={},Zs={};Ko.defaults=Js,Ko.optionHandlers=Zs;var Qs=[];Ko.defineInitHook=function(e){return Qs.push(e)};var el=null,tl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ra,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};tl.prototype.init=function(e){function t(e){if(!Te(i,e)){if(i.somethingSelected())Jo({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=ta(i);Jo({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,Ua),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=el.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=ra(),s=a.firstChild;i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),s.value=el.text.join("\n");var l=document.activeElement;Ha(s),setTimeout(function(){i.display.lineSpace.removeChild(a),l.focus(),l==o&&r.showPrimarySelection()},50)}}var n=this,r=this,i=r.cm,o=r.div=e.lineDiv;na(o,i.options.spellcheck),ns(o,"paste",function(e){Te(i,e)||Qo(e,i)||wa<=11&&setTimeout(vr(i,function(){return n.updateFromDOM()}),20)}),ns(o,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),ns(o,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),ns(o,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),ns(o,"touchstart",function(){return r.forceCompositionEnd()}),ns(o,"input",function(){n.composing||n.readFromDOMSoon()}),ns(o,"copy",t),ns(o,"cut",t)},tl.prototype.prepareSelection=function(){var e=An(this.cm,!1);return e.focus=this.cm.state.focused,e},tl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},tl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom)return void e.removeAllRanges();var o=ca(t,e.anchorNode,e.anchorOffset),a=ca(t,e.focusNode,e.focusOffset);if(!o||o.bad||!a||a.bad||0!=D(R(o,a),r)||0!=D(H(o,a),i)){var s=t.display.view,l=r.line>=t.display.viewFrom&&aa(t,r)||{node:s[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&aa(t,i);if(!u){var c=s[s.length-1].measure,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)return void e.removeAllRanges();var d,h=e.rangeCount&&e.getRangeAt(0);try{d=ja(l.node,l.offset,u.offset,u.node)}catch(e){}d&&(!va&&t.state.focused?(e.collapse(l.node,l.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),h&&null==e.anchorNode?e.addRange(h):va&&this.startGracePeriod()),this.rememberSelection()}},tl.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},tl.prototype.showMultipleSelections=function(e){n(this.cm.display.cursorDiv,e.cursors),n(this.cm.display.selectionDiv,e.selection)},tl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},tl.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return o(this.div,t)},tl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},tl.prototype.blur=function(){this.div.blur()},tl.prototype.getField=function(){return this.div},tl.prototype.supportsTouch=function(){return!0},tl.prototype.receivedFocus=function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():pr(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},tl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},tl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(Aa&&Ca&&this.cm.options.gutters.length&&sa(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=ca(t,e.anchorNode,e.anchorOffset),r=ca(t,e.focusNode,e.focusOffset);n&&r&&pr(t,function(){xi(t.doc,zr(n,r),Ua),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},tl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),i=n.to();if(0==r.ch&&r.line>e.firstLine()&&(r=j(r.line-1,M(e.doc,r.line-1).length)),i.ch==M(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=j(i.line+1,0)),r.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,a,s;r.line==t.viewFrom||0==(o=Mn(e,r.line))?(a=E(t.view[0].line),s=t.view[0].node):(a=E(t.view[o].line),s=t.view[o-1].node.nextSibling);var l,u,c=Mn(e,i.line);if(c==t.view.length-1?(l=t.viewTo-1,u=t.lineDiv.lastChild):(l=E(t.view[c+1].line)-1,u=t.view[c+1].node.previousSibling),!s)return!1;for(var f=e.doc.splitLines(ua(e,s,u,a,l)),d=T(e.doc,j(a,0),j(l,M(e.doc,l).text.length));f.length>1&&d.length>1;)if(v(f)==v(d))f.pop(),d.pop(),l--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),a++}for(var h=0,p=0,m=f[0],g=d[0],y=Math.min(m.length,g.length);h<y&&m.charCodeAt(h)==g.charCodeAt(h);)++h;for(var b=v(f),w=v(d),x=Math.min(b.length-(1==f.length?h:0),w.length-(1==d.length?h:0));p<x&&b.charCodeAt(b.length-p-1)==w.charCodeAt(w.length-p-1);)++p;if(1==f.length&&1==d.length&&a==r.line)for(;h&&h>r.ch&&b.charCodeAt(b.length-p-1)==w.charCodeAt(w.length-p-1);)h--,p++;f[f.length-1]=b.slice(0,b.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(h).replace(/\u200b+$/,"");var k=j(a,h),C=j(l,d.length?v(d).length-p:0);return f.length>1||f[0]||D(k,C)?(Fi(e.doc,f,k,C,"+input"),!0):void 0},tl.prototype.ensurePolled=function(){this.forceCompositionEnd()},tl.prototype.reset=function(){this.forceCompositionEnd()},tl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},tl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||pr(this.cm,function(){return yr(e.cm)})},tl.prototype.setUneditable=function(e){e.contentEditable="false"},tl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||vr(this.cm,Zo)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},tl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},tl.prototype.onContextMenu=function(){},tl.prototype.resetPosition=function(){},tl.prototype.needsContentAttribute=!0;var nl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ra,this.hasSelection=!1,this.composing=null};nl.prototype.init=function(e){function t(e){if(!Te(i,e)){if(i.somethingSelected())Jo({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=ta(i);Jo({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Ua):(r.prevInput="",o.value=t.text.join("\n"),Ha(o))}"cut"==e.type&&(i.state.cutIncoming=!0)}}var n=this,r=this,i=this.cm;this.createField(e);var o=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Ta&&(o.style.width="0px"),ns(o,"input",function(){ba&&wa>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),ns(o,"paste",function(e){Te(i,e)||Qo(e,i)||(i.state.pasteIncoming=!0,r.fastPoll())}),ns(o,"cut",t),ns(o,"copy",t),ns(e.scroller,"paste",function(t){Dt(e,t)||Te(i,t)||(i.state.pasteIncoming=!0,r.focus())}),ns(e.lineSpace,"selectstart",function(t){Dt(e,t)||Le(t)}),ns(o,"compositionstart",function(){var e=i.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),ns(o,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},nl.prototype.createField=function(e){this.wrapper=ra(),this.textarea=this.wrapper.firstChild},nl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=An(e);if(e.options.moveInputWithCursor){var i=cn(e,n.sel.primary().head,"div"),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},nl.prototype.showSelection=function(e){var t=this.cm,r=t.display;n(r.cursorDiv,e.cursors),n(r.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},nl.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&Ha(this.textarea),ba&&wa>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",ba&&wa>=9&&(this.hasSelection=null))}},nl.prototype.getField=function(){return this.textarea},nl.prototype.supportsTouch=function(){return!1},nl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!Na||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},nl.prototype.blur=function(){this.textarea.blur()},nl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},nl.prototype.receivedFocus=function(){this.slowPoll()},nl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},nl.prototype.fastPoll=function(){function e(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},nl.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||os(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(ba&&wa>=9&&this.hasSelection===i||Ea&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(r.length,i.length);a<s&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return pr(t,function(){Zo(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},nl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},nl.prototype.onKeyPress=function(){ba&&wa>=9&&(this.hasSelection=null),this.fastPoll()},nl.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=i.somethingSelected(),t=""+(e?a.value:"");a.value="⇚",a.value=t,r.prevInput=e?"":"",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=c,a.style.cssText=u,ba&&wa<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=l),null!=a.selectionStart){(!ba||ba&&wa<9)&&t();var e=0,n=function(){o.selForContextMenu==i.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&""==r.prevInput?vr(i,Ai)(i):e++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var r=this,i=r.cm,o=i.display,a=r.textarea,s=On(i,e),l=o.scroller.scrollTop;if(s&&!_a){i.options.resetSelectionOnContextMenu&&-1==i.doc.sel.contains(s)&&vr(i,xi)(i.doc,zr(s),Ua);var u=a.style.cssText,c=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var f=r.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(ba?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var d;if(xa&&(d=window.scrollY),o.input.focus(),xa&&window.scrollTo(null,d),o.input.reset(),i.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),ba&&wa>=9&&t(),Fa){je(e);var h=function(){Oe(window,"mouseup",h),setTimeout(n,20)};ns(window,"mouseup",h)}else setTimeout(n,50)}},nl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},nl.prototype.setUneditable=function(){},nl.prototype.needsContentAttribute=!1,function(e){function t(t,r,i,o){e.defaults[t]=r,i&&(n[t]=o?function(e,t,n){n!=Xs&&i(e,t,n)}:i)}var n=e.optionHandlers;e.defineOption=t,e.Init=Xs,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Gr(e)},!0),t("indentUnit",2,Gr,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){Kr(e),nn(e),yr(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(j(r,o))}r++});for(var i=n.length-1;i>=0;i--)Fi(e.doc,t,n[i],j(n[i].line,n[i].ch+t.length))}}),t("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"),n!=Xs&&e.refresh()}),t("specialCharPlaceholder",ct,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",Na?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!$a),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){Vo(e),Uo(e)},!0),t("keyMap","default",function(e,t,n){var r=fo(t),i=n!=Xs&&fo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Go,!0),t("gutters",[],function(e){Dr(e.options),Uo(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Cn(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return rr(e)},!0),t("scrollbarStyle","native",function(e){or(e),rr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Dr(e.options),Uo(e)},!0),t("firstLineNumber",1,Uo,!0),t("lineNumberFormatter",function(e){return e},Uo,!0),t("showCursorWhenSelecting",!1,Tn,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("readOnly",!1,function(e,t){"nocursor"==t&&(Fn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,qo),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,Tn,!0),t("singleCursorHeightPerLine",!0,Tn,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,Kr,!0),t("addModeClass",!1,Kr,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,Kr,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(Ko),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&vr(this,t[e])(this,n,i),Me(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"](fo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:mr(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");g(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,yr(this)}),removeOverlay:mr(function(e){for(var t=this,n=this.state.overlays,r=0;r<n.length;++r){var i=n[r].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return n.splice(r,1),t.state.modeGen++,void yr(t)}}),indentLine:mr(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),$(this.doc,e)&&Xo(this,e,t,n)}),indentSelection:mr(function(e){for(var t=this,n=this.doc.sel.ranges,r=-1,i=0;i<n.length;i++){var o=n[i];if(o.empty())o.head.line>r&&(Xo(t,o.head.line,e,!0),r=o.head.line,i==t.doc.sel.primIndex&&Kn(t));else{var a=o.from(),s=o.to(),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)Xo(t,u,e);var c=t.doc.sel.ranges;0==a.ch&&n.length==c.length&&c[i].from().ch>0&&gi(t.doc,i,new Ns(a,c[i].to()),Ua)}}}),getTokenAt:function(e,t){return tt(this,e,t)},getLineTokens:function(e,t){return tt(this,j(e),t,!0)},getTokenTypeAt:function(e){e=W(this.doc,e);var t,n=Xe(this,M(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=this,i=[];if(!n.hasOwnProperty(t))return i;var o=n[t],a=this.getModeAt(e);if("string"==typeof a[t])o[a[t]]&&i.push(o[a[t]]);else if(a[t])for(var s=0;s<a[t].length;s++){var l=o[a[t][s]];l&&i.push(l)}else a.helperType&&o[a.helperType]?i.push(o[a.helperType]):o[a.name]&&i.push(o[a.name]);for(var u=0;u<o._global.length;u++){var c=o._global[u];c.pred(a,r)&&-1==d(i,c.val)&&i.push(c.val)}return i},getStateAfter:function(e,t){var n=this.doc;return e=z(n,null==e?n.first+n.size-1:e),Je(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?W(this.doc,e):e?r.from():r.to(),cn(this,n,t||"page")},charCoords:function(e,t){return un(this,W(this.doc,e),t||"page")},coordsChar:function(e,t){return e=ln(this,e,t||"page"),hn(this,e.left,e.top)},lineAtHeight:function(e,t){return e=ln(this,{top:e,left:0},t||"page").top,L(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=M(this.doc,e)}else r=e;return sn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-be(r):0)},defaultTextHeight:function(){return wn(this.display)},defaultCharWidth:function(){return xn(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=cn(this,W(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&Un(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:mr(Mo),triggerOnKeyPress:mr(No),triggerOnKeyUp:Ao,triggerOnMouseDown:mr(Lo),execCommand:function(e){if(Vs.hasOwnProperty(e))return Vs[e].call(null,this)},triggerElectric:mr(function(e){ea(this,e)}),findPosH:function(e,t,n,r){var i=this,o=1;t<0&&(o=-1,t=-t);for(var a=W(this.doc,e),s=0;s<t&&(a=ia(i.doc,a,o,n,r),!a.hitSide);++s);return a},moveH:mr(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?ia(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},Ga)}),deleteH:mr(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):ho(this,function(n){var i=ia(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=this,o=1,a=r;t<0&&(o=-1,t=-t);for(var s=W(this.doc,e),l=0;l<t;++l){var u=cn(i,s,"div");if(null==a?a=u.left:u.left=a,s=oa(i,u,o,n),s.hitSide)break}return s},moveV:mr(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var s=cn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=oa(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Gn(n,un(n,l,"div").top-s.top),l},Ga),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=this.doc,n=M(t,e.line).text,r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=n.length||!r?++i:--r;for(var a=n.charAt(r),s=x(a,o)?function(e){return x(e,o)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!x(e)};r>0&&s(n.charAt(r-1));)--r;for(;i<n.length&&s(n.charAt(i));)++i}return new Ns(j(e.line,r),j(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?s(this.display.cursorDiv,"CodeMirror-overwrite"):Ia(this.display.cursorDiv,"CodeMirror-overwrite"),Me(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==a()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:mr(function(e,t){Yn(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Rt(this)-this.display.barHeight,width:e.scrollWidth-Rt(this)-this.display.barWidth,clientHeight:Wt(this),clientWidth:zt(this)}},scrollIntoView:mr(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:j(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?Xn(this,e):Zn(this,e.from,e.to,e.margin)}),setSize:mr(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&tn(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){br(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,Me(this,"refresh",this)}),operation:function(e){return pr(this,e)},startOperation:function(){return ar(this)},endOperation:function(){return sr(this)},refresh:mr(function(){var e=this.display.cachedTextHeight;yr(this),this.curOp.forceUpdate=!0,nn(this),Yn(this,this.doc.scrollLeft,this.doc.scrollTop),$r(this),(null==e||Math.abs(e-wn(this.display))>.5)&&Sn(this),Me(this,"refresh",this)}),swapDoc:mr(function(e){var t=this.doc;return t.cm=null,Zr(this,e),nn(this),this.display.input.reset(),Yn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,xt(this,"swapDoc",this,t),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}},Ee(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Ko);var rl="iter insert remove copy getEditor constructor".split(" ");for(var il in Ds.prototype)Ds.prototype.hasOwnProperty(il)&&d(rl,il)<0&&(Ko.prototype[il]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ds.prototype[il]));return Ee(Ds),Ko.inputStyles={textarea:nl,contenteditable:tl},Ko.defineMode=function(e){Ko.defaults.mode||"null"==e||(Ko.defaults.mode=e),ze.apply(this,arguments)},Ko.defineMIME=We,Ko.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ko.defineMIME("text/plain","null"),Ko.defineExtension=function(e,t){Ko.prototype[e]=t},Ko.defineDocExtension=function(e,t){Ds.prototype[e]=t},Ko.fromTextArea=da,function(e){e.off=Oe,e.on=ns,e.wheelEventPixels=Ir,e.Doc=Ds,e.splitLines=is,e.countColumn=f,e.findColumn=h,e.isWordChar=w,e.Pass=Va,e.signal=Me,e.Line=vs,e.changeEnd=Wr,e.scrollbarModel=_s,e.Pos=j,e.cmpPos=D,e.modes=ls,e.mimeModes=us,e.resolveMode=Be,e.getMode=Ve,e.modeExtensions=cs,e.extendMode=Ue,e.copyState=qe,e.startState=Ke,e.innerMode=Ge,e.commands=Vs,e.keyMap=Bs,e.keyName=co,e.isModifierKey=lo,e.lookupKey=so,e.normalizeKeyMap=ao,e.StringStream=fs,e.SharedTextMarker=Ps,e.TextMarker=$s,e.LineWidget=Es,e.e_preventDefault=Le,e.e_stopPropagation=$e,e.e_stop=je,e.addClass=s,e.contains=o,e.rmClass=Ia,e.keyNames=Hs}(Ko),Ko.version="5.38.0",Ko})},function(e,t,n){function r(e,t){return(s(e)?i:o)(e,a(t))}var i=n(91),o=n(20),a=n(181),s=n(4);e.exports=r},function(e,t,n){var r=n(62),i=n(180),o=i(r);e.exports=o},function(e,t,n){function r(e){return null==e?void 0===e?l:s:u&&u in Object(e)?o(e):a(e)}var i=n(28),o=n(175),a=n(176),s="[object Null]",l="[object Undefined]",u=i?i.toStringTag:void 0;e.exports=r},function(e,t,n){function r(e,t){var n=o(e,t);return i(n)?n:void 0}var i=n(213),o=n(216);e.exports=r},function(e,t,n){function r(e,t,n,r){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=r?r(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):i(n,u,c)}return n}var i=n(53),o=n(29);e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}e.exports=n},function(e,t,n){var r=n(121),i=n(261),o=r(i);e.exports=o},function(e,t,n){function r(e,t){return(s(e)?i:a)(e,o(t,3))}var i=n(24),o=n(9),a=n(123),s=n(4);e.exports=r},function(e,t){e.exports=UIkit.util},function(e,t,n){var r=n(12),i=r.Symbol;e.exports=i},function(e,t,n){function r(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var i=n(99);e.exports=r},function(e,t,n){function r(e,t){return i(e)?e:o(e,t)?[e]:a(s(e))}var i=n(4),o=n(77),a=n(252),s=n(42);e.exports=r},function(e,t,n){function r(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}var i=n(41),o=1/0;e.exports=r},function(e,t,n){function r(e,t,n){function r(t){var n=y,r=b;return y=b=void 0,_=t,x=e.apply(r,n)}function c(e){return _=e,k=setTimeout(h,t),S?r(e):x}function f(e){var n=e-C,r=e-_,i=t-n;return O?u(i,w-r):i}function d(e){var n=e-C,r=e-_;return void 0===C||n>=t||n<0||O&&r>=w}function h(){var e=o();if(d(e))return p(e);k=setTimeout(h,f(e))}function p(e){return k=void 0,M&&y?r(e):(y=b=void 0,x)}function v(){void 0!==k&&clearTimeout(k),_=0,y=C=b=k=void 0}function m(){return void 0===k?x:p(o())}function g(){var e=o(),n=d(e);if(y=arguments,b=this,C=e,n){if(void 0===k)return c(C);if(O)return k=setTimeout(h,t),r(C)}return void 0===k&&(k=setTimeout(h,t)),x}var y,b,w,x,k,C,_=0,S=!1,O=!1,M=!0;if("function"!=typeof e)throw new TypeError(s);return t=a(t)||0,i(n)&&(S=!!n.leading,O="maxWait"in n,w=O?l(a(n.maxWait)||0,t):w,M="trailing"in n?!!n.trailing:M),g.cancel=v,g.flush=m,g}var i=n(7),o=n(285),a=n(122),s="Expected a function",l=Math.max,u=Math.min;e.exports=r},function(e,t,n){function r(e,t){return(s(e)?i:o)(e,a(t,3))}var i=n(115),o=n(317),a=n(9),s=n(4);e.exports=r},function(e,t,n){var r=n(174),i=n(14),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,n){(function(e){var r=n(12),i=n(177),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||i;e.exports=c}).call(t,n(64)(e))},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){var r=n(247),i=n(67),o=n(248),a=n(117),s=n(249),l=n(21),u=n(97),c=u(r),f=u(i),d=u(o),h=u(a),p=u(s),v=l;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=v(new i)||o&&"[object Promise]"!=v(o.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){function r(e){return"symbol"==typeof e||o(e)&&i(e)==a}var i=n(21),o=n(14),a="[object Symbol]";e.exports=r},function(e,t,n){function r(e){return null==e?"":i(e)}var i=n(58);e.exports=r},function(e,t,n){function r(e){var t=i(e),n=t%1;return t===t?n?t-n:t:0}var i=n(262);e.exports=r},function(e,t){function n(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&i.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,i=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t,n){var r=n(178),i=n(36),o=n(66),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){function r(e){if(!o(e))return!1;var t=i(e);return t==s||t==l||t==a||t==u}var i=n(21),o=n(7),a="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",u="[object Proxy]";e.exports=r},function(e,t,n){function r(e){return"string"==typeof e||!o(e)&&a(e)&&i(e)==s}var i=n(21),o=n(4),a=n(14),s="[object String]";e.exports=r},function(e,t,n){function r(e){var t=this.__data__=new i(e);this.size=t.size}var i=n(49),o=n(208),a=n(209),s=n(210),l=n(211),u=n(212);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=l,r.prototype.set=u,e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(203),o=n(204),a=n(205),s=n(206),l=n(207);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=l,e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}var i=n(39);e.exports=r},function(e,t,n){var r=n(22),i=r(Object,"create");e.exports=i},function(e,t,n){function r(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}var i=n(225);e.exports=r},function(e,t,n){function r(e,t,n){var r=e[t];s.call(e,t)&&o(r,n)&&(void 0!==n||t in e)||i(e,t,n)}var i=n(29),o=n(39),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){return a(e)?i(e,!0):o(e)}var i=n(93),o=n(232),a=n(15);e.exports=r},function(e,t,n){function r(e,t){return a(o(e,t,i),e+"")}var i=n(38),o=n(108),a=n(109);e.exports=r},function(e,t,n){function r(e,t,n){if(!s(n))return!1;var r=typeof t;return!!("number"==r?o(n)&&a(t,n.length):"string"==r&&t in n)&&i(n[t],e)}var i=n(39),o=n(15),a=n(44),s=n(7);e.exports=r},function(e,t,n){function r(e,t){t=i(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[o(t[n++])];return n&&n==r?e:void 0}var i=n(30),o=n(31);e.exports=r},function(e,t,n){function r(e){if("string"==typeof e)return e;if(a(e))return o(e,r)+"";if(s(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}var i=n(28),o=n(24),a=n(4),s=n(41),l=1/0,u=i?i.prototype:void 0,c=u?u.toString:void 0;e.exports=r},function(e,t,n){function r(e,t,n){return t===t?a(e,t,n):i(e,o,n)}var i=n(78),o=n(320),a=n(321);e.exports=r},function(e,t,n){function r(e,t){var n={};return t=a(t,3),o(e,function(e,r,o){i(n,r,t(e,r,o))}),n}var i=n(29),o=n(62),a=n(9);e.exports=r},function(e,t,n){function r(e,t,n,a,s){var l=-1,u=e.length;for(n||(n=o),s||(s=[]);++l<u;){var c=e[l];t>0&&n(c)?t>1?r(c,t-1,n,a,s):i(s,c):a||(s[s.length]=c)}return s}var i=n(75),o=n(331);e.exports=r},function(e,t,n){function r(e,t){return e&&i(e,t,o)}var i=n(92),o=n(13);e.exports=r},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=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(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t,n){(function(e){var r=n(94),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l}).call(t,n(64)(e))},function(e,t,n){var r=n(22),i=n(12),o=r(i,"Map");e.exports=o},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(217),o=n(224),a=n(226),s=n(227),l=n(228);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=l,e.exports=r},function(e,t,n){function r(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}var i=n(102);e.exports=r},function(e,t,n){var r=n(96),i=r(Object.getPrototypeOf,Object);e.exports=i},function(e,t,n){function r(e){return o(e)&&i(e)}var i=n(15),o=n(14);e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}var i=n(68),o=n(242),a=n(243);r.prototype.add=r.prototype.push=o,r.prototype.has=a,e.exports=r},function(e,t){function n(e,t){return e.has(t)}e.exports=n},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}e.exports=n},function(e,t,n){var r=n(115),i=n(116),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return a.call(e,t)}))}:i;e.exports=l},function(e,t,n){function r(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(s.test(e)||!a.test(e)||null!=t&&e in Object(t))}var i=n(4),o=n(41),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=r},function(e,t){function n(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}e.exports=n},function(e,t,n){function r(e){if(null==e)return!0;if(l(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||f(e)||a(e)))return!e.length;var t=o(e);if(t==d||t==h)return!e.size;if(c(e))return!i(e).length;for(var n in e)if(v.call(e,n))return!1;return!0}var i=n(95),o=n(40),a=n(34),s=n(4),l=n(15),u=n(35),c=n(37),f=n(45),d="[object Map]",h="[object Set]",p=Object.prototype,v=p.hasOwnProperty;e.exports=r},function(e,t,n){var r,i,o={};r=n(274),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-color.vue: named exports in *.vue files are ignored."),i=n(276),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}function n(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.defineMode("css",function(t,n){function r(e,t){return p=t,e}function i(e,t){var n=e.next();if(g[n]){var i=g[n](e,t);if(!1!==i)return i}return"@"==n?(e.eatWhile(/[\w\\\-]/),r("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?r(null,"compare"):'"'==n||"'"==n?(t.tokenize=o(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),r("atom","hash")):"!"==n?(e.match(/^\s*\w*/),r("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),r("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?r(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?r("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?r(null,n):("u"==n||"U"==n)&&e.match(/rl(-prefix)?\(/i)||("d"==n||"D"==n)&&e.match("omain(",!0,!0)||("r"==n||"R"==n)&&e.match("egexp(",!0,!0)?(e.backUp(1),t.tokenize=a,r("property","word")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),r("property","word")):r(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),r("number","unit")):e.match(/^-[\w\\\-]+/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?r("variable-2","variable-definition"):r("variable-2","variable")):e.match(/^\w+-/)?r("meta","meta"):void 0}function o(e){return function(t,n){for(var i,o=!1;null!=(i=t.next());){if(i==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==i}return(i==e||!o&&")"!=e)&&(n.tokenize=null),r("string","string")}}function a(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=o(")"),r(null,"(")}function s(e,t,n){this.type=e,this.indent=t,this.prev=n}function l(e,t,n,r){return e.context=new s(n,t.indentation()+(!1===r?0:m),e.context),n}function u(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function c(e,t,n){return E[n.context.type](e,t,n)}function f(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return c(e,t,n)}function d(e){var t=e.current().toLowerCase();v=M.hasOwnProperty(t)?"atom":O.hasOwnProperty(t)?"keyword":"variable"}var h=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var p,v,m=t.indentUnit,g=n.tokenHooks,y=n.documentTypes||{},b=n.mediaTypes||{},w=n.mediaFeatures||{},x=n.mediaValueKeywords||{},k=n.propertyKeywords||{},C=n.nonStandardPropertyKeywords||{},_=n.fontProperties||{},S=n.counterDescriptors||{},O=n.colorKeywords||{},M=n.valueKeywords||{},T=n.allowNested,A=n.lineComment,N=!0===n.supportsAtComponent,E={};return E.top=function(e,t,n){if("{"==e)return l(n,t,"block");if("}"==e&&n.context.prev)return u(n);if(N&&/@component/i.test(e))return l(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return l(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return l(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return l(n,t,"at");if("hash"==e)v="builtin";else if("word"==e)v="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return l(n,t,"interpolation");if(":"==e)return"pseudo";if(T&&"("==e)return l(n,t,"parens")}return n.context.type},E.block=function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return k.hasOwnProperty(r)?(v="property","maybeprop"):C.hasOwnProperty(r)?(v="string-2","maybeprop"):T?(v=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(v+=" error","maybeprop")}return"meta"==e?"block":T||"hash"!=e&&"qualifier"!=e?E.top(e,t,n):(v="error","block")},E.maybeprop=function(e,t,n){return":"==e?l(n,t,"prop"):c(e,t,n)},E.prop=function(e,t,n){if(";"==e)return u(n);if("{"==e&&T)return l(n,t,"propBlock");if("}"==e||"{"==e)return f(e,t,n);if("("==e)return l(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)d(t);else if("interpolation"==e)return l(n,t,"interpolation")}else v+=" error";return"prop"},E.propBlock=function(e,t,n){return"}"==e?u(n):"word"==e?(v="property","maybeprop"):n.context.type},E.parens=function(e,t,n){return"{"==e||"}"==e?f(e,t,n):")"==e?u(n):"("==e?l(n,t,"parens"):"interpolation"==e?l(n,t,"interpolation"):("word"==e&&d(t),"parens")},E.pseudo=function(e,t,n){return"meta"==e?"pseudo":"word"==e?(v="variable-3",n.context.type):c(e,t,n)},E.documentTypes=function(e,t,n){return"word"==e&&y.hasOwnProperty(t.current())?(v="tag",n.context.type):E.atBlock(e,t,n)},E.atBlock=function(e,t,n){if("("==e)return l(n,t,"atBlock_parens");if("}"==e||";"==e)return f(e,t,n);if("{"==e)return u(n)&&l(n,t,T?"block":"top");if("interpolation"==e)return l(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();v="only"==r||"not"==r||"and"==r||"or"==r?"keyword":b.hasOwnProperty(r)?"attribute":w.hasOwnProperty(r)?"property":x.hasOwnProperty(r)?"keyword":k.hasOwnProperty(r)?"property":C.hasOwnProperty(r)?"string-2":M.hasOwnProperty(r)?"atom":O.hasOwnProperty(r)?"keyword":"error"}return n.context.type},E.atComponentBlock=function(e,t,n){return"}"==e?f(e,t,n):"{"==e?u(n)&&l(n,t,T?"block":"top",!1):("word"==e&&(v="error"),n.context.type)},E.atBlock_parens=function(e,t,n){return")"==e?u(n):"{"==e||"}"==e?f(e,t,n,2):E.atBlock(e,t,n)},E.restricted_atBlock_before=function(e,t,n){return"{"==e?l(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(v="variable","restricted_atBlock_before"):c(e,t,n)},E.restricted_atBlock=function(e,t,n){return"}"==e?(n.stateArg=null,u(n)):"word"==e?(v="@font-face"==n.stateArg&&!_.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!S.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},E.keyframes=function(e,t,n){return"word"==e?(v="variable","keyframes"):"{"==e?l(n,t,"top"):c(e,t,n)},E.at=function(e,t,n){return";"==e?u(n):"{"==e||"}"==e?f(e,t,n):("word"==e?v="tag":"hash"==e&&(v="builtin"),"at")},E.interpolation=function(e,t,n){return"}"==e?u(n):"{"==e||";"==e?f(e,t,n):("word"==e?v="variable":"variable"!=e&&"("!=e&&")"!=e&&(v="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:h?"block":"top",stateArg:null,context:new s(h?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||i)(e,t);return n&&"object"==typeof n&&(p=n[1],n=n[0]),v=n,"comment"!=p&&(t.state=E[t.state](p,e,t)),v},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-m)):(n=n.prev,i=n.indent)),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:A,fold:"brace"}});var r=["domain","regexp","url","url-prefix"],i=t(r),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],a=t(o),s=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],l=t(s),u=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],c=t(u),f=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=t(f),h=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],p=t(h),v=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],m=t(v),g=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],y=t(g),b=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],w=t(b),x=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],k=t(x),C=r.concat(o).concat(s).concat(u).concat(f).concat(h).concat(b).concat(x);e.registerHelper("hintWords","css",C),e.defineMIME("text/css",{documentTypes:i,mediaTypes:a,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:m,counterDescriptors:y,colorKeywords:w,valueKeywords:k,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=n,n(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:a,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:w,valueKeywords:k,fontProperties:m,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=n,n(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:a,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:w,valueKeywords:k,fontProperties:m,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=n,n(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:i,mediaTypes:a,mediaFeatures:l,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:m,counterDescriptors:y,colorKeywords:w,valueKeywords:k,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=n,n(e,t))}},name:"css",helperType:"gss"})})},function(e,t,n){function r(e,t,n){var r=-1,f=o,d=e.length,h=!0,p=[],v=p;if(n)h=!1,f=a;else if(d>=c){var m=t?null:l(e);if(m)return u(m);h=!1,f=s,v=new i}else v=t?[]:p;e:for(;++r<d;){var g=e[r],y=t?t(g):g;if(g=n||0!==g?g:0,h&&y===y){for(var b=v.length;b--;)if(v[b]===y)continue e;t&&v.push(y),p.push(g)}else f(v,y,n)||(v!==p&&v.push(y),p.push(g))}return p}var i=n(72),o=n(129),a=n(130),s=n(73),l=n(322),u=n(74),c=200;e.exports=r},function(e,t,n){function r(e,t,n){var r=l(e)?i:s,u=arguments.length<3;return r(e,a(t,4),n,u,o)}var i=n(324),o=n(20),a=n(9),s=n(325),l=n(4);e.exports=r},function(e,t,n){function r(e,t,n){return e=s(e),n=null==n?0:i(a(n),0,e.length),t=o(t),e.slice(n,n+t.length)==t}var i=n(133),o=n(58),a=n(43),s=n(42);e.exports=r},function(e,t,n){var r=n(61),i=n(332),o=n(55),a=n(56),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},function(e,t,n){var r=n(29),i=n(134),o=Object.prototype,a=o.hasOwnProperty,s=i(function(e,t,n){a.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=s},function(e,t,n){function r(e){return i(e,a,o)}var i=n(114),o=n(138),a=n(54);e.exports=r},function(e,t,n){var r=n(24),i=n(370),o=n(384),a=n(30),s=n(23),l=n(386),u=n(144),c=n(87),f=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var f=t.length;f--;)o(n,t[f]);return n});e.exports=f},function(e,t,n){"use strict";function r(e,t){return r.gen(e||a,t||o)}function i(e){return Math.floor(Math.random()*e)}var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",a=8;r.gen=function(e,t){for(var n="",r=t.length-1;e;)e-=1,n+=t.charAt(i(r));return n},e.exports=r},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){v&&h&&(v=!1,h.length?p=h.concat(p):m=-1,p.length&&s())}function s(){if(!v){var e=i(a);v=!0;for(var t=p.length;t;){for(h=p,p=[];++m<t;)h&&h[m].run();m=-1,t=p.length}h=null,v=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function u(){}var c,f,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var h,p=[],v=!1,m=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new l(e,t)),1!==p.length||v||i(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=u,d.addListener=u,d.once=u,d.off=u,d.removeListener=u,d.removeAllListeners=u,d.emit=u,d.prependListener=u,d.prependOnceListener=u,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}e.exports=n},function(e,t,n){var r=n(172),i=r();e.exports=i},function(e,t,n){function r(e,t){var n=a(e),r=!n&&o(e),c=!n&&!r&&s(e),d=!n&&!r&&!c&&u(e),h=n||r||c||d,p=h?i(e.length,String):[],v=p.length;for(var m in e)!t&&!f.call(e,m)||h&&("length"==m||c&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||l(m,v))||p.push(m);return p}var i=n(173),o=n(34),a=n(4),s=n(35),l=n(44),u=n(45),c=Object.prototype,f=c.hasOwnProperty;e.exports=r},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(63))},function(e,t,n){function r(e){if(!i(e))return o(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var i=n(37),o=n(179),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t){function n(e){if(null!=e){try{return i.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,i=r.toString;e.exports=n},function(e,t,n){function r(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||i(e,t,n)}var i=n(29),o=n(39);e.exports=r},function(e,t,n){var r=n(22),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){(function(e){function r(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}var i=n(12),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?i.Buffer:void 0,u=l?l.allocUnsafe:void 0;e.exports=r}).call(t,n(64)(e))},function(e,t,n){function r(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var i=n(69);e.exports=r},function(e,t,n){var r=n(12),i=r.Uint8Array;e.exports=i},function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=n},function(e,t,n){function r(e){return"function"!=typeof e.constructor||a(e)?{}:i(o(e))}var i=n(230),o=n(70),a=n(37);e.exports=r},function(e,t,n){function r(e){if(!a(e)||i(e)!=s)return!1;var t=o(e);if(null===t)return!0;var n=f.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}var i=n(21),o=n(70),a=n(14),s="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=c.call(Object);e.exports=r},function(e,t){function n(e,t){return"__proto__"==t?void 0:e[t]}e.exports=n},function(e,t,n){function r(e){return i(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}var i=n(55),o=n(56);e.exports=r},function(e,t,n){function r(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=o(r.length-t,0),l=Array(s);++a<s;)l[a]=r[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=r[a];return u[t]=n(l),i(e,this,u)}}var i=n(234),o=Math.max;e.exports=r},function(e,t,n){var r=n(235),i=n(237),o=i(r);e.exports=o},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e.exports=n},function(e,t,n){function r(e,t,n,a,s){return e===t||(null==e||null==t||!o(e)&&!o(t)?e!==e&&t!==t:i(e,t,n,a,r,s))}var i=n(241),o=n(14);e.exports=r},function(e,t,n){function r(e,t,n,r,u,c){var f=n&s,d=e.length,h=t.length;if(d!=h&&!(f&&h>d))return!1;var p=c.get(e);if(p&&c.get(t))return p==t;var v=-1,m=!0,g=n&l?new i:void 0;for(c.set(e,t),c.set(t,e);++v<d;){var y=e[v],b=t[v];if(r)var w=f?r(b,y,v,t,e,c):r(y,b,v,e,t,c);if(void 0!==w){if(w)continue;m=!1;break}if(g){if(!o(t,function(e,t){if(!a(g,t)&&(y===e||u(y,e,n,r,c)))return g.push(t)})){m=!1;break}}else if(y!==b&&!u(y,b,n,r,c)){m=!1;break}}return c.delete(e),c.delete(t),m}var i=n(72),o=n(110),a=n(73),s=1,l=2;e.exports=r},function(e,t,n){function r(e){return i(e,a,o)}var i=n(114),o=n(76),a=n(13);e.exports=r},function(e,t,n){function r(e,t,n){var r=t(e);return o(e)?r:i(r,n(e))}var i=n(75),o=n(4);e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}e.exports=n},function(e,t){function n(){return[]}e.exports=n},function(e,t,n){var r=n(22),i=n(12),o=r(i,"Set");e.exports=o},function(e,t,n){function r(e){return e===e&&!i(e)}var i=n(7);e.exports=r},function(e,t){function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=n},function(e,t,n){function r(e,t){return null!=e&&o(e,t,i)}var i=n(255),o=n(256);e.exports=r},function(e,t,n){function r(e){return function(t,n,r){var s=Object(t);if(!o(t)){var l=i(n,3);t=a(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,r);return u>-1?s[l?t[u]:u]:void 0}}var i=n(9),o=n(15),a=n(13);e.exports=r},function(e,t,n){function r(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=u.test(e);return n||c.test(e)?f(e.slice(2),n?2:8):l.test(e)?a:+e}var i=n(7),o=n(41),a=NaN,s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;e.exports=r},function(e,t,n){function r(e,t){var n=-1,r=o(e)?Array(e.length):[];return i(e,function(e,i,o){r[++n]=t(e,i,o)}),r}var i=n(20),o=n(15);e.exports=r},function(e,t){e.exports=[{name:"System Fonts",fonts:[{name:"Default System Font",value:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},{name:"Consolas/Monaco",value:"Consolas, monaco, monospace"},{name:"Georgia",value:'Georgia, "Times New Roman", Times, serif'},{name:"Helvetica/Arial",value:'"Helvetica Neue", Helvetica, Arial, sans-serif'},{name:"Lucida",value:'"Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif'},{name:"Times New Roman",value:'"Times New Roman", Times, serif'},{name:"Trebuchet",value:'"Trebuchet MS", Verdana, sans-serif'},{name:"Verdana",value:"Verdana, Geneva, sans-serif"},{name:"Inherit",value:"inherit"}]},{name:"Google Fonts",fonts:["ABeeZee","Abel","Abhaya Libre","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiko","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo","Archivo Black","Archivo Narrow","Aref Ruqaa","Arima Madurai","Arimo","Arizonia","Armata","Arsenal","Artifika","Arvo","Arya","Asap","Asap Condensed","Asar","Asset","Assistant","Astloch","Asul","Athiti","Atma","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Bahiana","Baloo","Baloo Bhai","Baloo Bhaijaan","Baloo Bhaina","Baloo Chettan","Baloo Da","Baloo Paaji","Baloo Tamma","Baloo Tammudu","Baloo Thambi","Balthazar","Bangers","Barlow","Barlow Condensed","Barlow Semi Condensed","Barrio","Basic","Battambang","Baumans","Bayon","Belgrano","Bellefair","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","BioRhyme","BioRhyme Expanded","Biryani","Bitter","Black And White Picture","Black Han Sans","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Bungee","Bungee Hairline","Bungee Inline","Bungee Outline","Bungee Shade","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Cairo","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa","Changa One","Chango","Chathura","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Coiny","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Cormorant","Cormorant Garamond","Cormorant Infant","Cormorant SC","Cormorant Unicase","Cormorant Upright","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cute Font","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","David Libre","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Do Hyeon","Dokdo","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Duru Sans","Dynalight","EB Garamond","Eagle Lake","East Sea Dokdo","Eater","Economica","Eczar","El Messiri","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Encode Sans","Encode Sans Condensed","Encode Sans Expanded","Encode Sans Semi Condensed","Encode Sans Semi Expanded","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fanwood Text","Farsan","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Faustina","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Mono","Fira Sans","Fira Sans Condensed","Fira Sans Extra Condensed","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Frank Ruhl Libre","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","GFS Didot","GFS Neohellenic","Gabriela","Gaegu","Gafata","Galada","Galdeano","Galindo","Gamja Flower","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","Gidugu","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Gothic A1","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Gugi","Gurajada","Habibi","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Harmattan","Headland One","Heebo","Henny Penny","Herr Von Muellerhoff","Hi Melody","Hind","Hind Guntur","Hind Madurai","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IBM Plex Mono","IBM Plex Sans","IBM Plex Sans Condensed","IBM Plex Serif","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iceberg","Iceland","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","Jim Nightshade","Jockey One","Jolly Lodger","Jomhuria","Josefin Sans","Josefin Slab","Joti One","Jua","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kadwa","Kalam","Kameron","Kanit","Kantumruy","Karla","Karma","Katibeh","Kaushan Script","Kavivanar","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kirang Haerang","Kite One","Knewave","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Kumar One","Kumar One Outline","Kurale","La Belle Aurore","Laila","Lakki Reddy","Lalezar","Lancelot","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Lemonada","Libre Barcode 128","Libre Barcode 128 Text","Libre Barcode 39","Libre Barcode 39 Extended","Libre Barcode 39 Extended Text","Libre Barcode 39 Text","Libre Baskerville","Libre Franklin","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Mada","Magra","Maiden Orange","Maitree","Mako","Mallanna","Mandali","Manuale","Marcellus","Marcellus SC","Marck Script","Margarine","Markazi Text","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Meera Inimai","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Mina","Miniver","Miriam Libre","Mirza","Miss Fajardose","Mitr","Modak","Modern Antiqua","Mogra","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Mukta","Mukta Mahee","Mukta Malar","Mukta Vaani","Muli","Mystery Quest","NTR","Nanum Brush Script","Nanum Gothic","Nanum Gothic Coding","Nanum Myeongjo","Nanum Pen Script","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Nokora","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Nunito Sans","Odor Mean Chey","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Overpass","Overpass Mono","Ovo","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Padauk","Palanquin","Palanquin Dark","Pangolin","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Pattaya","Patua One","Pavanam","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poor Story","Poppins","Port Lligat Sans","Port Lligat Slab","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Pridi","Princess Sofia","Prociono","Prompt","Prosto One","Proza Libre","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Rakkas","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Ranchers","Rancho","Ranga","Rasa","Rationale","Ravi Prakash","Redressed","Reem Kufi","Reenie Beanie","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rozha One","Rubik","Rubik Mono One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sahitya","Sail","Saira","Saira Condensed","Saira Extra Condensed","Saira Semi Condensed","Salsa","Sanchez","Sancreek","Sansita","Sarala","Sarina","Sarpanch","Satisfy","Scada","Scheherazade","Schoolbell","Scope One","Seaweed Script","Secular One","Sedgwick Ave","Sedgwick Ave Display","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Shrikhand","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Song Myung","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Space Mono","Special Elite","Spectral","Spectral SC","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Sriracha","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Stylish","Sue Ellen Francisco","Suez One","Sumana","Sunflower","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Tajawal","Tangerine","Taprom","Tauri","Taviraj","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Trade Winds","Trirong","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","VT323","Vampiro One","Varela","Varela Round","Vast Shadow","Vesper Libre","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Vollkorn SC","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Work Sans","Yanone Kaffeesatz","Yantramanav","Yatra One","Yellowtail","Yeon Sung","Yeseva One","Yesteryear","Yrsa","Zeyada","Zilla Slab","Zilla Slab Highlight"]}]},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";e.defineMode("javascript",function(t,n){function r(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function i(e,t,n){return Ie=e,He=n,t}function o(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=a(n),t.tokenize(e,t);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return i("number","number");if("."==n&&e.match(".."))return i("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return i(n);if("="==n&&e.eat(">"))return i("=>","operator");if("0"==n&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return i("number","number");if(/\d/.test(n))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),i("number","number");if("/"==n)return e.eat("*")?(t.tokenize=s,s(e,t)):e.eat("/")?(e.skipToEnd(),i("comment","comment")):Fe(e,t,1)?(r(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),i("regexp","string-2")):(e.eat("="),i("operator","operator",e.current()));if("`"==n)return t.tokenize=l,l(e,t);if("#"==n)return e.skipToEnd(),i("error","error");if(Ge.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),i("operator","operator",e.current());if(Ue.test(n)){e.eatWhile(Ue);var o=e.current();if("."!=t.lastType){if(qe.propertyIsEnumerable(o)){var u=qe[o];return i(u.type,u.style,o)}if("async"==o&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return i("async","keyword",o)}return i("variable","variable",o)}}function a(e){return function(t,n){var r,a=!1;if(We&&"@"==t.peek()&&t.match(Ke))return n.tokenize=o,i("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||a);)a=!a&&"\\"==r;return a||(n.tokenize=o),i("string","string")}}function s(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=o;break}r="*"==n}return i("comment","comment")}function l(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=o;break}r=!r&&"\\"==n}return i("quasi","string-2",e.current())}function u(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(Ve){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=Ye.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(Ue.test(s))o=!0;else{if(/["'\/]/.test(s))return;if(o&&!i){++a;break}}}o&&!i&&(t.fatArrowAt=a)}}function c(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function f(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==t)return!0}function d(e,t,n,r,i){var o=e.cc;for(Je.state=e,Je.stream=i,Je.marked=null,Je.cc=o,Je.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((o.length?o.pop():Be?A:M)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return Je.marked?Je.marked:"variable"==n&&f(e,r)?"variable-2":t}}}function h(){for(var e=arguments.length-1;e>=0;e--)Je.cc.push(arguments[e])}function p(){return h.apply(null,arguments),!0}function v(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function m(e){var t=Je.state;if(Je.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=g(e,t.context);if(null!=r)return void(t.context=r)}else if(!v(e,t.localVars))return void(t.localVars=new w(e,t.localVars));n.globalVars&&!v(e,t.globalVars)&&(t.globalVars=new w(e,t.globalVars))}function g(e,t){if(t){if(t.block){var n=g(e,t.prev);return n?n==t.prev?t:new b(n,t.vars,!0):null}return v(e,t.vars)?t:new b(t.prev,new w(e,t.vars),!1)}return null}function y(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function b(e,t,n){this.prev=e,this.vars=t,this.block=n}function w(e,t){this.name=e,this.next=t}function x(){Je.state.context=new b(Je.state.context,Je.state.localVars,!1),Je.state.localVars=Ze}function k(){Je.state.context=new b(Je.state.context,Je.state.localVars,!0),Je.state.localVars=null}function C(){Je.state.localVars=Je.state.context.vars,Je.state.context=Je.state.context.prev}function _(e,t){var n=function(){var n=Je.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new c(r,Je.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function S(){var e=Je.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function O(e){function t(n){return n==e?p():";"==e?h():p(t)}return t}function M(e,t){return"var"==e?p(_("vardef",t),le,O(";"),S):"keyword a"==e?p(_("form"),E,M,S):"keyword b"==e?p(_("form"),M,S):"keyword d"==e?Je.stream.match(/^\s*$/,!1)?p():p(_("stat"),$,O(";"),S):"debugger"==e?p(O(";")):"{"==e?p(_("}"),k,X,S,C):";"==e?p():"if"==e?("else"==Je.state.lexical.info&&Je.state.cc[Je.state.cc.length-1]==S&&Je.state.cc.pop()(),p(_("form"),E,M,S,he)):"function"==e?p(be):"for"==e?p(_("form"),pe,M,S):"class"==e||Ve&&"interface"==t?(Je.marked="keyword",p(_("form"),ke,S)):"variable"==e?Ve&&"declare"==t?(Je.marked="keyword",p(M)):Ve&&("module"==t||"enum"==t||"type"==t)&&Je.stream.match(/^\s*\w/,!1)?(Je.marked="keyword","enum"==t?p(Pe):"type"==t?p(ee,O("operator"),ee,O(";")):p(_("form"),ue,O("{"),_("}"),X,S,S)):Ve&&"namespace"==t?(Je.marked="keyword",p(_("form"),A,X,S)):Ve&&"abstract"==t?(Je.marked="keyword",p(M)):p(_("stat"),B):"switch"==e?p(_("form"),E,O("{"),_("}","switch"),k,X,S,S,C):"case"==e?p(A,O(":")):"default"==e?p(O(":")):"catch"==e?p(_("form"),x,T,M,S,C):"export"==e?p(_("stat"),Oe,S):"import"==e?p(_("stat"),Te,S):"async"==e?p(M):"@"==t?p(A,M):h(_("stat"),A,O(";"),S)}function T(e){if("("==e)return p(we,O(")"))}function A(e,t){return L(e,t,!1)}function N(e,t){return L(e,t,!0)}function E(e){return"("!=e?h():p(_(")"),A,O(")"),S)}function L(e,t,n){if(Je.state.fatArrowAt==Je.stream.start){var r=n?H:I;if("("==e)return p(x,_(")"),K(we,")"),S,O("=>"),r,C);if("variable"==e)return h(x,ue,O("=>"),r,C)}var i=n?j:P;return Xe.hasOwnProperty(e)?p(i):"function"==e?p(be,i):"class"==e||Ve&&"interface"==t?(Je.marked="keyword",p(_("form"),xe,S)):"keyword c"==e||"async"==e?p(n?N:A):"("==e?p(_(")"),$,O(")"),S,i):"operator"==e||"spread"==e?p(n?N:A):"["==e?p(_("]"),$e,S,i):"{"==e?Y(U,"}",null,i):"quasi"==e?h(D,i):"new"==e?p(R(n)):"import"==e?p(A):p()}function $(e){return e.match(/[;\}\)\],]/)?h():h(A)}function P(e,t){return","==e?p(A):j(e,t,!1)}function j(e,t,n){var r=0==n?P:j,i=0==n?A:N;return"=>"==e?p(x,n?H:I,C):"operator"==e?/\+\+|--/.test(t)||Ve&&"!"==t?p(r):Ve&&"<"==t&&Je.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?p(_(">"),K(ee,">"),S,r):"?"==t?p(A,O(":"),i):p(i):"quasi"==e?h(D,r):";"!=e?"("==e?Y(N,")","call",r):"."==e?p(V,r):"["==e?p(_("]"),$,O("]"),S,r):Ve&&"as"==t?(Je.marked="keyword",p(ee,r)):"regexp"==e?(Je.state.lastType=Je.marked="operator",Je.stream.backUp(Je.stream.pos-Je.stream.start-1),p(i)):void 0:void 0}function D(e,t){return"quasi"!=e?h():"${"!=t.slice(t.length-2)?p(D):p(A,F)}function F(e){if("}"==e)return Je.marked="string-2",Je.state.tokenize=l,p(D)}function I(e){return u(Je.stream,Je.state),h("{"==e?M:A)}function H(e){return u(Je.stream,Je.state),h("{"==e?M:N)}function R(e){return function(t){return"."==t?p(e?W:z):"variable"==t&&Ve?p(oe,e?j:P):h(e?N:A)}}function z(e,t){if("target"==t)return Je.marked="keyword",p(P)}function W(e,t){if("target"==t)return Je.marked="keyword",p(j)}function B(e){return":"==e?p(S,M):h(P,O(";"),S)}function V(e){if("variable"==e)return Je.marked="property",p()}function U(e,t){if("async"==e)return Je.marked="property",p(U);if("variable"==e||"keyword"==Je.style){if(Je.marked="property","get"==t||"set"==t)return p(q);var n;return Ve&&Je.state.fatArrowAt==Je.stream.start&&(n=Je.stream.match(/^\s*:\s*/,!1))&&(Je.state.fatArrowAt=Je.stream.pos+n[0].length),p(G)}return"number"==e||"string"==e?(Je.marked=We?"property":Je.style+" property",p(G)):"jsonld-keyword"==e?p(G):Ve&&y(t)?(Je.marked="keyword",p(U)):"["==e?p(A,J,O("]"),G):"spread"==e?p(N,G):"*"==t?(Je.marked="keyword",p(U)):":"==e?h(G):void 0}function q(e){return"variable"!=e?h(G):(Je.marked="property",p(be))}function G(e){return":"==e?p(N):"("==e?h(be):void 0}function K(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=Je.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),p(function(n,r){return n==t||r==t?h():h(e)},r)}return i==t||o==t?p():p(O(t))}return function(n,i){return n==t||i==t?p():h(e,r)}}function Y(e,t,n){for(var r=3;r<arguments.length;r++)Je.cc.push(arguments[r]);return p(_(t,n),K(e,t),S)}function X(e){return"}"==e?p():h(M,X)}function J(e,t){if(Ve){if(":"==e)return p(ee);if("?"==t)return p(J)}}function Z(e){if(Ve&&":"==e)return Je.stream.match(/^\s*\w+\s+is\b/,!1)?p(A,Q,ee):p(ee)}function Q(e,t){if("is"==t)return Je.marked="keyword",p()}function ee(e,t){return"keyof"==t||"typeof"==t?(Je.marked="keyword",p("keyof"==t?ee:N)):"variable"==e||"void"==t?(Je.marked="type",p(ie)):"string"==e||"number"==e||"atom"==e?p(ie):"["==e?p(_("]"),K(ee,"]",","),S,ie):"{"==e?p(_("}"),K(ne,"}",",;"),S,ie):"("==e?p(K(re,")"),te):"<"==e?p(K(ee,">"),ee):void 0}function te(e){if("=>"==e)return p(ee)}function ne(e,t){return"variable"==e||"keyword"==Je.style?(Je.marked="property",p(ne)):"?"==t?p(ne):":"==e?p(ee):"["==e?p(A,J,O("]"),ne):void 0}function re(e,t){return"variable"==e&&Je.stream.match(/^\s*[?:]/,!1)||"?"==t?p(re):":"==e?p(ee):h(ee)}function ie(e,t){return"<"==t?p(_(">"),K(ee,">"),S,ie):"|"==t||"."==e||"&"==t?p(ee):"["==e?p(O("]"),ie):"extends"==t||"implements"==t?(Je.marked="keyword",p(ee)):void 0}function oe(e,t){if("<"==t)return p(_(">"),K(ee,">"),S,ie)}function ae(){return h(ee,se)}function se(e,t){if("="==t)return p(ee)}function le(e,t){return"enum"==t?(Je.marked="keyword",p(Pe)):h(ue,J,fe,de)}function ue(e,t){return Ve&&y(t)?(Je.marked="keyword",p(ue)):"variable"==e?(m(t),p()):"spread"==e?p(ue):"["==e?Y(ue,"]"):"{"==e?Y(ce,"}"):void 0}function ce(e,t){return"variable"!=e||Je.stream.match(/^\s*:/,!1)?("variable"==e&&(Je.marked="property"),"spread"==e?p(ue):"}"==e?h():p(O(":"),ue,fe)):(m(t),p(fe))}function fe(e,t){if("="==t)return p(N)}function de(e){if(","==e)return p(le)}function he(e,t){if("keyword b"==e&&"else"==t)return p(_("form","else"),M,S)}function pe(e,t){return"await"==t?p(pe):"("==e?p(_(")"),ve,O(")"),S):void 0}function ve(e){return"var"==e?p(le,O(";"),ge):";"==e?p(ge):"variable"==e?p(me):h(A,O(";"),ge)}function me(e,t){return"in"==t||"of"==t?(Je.marked="keyword",p(A)):p(P,ge)}function ge(e,t){return";"==e?p(ye):"in"==t||"of"==t?(Je.marked="keyword",p(A)):h(A,O(";"),ye)}function ye(e){")"!=e&&p(A)}function be(e,t){return"*"==t?(Je.marked="keyword",p(be)):"variable"==e?(m(t),p(be)):"("==e?p(x,_(")"),K(we,")"),S,Z,M,C):Ve&&"<"==t?p(_(">"),K(ae,">"),S,be):void 0}function we(e,t){return"@"==t&&p(A,we),"spread"==e?p(we):Ve&&y(t)?(Je.marked="keyword",p(we)):h(ue,J,fe)}function xe(e,t){return"variable"==e?ke(e,t):Ce(e,t)}function ke(e,t){if("variable"==e)return m(t),p(Ce)}function Ce(e,t){return"<"==t?p(_(">"),K(ae,">"),S,Ce):"extends"==t||"implements"==t||Ve&&","==e?("implements"==t&&(Je.marked="keyword"),p(Ve?ee:A,Ce)):"{"==e?p(_("}"),_e,S):void 0}function _e(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||Ve&&y(t))&&Je.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Je.marked="keyword",p(_e)):"variable"==e||"keyword"==Je.style?(Je.marked="property",p(Ve?Se:be,_e)):"["==e?p(A,J,O("]"),Ve?Se:be,_e):"*"==t?(Je.marked="keyword",p(_e)):";"==e?p(_e):"}"==e?p():"@"==t?p(A,_e):void 0}function Se(e,t){return"?"==t?p(Se):":"==e?p(ee,fe):"="==t?p(N):h(be)}function Oe(e,t){return"*"==t?(Je.marked="keyword",p(Le,O(";"))):"default"==t?(Je.marked="keyword",p(A,O(";"))):"{"==e?p(K(Me,"}"),Le,O(";")):h(M)}function Me(e,t){return"as"==t?(Je.marked="keyword",p(O("variable"))):"variable"==e?h(N,Me):void 0}function Te(e){return"string"==e?p():"("==e?h(A):h(Ae,Ne,Le)}function Ae(e,t){return"{"==e?Y(Ae,"}"):("variable"==e&&m(t),"*"==t&&(Je.marked="keyword"),p(Ee))}function Ne(e){if(","==e)return p(Ae,Ne)}function Ee(e,t){if("as"==t)return Je.marked="keyword",p(Ae)}function Le(e,t){if("from"==t)return Je.marked="keyword",p(A)}function $e(e){return"]"==e?p():h(K(N,"]"))}function Pe(){return h(_("form"),ue,O("{"),_("}"),K(je,"}"),S,S)}function je(){return h(ue,fe)}function De(e,t){return"operator"==e.lastType||","==e.lastType||Ge.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function Fe(e,t,n){return t.tokenize==o&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}var Ie,He,Re=t.indentUnit,ze=n.statementIndent,We=n.jsonld,Be=n.json||We,Ve=n.typescript,Ue=n.wordCharacters||/[\w$\xa1-\uffff]/,qe=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),Ge=/[+\-*&%=<>!?|~^@]/,Ke=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Ye="([{}])",Xe={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Je={state:null,column:null,marked:null,cc:null},Ze=new w("this",new w("arguments",null));return C.lex=!0,S.lex=!0,{startState:function(e){var t={tokenize:o,lastType:"sof",cc:[],lexical:new c((e||0)-Re,0,"block",!1),localVars:n.localVars,context:n.localVars&&new b(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),u(e,t)),t.tokenize!=s&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==Ie?n:(t.lastType="operator"!=Ie||"++"!=He&&"--"!=He?Ie:"incdec",d(t,n,Ie,He,e))},indent:function(t,r){if(t.tokenize==s)return e.Pass;if(t.tokenize!=o)return 0;var i,a=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==S)l=l.prev;else if(c!=he)break}for(;("stat"==l.type||"form"==l.type)&&("}"==a||(i=t.cc[t.cc.length-1])&&(i==P||i==j)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;ze&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var f=l.type,d=a==f;return"vardef"==f?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==f&&"{"==a?l.indented:"form"==f?l.indented+Re:"stat"==f?l.indented+(De(t,r)?ze||Re:0):"switch"!=l.info||d||0==n.doubleIndentSwitch?l.align?l.column+(d?0:1):l.indented+(d?0:Re):l.indented+(/^(?:case|default)\b/.test(r)?Re:2*Re)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Be?null:"/*",blockCommentEnd:Be?null:"*/",blockCommentContinue:Be?null:" * ",lineComment:Be?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Be?"json":"javascript",jsonldMode:We,jsonMode:Be,expressionAllowed:Fe,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=A&&t!=N||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,i){function o(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();if("<"==r)return e.eat("!")?e.eat("[")?e.match("CDATA[")?n(l("atom","]]>")):null:e.match("--")?n(l("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(u(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=l("meta","?>"),"meta"):(O=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==r){var i;return i=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),i?"atom":"error"}return e.eatWhile(/[^&<]/),null}function a(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=o,O=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return O="equals",null;if("<"==n){t.tokenize=o,t.state=h,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=s(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function l(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=o;break}n.next()}return e}}function u(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=u(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=o;break}return n.tokenize=u(e-1),n.tokenize(t,n)}}return"meta"}}function c(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(C.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function f(e){e.context&&(e.context=e.context.prev)}function d(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!C.contextGrabbers.hasOwnProperty(n)||!C.contextGrabbers[n].hasOwnProperty(t))return;f(e)}}function h(e,t,n){return"openTag"==e?(n.tagStart=t.column(),p):"closeTag"==e?v:h}function p(e,t,n){return"word"==e?(n.tagName=t.current(),M="tag",y):C.allowMissingTagName&&"endTag"==e?(M="tag bracket",y(e,t,n)):(M="error",p)}function v(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&C.implicitlyClosed.hasOwnProperty(n.context.tagName)&&f(n),n.context&&n.context.tagName==r||!1===C.matchClosing?(M="tag",m):(M="tag error",g)}return C.allowMissingTagName&&"endTag"==e?(M="tag bracket",m(e,t,n)):(M="error",g)}function m(e,t,n){return"endTag"!=e?(M="error",m):(f(n),h)}function g(e,t,n){return M="error",m(e,t,n)}function y(e,t,n){if("word"==e)return M="attribute",b;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||C.autoSelfClosers.hasOwnProperty(r)?d(n,r):(d(n,r),n.context=new c(n,r,i==n.indented)),h}return M="error",y}function b(e,t,n){return"equals"==e?w:(C.allowMissing||(M="error"),y(e,t,n))}function w(e,t,n){return"string"==e?x:"word"==e&&C.allowUnquoted?(M="string",y):(M="error",y(e,t,n))}function x(e,t,n){return"string"==e?x:y(e,t,n)}var k=r.indentUnit,C={},_=i.htmlMode?t:n;for(var S in _)C[S]=_[S];for(var S in i)C[S]=i[S];var O,M;return o.isInText=!0,{startState:function(e){var t={tokenize:o,state:h,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;O=null;var n=t.tokenize(e,t);return(n||O)&&"comment"!=n&&(M=null,t.state=t.state(O||n,e,t),M&&(n="error"==M?n+" error":M)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+k;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=o)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==C.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+k*(C.multilineTagIndentFactor||1);if(C.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var s=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(s&&s[1])for(;i;){if(i.tagName==s[2]){i=i.prev;break}if(!C.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(s)for(;i;){var l=C.contextGrabbers[i.tagName];if(!l||!l.hasOwnProperty(s[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+k:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:C.htmlMode?"html":"xml",helperType:C.htmlMode?"html":"xml",skipAttribute:function(e){e.state==w&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";function t(t,r){var i=r&&r.schemaInfo,o=r&&r.quoteChar||'"';if(i){var a=t.getCursor(),s=t.getTokenAt(a);s.end>a.ch&&(s.end=a.ch,s.string=s.string.slice(0,a.ch-s.start));var l=e.innerMode(t.getMode(),s.state);if("xml"==l.mode.name){var u,c,f=[],d=!1,h=/\btag\b/.test(s.type)&&!/>$/.test(s.string),p=h&&/^\w/.test(s.string);if(p){var v=t.getLine(a.line).slice(Math.max(0,s.start-2),s.start),m=/<\/$/.test(v)?"close":/<$/.test(v)?"open":null;m&&(c=s.start-("close"==m?2:1))}else h&&"<"==s.string?m="open":h&&"</"==s.string&&(m="close");if(!h&&!l.state.tagName||m){p&&(u=s.string),d=m;var g=l.state.context,y=g&&i[g.tagName],b=g?y&&y.children:i["!top"];if(b&&"close"!=m)for(var w=0;w<b.length;++w)u&&0!=b[w].lastIndexOf(u,0)||f.push("<"+b[w]);else if("close"!=m)for(var x in i)!i.hasOwnProperty(x)||"!top"==x||"!attrs"==x||u&&0!=x.lastIndexOf(u,0)||f.push("<"+x);g&&(!u||"close"==m&&0==g.tagName.lastIndexOf(u,0))&&f.push("</"+g.tagName+">")}else{var y=i[l.state.tagName],k=y&&y.attrs,C=i["!attrs"];if(!k&&!C)return;if(k){if(C){var _={};for(var S in C)C.hasOwnProperty(S)&&(_[S]=C[S]);for(var S in k)k.hasOwnProperty(S)&&(_[S]=k[S]);k=_}}else k=C;if("string"==s.type||"="==s.string){var O,v=t.getRange(n(a.line,Math.max(0,a.ch-60)),n(a.line,"string"==s.type?s.start:s.end)),M=v.match(/([^\s\u00a0=<>\"\']+)=$/);if(!M||!k.hasOwnProperty(M[1])||!(O=k[M[1]]))return;if("function"==typeof O&&(O=O.call(this,t)),"string"==s.type){u=s.string;var T=0;/['"]/.test(s.string.charAt(0))&&(o=s.string.charAt(0),u=s.string.slice(1),T++);var A=s.string.length;/['"]/.test(s.string.charAt(A-1))&&(o=s.string.charAt(A-1),u=s.string.substr(T,A-2)),d=!0}for(var w=0;w<O.length;++w)u&&0!=O[w].lastIndexOf(u,0)||f.push(o+O[w]+o)}else{"attribute"==s.type&&(u=s.string,d=!0);for(var N in k)!k.hasOwnProperty(N)||u&&0!=N.lastIndexOf(u,0)||f.push(N)}}return{list:f,from:d?n(a.line,null==c?s.start:c):a,to:d?n(a.line,s.end):a}}}}var n=e.Pos;e.registerHelper("hint","xml",t)})},,function(e,t,n){function r(e,t){return!!(null==e?0:e.length)&&i(e,t,0)>-1}var i=n(59);e.exports=r},function(e,t){function n(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}e.exports=n},function(e,t,n){function r(e,t,n){var r=s(e)?i:o;return n&&l(e,t,n)&&(t=void 0),r(e,a(t,3))}var i=n(326),o=n(327),a=n(9),s=n(4),l=n(56);e.exports=r},,function(e,t){function n(e,t,n){return e===e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}e.exports=n},function(e,t,n){function r(e,t){return function(n,r){var l=s(n)?i:o,u=t?t():{};return l(n,e,a(r,2),u)}}var i=n(336),o=n(337),a=n(9),s=n(4);e.exports=r},,function(e,t,n){function r(e,t){if(null==e)return{};var n=i(s(e),function(e){return[e]});return t=o(t),a(e,n,function(e,n){return t(e,n[0])})}var i=n(24),o=n(9),a=n(137),s=n(87);e.exports=r},function(e,t,n){function r(e,t,n){for(var r=-1,s=t.length,l={};++r<s;){var u=t[r],c=i(e,u);n(c,u)&&o(l,a(u,e),c)}return l}var i=n(57),o=n(343),a=n(30);e.exports=r},function(e,t,n){var r=n(75),i=n(70),o=n(76),a=n(116),s=Object.getOwnPropertySymbols,l=s?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=l},function(e,t,n){function r(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:i(e,t,n)}var i=n(140);e.exports=r},function(e,t){function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}e.exports=n},function(e,t,n){function r(e){return o(e)?a(e):i(e)}var i=n(355),o=n(142),a=n(356);e.exports=r},function(e,t){function n(e){return r.test(e)}var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=n},function(e,t,n){var r=n(366),i=n(144),o=i(function(e,t){return null==e?{}:r(e,t)});e.exports=o},function(e,t,n){function r(e){return a(o(e,void 0,i),e+"")}var i=n(367),o=n(108),a=n(109);e.exports=r},,,function(e,t){function n(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=r(i),a=n(2),s=r(a),l=n(3),u=r(l),c=n(523),f=r(c),d=n(524),h=r(d);t.default={ref:"$app",name:"customizer",data:function(){return(0,o.default)({ignore:[]},window.$customizer)},create:function(e){return new(u.default.extend(this))(e)},created:function(){var e={flat:"max",minimal:"fuse",material:"horizon"},t=e[this.config.style];t&&(this.config.style=t),(0,o.default)(u.default.url.options.params,{$api:this.api,$theme:this.base,$assets:this.base+"/vendor/yootheme/theme/assets",$platforms:this.base+"/vendor/yootheme/theme/platforms",$builder:this.base+"/vendor/yootheme/theme/builder"}),this.$new("Builder"),this.$new("Images")},methods:{replaceImage:function(e,t){var n,r,i=/#.*thumbnail=([^&]+)/g.exec(t.src);if(i){if(r=decodeURIComponent(i[1]).split(","),n=(0,s.default)('<canvas class="uk-background-cover"></canvas>').css({"background-image":"url("+t.src+")"}).attr({width:r[0],height:r[1]}).addClass(t.getAttribute("class")),!r[0]||!r[1]){n.css("visibility","hidden");var o=new Image;o.onload=function(){var e=o.width/o.height;r[0]||r[1]||(r[0]=o.width,r[1]=o.height),r[0]||(r[0]=r[1]*e),r[1]||(r[1]=r[0]/e),n.attr({width:r[0],height:r[1]}).css("visibility","")},o.src=t.src}(0,s.default)(t).replaceWith(n)}}},events:{setField:function(e,t,n){n===this.config&&-1===this.ignore.indexOf(e)&&this.$trigger("loadPreview")},readyPreview:function(e,t){(0,s.default)('img[src*="thumbnail="]',t.document.body).each(this.replaceImage)}},components:{Builder:f.default,Images:h.default}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){for(;e.$parent;){if(t===e)return!0;e=e.$parent}return!1}Object.defineProperty(t,"__esModule",{value:!0});var o=n(88),a=r(o),s=n(2),l=r(s);t.default={name:"panel",props:["name","config","propValues"],data:function(){return{index:0,transitionIndex:!1}},created:function(){this.$options.components=(0,a.default)(this.$app.$options.components,"sidebar")},computed:{title:function(){return this.config.title},width:function(){return(this.config.width||parseInt(this.$parent.width,10))+"px"},parent:function(){return"panel"===this.$parent.$options.name&&this.$parent},values:function(){return this.propValues||this.parent&&this.parent.values}},watch:{index:function(e,t){var n=this;this.transitionIndex=t,(0,l.default)(this.$el).one("transitionend",function(){return n.transitionIndex=!1})}},methods:{contains:function(e){return i(e,this)},isVisible:function(e){return e===this.index||e===this.transitionIndex}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=r(i),a=n(7),s=r(a),l=n(2),u=r(l);t.default={ref:"$sidebar",name:"sidebar",data:function(){return{stack:[]}},computed:{panel:function(){return this.stack.length?this.stack[this.stack.length-1]:null},section:function(){return this.stack.length?this.stack[0].name:null}},methods:{openPanel:function(e,t,n){this.panel&&e===this.panel.name||this.$trigger("openPanel",[e,t,n])},closePanel:function(){if(!(this.single&&this.stack.length<=1)&&this.panel){var e={close:!0};this.$trigger("closePanel",[e,this.panel]),e.close&&this.popPanel()}},pushPanel:function(e,t,n){"string"==typeof e&&(e=this.$new("panel",{el:document.createElement("div"),parent:this.panel,propsData:{name:e,config:t,propValues:n}})),this.$trigger("pushPanel",e),this.stack.push(e)},popPanel:function(){this.$trigger("popPanel",this.stack.pop())},updatePanelVisiblity:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.stack.concat(Object.values(this.$refs.sections)).forEach(function(n){var r=n===e.panel||t?"visible":"hidden";(0,u.default)(n.$el).css("visibility",r)})}},events:{openPanel:function(e,t,n){var r=this.$refs.sections[e],i=this.panels[e];r||(0,s.default)(e)?this.pushPanel(r||e):i?this.pushPanel(e,(0,o.default)({},i,t),n):this.pushPanel(e,t,n),u.default.contains(this.$els.sidebar,this.panel.$el)||this.panel.$appendTo(this.$els.sidebar)},pushPanel:function(e){var t=this;this.updatePanelVisiblity(!0),(0,u.default)(this.panel?this.panel.$el:this.$els.rootsection).one("transitionend",function(e){e.target;t.updatePanelVisiblity()}),requestAnimationFrame(function(){return(0,u.default)(e.$el).css("left",0)}),this.stack.forEach(function(e){return(0,u.default)(e.$el).css("left","-"+e.width)})},popPanel:function(e){var t=this;this.updatePanelVisiblity(!0),(0,u.default)(e.$el).one("transitionend",function(){e.$parent!==t&&e.$destroy(!0),t.updatePanelVisiblity()}).css("left",""),this.panel&&(0,u.default)(this.panel.$el).css("left",0)}}}},,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(559),o=r(i),a=n(32),s=r(a),l=n(27);t.default={data:function(){return{search:"",type:"photos",page:1,collection:!1,user:!1,spinner:!1,error:!1,result:!1,scroll:0}},computed:{title:function(){var e=this.result||{},t=e.total,n=e.photos,r=void 0===n?[]:n,i=e.collections,o=void 0===i?[]:i;return t?r.length?this.$transChoice("{0} %total% Photos|{1} %total% Photo|]1, Inf[ %total% Photos",t,{total:t}):o.length?this.$transChoice("{0} %total% Collections|{1} %total% Collection|]1, Inf[ %total% Collections",t,{total:t}):this.$transChoice("{0} %total% Users|{1} %total% User|]1, Inf[ %total% Users",t,{total:t}):this.$trans("No Results")},filter:function(){return this.collection?this.collection.id:this.user?"@"+this.user.username:this.search?"":"curated"},unsplashQuery:function(){return"photos"===this.type?u:"collections"===this.type?c:f}},watch:{search:{handler:function(){this.reset(),this.update()},immediate:!0},type:function(){this.update()},collection:function(e){e&&(this.user=!1,this.type="photos"),this.update()},user:function(e){e&&(this.collection=!1,this.type="photos"),"yootheme"===e.username&&(this.type="collections"),this.update()}},compiled:function(){(0,l.on)(this.$els.scroll,"scroll",this.onScroll,{passive:!0})},methods:{select:function(e){this.$emit("selected",[e.urls.full+"&id="+e.id])},onScroll:function(){var e=this.$els.scroll,t=e.offsetHeight,n=e.scrollTop,r=e.scrollHeight;t&&this.page===this.result.page&&this.page!==this.result.pages&&n+("users"===this.type?500:1e3)>=r-t&&(this.page+=1,this.query()),this.scroll=n},update:function(){this.page=1,this.query()},reset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type;this.user=!1,this.collection=!1,this.type=e},query:(0,s.default)(function(){function e(e){var t=this,n=e.body,a=n.errors,s=n.data;if(e.status){if(r<2&&(this.result=!1,this.$els.scroll&&(this.$els.scroll.scrollTop=0)),this.spinner=!1,a)return void(this.error=a[0].message);if(s){var l=s,u=l.unsplashPhotos,c=l.unsplashCollections,f=l.unsplashUsers;if(s=u||c||f,r>1){var d=this.result||{},h=d.photos,p=d.collections,v=d.users;s.photos=h&&(0,o.default)(h,s.photos,"id"),s.collections=p&&(0,o.default)(p,s.collections,"id"),s.users=v&&(0,o.default)(v,s.users,"id")}this.result=s,this.result.type=i,this.result.user=this.user,this.result.collection=this.collection}this.$nextTick(function(){return requestAnimationFrame(function(){return requestAnimationFrame(t.onScroll)})})}}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.search,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.filter,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.page,i=this.type;this.spinner=1===this.page,this.$http.post("{+$api}/v1",JSON.stringify({query:this.unsplashQuery,variables:{search:t,filter:n,page:r}}),{headers:{"Content-Type":"text/plain"},before:function(e){this.previousRequest&&this.previousRequest.abort(),this.previousRequest=e}}).then(e,e)},50)}};var u="query ($search: String, $filter: String, $page: Int) {\n unsplashPhotos (search: $search, filter: $filter, page: $page) {\n page\n pages\n total\n photos {\n id\n link\n description\n width\n height\n urls {\n raw\n full\n regular\n small\n thumb\n }\n user {\n id\n link\n image\n name\n username\n }\n }\n }\n }",c="query ($search: String, $filter: String, $page: Int) {\n unsplashCollections (search: $search, filter: $filter, page: $page) {\n page\n pages\n total\n collections {\n id\n link\n title\n description\n totalPhotos\n previewPhotos {\n raw\n full\n regular\n small\n thumb\n }\n urls {\n raw\n full\n regular\n small\n thumb\n }\n user {\n id\n link\n image\n name\n username\n }\n }\n }\n }",f="query ($search: String, $filter: String, $page: Int) {\n unsplashUsers (search: $search, filter: $filter, page: $page) {\n page\n pages\n total\n users {\n id\n link\n image\n name\n username\n }\n }\n }"},function(e,t,n){var r,i,o={};r=n(563),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/editor-visual.vue: named exports in *.vue files are ignored."),i=n(564),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i="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},o=n(3),a=r(o);n(155),n(156);var s=n(167),l=r(s),u=n(168),c=r(u),f=n(170),d=r(f),h=n(171),p=r(h),v=n(182),m=r(v),g=n(183),y=r(g),b=n(184),w=r(b),x=n(185),k=r(x),C=n(186),_=r(C),S=n(187),O=r(S),M=n(188),T=r(M),A=n(189),N=r(A),E=n(192),L=r(E),$=n(195),P=r($),j=n(307),D=r(j),F=n(310),I=r(F);window.Vue=a.default;var H=a.default.util,R=H.extend,z=H.isArray;a.default.use(l.default),a.default.use(c.default),a.default.use(d.default),a.default.use(p.default),a.default.use(m.default),a.default.use(y.default),a.default.use(w.default),a.default.directive("event",k.default),a.default.directive("confirm",_.default),a.default.directive("check-all",O.default),a.default.directive("lazy-background",T.default),a.default.component("Modal",N.default),a.default.component("modal",L.default),a.default.component("fields",a.default.component("fields").extend(P.default)),D.default.extends=a.default.component("fields"),I.default.extends=a.default.component("fields"),a.default.fields.grid=D.default,a.default.fields.group=I.default,a.default.prototype.$new=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$options.components;return new((void 0===n?{}:n)[e]||a.default.component(e))(R({parent:this},t))},a.default.prototype.$match=function(e,t,n){return e&&new RegExp(t,n).test(e)},a.default.init=function(){var e=a.default.Translator,t=window.$config;e.locale=t.locale;for(var n in t.locales){if(z(t.locales[n]))break;for(var r in t.locales[n])e.add(r,t.locales[n][r])}a.default.url.options.root=t.url,a.default.http.options.emulateHTTP=!0},a.default.http.interceptors.push(function(e,t){t(function(e){var t=e.ok,n=e.body;t&&"object"==(void 0===n?"undefined":i(n))&&n.errors&&(e.ok=!1)})})},function(e,t,n){"use strict";Element.prototype.remove||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),String.prototype.startsWith||(String.prototype.startsWith=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.indexOf(e,t)===t})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(157),o=r(i),a=n(158),s=r(a),l=n(159),u=r(l),c=n(160),f=r(c),d=n(161),h=r(d),p=n(162),v=r(p),m=n(163),g=r(m),y=n(164),b=r(y),w=n(165),x=r(w),k=n(166),C=r(k);UIkit.icon.add({breadcrumb:o.default,"builder-add-left":s.default,"builder-add-right":u.default,"builder-add":f.default,"builder-copy":h.default,"builder-delete":v.default,"builder-edit":g.default,"builder-save":b.default,"finder-file":x.default,"finder-folder":C.default})},function(e,t){e.exports='<svg width="16" height="14" viewBox="0 0 16 14" xmlns="http://www.w3.org/2000/svg">\n <polyline stroke="#000" fill="none" stroke-width="2" points="6.66,12.32 1.5,6.66 6.66,1.5 " />\n <rect fill="#000" width="14" height="2" x="2" y="6" />\n</svg>\n'},function(e,t){e.exports='<svg width="18" height="15" viewBox="0 0 18 15" xmlns="http://www.w3.org/2000/svg">\n\t<path fill="#000" d="M2.167,2.197c2.89-2.929,7.575-2.929,10.464,0l4.813,4.878c0.23,0.234,0.232,0.614,0,0.85l-4.813,4.878 c-2.89,2.93-7.575,2.93-10.464,0C-0.723,9.875-0.723,5.125,2.167,2.197z" />\n\t<rect class="uk-preserve" fill="#fff" x="3" y="7" width="9" height="1" />\n\t<rect class="uk-preserve" fill="#fff" x="7" y="3" width="1" height="9" />\n</svg>\n'},function(e,t){e.exports='<svg width="18" height="15" viewBox="0 0 18 15" xmlns="http://www.w3.org/2000/svg">\n <path fill="#000" d="M15.832,12.803c-2.891,2.93-7.575,2.93-10.465,0L0.554,7.925c-0.231-0.234-0.233-0.614,0-0.85l4.813-4.878 c2.89-2.929,7.574-2.929,10.465,0C18.722,5.125,18.722,9.875,15.832,12.803z" />\n <rect class="uk-preserve" fill="#fff" x="6" y="7" width="9" height="1" />\n <rect class="uk-preserve" fill="#fff" x="10" y="3" width="1" height="9" />\n</svg>\n'},function(e,t){e.exports='<svg width="13" height="13" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg">\n <rect fill="#000" x="2" y="6" width="9" height="1" />\n <rect fill="#000" x="6" y="2" width="1" height="9" />\n</svg>'},function(e,t){e.exports='<svg width="12" height="14" viewBox="0 0 12 14" xmlns="http://www.w3.org/2000/svg">\n <polygon fill="#000" points="3 2 11 2 11 11 12 11 12 1 3 1" />\n <path fill="#000" d="M9,4 L9,13 L1,13 L1,4 L9,4 L9,4 Z M10,3 L0,3 L0,14 L10,14 L10,3 L10,3 L10,3 Z" />\n</svg>'},function(e,t){e.exports='<svg width="12" height="14" viewBox="0 0 12 14" xmlns="http://www.w3.org/2000/svg">\n <rect fill="#000" x="3" y="0" width="5" height="1" />\n <rect fill="#000" x="0" y="2" width="11" height="1" />\n <path fill="#000" d="M9,3 L9,13 L2,13 L2,3 L9,3 L9,3 Z M10,2 L9,2 L2,2 L1,2 L1,3 L1,13 L1,14 L2,14 L9,14 L10,14 L10,13 L10,3 L10,2 L10,2 L10,2 Z" />\n <rect fill="#000" x="4" y="6" width="1" height="5" />\n <rect fill="#000" x="6" y="6" width="1" height="5" />\n</svg>'},function(e,t){e.exports='<svg width="12" height="14" viewBox="0 0 12 14" xmlns="http://www.w3.org/2000/svg">\n <path fill="#000" d="M10.01,4.49 L10.66,5.14 L11.62,4.19 C12.13,3.68 12.13,2.89 11.62,2.38 C11.36,2.13 11.03,2 10.69,2 C10.36,2 10.04,2.13 9.78,2.38 L8.84,3.33 L9.49,3.98 L10.01,4.49 L10.01,4.49 Z" />\n <polygon fill="#000" points="9.28 5.21 1.42 13 1 13 1 12.55 8.78 4.71 8.12 4.05 0 12.19 0 14 1.78 14 9.94 5.87" />\n</svg>'},function(e,t){e.exports='<svg width="12" height="14" viewBox="0 0 12 14" xmlns="http://www.w3.org/2000/svg">\n <rect fill="#000" x="5" y="1" width="1" height="9" />\n <polygon fill="#000" points="8.3 4.24 4.8 0.71 5.5 0 9 3.54" />\n <polygon fill="#000" points="2 3.54 4.8 0.71 5.5 1.41 2.7 4.24" />\n <polygon fill="#000" points="1 13 10 13 10 5 11 5 11 14 0 14 0 5 1 5" />\n</svg>'},function(e,t){e.exports='<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg">\n <circle class="uk-preserve" fill="#C1C4C9" cx="15" cy="15" r="15" />\n <polygon class="uk-preserve" fill="#FFFFFF" points="21,22 9,22 9,12 9,8 21,8" />\n <rect class="uk-preserve" x="11" y="12" fill="#C1C4C9" width="7" height="1" />\n <rect class="uk-preserve" x="11" y="14" fill="#C1C4C9" width="5" height="1" />\n <rect class="uk-preserve" x="11" y="16" fill="#C1C4C9" width="7" height="1" />\n <rect class="uk-preserve" x="11" y="18" fill="#C1C4C9" width="5" height="1" />\n</svg>'},function(e,t){e.exports='<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg">\n <circle class="uk-preserve" fill="#489BE0" cx="15" cy="15" r="15" />\n <path class="uk-preserve" fill="#FFFFFF" d="M21,11h-6.5L14,10c-0.266-0.609-0.448-1-1-1H9c-0.552,0-1,0.448-1,1v9c0,0.553,0.448,1,1,1h12c0.553,0,1-0.447,1-1v-7C22,11.448,21.553,11,21,11z" />\n</svg>'},function(e,t,n){"use strict";function r(e){"undefined"!=typeof console&&N&&console.warn("[VueForm warn]: "+e)}function i(e){return"string"==typeof e}function o(e){return null!==e&&"object"==typeof e}function a(e){return void 0===e}function s(e,t,n,r){e.addEventListener(t,n,r)}function l(e,t,n,r){e.removeEventListener(t,n,r)}function u(e,t){return e?e.getAttribute(t):null}function c(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!1),e.dispatchEvent(n)}function f(e){return E.camelize(e)}function d(e,t){e.splice(e.indexOf(t),1)}function h(e,t){var n,r;if("number"==typeof e.length)for(n=0;n<e.length;n++)t.call(e[n],e[n],n);else if(o(e))for(r in e)e.hasOwnProperty(r)&&t.call(e[r],e[r],r);return e}function p(e,t){return"boolean"!=typeof t&&(t=!0),"boolean"==typeof e?!t||e:!t||!(null===e||0===e.length)}function v(e){return/^[-+]?[0-9]+$/.test(e)}function m(e){return/^(?:[-+]?(?:0|[1-9][0-9]*))$/.test(e)}function g(e){return/^(?:[-+]?(?:[0-9]+))?(?:\.[0-9]*)?(?:[eE][\+\-]?(?:[0-9]+))?$/.test(e)}function y(e){return/^([A-Z]+)?$/i.test(e)}function b(e){return/^([0-9A-Z]+)?$/i.test(e)}function w(e){return/^([a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*)?$/i.test(e||"a@a.aa")}function x(e){return/^((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)?$/.test(e)}function k(e,t){return e&&e.length&&e.length>=+t}function C(e,t){return e&&e.length&&e.length<=+t}function _(e){return e&&e.length==+arg}function S(e,t){return e>=+t}function O(e,t){return e<=+t}function M(e,t){var n=t.match(new RegExp("^/(.*?)/([gimy]*)$"));return new RegExp(n[1],n[2]).test(e)}function T(e){return function(t){t.preventDefault(),H.validate(t.target,!0)&&e(t)}}function A(e){A.installed||($(e),e.fields=F,e.component("fields",D(e)),e.validator=H,e.filter("valid",T),e.directive("validator",R),e.directive("validate",z),e.config.optionMergeStrategies.fields=e.config.optionMergeStrategies.props)}/*!
* vue-form v0.3.13
* Released under the MIT License.
*/
var N=!1,E={},L=Array.isArray,$=function(e){E=e.util,N=e.config.debug||!e.config.silent},P=Object.assign||function(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=t[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},j={name:"field",props:["field","class"],data:function(){return P({name:"",type:"text",label:"",attrs:{},options:[],default:void 0},this.field)},created:function(){this.key='["'+this.name.replace(/\./g,'"]["')+'"]'},computed:{attrs:{get:function(){return this.enable&&!this.$parent.evaluate(this.enable)?P({disabled:"true"},this.$data.attrs):this.$data.attrs},cache:!1},value:{get:function(){var e=this.$parent.getField(this);return a(e)&&!a(this.default)&&(e=this.default)&&this.$parent.setField(this,e),e},set:function(e){a(this.value)&&!e||this.$parent.setField(this,e,this.value)},cache:!1}},methods:{filterOptions:function(e){var t=this,n=[];return e?(h(e,function(e,r){o(e)?n.push({label:r,options:t.filterOptions(e)}):n.push({text:r,value:e})}),n):(r("Invalid options provided for "+this.name),n)}},filters:{options:function(e){return this.filterOptions(e)}}},D=function(e){return{name:"fields",props:{config:{type:[Array,Object],default:function(){return[]}},values:{type:Object}},created:function(){var t=this.$options,n=t.fields,a=t.components;if(!this.fields||!this.values)return void r("Invalid config or model provided");h(P({},e.fields,n),function(t,n){i(t)&&(t={template:t}),o(t)&&(t.name=t.name||"field-"+n,t=e.extend(j).extend(t)),a[n]=t})},computed:{fields:function(){return this.filterFields(this.config)}},methods:{getField:function(t){return this.values instanceof e&&"getField"in this.values?this.values.getField(t):this.$get("values"+t.key)},setField:function(t,n,r){this.values instanceof e&&"setField"in this.values?this.values.setField(t,n,r):this.$set("values"+t.key,n)},filterFields:function(e){var t=this,n=L(e),o=[];return h(e,function(e,a){i(e.name)||n||(e=P({name:a},e)),i(e.type)||(e=P({type:"text"},e)),i(e.name)?e.show&&!t.evaluate(e.show)||o.push(e):r("Field name missing "+JSON.stringify(e))}),o},evaluate:function(t,n){if(n=n||this.values,i(t)){var r=new e({data:n}),o=r.$eval(t);return r.$destroy(),o}return t.call(this,n,this)}},fields:{},components:{},template:'<div>\n\n <div v-for="field in fields">\n <label v-if="field.type != \'checkbox\'">{{ field.label }}</label>\n <component :is="field.type" :field="field"></component>\n </div>\n\n</div>\n'}},F={text:'<input type="text" v-bind="attrs" v-model="value">',textarea:'<textarea v-bind="attrs" v-model="value"></textarea>',radio:'<template v-for="option in options | options">\n <input type="radio" v-bind="attrs" :name="name" :value="option.value" v-model="value"> <label>{{ option.text }}</label>\n </template>',checkbox:'<input type="checkbox" v-bind="attrs" v-model="value">',select:'<select v-bind="attrs" v-model="value">\n <template v-for="option in options | options">\n <optgroup :label="option.label" v-if="option.label">\n <option v-for="opt in option.options" :value="opt.value">{{ opt.text }}</option>\n </optgroup>\n <option :value="option.value" v-else>{{ option.text }}</option>\n </template>\n </select>',range:'<input type="range" v-bind="attrs" v-model="value">',number:'<input type="number" v-bind="attrs" v-model="value">'},I=Object.freeze({required:p,numeric:v,integer:m,float:g,alpha:y,alphanum:b,email:w,url:x,minlength:k,maxlength:C,length:_,min:S,max:O,pattern:M}),H={dirs:[],types:I,add:function(e){this.dirs.push(e)},remove:function(e){d(this.dirs,e)},instance:function(e){do{if(e._validator)return e._validator;e=e.parentElement}while(e)},validate:function(e,t){var n=this,r=this.instance(e),i={valid:!0};if(r)return this.dirs.forEach(function(e){var o=e.validate(),a=e.el,s=e.name;n.instance(a)===r&&(!a._touched&&t&&(a._touched=!0),a._touched||o||(o=!0,i.valid=!1),i[s]||(i[s]={valid:!0,invalid:!1,dirty:a._dirty,touched:a._touched}),i[s][e.type]=!o,t&&i.valid&&!o&&a.focus(),i[s].valid&&!o&&(i[s].valid=!1,i[s].invalid=!0,i.valid=!1))}),i.invalid=!i.valid,r.results(i),t&&i.invalid&&c(r.el,"invalid"),i.valid}},R={bind:function(){var e=this,t=this.arg||this.expression;this.name=f(t),this.el._validator=this,this.vm.$set(this.name),this.vm.$on("hook:compiled",function(){H.validate(e.el)})},unbind:function(){this.vm.$delete(this.name)},results:function(e){this.vm.$set(this.name,P({validate:this.validate.bind(this)},e))},validate:function(){return H.validate(this.el,!0)}},z={priority:500,bind:function(){var e=u(this.el,"name");e&&(this.name=f(e),this.type=this.arg,this.value=this.el.value,this.el._dirty=!1,this.el._touched=!1,s(this.el,"blur",this.listener.bind(this)),s(this.el,"input",this.listener.bind(this)),H.add(this))},unbind:function(){l(this.el,"blur",this.listener),l(this.el,"input",this.listener),H.remove(this)},update:function(e){this.args=e},listener:function(e){(!W.target||"A"!==W.target.tagName&&"BUTTON"!==W.target.tagName)&&("blur"==e.type&&(this.el._touched=!0),this.el.value!=this.value&&(this.el._dirty=!0),H.validate(this.el))},validate:function(){var e=this.validator();if(e)return e.call(this.vm,this.el.value,this.args)},validator:function(){var e,t=this,n=this.vm;do{if(e=n.$options.validators||{},e[t.type])return e[t.type];n=n.$parent}while(n);return H.types[this.type]}},W={target:null,handler:function(e){var t=e.target;W.target=t,setTimeout(function(){return W.target=null},0)}};s(document,"mousedown",W.handler),s(document,"pointerdown",W.handler),s(document,"touchstart",W.handler),"undefined"!=typeof window&&window.Vue&&window.Vue.use(A),e.exports=A},function(e,t,n){"use strict";function r(e){this.state=se,this.value=void 0,this.deferred=[];var t=this;try{e(function(e){t.resolve(e)},function(e){t.reject(e)})}catch(e){t.reject(e)}}function i(e,t){e instanceof Promise?this.promise=e:this.promise=new Promise(e.bind(t)),this.context=t}function o(e){var t=e.config,n=e.nextTick;ce=n,ve=t.debug||!t.silent}function a(e){"undefined"!=typeof console&&ve&&console.warn("[VueResource warn]: "+e)}function s(e){"undefined"!=typeof console&&console.error(e)}function l(e,t){return ce(e,t)}function u(e){return e?e.replace(/^\s*|\s*$/g,""):""}function c(e,t){return e&&void 0===t?e.replace(/\s+$/,""):e&&t?e.replace(new RegExp("["+t+"]+$"),""):e}function f(e){return e?e.toLowerCase():""}function d(e){return e?e.toUpperCase():""}function h(e){return"string"==typeof e}function p(e){return"function"==typeof e}function v(e){return null!==e&&"object"==typeof e}function m(e){return v(e)&&Object.getPrototypeOf(e)==Object.prototype}function g(e){return"undefined"!=typeof Blob&&e instanceof Blob}function y(e){return"undefined"!=typeof FormData&&e instanceof FormData}function b(e,t,n){var r=i.resolve(e);return arguments.length<2?r:r.then(t,n)}function w(e,t,n){return n=n||{},p(n)&&(n=n.call(t)),k(e.bind({$vm:t,$options:n}),e,{$options:n})}function x(e,t){var n,r;if(ge(e))for(n=0;n<e.length;n++)t.call(e[n],e[n],n);else if(v(e))for(r in e)de.call(e,r)&&t.call(e[r],e[r],r);return e}function k(e){return pe.call(arguments,1).forEach(function(t){S(e,t,!0)}),e}function C(e){return pe.call(arguments,1).forEach(function(t){for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}function _(e){return pe.call(arguments,1).forEach(function(t){S(e,t)}),e}function S(e,t,n){for(var r in t)n&&(m(t[r])||ge(t[r]))?(m(t[r])&&!m(e[r])&&(e[r]={}),ge(t[r])&&!ge(e[r])&&(e[r]=[]),S(e[r],t[r],n)):void 0!==t[r]&&(e[r]=t[r])}function O(e,t){var n=t(e);return h(e.root)&&!/^(https?:)?\//.test(n)&&(n=c(e.root,"/")+"/"+n),n}function M(e,t){var n=Object.keys(D.options.params),r={},i=t(e);return x(e.params,function(e,t){-1===n.indexOf(t)&&(r[t]=e)}),r=D.params(r),r&&(i+=(-1==i.indexOf("?")?"?":"&")+r),i}function T(e,t,n){var r=A(e),i=r.expand(t);return n&&n.push.apply(n,r.vars),i}function A(e){var t=["+","#",".","/",";","?","&"],n=[];return{vars:n,expand:function(r){return e.replace(/\{([^{}]+)\}|([^{}]+)/g,function(e,i,o){if(i){var a=null,s=[];if(-1!==t.indexOf(i.charAt(0))&&(a=i.charAt(0),i=i.substr(1)),i.split(/,/g).forEach(function(e){var t=/([^:*]*)(?::(\d+)|(\*))?/.exec(e);s.push.apply(s,N(r,a,t[1],t[2]||t[3])),n.push(t[1])}),a&&"+"!==a){var l=",";return"?"===a?l="&":"#"!==a&&(l=a),(0!==s.length?a:"")+s.join(l)}return s.join(",")}return P(o)})}}}function N(e,t,n,r){var i=e[n],o=[];if(E(i)&&""!==i)if("string"==typeof i||"number"==typeof i||"boolean"==typeof i)i=i.toString(),r&&"*"!==r&&(i=i.substring(0,parseInt(r,10))),o.push($(t,i,L(t)?n:null));else if("*"===r)Array.isArray(i)?i.filter(E).forEach(function(e){o.push($(t,e,L(t)?n:null))}):Object.keys(i).forEach(function(e){E(i[e])&&o.push($(t,i[e],e))});else{var a=[];Array.isArray(i)?i.filter(E).forEach(function(e){a.push($(t,e))}):Object.keys(i).forEach(function(e){E(i[e])&&(a.push(encodeURIComponent(e)),a.push($(t,i[e].toString())))}),L(t)?o.push(encodeURIComponent(n)+"="+a.join(",")):0!==a.length&&o.push(a.join(","))}else";"===t?o.push(encodeURIComponent(n)):""!==i||"&"!==t&&"?"!==t?""===i&&o.push(""):o.push(encodeURIComponent(n)+"=");return o}function E(e){return void 0!==e&&null!==e}function L(e){return";"===e||"&"===e||"?"===e}function $(e,t,n){return t="+"===e||"#"===e?P(t):encodeURIComponent(t),n?encodeURIComponent(n)+"="+t:t}function P(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e)),e}).join("")}function j(e){var t=[],n=T(e.url,e.params,t);return t.forEach(function(t){delete e.params[t]}),n}function D(e,t){var n,r=this||{},i=e;return h(e)&&(i={url:e,params:t}),i=k({},D.options,r.$options,i),D.transforms.forEach(function(e){h(e)&&(e=D.transform[e]),p(e)&&(n=F(e,n,r.$vm))}),n(i)}function F(e,t,n){return function(r){return e.call(n,r,t)}}function I(e,t,n){var r,i=ge(t),o=m(t);x(t,function(t,a){r=v(t)||ge(t),n&&(a=n+"["+(o||r?a:"")+"]"),!n&&i?e.add(t.name,t.value):r?I(e,t,a):e.add(a,t)})}function H(e){return new i(function(t){var n=new XDomainRequest,r=function(r){var i=r.type,o=0;"load"===i?o=200:"error"===i&&(o=500),t(e.respondWith(n.responseText,{status:o}))};e.abort=function(){return n.abort()},n.open(e.method,e.getUrl()),e.timeout&&(n.timeout=e.timeout),n.onload=r,n.onabort=r,n.onerror=r,n.ontimeout=r,n.onprogress=function(){},n.send(e.getBody())})}function R(e){if(me){var t=D.parse(location.href),n=D.parse(e.getUrl());n.protocol===t.protocol&&n.host===t.host||(e.crossOrigin=!0,e.emulateHTTP=!1,be||(e.client=H))}}function z(e){y(e.body)?e.headers.delete("Content-Type"):v(e.body)&&e.emulateJSON&&(e.body=D.params(e.body),e.headers.set("Content-Type","application/x-www-form-urlencoded"))}function W(e){var t=e.headers.get("Content-Type")||"";return v(e.body)&&0===t.indexOf("application/json")&&(e.body=JSON.stringify(e.body)),function(e){return e.bodyText?b(e.text(),function(t){if(0===(e.headers.get("Content-Type")||"").indexOf("application/json")||B(t))try{e.body=JSON.parse(t)}catch(t){e.body=null}else e.body=t;return e}):e}}function B(e){var t=e.match(/^\s*(\[|\{)/),n={"[":/]\s*$/,"{":/}\s*$/};return t&&n[t[1]].test(e)}function V(e){return new i(function(t){var n,r,i=e.jsonp||"callback",o=e.jsonpCallback||"_jsonp"+Math.random().toString(36).substr(2),a=null;n=function(n){var i=n.type,s=0;"load"===i&&null!==a?s=200:"error"===i&&(s=500),s&&window[o]&&(delete window[o],document.body.removeChild(r)),t(e.respondWith(a,{status:s}))},window[o]=function(e){a=JSON.stringify(e)},e.abort=function(){n({type:"abort"})},e.params[i]=o,e.timeout&&setTimeout(e.abort,e.timeout),r=document.createElement("script"),r.src=e.getUrl(),r.type="text/javascript",r.async=!0,r.onload=n,r.onerror=n,document.body.appendChild(r)})}function U(e){"JSONP"==e.method&&(e.client=V)}function q(e){p(e.before)&&e.before.call(this,e)}function G(e){e.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(e.method)&&(e.headers.set("X-HTTP-Method-Override",e.method),e.method="POST")}function K(e){x(ye({},re.headers.common,e.crossOrigin?{}:re.headers.custom,re.headers[f(e.method)]),function(t,n){e.headers.has(n)||e.headers.set(n,t)})}function Y(e){return new i(function(t){var n=new XMLHttpRequest,r=function(r){var i=e.respondWith("response"in n?n.response:n.responseText,{status:1223===n.status?204:n.status,statusText:1223===n.status?"No Content":u(n.statusText)});x(u(n.getAllResponseHeaders()).split("\n"),function(e){i.headers.append(e.slice(0,e.indexOf(":")),e.slice(e.indexOf(":")+1))}),t(i)};e.abort=function(){return n.abort()},n.open(e.method,e.getUrl(),!0),e.timeout&&(n.timeout=e.timeout),e.responseType&&"responseType"in n&&(n.responseType=e.responseType),(e.withCredentials||e.credentials)&&(n.withCredentials=!0),e.crossOrigin||e.headers.set("X-Requested-With","XMLHttpRequest"),p(e.progress)&&"GET"===e.method&&n.addEventListener("progress",e.progress),p(e.downloadProgress)&&n.addEventListener("progress",e.downloadProgress),p(e.progress)&&/^(POST|PUT)$/i.test(e.method)&&n.upload.addEventListener("progress",e.progress),p(e.uploadProgress)&&n.upload&&n.upload.addEventListener("progress",e.uploadProgress),e.headers.forEach(function(e,t){n.setRequestHeader(t,e)}),n.onload=r,n.onabort=r,n.onerror=r,n.ontimeout=r,n.send(e.getBody())})}function X(e){var t=n(169);return new i(function(n){var r,i=e.getUrl(),o=e.getBody(),a=e.method,s={};e.headers.forEach(function(e,t){s[t]=e}),t(i,{body:o,method:a,headers:s}).then(r=function(t){var r=e.respondWith(t.body,{status:t.statusCode,statusText:u(t.statusMessage)});x(t.headers,function(e,t){r.headers.set(t,e)}),n(r)},function(e){return r(e.response)})})}function J(e){function t(t){for(;n.length;){var o=n.pop();if(p(o)){var s=void 0,l=void 0;if(s=o.call(e,t,function(e){return l=e})||l,v(s))return new i(function(t,n){r.forEach(function(t){s=b(s,function(n){return t.call(e,n)||n},n)}),b(s,t,n)},e);p(s)&&r.unshift(s)}else a("Invalid interceptor of type "+typeof o+", must be a function")}}var n=[Z],r=[];return v(e)||(e=null),t.use=function(e){n.push(e)},t}function Z(e){return(e.client||(me?Y:X))(e)}function Q(e,t){return Object.keys(e).reduce(function(e,n){return f(t)===f(n)?n:e},null)}function ee(e){if(/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return u(e)}function te(e){return new i(function(t){var n=new FileReader;n.readAsText(e),n.onload=function(){t(n.result)}})}function ne(e){return 0===e.type.indexOf("text")||-1!==e.type.indexOf("json")}function re(e){var t=this||{},n=J(t.$vm);return C(e||{},t.$options,re.options),re.interceptors.forEach(function(e){h(e)&&(e=re.interceptor[e]),p(e)&&n.use(e)}),n(new ke(e)).then(function(e){return e.ok?e:i.reject(e)},function(e){return e instanceof Error&&s(e),i.reject(e)})}function ie(e,t,n,r){var i=this||{},o={};return n=ye({},ie.actions,n),x(n,function(n,a){n=k({url:e,params:ye({},t)},r,n),o[a]=function(){return(i.$http||re)(oe(n,arguments))}}),o}function oe(e,t){var n,r=ye({},e),i={};switch(t.length){case 2:i=t[0],n=t[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(r.method)?n=t[0]:i=t[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+t.length+" arguments"}return r.body=n,r.params=ye({},r.params,i),r}function ae(e){ae.installed||(o(e),e.url=D,e.http=re,e.resource=ie,e.Promise=i,Object.defineProperties(e.prototype,{$url:{get:function(){return w(e.url,this,this.$options.url)}},$http:{get:function(){return w(e.http,this,this.$options.http)}},$resource:{get:function(){return e.resource.bind(this)}},$promise:{get:function(){var t=this;return function(n){return new e.Promise(n,t)}}}}))}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Url",function(){return D}),n.d(t,"Http",function(){return re}),n.d(t,"Resource",function(){return ie});/*!
* vue-resource v1.5.1
* https://github.com/pagekit/vue-resource
* Released under the MIT License.
*/
var se=2;r.reject=function(e){return new r(function(t,n){n(e)})},r.resolve=function(e){return new r(function(t,n){t(e)})},r.all=function(e){return new r(function(t,n){var i=0,o=[];0===e.length&&t(o);for(var a=0;a<e.length;a+=1)r.resolve(e[a]).then(function(n){return function(r){o[n]=r,(i+=1)===e.length&&t(o)}}(a),n)})},r.race=function(e){return new r(function(t,n){for(var i=0;i<e.length;i+=1)r.resolve(e[i]).then(t,n)})};var le=r.prototype;le.resolve=function(e){var t=this;if(t.state===se){if(e===t)throw new TypeError("Promise settled with itself.");var n=!1;try{var r=e&&e.then;if(null!==e&&"object"==typeof e&&"function"==typeof r)return void r.call(e,function(e){n||t.resolve(e),n=!0},function(e){n||t.reject(e),n=!0})}catch(e){return void(n||t.reject(e))}t.state=0,t.value=e,t.notify()}},le.reject=function(e){var t=this;if(t.state===se){if(e===t)throw new TypeError("Promise settled with itself.");t.state=1,t.value=e,t.notify()}},le.notify=function(){var e=this;l(function(){if(e.state!==se)for(;e.deferred.length;){var t=e.deferred.shift(),n=t[0],r=t[1],i=t[2],o=t[3];try{0===e.state?i("function"==typeof n?n.call(void 0,e.value):e.value):1===e.state&&("function"==typeof r?i(r.call(void 0,e.value)):o(e.value))}catch(e){o(e)}}})},le.then=function(e,t){var n=this;return new r(function(r,i){n.deferred.push([e,t,r,i]),n.notify()})},le.catch=function(e){return this.then(void 0,e)},"undefined"==typeof Promise&&(window.Promise=r),i.all=function(e,t){return new i(Promise.all(e),t)},i.resolve=function(e,t){return new i(Promise.resolve(e),t)},i.reject=function(e,t){return new i(Promise.reject(e),t)},i.race=function(e,t){return new i(Promise.race(e),t)};var ue=i.prototype;ue.bind=function(e){return this.context=e,this},ue.then=function(e,t){return e&&e.bind&&this.context&&(e=e.bind(this.context)),t&&t.bind&&this.context&&(t=t.bind(this.context)),new i(this.promise.then(e,t),this.context)},ue.catch=function(e){return e&&e.bind&&this.context&&(e=e.bind(this.context)),new i(this.promise.catch(e),this.context)},ue.finally=function(e){return this.then(function(t){return e.call(this),t},function(t){return e.call(this),Promise.reject(t)})};var ce,fe={},de=fe.hasOwnProperty,he=[],pe=he.slice,ve=!1,me="undefined"!=typeof window,ge=Array.isArray,ye=Object.assign||_;D.options={url:"",root:null,params:{}},D.transform={template:j,query:M,root:O},D.transforms=["template","query","root"],D.params=function(e){var t=[],n=encodeURIComponent;return t.add=function(e,t){p(t)&&(t=t()),null===t&&(t=""),this.push(n(e)+"="+n(t))},I(t,e),t.join("&").replace(/%20/g,"+")},D.parse=function(e){var t=document.createElement("a");return document.documentMode&&(t.href=e,e=t.href),t.href=e,{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",port:t.port,host:t.host,hostname:t.hostname,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):""}};var be=me&&"withCredentials"in new XMLHttpRequest,we=function(e){var t=this;this.map={},x(e,function(e,n){return t.append(n,e)})};we.prototype.has=function(e){return null!==Q(this.map,e)},we.prototype.get=function(e){var t=this.map[Q(this.map,e)];return t?t.join():null},we.prototype.getAll=function(e){return this.map[Q(this.map,e)]||[]},we.prototype.set=function(e,t){this.map[ee(Q(this.map,e)||e)]=[u(t)]},we.prototype.append=function(e,t){var n=this.map[Q(this.map,e)];n?n.push(u(t)):this.set(e,t)},we.prototype.delete=function(e){delete this.map[Q(this.map,e)]},we.prototype.deleteAll=function(){this.map={}},we.prototype.forEach=function(e,t){var n=this;x(this.map,function(r,i){x(r,function(r){return e.call(t,r,i,n)})})};var xe=function(e,t){var n=t.url,r=t.headers,i=t.status,o=t.statusText;this.url=n,this.ok=i>=200&&i<300,this.status=i||0,this.statusText=o||"",this.headers=new we(r),this.body=e,h(e)?this.bodyText=e:g(e)&&(this.bodyBlob=e,ne(e)&&(this.bodyText=te(e)))};xe.prototype.blob=function(){return b(this.bodyBlob)},xe.prototype.text=function(){return b(this.bodyText)},xe.prototype.json=function(){return b(this.text(),function(e){return JSON.parse(e)})},Object.defineProperty(xe.prototype,"data",{get:function(){return this.body},set:function(e){this.body=e}});var ke=function(e){this.body=null,this.params={},ye(this,e,{method:d(e.method||"GET")}),this.headers instanceof we||(this.headers=new we(this.headers))};ke.prototype.getUrl=function(){return D(this)},ke.prototype.getBody=function(){return this.body},ke.prototype.respondWith=function(e,t){return new xe(e,ye(t||{},{url:this.getUrl()}))};var Ce={Accept:"application/json, text/plain, */*"},_e={"Content-Type":"application/json;charset=utf-8"};re.options={},re.headers={put:_e,post:_e,patch:_e,delete:_e,common:Ce,custom:{}},re.interceptor={before:q,method:G,jsonp:U,json:W,form:z,header:K,cors:R},re.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach(function(e){re[e]=function(t,n){return this(ye(n||{},{url:t,method:e}))}}),["post","put","patch"].forEach(function(e){re[e]=function(t,n,r){return this(ye(r||{},{url:t,method:e,body:n}))}}),ie.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&window.Vue.use(ae),t.default=ae},function(e,t){},function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}function i(e,t){Object.keys(e||{}).forEach(function(n){t.call(null,e[n],n)})}function o(){var e=this,t=this.$options,n=t.events,o=[];n&&(i(n,function(t,n){i(s(t)?t:[t],function(t){var i=0;r(t)&&(i=t.priority,t=t.handler),o.push(u.on(n,a(t,e),i))})}),this.$on("hook:beforeDestroy",function(){return o.forEach(function(e){return e()})}))}function a(e,t){return"string"==typeof e?function(){return t[e].apply(t,arguments)}:e.bind(t)}Object.defineProperty(t,"__esModule",{value:!0});/*!
* vue-event-manager v1.0.6
* https://github.com/pagekit/vue-event-manager
* Released under the MIT License.
*/
var s=Array.isArray;Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t=Object(this),n=t.length>>>0,r=arguments[1],i=0;i<n;){var o=t[i];if(e.call(r,o,i,t))return i;i++}return-1}});var l=function(){this.listeners={}};l.prototype.on=function(e,t,n){var r=this;void 0===n&&(n=0);var i,o=this.listeners[e]||[];return i=o.findIndex(function(e){return e.priority<n}),~i?o.splice(i,0,{callback:t,priority:n}):o.push({callback:t,priority:n}),this.listeners[e]=o,function(){return r.off(e,t)}},l.prototype.off=function(e,t){t||delete this.listeners[e];var n,r=this.listeners[e];r&&t&&~(n=r.findIndex(function(e){return e.callback===t}))&&r.splice(n,1)},l.prototype.trigger=function(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n=!1),s(t)||(t=[t]),(this.listeners[e]||[]).concat().reduce(function(e,r){var i=function(e){return!1===e?e:(s(e)&&(t=e),r.callback.apply(r.callback,t))};return n?e.then(i):i(e)},n?Promise.resolve():void 0)};var u=new l;u.install=function(e){this.installed||(e.events=this,e.prototype.$events=this,e.prototype.$trigger=this.trigger.bind(this),e.mixin(Number(e.version[0])<2?{init:o}:{beforeCreate:o}))},"undefined"!=typeof window&&window.Vue&&window.Vue.use(u),t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){function t(t,r){var i={},o="function"==typeof r?r.call(this,e.config.params):r,a="function"==typeof t?t.call(this,e.config.params):t;return a&&n(i,a),o&&n(i,o),i}var n=e.util.extend;e.mixin({init:function(){var t=this.$options,r=t.ref,o=t.params;e.init&&((0,i.default)(e.components,function(t,n){e.component(n,t)}),e.init(),delete e.init),r&&(e.prototype[r]=this),o&&n(this,o())}}),e.components={},e.config.params={},e.config.optionMergeStrategies.params=function(e,n,r){return r?function(){return t.call(r,e,n)}:n?e?function(){return t.call(this,e,n)}:n:e}}},function(e,t){function n(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},function(e,t,n){function r(e){return o(e)&&i(e)==a}var i=n(21),o=n(14),a="[object Arguments]";e.exports=r},function(e,t,n){function r(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[l]=n:delete e[l]),i}var i=n(28),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,l=i?i.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return i.call(e)}var r=Object.prototype,i=r.toString;e.exports=n},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){function r(e){return a(e)&&o(e.length)&&!!s[i(e)]}var i=n(21),o=n(65),a=n(14),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=r},function(e,t,n){var r=n(96),i=r(Object.keys,Object);e.exports=i},function(e,t,n){function r(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==r(s[a],a,s););return n}}var i=n(15);e.exports=r},function(e,t,n){function r(e){return"function"==typeof e?e:i}var i=n(38);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(n){var r=[],a=this.$url||e.url,s=[];return Object.keys(n).forEach(function(e){if(t[e]){s=i(n[e])?n[e]:[n[e]];for(var l=0;l<s.length;l++)s[l]&&(o[s[l]]||(o[s[l]]=t[e](a(s[l]))),r.push(o[s[l]]))}}),e.Promise.all(r,this)}var n=e.util,r=n.extend,i=n.isArray,o={};r(t,{css:function(t){return new e.Promise(function(e,n){var r=document.createElement("link");r.onload=function(){e(t)},r.onerror=function(){n(t)},r.href=t,r.type="text/css",r.rel="stylesheet",document.getElementsByTagName("head")[0].appendChild(r)})},js:function(t){return new e.Promise(function(e,n){var r=document.createElement("script");r.onload=function(){e(t)},r.onerror=function(){n(t)},r.src=t,document.getElementsByTagName("head")[0].appendChild(r)})},image:function(t){return new e.Promise(function(e,n){var r=new Image;r.onload=function(){e(t)},r.onerror=function(){n(t)},r.src=t})}}),Object.defineProperty(e.prototype,"$asset",{get:function(){return r(t.bind(this),t)}}),e.asset=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default=function(e){var t=e.util.isPlainObject;e.prototype.$notify=function(){var e=arguments;t(e[0])?e[0].message=this.$trans(e[0].message):"string"==typeof e[0]&&(e[0]=this.$trans(e[0])),r.notification.apply(null,e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){function n(e,t){var n,i=r.placeHolderPrefix,o=r.placeHolderSuffix;for(n in t){var a=new RegExp(i+n+o,"g");a.test(e)&&(e=e.replace(a,t[n]))}return e}function i(e,n,r,i,a){var s=r||i||a,l=n;if(t==f[s]){if(t==f[a])return e;s=a}if(t===l||null===l)for(var u=0;u<d.length;u++)if(o(s,d[u],e)||o(a,d[u],e)){l=d[u];break}if(o(s,l,e))return f[s][l][e];for(var c,h,p,v;s.length>2&&(c=s.length,h=s.split(/[\s_]+/),p=h[h.length-1],v=p.length,1!==h.length);)if(s=s.substring(0,c-(v+1)),o(s,l,e))return f[s][l][e];return o(a,l,e)?f[a][l][e]:e}function o(e,n,r){return t!=f[e]&&(t!=f[e][n]&&t!=f[e][n][r])}function a(e,n,i){var o,a,u=[],c=[],f=e.split(r.pluralSeparator),d=[];for(o=0;o<f.length;o++){var m=f[o];p.test(m)?(d=m.match(p),u[d[0]]=d[d.length-1]):h.test(m)?(d=m.match(h),c.push(d[1])):c.push(m)}for(a in u)if(v.test(a))if(d=a.match(v),d[1]){var g,y=d[2].split(",");for(g in y)if(n==y[g])return u[a]}else{var b=s(d[4]),w=s(d[5]);if(("["===d[3]?n>=b:n>b)&&("]"===d[6]?n<=w:n<w))return u[a]}return c[l(n,i)]||c[0]||t}function s(e){return"-Inf"===e?Number.NEGATIVE_INFINITY:"+Inf"===e||"Inf"===e?Number.POSITIVE_INFINITY:parseInt(e,10)}function l(e,t){var n=t;switch("pt_BR"===n&&(n="xbr"),n.length>3&&(n=n.split("_")[0]),n){case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"az":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return 1==e?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return 0===e||1==e?0:1;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"sk":return 1==e?0:e>=2&&e<=4?1:2;case"ga":return 1==e?0:2==e?1:2;case"lt":return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"sl":return e%100==1?0:e%100==2?1:e%100==3||e%100==4?2:3;case"mk":return e%10==1?0:1;case"mt":return 1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"lv":return 0===e?0:e%10==1&&e%100!=11?1:2;case"pl":return 1==e?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:2;case"cy":return 1==e?0:2==e?1:8==e||11==e?2:3;case"ro":return 1==e?0:0===e||e%100>0&&e%100<20?1:2;case"ar":return 0===e?0:1==e?1:2==e?2:e>=3&&e<=10?3:e>=11&&e<=99?4:5;default:return 0}}function u(e,t){for(var n=0;n<e.length;n++)if(t===e[n])return!0;return!1}function c(){return e.documentElement.lang.replace("-","_")}var f={},d=[],h=new RegExp(/^\w+\: +(.+)$/),p=new RegExp(/^\s*((\{\s*(\-?\d+[\s*,\s*\-?\d+]*)\s*\})|([\[\]])\s*(-Inf|\-?\d+)\s*,\s*(\+?Inf|\-?\d+)\s*([\[\]]))\s?(.+?)$/),v=new RegExp(/^\s*(\{\s*(\-?\d+[\s*,\s*\-?\d+]*)\s*\})|([\[\]])\s*(-Inf|\-?\d+)\s*,\s*(\+?Inf|\-?\d+)\s*([\[\]])/);return{locale:c(),fallback:"en",placeHolderPrefix:"%",placeHolderSuffix:"%",defaultDomain:"messages",pluralSeparator:"|",add:function(e,t,n,r){var i=r||this.locale||this.fallback,o=n||this.defaultDomain;return f[i]||(f[i]={}),f[i][o]||(f[i][o]={}),f[i][o][e]=t,!1===u(d,o)&&d.push(o),this},trans:function(e,t,r,o){return n(i(e,r,o,this.locale,this.fallback),t||{})},transChoice:function(e,r,o,s,l){var u=i(e,s,l,this.locale,this.fallback),c=parseInt(r,10);return t==u||isNaN(c)||(u=a(u,c,l||this.locale||this.fallback)),n(u,o||{})},fromJSON:function(e){if("string"==typeof e&&(e=JSON.parse(e)),e.locale&&(this.locale=e.locale),e.fallback&&(this.fallback=e.fallback),e.defaultDomain&&(this.defaultDomain=e.defaultDomain),e.translations)for(var t in e.translations)for(var n in e.translations[t])for(var r in e.translations[t][n])this.add(r,e.translations[t][n][r],n,t);return this},reset:function(){f={},d=[],this.locale=c()}}}(document,void 0);t.default=function(e){e.Translator=r,e.prototype.$trans=r.trans.bind(r),e.prototype.$transChoice=r.transChoice.bind(r),e.filter("trans",function(e,t,n,r){return this.$trans(e,t,n,r)}),e.filter("transChoice",function(e,t,n,r,i){return this.$transChoice(e,t,n,r,i)})}},function(e,t,n){"use strict";function r(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function i(e){return function(t){return t.preventDefault(),e.call(this,t)}}function o(e){return function(t){if(t.target===t.currentTarget)return e.call(this,t)}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),s=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default={acceptStatement:!0,update:function(e){this.descriptor.raw||(e=function(){}),"function"==typeof e&&(this.modifiers.stop&&(e=r(e)),this.modifiers.prevent&&(e=i(e)),this.modifiers.self&&(e=o(e)),this.reset(),this.handler=e,(0,s.default)(this.el).on(this.arg,this.handler))},reset:function(){this.handler&&(0,s.default)(this.el).off(this.arg,this.handler)},unbind:function(){this.reset()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=n(3),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(16),s=o.default.util,l=s.on,u=s.off,c=s.extend,f=s.getAttr;t.default={priority:500,bind:function(){var e=this,t=this.el,n=(f(t,"buttons")||"").split(",");this.options={title:!1,labels:{ok:n[0]||this.vm.$trans("Ok"),cancel:n[1]||this.vm.$trans("Cancel")},stack:!0},this.dirs=this.vm._directives.filter(function(e){return"on"===e.name&&e.el===t}),this.dirs.forEach(function(t){u(t.el,t.arg,t.handler),l(t.el,t.arg,function(n){t.descriptor.modifiers.prevent&&n.preventDefault(),t.descriptor.modifiers.stop&&n.stopPropagation(),a.modal.confirm(e.vm.$trans(e.options.text),e.options).then(function(){return t.handler(n)},function(){})})})},update:function(e){this.arg&&(this.options.title=this.arg),"string"==typeof e&&(this.options.text=e),"object"===(void 0===e?"undefined":r(e))&&(this.options=c(this.options,e))},unbind:function(){this.dirs.forEach(function(e){try{u(e.el,e.arg,e.handler)}catch(e){}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={update:function(e){var t=this;this.selector=e,this.$el=this.vm.$el,this.checked=!1,this.number=null!==this.el.getAttribute("number"),(0,i.default)(this.el).on("change.check-all",function(n){var r=n.target;(0,i.default)(e,t.$el).prop("checked",(0,i.default)(r).prop("checked")),t.selected(!0)}),this.handler=[function(){t.selected(!0),t.state()},function(t){var n=t.target;(0,i.default)(n).is(":input, a")||window.getSelection().toString()||(0,i.default)(n).find(e).trigger("click")}],(0,i.default)(this.$el).on("change.check-all",e,this.handler[0]),(0,i.default)(this.$el).on("click.check-all",".check-item",this.handler[1]),this.unbindWatcher=this.vm.$watch(this.arg,function(n){(0,i.default)(e,t.$el).each(function(e,r){return(0,i.default)(r).prop("checked",function(){return-1!==n.indexOf(t.toNumber((0,i.default)(r).val()))})}),t.selected(),t.state()})},unbind:function(){var e=this;(0,i.default)(this.el).off(".check-all"),this.handler&&this.handler.forEach(function(t){return(0,i.default)(e.$el).off(".check-all",t)}),this.unbindWatcher&&this.unbindWatcher()},state:function(){var e=(0,i.default)(this.el);void 0===this.checked?e.prop("indeterminate",!0):e.prop("checked",this.checked).prop("indeterminate",!1)},selected:function(e){var t,n=this,r=[],o=[];(0,i.default)(this.selector,this.$el).each(function(e,a){t=n.toNumber((0,i.default)(a).val()),o.push(t),(0,i.default)(a).prop("checked")&&r.push(t)}),e&&this.vm.$set(this.arg,this.vm.$get(this.arg).filter(function(e){return-1===o.indexOf(e)}).concat(r)),0===r.length?this.checked=!1:r.length==o.length?this.checked=!0:this.checked=void 0},toNumber:function(e){return this.number?Number(e):e}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=r(i),a=n(3),s=r(a);t.default={update:function(e){var t=(0,o.default)(this.el),n=new Image,r=t.attr("placeholder");n.onload=function(){return t.css("background-image","url('"+e+"')")},r&&(n.onerror=function(){return t.css("background-image","url('"+s.default.url(r)+"')")}),n.src=encodeURI(e)}}},function(e,t,n){var r,i,o={};r=n(190),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/modal.vue: named exports in *.vue files are ignored."),i=n(191),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default={name:"modal",data:function(){var e=this.$options;return{id:e.id,width:e.width,container:e.container,clsWidth:""}},created:function(){this.width&&(this.clsWidth="uk-width-"+this.width),this.$options.components=this.$parent.$options.components},compiled:function(){this.modal=(0,r.modal)(this.$el)},methods:{open:function(){var e=[].slice.call(arguments);return e.length||(e=[this.$parent]),this.modal||this.$mount(),this.$refs.component.$emit.apply(this.$refs.component,["open"].concat(e)),this.modal.show()},close:function(){return this.modal.hide()},onHidden:function(){this.$refs.component.$emit("close"),this.$destroy(!0)}}}},function(e,t){e.exports='\n\n<div :class="{\'uk-modal-container\': container}" v-event:hidden.self="onHidden">\n <component :is="id" :class="[\'uk-modal-dialog\', clsWidth]" v-ref:component></component>\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(193),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/modal-inline.vue: named exports in *.vue files are ignored."),i=n(194),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default={name:"modal-inline",props:{width:String,container:Boolean,keepalive:Boolean},data:function(){return{opened:!1,clsWidth:this.width?"uk-width-"+this.width:""}},beforeDestroy:function(){this.modal&&this.modal.$destroy(!0)},methods:{open:function(){return this.modal||(this.modal=(0,r.modal)(this.$els.modal)),this.modal.show()},close:function(){return this.modal.hide()},onHidden:function(){this.opened=this.keepalive,this.$emit("close")}}}},function(e,t){e.exports='\n\n<div v-show="false">\n <div :class="{\'uk-modal-container\': container}" v-event:beforeshow.self="this.opened = true" v-event:hidden.self="onHidden" v-el:modal>\n <div :class="[\'uk-modal-dialog\', clsWidth]">\n <div v-if="opened">\n <slot></slot>\n </div>\n </div>\n </div>\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(196),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/fields.vue: named exports in *.vue files are ignored."),i=n(306),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(197),o=r(i),a=n(200),s=r(a),l=n(264),u=r(l),c=n(268),f=r(c),d=n(271),h=r(d),p=n(80),v=r(p),m=n(277),g=r(m),y=n(280),b=r(y),w=n(283),x=r(w),k=n(294),C=r(k),_=n(297),S=r(_),O=n(300),M=r(O),T=n(303),A=r(T);t.default={fields:{font:s.default,link:o.default,icon:u.default,menu:f.default,cache:h.default,color:v.default,image:g.default,video:b.default,editor:x.default,gradient:C.default,location:S.default,boxshadow:M.default,selectImg:A.default,buttonPanel:'<button class="uk-button yo-button-panel uk-width-1-1" :class="class" type="button" v-bind="attrs" @click.prevent="$sidebar.openPanel(panel)">{{ $trans(text) }}</button>',text:'<input class="uk-input" :class="class" type="text" v-bind="attrs" v-model="value">',textarea:'<textarea class="uk-textarea" :class="class" v-bind="attrs" v-model="value"></textarea>',select:'<select class="uk-select" :class="class" v-bind="attrs" v-model="value">\n <option :value="option.value" v-for="option in options | options">{{ $trans(option.text) }}</option>\n </select>',radio:'<div v-bind="attrs">\n <div v-for="option in options | options">\n <label><input class="uk-radio" type="radio" :name="name" :value="option.value" v-model="value"> {{ $trans(option.text) }}</label>\n </div>\n </div>',checkbox:'<div>\n <label :class="{\'uk-text-muted\': attrs.disabled}"><input class="uk-checkbox" type="checkbox" v-bind="attrs" v-model="value"> {{ $trans(field.text) }}</label>\n </div>',range:'<div class="uk-grid-small uk-flex-middle" uk-grid>\n <div class="uk-width-expand"><input class="uk-range" :class="class" type="range" v-bind="attrs" v-model="value" @input="$els.input.value = $els.range.value" v-el:range></div>\n <div class="uk-width-auto"><input class="uk-input uk-form-width-xsmall" :class="class" type="text" v-bind="attrs" v-model="value" v-el:input></div>\n </div>',number:'<input class="uk-input" type="number" v-bind="attrs" v-model="value" lazy>',selectIcon:'<ul class="uk-grid-small" uk-grid>\n <li v-for="(id, option) in options" @click.prevent="value = id" :class="{\'uk-active\': value === id}">\n <a class="uk-icon-link" :title="option.label" :icon="option.icon" uk-icon></a>\n </li>\n </ul>',selectCustom:'<div class="uk-width-1-1" uk-form-custom="true">\n <select v-bind="attrs" v-model="value">\n <option :value="option.value" v-for="option in options | options">{{ $trans(option.text) }}</option>\n </select>\n <span class="uk-select uk-text-truncate" :class="class"></span>\n </div>'},methods:{setField:function(e,t,n){var r=e.name,i=e.key;n!==t&&(this.$set("values"+i,t),this.$trigger("setField",[r,t,this.values]))}}}},function(e,t,n){var r,i,o={};r=n(198),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-link.vue: named exports in *.vue files are ignored."),i=n(199),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={computed:{showFile:function(){return!1!==this.filePicker},isImage:function(){return this.value&&this.value.match(/\.(?:gif|jpe?g|png|svg|ico)$/i)}},methods:{select:function(e){"string"==typeof e&&(this.value=e)},remove:function(){this.value=""},openMedia:function(){this.$refs.media.open()}}}},function(e,t){e.exports='\n\n<div>\n\n <div class="uk-position-relative uk-transition-toggle yo-thumbnail uk-margin-small-bottom" v-if="showFile && isImage">\n\n <img :src="$url(value)">\n\n <div class="uk-transition-fade uk-position-cover yo-thumbnail-overlay"></div>\n\n <a class="uk-position-cover" @click.prevent="openMedia"></a>\n\n <div class="uk-transition-fade uk-position-top-right yo-thumbnail-badge uk-light">\n <a class="uk-icon-link" :title="$trans(\'Delete\')" uk-icon="trash" uk-tooltip="delay: 500" @click.prevent="remove"></a>\n </div>\n\n </div>\n\n <div class="uk-inline uk-width-1-1">\n <div class="uk-position-center-right uk-position-small">\n <ul class="uk-iconnav uk-flex-nowrap">\n <li>\n <a class="uk-icon-link uk-preserve-width" title="Pick link" uk-icon="link" uk-tooltip="delay: 500" @click.prevent="$refs.link.open"></a>\n </li>\n <li v-show="showFile">\n <a class="uk-icon-link uk-preserve-width" title="Pick file" uk-icon="album" uk-tooltip="delay: 500" @click.prevent="openMedia"></a>\n </li>\n </ul>\n </div>\n <input class="uk-input yo-input-link-picker" :class="class" type="text" v-bind="attrs" v-model="value">\n </div>\n\n <media-picker v-ref:media @select="select"></media-picker>\n <link-picker v-ref:link @select="select"></link-picker>\n\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(201),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-font.vue: named exports in *.vue files are ignored."),i=n(263),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return(0,l.default)(e||[],function(e){e.fonts=(0,m.default)(e.fonts,function(e){return(0,a.default)(e)?{name:e,value:"'"+e+"'"}:e})}),e}Object.defineProperty(t,"__esModule",{value:!0});var o=n(47),a=r(o),s=n(19),l=r(s),u=n(6),c=r(u),f=n(238),d=r(f),h=n(25),p=r(h),v=n(26),m=r(v),g=n(17),y=r(g),b=n(2),w=r(b),x=n(124),k=r(x),C=n(16),_=[];t.default={data:function(){return{search:"",dropdown:!1,active:!1,fonts:i(this.fonts||(0,c.default)([],k.default)),open:!1}},ready:function(){this.dropdown=(0,C.dropdown)(this.$els.dropdown,{mode:"click",flip:"x",animation:!1,pos:"bottom-justify",boundaryAlign:!0,boundary:(0,w.default)(this.$el).closest(".yo-sidebar-fields").children().has(this.$el)})},computed:{groups:function(){var e=new RegExp(this.search,"i");return this.fonts.map(function(t){return{name:t.name,fonts:t.fonts.filter(function(t){return e.test(t.name)})}}).filter(function(e){return e.fonts.length})},font:function(){var e,t=this;return(0,d.default)(this.fonts,function(n){return e=(0,p.default)(n.fonts,{value:t.value})}),e&&e.name||this.value},chunks:function(){for(var e=[],t=(0,p.default)(this.fonts,{name:"Google Fonts"}).fonts,n=0,r=t.length;n<r;n+=20)e.push((0,m.default)(t.slice(n,n+20),"name"));return e}},watch:{search:function(){this.check(),this.active=!1}},methods:{next:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=(0,w.default)("li",this.$els.fonts).has("a"),n=t.index((0,w.default)(".uk-active",this.$els.fonts));if(t.length&&!((n+=e)>t.length-1)){if(n<0)return void(this.active=!1);var r=t.get(n);this.active=(0,y.default)(r,"__v_frag.scope.font.name"),r.offsetTop+r.offsetHeight>this.$els.overflow.offsetHeight+this.$els.overflow.scrollTop?this.$els.overflow.scrollTop=r.offsetTop+r.offsetHeight-this.$els.overflow.offsetHeight:r.offsetTop<this.$els.overflow.scrollTop&&(this.$els.overflow.scrollTop=r.offsetTop)}},check:function(){var e=this,t=this.$els.overflow.scrollTop-50,n=t+this.$els.overflow.offsetHeight+100;(0,w.default)("li",this.$els.fonts).each(function(r,i){(0,y.default)(i,"__v_frag.scope.font.value")&&i.offsetTop>t&&i.offsetTop<n&&e.load(i.__v_frag.scope.font.value)})},load:function(e){if(e=e.replace(/'/g,""),-1===_.indexOf(e)){var t=(0,p.default)(this.chunks,function(t){return-1!==t.indexOf(e)});if(!t)return;this.$asset({css:"//fonts.googleapis.com/css?family="+t.map(encodeURIComponent).join("|")}),_=_.concat(t)}},pick:function(e){this.value=e,this.dropdown.hide(!1)},onShow:function(){this.check(),this.open=!0},onHide:function(){this.search="",this.active=!1,this.open=!1}}}},function(e,t,n){function r(e,t,n,f,d){e!==t&&a(t,function(a,u){if(l(a))d||(d=new i),s(e,t,u,n,r,f,d);else{var h=f?f(c(e,u),a,u+"",e,t,d):void 0;void 0===h&&(h=a),o(e,u,h)}},u)}var i=n(48),o=n(98),a=n(92),s=n(229),l=n(7),u=n(54),c=n(106);e.exports=r},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function r(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}var i=n(50),o=Array.prototype,a=o.splice;e.exports=r},function(e,t,n){function r(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}var i=n(50);e.exports=r},function(e,t,n){function r(e){return i(this.__data__,e)>-1}var i=n(50);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var i=n(50);e.exports=r},function(e,t,n){function r(){this.__data__=new i,this.size=0}var i=n(49);e.exports=r},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(e,t),this.size=n.size,this}var i=n(49),o=n(67),a=n(68),s=200;e.exports=r},function(e,t,n){function r(e){return!(!a(e)||o(e))&&(i(e)?p:u).test(s(e))}var i=n(46),o=n(214),a=n(7),s=n(97),l=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,d=c.toString,h=f.hasOwnProperty,p=RegExp("^"+d.call(h).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){function r(e){return!!o&&o in e}var i=n(215),o=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,n){var r=n(12),i=r["__core-js_shared__"];e.exports=i},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t,n){function r(){this.size=0,this.__data__={hash:new i,map:new(a||o),string:new i}}var i=n(218),o=n(49),a=n(67);e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(219),o=n(220),a=n(221),s=n(222),l=n(223);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=l,e.exports=r},function(e,t,n){function r(){this.__data__=i?i(null):{},this.size=0}var i=n(51);e.exports=r},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function r(e){var t=this.__data__;if(i){var n=t[e];return n===o?void 0:n}return s.call(t,e)?t[e]:void 0}var i=n(51),o="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){var t=this.__data__;return i?void 0!==t[e]:a.call(t,e)}var i=n(51),o=Object.prototype,a=o.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?o:t,this}var i=n(51),o="__lodash_hash_undefined__";e.exports=r},function(e,t,n){function r(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}var i=n(52);e.exports=r},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function r(e){return i(this,e).get(e)}var i=n(52);e.exports=r},function(e,t,n){function r(e){return i(this,e).has(e)}var i=n(52);e.exports=r},function(e,t,n){function r(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var i=n(52);e.exports=r},function(e,t,n){function r(e,t,n,r,b,w,x){var k=g(e,n),C=g(t,n),_=x.get(C);if(_)return void i(e,n,_);var S=w?w(k,C,n+"",e,t,x):void 0,O=void 0===S;if(O){var M=c(C),T=!M&&d(C),A=!M&&!T&&m(C);S=C,M||T||A?c(k)?S=k:f(k)?S=s(k):T?(O=!1,S=o(C,!0)):A?(O=!1,S=a(C,!0)):S=[]:v(C)||u(C)?(S=k,u(k)?S=y(k):(!p(k)||r&&h(k))&&(S=l(C))):O=!1}O&&(x.set(C,S),b(S,C,r,w,x),x.delete(C)),i(e,n,S)}var i=n(98),o=n(100),a=n(101),s=n(103),l=n(104),u=n(34),c=n(4),f=n(71),d=n(35),h=n(46),p=n(7),v=n(105),m=n(45),g=n(106),y=n(231);e.exports=r},function(e,t,n){var r=n(7),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){function r(e){return i(e,o(e))}var i=n(23),o=n(54);e.exports=r},function(e,t,n){function r(e){if(!i(e))return a(e);var t=o(e),n=[];for(var r in e)("constructor"!=r||!t&&l.call(e,r))&&n.push(r);return n}var i=n(7),o=n(37),a=n(233),s=Object.prototype,l=s.hasOwnProperty;e.exports=r},function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t,n){var r=n(236),i=n(99),o=n(38),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t){function n(e){var t=0,n=0;return function(){var a=o(),s=i-(a-n);if(n=a,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;e.exports=n},function(e,t,n){function r(e,t,n){var r=s(e)?i:a;return n&&l(e,t,n)&&(t=void 0),r(e,o(t,3))}var i=n(110),o=n(9),a=n(260),s=n(4),l=n(56);e.exports=r},function(e,t,n){function r(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}var i=n(240),o=n(250),a=n(119);e.exports=r},function(e,t,n){function r(e,t,n,r){var l=n.length,u=l,c=!r;if(null==e)return!u;for(e=Object(e);l--;){var f=n[l];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++l<u;){f=n[l];var d=f[0],h=e[d],p=f[1];if(c&&f[2]){if(void 0===h&&!(d in e))return!1}else{var v=new i;if(r)var m=r(h,p,d,e,t,v);if(!(void 0===m?o(p,h,a|s,r,v):m))return!1}}return!0}var i=n(48),o=n(111),a=1,s=2;e.exports=r},function(e,t,n){function r(e,t,n,r,m,y){var b=u(e),w=u(t),x=b?p:l(e),k=w?p:l(t);x=x==h?v:x,k=k==h?v:k;var C=x==v,_=k==v,S=x==k;if(S&&c(e)){if(!c(t))return!1;b=!0,C=!1}if(S&&!C)return y||(y=new i),b||f(e)?o(e,t,n,r,m,y):a(e,t,x,n,r,m,y);if(!(n&d)){var O=C&&g.call(e,"__wrapped__"),M=_&&g.call(t,"__wrapped__");if(O||M){var T=O?e.value():e,A=M?t.value():t;return y||(y=new i),m(T,A,n,r,y)}}return!!S&&(y||(y=new i),s(e,t,n,r,m,y))}var i=n(48),o=n(112),a=n(244),s=n(246),l=n(40),u=n(4),c=n(35),f=n(45),d=1,h="[object Arguments]",p="[object Array]",v="[object Object]",m=Object.prototype,g=m.hasOwnProperty;e.exports=r},function(e,t){function n(e){return this.__data__.set(e,r),this}var r="__lodash_hash_undefined__";e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t,n,r,i,C,S){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!C(new o(e),new o(t)));case d:case h:case m:return a(+e,+t);case p:return e.name==t.name&&e.message==t.message;case g:case b:return e==t+"";case v:var O=l;case y:var M=r&c;if(O||(O=u),e.size!=t.size&&!M)return!1;var T=S.get(e);if(T)return T==t;r|=f,S.set(e,t);var A=s(O(e),O(t),r,i,C,S);return S.delete(e),A;case w:if(_)return _.call(e)==_.call(t)}return!1}var i=n(28),o=n(102),a=n(39),s=n(112),l=n(245),u=n(74),c=1,f=2,d="[object Boolean]",h="[object Date]",p="[object Error]",v="[object Map]",m="[object Number]",g="[object RegExp]",y="[object Set]",b="[object String]",w="[object Symbol]",x="[object ArrayBuffer]",k="[object DataView]",C=i?i.prototype:void 0,_=C?C.valueOf:void 0;e.exports=r},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e.exports=n},function(e,t,n){function r(e,t,n,r,a,l){var u=n&o,c=i(e),f=c.length;if(f!=i(t).length&&!u)return!1;for(var d=f;d--;){var h=c[d];if(!(u?h in t:s.call(t,h)))return!1}var p=l.get(e);if(p&&l.get(t))return p==t;var v=!0;l.set(e,t),l.set(t,e);for(var m=u;++d<f;){h=c[d];var g=e[h],y=t[h];if(r)var b=u?r(y,g,h,t,e,l):r(g,y,h,e,t,l);if(!(void 0===b?g===y||a(g,y,n,r,l):b)){v=!1;break}m||(m="constructor"==h)}if(v&&!m){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(v=!1)}return l.delete(e),l.delete(t),v}var i=n(113),o=1,a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){var r=n(22),i=n(12),o=r(i,"DataView");e.exports=o},function(e,t,n){var r=n(22),i=n(12),o=r(i,"Promise");e.exports=o},function(e,t,n){var r=n(22),i=n(12),o=r(i,"WeakMap");e.exports=o},function(e,t,n){function r(e){for(var t=o(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,i(a)]}return t}var i=n(118),o=n(13);e.exports=r},function(e,t,n){function r(e,t){return s(e)&&l(t)?u(c(e),t):function(n){var r=o(n,e);return void 0===r&&r===t?a(n,e):i(t,r,f|d)}}var i=n(111),o=n(17),a=n(120),s=n(77),l=n(118),u=n(119),c=n(31),f=1,d=2;e.exports=r},function(e,t,n){var r=n(253),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},function(e,t,n){function r(e){var t=i(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}var i=n(254),o=500;e.exports=r},function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(r.Cache||i),n}var i=n(68),o="Expected a function";r.Cache=i,e.exports=r},function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},function(e,t,n){function r(e,t,n){t=i(t,e);for(var r=-1,c=t.length,f=!1;++r<c;){var d=u(t[r]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++r!=c?f:!!(c=null==e?0:e.length)&&l(c)&&s(d,c)&&(a(e)||o(e))}var i=n(30),o=n(34),a=n(4),s=n(44),l=n(65),u=n(31);e.exports=r},function(e,t,n){function r(e){return a(e)?i(s(e)):o(e)}var i=n(258),o=n(259),a=n(77),s=n(31);e.exports=r},function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},function(e,t,n){function r(e){return function(t){return i(t,e)}}var i=n(57);e.exports=r},function(e,t,n){function r(e,t){var n;return i(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}var i=n(20);e.exports=r},function(e,t,n){function r(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var l=null==n?0:a(n);return l<0&&(l=s(r+l,0)),i(e,o(t,3),l)}var i=n(78),o=n(9),a=n(43),s=Math.max;e.exports=r},function(e,t,n){function r(e){if(!e)return 0===e?e:0;if((e=i(e))===o||e===-o){return(e<0?-1:1)*a}return e===e?e:0}var i=n(122),o=1/0,a=1.7976931348623157e308;e.exports=r},function(e,t){e.exports='\n\n<div>\n\n <a class="uk-select uk-text-truncate" :class="attrs.class" href="#" :title="attrs.title" @keydown.down="dropdown.show()">\n <template v-if="font || attrs.placeholder">{{ font || attrs.placeholder }}</template>\n <template v-else>{{ $trans(\'Choose Font\') }}</template>\n </a>\n\n <div class="yo-dropdown" v-event:show="onShow" v-event:hide="onHide" v-el:dropdown>\n\n <div class="yo-dropdown-header">\n\n <div class="uk-search uk-search-default uk-width-1-1">\n <span class="uk-search-icon-flip" uk-search-icon></span>\n <input class="uk-search-input" type="search" :placeholder="$trans(\'Search...\')" v-model="search" autofocus @keydown.enter="pick(active || search)" @keydown.down.prevent="next()" @keydown.up.prevent="next(-1)" v-el:search>\n </div>\n\n </div>\n\n <div class="yo-dropdown-body uk-overflow-auto uk-height-max-medium" @scroll="check | debounce (10)" v-el:overflow>\n\n <ul class="uk-nav uk-dropdown-nav" v-el:fonts v-show="groups.length">\n <template v-if="open">\n <template v-for="(i, group) in groups">\n <template v-if="group.fonts.length">\n <li class="uk-nav-divider" v-if="i > 0"></li>\n <li class="uk-nav-header">{{ $trans(group.name) }}</li>\n <li :class="{\'uk-active\': active === font.name}" v-for="font in group.fonts" @mouseenter="active = font.name">\n <a class="uk-text-truncate" href="" :style="{fontFamily: font.value}" @click.prevent.stop="pick(font.value)">{{ font.name }}</a>\n </li>\n </template>\n </template>\n </template>\n </ul>\n\n <span v-else>{{ $trans(\'No font found. Press enter if you are adding a custom font.\') }}</span>\n\n </div>\n\n </div>\n\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(265),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-icon.vue: named exports in *.vue files are ignored."),i=n(267),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(266),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={data:function(){return{icons:this.icons||i.default}},methods:{open:function(){this.$refs.modal.open()},pick:function(e){this.$set("value",e),this.$refs.modal.close()}}}},function(e,t){e.exports={"App Icons":["home","sign-in","sign-out","user","users","lock","unlock","settings","cog","nut","comment","commenting","comments","hashtag","tag","cart","credit-card","mail","receiver","search","location","bookmark","code","paint-bucket","camera","bell","bolt","star","heart","happy","lifesaver","rss","social","git-branch","git-fork","world","calendar","clock","history","future","pencil","trash","move","link","question","info","warning","image","list","thumbnails","table","menu","grid","more","more-vertical","plus","plus-circle","minus","minus-circle","close","check","ban","refresh","play","play-circle"],"Device Icons":["tv","desktop","laptop","tablet","phone","tablet-landscape","phone-landscape"],"Storage Icons":["file","copy","file-edit","folder","album","push","pull","server","database","cloud-upload","cloud-download","download","upload"],"Direction Icons":["reply","forward","expand","shrink","arrow-up","arrow-down","arrow-left","arrow-right","chevron-up","chevron-down","chevron-left","chevron-right","triangle-up","triangle-down","triangle-left","triangle-right"],"Editor Icons":["bold","italic","strikethrough","video-camera","quote-right"],"Brand Icons":["500px","behance","dribbble","facebook","github-alt","github","foursquare","tumblr","whatsapp","soundcloud","flickr","google-plus","google","linkedin","vimeo","instagram","joomla","pagekit","pinterest","tripadvisor","twitter","uikit","wordpress","xing","yelp","youtube"]}},function(e,t){e.exports='\n\n<div>\n\n <div class="uk-position-relative" :class="attrs.class">\n <a class="uk-form-icon uk-form-icon-flip" :class="{\'uk-disabled\': attrs.disabled}" uk-icon="pencil" @click.prevent="open"></a>\n <input class="uk-input" type="text" :disabled="attrs.disabled" v-model="value" lazy>\n </div>\n\n <modal container v-ref:modal>\n\n <div class="uk-modal-header">\n <h3 class="uk-modal-title">{{ $trans(\'Select Icon\') }}</h3>\n </div>\n\n <div class="uk-modal-body" uk-overflow-auto>\n\n <div class="uk-grid-collapse uk-child-width-auto" uk-grid>\n\n <template v-for="icons in icons">\n <div v-for="icon in icons">\n <div class="uk-card uk-card-body uk-card-small uk-card-hover yo-panel uk-text-center">\n <span uk-icon ratio="2" :icon="icon"></span>\n <a class="uk-position-cover" href="" :title="icon" uk-tooltip="delay: 500" @click.prevent="pick(icon)"></a>\n </div>\n </div>\n </template>\n\n </div>\n\n </div>\n\n </modal>\n\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(269),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-menu.vue: named exports in *.vue files are ignored."),i=n(270),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(79),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={methods:{hasPanel:function(e){return this.$sidebar.panels[e]&&(!(0,i.default)(this.$sidebar.panels[e].fields)||this.$sidebar.panel&&this.$sidebar.panel.$options.components[e])}}}},function(e,t){e.exports='\n\n<ul class="uk-nav uk-nav-default yo-sidebar-marginless">\n <li v-for="(name, item) in items" v-show="hasPanel(name)">\n <a tabindex="0" @click.prevent="$sidebar.openPanel(name)">{{ $trans(item) }}</a>\n </li>\n</ul>\n\n'},function(e,t,n){var r,i,o={};r=n(272),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-cache.vue: named exports in *.vue files are ignored."),i=n(273),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{files:0}},ready:function(){this.update()},methods:{update:function(){var e=this;this.$http.get("cache").then(function(t){var n=t.body;return e.files=n.files})},clear:function(){this.$http.post("cache/clear").then(this.update)}}}},function(e,t){e.exports='\n\n<div>\n\n <button class="uk-button uk-button-default uk-width-1-1" type="button" @click.prevent="clear" :disabled="!files">{{ $trans(\'Clear Cache\') }}</button>\n\n</div>\n\n'},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(2),s=r(a),l=n(16),u=n(27);n(275),t.default={props:["config","value","preview"],data:function(){return(0,o.default)(this.config)},ready:function(){this.input=(0,s.default)(this.$els.color),this.dropdown=(0,l.dropdown)(this.$els.dropdown,{mode:"click",flip:"x",animation:!1,pos:"bottom-justify",boundaryAlign:!0,boundary:(0,s.default)(this.$el).closest(".yo-sidebar-fields .uk-margin-small, .yo-sidebar-fields .yo-margin-xsmall")})},computed:{color:function(){return this.preview||this.value}},methods:{preventClickout:function(){var e=this,t=function t(n){(0,u.within)(n.target,e.$els.dropdown)||(n.preventDefault(),n.stopPropagation()),document.documentElement.removeEventListener("click",t,!0)};document.documentElement.addEventListener("click",t,!0)},onShow:function(){var e=this;this.input.spectrum({allowEmpty:this.allowEmpty||void 0===this.allowEmpty,clickoutFiresChange:!1,color:this.value,flat:!0,preferredFormat:"hex",showAlpha:!1!==this.alpha,showInitial:!0,showInput:!0,show:function(){(0,s.default)(document).unbind("click.spectrum"),(0,s.default)(".sp-container",e.$el).unbind("click"),(0,s.default)(".sp-choose",e.$el).unbind("click.spectrum").on("click",function(){var t=e.input.spectrum("get");e.value=e.isKeywordValue((0,s.default)(".sp-input",e.$el).val())?(0,s.default)(".sp-input",e.$el).val():t?t.toName()===e.value||t.toString().toUpperCase()===e.value?e.value:t.toString():t,e.$emit("update"),e.dropdown.hide(!1)}),(0,s.default)(".sp-cancel",e.$el).unbind("click.spectrum").on("click",function(t){t.preventDefault(),e.dropdown.hide(!1)}),e.isKeywordValue(e.value)&&(0,s.default)(".sp-input",e.$el).val(e.value),e.$emit("show")}}),requestAnimationFrame(function(){return e.input.spectrum("reflow")})},onHide:function(){this.input.spectrum("destroy"),this.$emit("close")},isKeywordValue:function(e){return~["currentColor","inherit","initial","unset"].indexOf(e)}}}},function(e,t,n){var r,i,o;!function(a){"use strict";i=[n(2)],r=a,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(function(e,t){"use strict";function n(t,n,r,i){for(var o=[],a=0;a<t.length;a++){var s=t[a];if(s){var l=tinycolor(s),u=l.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";u+=tinycolor.equals(n,s)?" sp-thumb-active":"";var c=l.toString(i.preferredFormat||"rgb"),f=m?"background-color:"+l.toRgbString():"filter:"+l.toFilter();o.push('<span title="'+c+'" data-color="'+l.toRgbString()+'" class="'+u+'"><span class="sp-thumb-inner" style="'+f+';" /></span>')}else{o.push(e("<div />").append(e('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",i.noColorSelectedText)).html())}}return"<div class='sp-cf "+r+"'>"+o.join("")+"</div>"}function r(){for(var e=0;e<p.length;e++)p[e]&&p[e].hide()}function i(t,n){var r=e.extend({},h,t);return r.callbacks={move:u(r.move,n),change:u(r.change,n),show:u(r.show,n),hide:u(r.hide,n),beforeShow:u(r.beforeShow,n)},r}function o(o,s){function u(){if(U.showPaletteOnly&&(U.showPalette=!0),Fe.text(U.showPaletteOnly?U.togglePaletteMoreText:U.togglePaletteLessText),U.palette){de=U.palette.slice(0),he=e.isArray(de[0])?de:[de],pe={};for(var t=0;t<he.length;t++)for(var n=0;n<he[t].length;n++){var r=tinycolor(he[t][n]).toRgbString();pe[r]=!0}}ke.toggleClass("sp-flat",q),ke.toggleClass("sp-input-disabled",!U.showInput),ke.toggleClass("sp-alpha-enabled",U.showAlpha),ke.toggleClass("sp-clear-enabled",Ye),ke.toggleClass("sp-buttons-disabled",!U.showButtons),ke.toggleClass("sp-palette-buttons-disabled",!U.togglePaletteOnly),ke.toggleClass("sp-palette-disabled",!U.showPalette),ke.toggleClass("sp-palette-only",U.showPaletteOnly),ke.toggleClass("sp-initial-disabled",!U.showInitial),ke.addClass(U.className).addClass(U.containerClassName),H()}function h(){if(K&&window.localStorage){try{var t=window.localStorage[K].split(",#");t.length>1&&(delete window.localStorage[K],e.each(t,function(e,t){b(t)}))}catch(e){}try{ve=window.localStorage[K].split(";")}catch(e){}}}function b(t){if(G){var n=tinycolor(t).toRgbString();if(!pe[n]&&-1===e.inArray(n,ve))for(ve.push(n);ve.length>me;)ve.shift();if(K&&window.localStorage)try{window.localStorage[K]=ve.join(";")}catch(e){}}}function w(){var e=[];if(U.showPalette)for(var t=0;t<ve.length;t++){var n=tinycolor(ve[t]).toRgbString();pe[n]||e.push(ve[t])}return e.reverse().slice(0,U.maxSelectionSize)}function x(){var t=$(),r=e.map(he,function(e,r){return n(e,t,"sp-palette-row sp-palette-row-"+r,U)});h(),ve&&r.push(n(w(),t,"sp-palette-row sp-palette-row-selection",U)),Le.html(r.join(""))}function k(){if(U.showInitial){var e=Ue,t=$();$e.html(n([e,t],t,"sp-palette-row-initial",U))}}function C(){(te<=0||ee<=0||re<=0)&&H(),Q=!0,ke.addClass(ge),ye=null,we.trigger("dragstart.spectrum",[$()])}function _(){Q=!1,ke.removeClass(ge),we.trigger("dragstop.spectrum",[$()])}function S(){var e=Ee.val();if(null!==e&&""!==e||!Ye){var t=tinycolor(e);t.isValid()?(L(t),I(!0)):Ee.addClass("sp-validation-error")}else L(null),I(!0)}function O(){Z?N():M()}function M(){var t=e.Event("beforeShow.spectrum");if(Z)return void H();we.trigger(t,[$()]),!1===X.beforeShow($())||t.isDefaultPrevented()||(r(),Z=!0,e(be).bind("keydown.spectrum",T),e(be).bind("click.spectrum",A),e(window).bind("resize.spectrum",J),ze.addClass("sp-active"),ke.removeClass("sp-hidden"),H(),D(),Ue=$(),k(),X.show(Ue),we.trigger("show.spectrum",[Ue]))}function T(e){27===e.keyCode&&N()}function A(e){2!=e.button&&(Q||(Ge?I(!0):E(),N()))}function N(){Z&&!q&&(Z=!1,e(be).unbind("keydown.spectrum",T),e(be).unbind("click.spectrum",A),e(window).unbind("resize.spectrum",J),ze.removeClass("sp-active"),ke.addClass("sp-hidden"),X.hide($()),we.trigger("hide.spectrum",[$()]))}function E(){L(Ue,!0)}function L(e,t){if(tinycolor.equals(e,$()))return void D();var n,r;!e&&Ye?Ke=!0:(Ke=!1,n=tinycolor(e),r=n.toHsv(),le=r.h%360/360,ue=r.s,ce=r.v,fe=r.a),D(),n&&n.isValid()&&!t&&(qe=U.preferredFormat||n.getFormat())}function $(e){return e=e||{},Ye&&Ke?null:tinycolor.fromRatio({h:le,s:ue,v:ce,a:Math.round(100*fe)/100},{format:e.format||qe})}function P(){return!Ee.hasClass("sp-validation-error")}function j(){D(),X.move($()),we.trigger("move.spectrum",[$()])}function D(){Ee.removeClass("sp-validation-error"),F();var e=tinycolor.fromRatio({h:le,s:1,v:1});_e.css("background-color",e.toHexString());var t=qe;fe<1&&(0!==fe||"name"!==t)&&("hex"!==t&&"hex3"!==t&&"hex6"!==t&&"name"!==t||(t="rgb"));var n=$({format:t}),r="";if(Be.removeClass("sp-clear-display"),Be.css("background-color","transparent"),!n&&Ye)Be.addClass("sp-clear-display");else{var i=n.toHexString(),o=n.toRgbString();if(m||1===n.alpha?Be.css("background-color",o):(Be.css("background-color","transparent"),Be.css("filter",n.toFilter())),U.showAlpha){var a=n.toRgb();a.a=0;var s=tinycolor(a).toRgbString(),l="linear-gradient(left, "+s+", "+i+")";v?Te.css("filter",tinycolor(s).toFilter({gradientType:1},i)):(Te.css("background","-webkit-"+l),Te.css("background","-moz-"+l),Te.css("background","-ms-"+l),Te.css("background","linear-gradient(to right, "+s+", "+i+")"))}r=n.toString(t)}U.showInput&&Ee.val(r),U.showPalette&&x(),k()}function F(){var e=ue,t=ce;if(Ye&&Ke)Ne.hide(),Me.hide(),Se.hide();else{Ne.show(),Me.show(),Se.show();var n=e*ee,r=te-t*te;n=Math.max(-ne,Math.min(ee-ne,n-ne)),r=Math.max(-ne,Math.min(te-ne,r-ne)),Se.css({top:r+"px",left:n+"px"});var i=fe*oe;Ne.css({left:i-ae/2+"px"});var o=le*re;Me.css({top:o-se+"px"})}}function I(e){var t=$(),n="",r=!tinycolor.equals(t,Ue);t&&(n=t.toString(qe),b(t)),Ie&&we.val(n),e&&r&&(X.change(t),we.trigger("change",[t]))}function H(){Z&&(ee=_e.width(),te=_e.height(),ne=Se.height(),ie=Oe.width(),re=Oe.height(),se=Me.height(),oe=Ae.width(),ae=Ne.width(),q||(ke.css("position","absolute"),U.offset?ke.offset(U.offset):ke.offset(a(ke,We))),F(),U.showPalette&&x(),we.trigger("reflow.spectrum"))}function R(){we.show(),We.unbind("click.spectrum touchstart.spectrum"),ke.remove(),ze.remove(),p[Xe.id]=null}function z(n,r){return n===t?e.extend({},U):r===t?U[n]:(U[n]=r,"preferredFormat"===n&&(qe=U.preferredFormat),void u())}function W(){xe=!1,we.attr("disabled",!1),We.removeClass("sp-disabled")}function B(){N(),xe=!0,we.attr("disabled",!0),We.addClass("sp-disabled")}function V(e){U.offset=e,H()}var U=i(s,o),q=U.flat,G=U.showSelectionPalette,K=U.localStorageKey,Y=U.theme,X=U.callbacks,J=f(H,10),Z=!1,Q=!1,ee=0,te=0,ne=0,re=0,ie=0,oe=0,ae=0,se=0,le=0,ue=0,ce=0,fe=1,de=[],he=[],pe={},ve=U.selectionPalette.slice(0),me=U.maxSelectionSize,ge="sp-dragging",ye=null,be=o.ownerDocument,we=(be.body,e(o)),xe=!1,ke=e(y,be).addClass(Y),Ce=ke.find(".sp-picker-container"),_e=ke.find(".sp-color"),Se=ke.find(".sp-dragger"),Oe=ke.find(".sp-hue"),Me=ke.find(".sp-slider"),Te=ke.find(".sp-alpha-inner"),Ae=ke.find(".sp-alpha"),Ne=ke.find(".sp-alpha-handle"),Ee=ke.find(".sp-input"),Le=ke.find(".sp-palette"),$e=ke.find(".sp-initial"),Pe=ke.find(".sp-cancel"),je=ke.find(".sp-clear"),De=ke.find(".sp-choose"),Fe=ke.find(".sp-palette-toggle"),Ie=we.is("input"),He=Ie&&"color"===we.attr("type")&&d(),Re=Ie&&!q,ze=Re?e(g).addClass(Y).addClass(U.className).addClass(U.replacerClassName):e([]),We=Re?ze:we,Be=ze.find(".sp-preview-inner"),Ve=U.color||Ie&&we.val(),Ue=!1,qe=U.preferredFormat,Ge=!U.showButtons||U.clickoutFiresChange,Ke=!Ve,Ye=U.allowEmpty&&!He;!function(){function t(t){return t.data&&t.data.ignore?(L(e(t.target).closest(".sp-thumb-el").data("color")),j()):(L(e(t.target).closest(".sp-thumb-el").data("color")),j(),I(!0),U.hideAfterPaletteSelect&&N()),!1}if(v&&ke.find("*:not(input)").attr("unselectable","on"),u(),Re&&we.after(ze).hide(),Ye||je.hide(),q)we.after(ke).hide();else{var n="parent"===U.appendTo?we.parent():e(U.appendTo);1!==n.length&&(n=e("body")),n.append(ke)}h(),We.bind("click.spectrum touchstart.spectrum",function(t){xe||O(),t.stopPropagation(),e(t.target).is("input")||t.preventDefault()}),(we.is(":disabled")||!0===U.disabled)&&B(),ke.click(l),Ee.change(S),Ee.bind("paste",function(){setTimeout(S,1)}),Ee.keydown(function(e){13==e.keyCode&&S()}),Pe.text(U.cancelText),Pe.bind("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),E(),N()}),je.attr("title",U.clearText),je.bind("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),Ke=!0,j(),q&&I(!0)}),De.text(U.chooseText),De.bind("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),v&&Ee.is(":focus")&&Ee.trigger("change"),P()&&(I(!0),N())}),Fe.text(U.showPaletteOnly?U.togglePaletteMoreText:U.togglePaletteLessText),Fe.bind("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),U.showPaletteOnly=!U.showPaletteOnly,U.showPaletteOnly||q||ke.css("left","-="+(Ce.outerWidth(!0)+5)),u()}),c(Ae,function(e,t,n){fe=e/oe,Ke=!1,n.shiftKey&&(fe=Math.round(10*fe)/10),j()},C,_),c(Oe,function(e,t){le=parseFloat(t/re),Ke=!1,U.showAlpha||(fe=1),j()},C,_),c(_e,function(e,t,n){if(n.shiftKey){if(!ye){var r=ue*ee,i=te-ce*te,o=Math.abs(e-r)>Math.abs(t-i);ye=o?"x":"y"}}else ye=null;var a=!ye||"x"===ye,s=!ye||"y"===ye;a&&(ue=parseFloat(e/ee)),s&&(ce=parseFloat((te-t)/te)),Ke=!1,U.showAlpha||(fe=1),j()},C,_),Ve?(L(Ve),D(),qe=U.preferredFormat||tinycolor(Ve).format,b(Ve)):D(),q&&M();var r=v?"mousedown.spectrum":"click.spectrum touchstart.spectrum";Le.delegate(".sp-thumb-el",r,t),$e.delegate(".sp-thumb-el:nth-child(1)",r,{ignore:!0},t)}();var Xe={show:M,hide:N,toggle:O,reflow:H,option:z,enable:W,disable:B,offset:V,set:function(e){L(e),I()},get:$,destroy:R,container:ke};return Xe.id=p.push(Xe)-1,Xe}function a(t,n){var r=t.outerWidth(),i=t.outerHeight(),o=n.outerHeight(),a=t[0].ownerDocument,s=a.documentElement,l=s.clientWidth+e(a).scrollLeft(),u=s.clientHeight+e(a).scrollTop(),c=n.offset();return 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-0):0),c}function s(){}function l(e){e.stopPropagation()}function u(e,t){var n=Array.prototype.slice,r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}function c(t,n,r,i){function o(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.returnValue=!1}function a(e){if(c){if(v&&u.documentMode<9&&!e.button)return l();var r=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0],i=r&&r.pageX||e.pageX,a=r&&r.pageY||e.pageY,s=Math.max(0,Math.min(i-f.left,h)),m=Math.max(0,Math.min(a-f.top,d));p&&o(e),n.apply(t,[s,m,e])}}function s(n){(n.which?3==n.which:2==n.button)||c||!1!==r.apply(t,arguments)&&(c=!0,d=e(t).height(),h=e(t).width(),f=e(t).offset(),e(u).bind(m),e(u.body).addClass("sp-dragging"),a(n),o(n))}function l(){c&&(e(u).unbind(m),e(u.body).removeClass("sp-dragging"),setTimeout(function(){i.apply(t,arguments)},0)),c=!1}n=n||function(){},r=r||function(){},i=i||function(){};var u=document,c=!1,f={},d=0,h=0,p="ontouchstart"in window,m={};m.selectstart=o,m.dragstart=o,m["touchmove mousemove"]=a,m["touchend mouseup"]=l,e(t).bind("touchstart mousedown",s)}function f(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,e.apply(i,o)};n&&clearTimeout(r),!n&&r||(r=setTimeout(a,t))}}function d(){return e.fn.spectrum.inputTypeColorSupport()}var h={beforeShow:s,move:s,change:s,show:s,hide:s,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},p=[],v=!!/msie/i.exec(window.navigator.userAgent),m=function(){function e(e,t){return!!~(""+e).indexOf(t)}var t=document.createElement("div"),n=t.style;return n.cssText="background-color:rgba(0,0,0,.5)",e(n.backgroundColor,"rgba")||e(n.backgroundColor,"hsla")}(),g=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>▼</div>","</div>"].join(""),y=function(){var e="";if(v)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("")}();e.fn.spectrum=function(t,n){if("string"==typeof t){var r=this,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=p[e(this).data("spectrum.id")];if(n){var o=n[t];if(!o)throw new Error("Spectrum: no such method: '"+t+"'");"get"==t?r=n.get():"container"==t?r=n.container:"option"==t?r=n.option.apply(n,i):"destroy"==t?(n.destroy(),e(this).removeData("spectrum.id")):o.apply(n,i)}}),r}return this.spectrum("destroy").each(function(){var n=e.extend({},t,e(this).data()),r=o(this,n);e(this).data("spectrum.id",r.id)})},e.fn.spectrum.load=!0,e.fn.spectrum.loadOpts={},e.fn.spectrum.draggable=c,e.fn.spectrum.defaults=h,e.fn.spectrum.inputTypeColorSupport=function t(){if(void 0===t._cachedResult){var n=e("<input type='color'/>")[0];t._cachedResult="color"===n.type&&""!==n.value}return t._cachedResult},e.spectrum={},e.spectrum.localization={},e.spectrum.palettes={},e.fn.spectrum.processNativeColorInputs=function(){var t=e("input[type=color]");t.length&&!d()&&t.spectrum({preferredFormat:"hex6"})},function(){function e(e){var n={r:0,g:0,b:0},i=1,a=!1,s=!1;return"string"==typeof e&&(e=E(e)),"object"==typeof e&&(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")?(n=t(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("v")?(e.s=T(e.s),e.v=T(e.v),n=o(e.h,e.s,e.v),a=!0,s="hsv"):e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("l")&&(e.s=T(e.s),e.l=T(e.l),n=r(e.h,e.s,e.l),a=!0,s="hsl"),e.hasOwnProperty("a")&&(i=e.a)),i=x(i),{ok:a,format:e.format||s,r:F(255,I(n.r,0)),g:F(255,I(n.g,0)),b:F(255,I(n.b,0)),a:i}}function t(e,t,n){return{r:255*k(e,255),g:255*k(t,255),b:255*k(n,255)}}function n(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r,i,o=I(e,t,n),a=F(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,l:s}}function r(e,t,n){function r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var i,o,a;if(e=k(e,360),t=k(t,100),n=k(n,100),0===t)i=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=r(l,s,e+1/3),o=r(l,s,e),a=r(l,s,e-1/3)}return{r:255*i,g:255*o,b:255*a}}function i(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r,i,o=I(e,t,n),a=F(e,t,n),s=o,l=o-a;if(i=0===o?0:l/o,o==a)r=0;else{switch(o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,v:s}}function o(e,t,n){e=6*k(e,360),t=k(t,100),n=k(n,100);var r=j.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}function a(e,t,n,r){var i=[M(D(e).toString(16)),M(D(t).toString(16)),M(D(n).toString(16))];return 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)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function s(e,t,n,r){return[M(A(r)),M(D(e).toString(16)),M(D(t).toString(16)),M(D(n).toString(16))].join("")}function l(e,t){t=0===t?0:t||10;var n=R(e).toHsl();return n.s-=t/100,n.s=C(n.s),R(n)}function u(e,t){t=0===t?0:t||10;var n=R(e).toHsl();return n.s+=t/100,n.s=C(n.s),R(n)}function c(e){return R(e).desaturate(100)}function f(e,t){t=0===t?0:t||10;var n=R(e).toHsl();return n.l+=t/100,n.l=C(n.l),R(n)}function d(e,t){t=0===t?0:t||10;var n=R(e).toRgb();return n.r=I(0,F(255,n.r-D(-t/100*255))),n.g=I(0,F(255,n.g-D(-t/100*255))),n.b=I(0,F(255,n.b-D(-t/100*255))),R(n)}function h(e,t){t=0===t?0:t||10;var n=R(e).toHsl();return n.l-=t/100,n.l=C(n.l),R(n)}function p(e,t){var n=R(e).toHsl(),r=(D(n.h)+t)%360;return n.h=r<0?360+r:r,R(n)}function v(e){var t=R(e).toHsl();return t.h=(t.h+180)%360,R(t)}function m(e){var t=R(e).toHsl(),n=t.h;return[R(e),R({h:(n+120)%360,s:t.s,l:t.l}),R({h:(n+240)%360,s:t.s,l:t.l})]}function g(e){var t=R(e).toHsl(),n=t.h;return[R(e),R({h:(n+90)%360,s:t.s,l:t.l}),R({h:(n+180)%360,s:t.s,l:t.l}),R({h:(n+270)%360,s:t.s,l:t.l})]}function y(e){var t=R(e).toHsl(),n=t.h;return[R(e),R({h:(n+72)%360,s:t.s,l:t.l}),R({h:(n+216)%360,s:t.s,l:t.l})]}function b(e,t,n){t=t||6,n=n||30;var r=R(e).toHsl(),i=360/n,o=[R(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(R(r));return o}function w(e,t){t=t||6;for(var n=R(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(R({h:r,s:i,v:o})),o=(o+s)%1;return a}function x(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function k(e,t){S(e)&&(e="100%");var n=O(e);return e=F(t,I(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),j.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C(e){return F(1,I(0,e))}function _(e){return parseInt(e,16)}function S(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function O(e){return"string"==typeof e&&-1!=e.indexOf("%")}function M(e){return 1==e.length?"0"+e:""+e}function T(e){return e<=1&&(e=100*e+"%"),e}function A(e){return Math.round(255*parseFloat(e)).toString(16)}function N(e){return _(e)/255}function E(e){e=e.replace(L,"").replace($,"").toLowerCase();var t=!1;if(z[e])e=z[e],t=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=B.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=B.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=B.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=B.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=B.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=B.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=B.hex8.exec(e))?{a:N(n[1]),r:_(n[2]),g:_(n[3]),b:_(n[4]),format:t?"name":"hex8"}:(n=B.hex6.exec(e))?{r:_(n[1]),g:_(n[2]),b:_(n[3]),format:t?"name":"hex"}:!!(n=B.hex3.exec(e))&&{r:_(n[1]+""+n[1]),g:_(n[2]+""+n[2]),b:_(n[3]+""+n[3]),format:t?"name":"hex"}}var L=/^[\s,#]+/,$=/\s+$/,P=0,j=Math,D=j.round,F=j.min,I=j.max,H=j.random,R=function(t,n){if(t=t||"",n=n||{},t instanceof R)return t;if(!(this instanceof R))return new R(t,n);var r=e(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=D(100*this._a)/100,this._format=n.format||r.format,this._gradientType=n.gradientType,this._r<1&&(this._r=D(this._r)),this._g<1&&(this._g=D(this._g)),this._b<1&&(this._b=D(this._b)),this._ok=r.ok,this._tc_id=P++};R.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(299*e.r+587*e.g+114*e.b)/1e3},setAlpha:function(e){return this._a=x(e),this._roundA=D(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=D(360*e.h),n=D(100*e.s),r=D(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=n(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=n(this._r,this._g,this._b),t=D(360*e.h),r=D(100*e.s),i=D(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+i+"%)":"hsla("+t+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return a(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(){return s(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:D(this._r),g:D(this._g),b:D(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+D(this._r)+", "+D(this._g)+", "+D(this._b)+")":"rgba("+D(this._r)+", "+D(this._g)+", "+D(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:D(100*k(this._r,255))+"%",g:D(100*k(this._g,255))+"%",b:D(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+D(100*k(this._r,255))+"%, "+D(100*k(this._g,255))+"%, "+D(100*k(this._b,255))+"%)":"rgba("+D(100*k(this._r,255))+"%, "+D(100*k(this._g,255))+"%, "+D(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(W[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){n=R(e).toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(f,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(h,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(u,arguments)},greyscale:function(){return this._applyModification(c,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(b,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(w,arguments)},splitcomplement:function(){return this._applyCombination(y,arguments)},triad:function(){return this._applyCombination(m,arguments)},tetrad:function(){return this._applyCombination(g,arguments)}},R.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:T(e[r]));e=n}return R(e,t)},R.equals=function(e,t){return!(!e||!t)&&R(e).toRgbString()==R(t).toRgbString()},R.random=function(){return R.fromRatio({r:H(),g:H(),b:H()})},R.mix=function(e,t,n){n=0===n?0:n||50;var r,i=R(e).toRgb(),o=R(t).toRgb(),a=n/100,s=2*a-1,l=o.a-i.a;r=s*l==-1?s:(s+l)/(1+s*l),r=(r+1)/2;var u=1-r,c={r:o.r*r+i.r*u,g:o.g*r+i.g*u,b:o.b*r+i.b*u,a:o.a*a+i.a*(1-a)};return R(c)},R.readability=function(e,t){var n=R(e),r=R(t),i=n.toRgb(),o=r.toRgb(),a=n.getBrightness(),s=r.getBrightness(),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}},R.isReadable=function(e,t){var n=R.readability(e,t);return n.brightness>125&&n.color>500},R.mostReadable=function(e,t){for(var n=null,r=0,i=!1,o=0;o<t.length;o++){var a=R.readability(e,t[o]),s=a.brightness>125&&a.color>500,l=a.brightness/125*3+a.color/500;(s&&!i||s&&i&&l>r||!s&&!i&&l>r)&&(i=s,r=l,n=R(t[o]))}return n};var z=R.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"},W=R.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(z),B=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),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})$/}}();window.tinycolor=R}(),e(function(){e.fn.spectrum.load&&e.fn.spectrum.processNativeColorInputs()})})},function(e,t){e.exports='\n\n<div>\n\n <a class="yo-colorpicker" href="#" :class="attrs.class" :title="attrs.title">\n <div class="yo-colorpicker-color" :class="{\'yo-colorpicker-color-none\': !color}" :style="color && {background: color}"></div>\n </a>\n\n <div v-el:dropdown @mousedown.capture="preventClickout" v-event:show="onShow" v-event:hide="onHide">\n\n <slot></slot>\n\n <div v-el:color></div>\n </div>\n\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(278),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-image.vue: named exports in *.vue files are ignored."),i=n(279),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={methods:{open:function(){this.$refs.media.open()},select:function(e){this.value=e},remove:function(){this.value=""}}}},function(e,t){e.exports='\n\n<div>\n\n <template v-if="!value">\n <a class="uk-placeholder uk-text-center uk-display-block uk-margin-remove" :class="{\'uk-disabled uk-text-muted\': attrs.disabled}" @click.prevent="open">\n <img uk-svg :alt="$trans(\'Placeholder Image\')" :src="$url(\'{+$assets}/images/field-image.svg\')">\n <p class="uk-h6 uk-margin-small-top">{{ $trans(\'Select Image\') }}</p>\n </a>\n </template>\n\n <div class="uk-position-relative uk-transition-toggle yo-thumbnail" :class="[class]" v-else>\n\n <img :src="$url(value)">\n\n <div class="uk-transition-fade uk-position-cover yo-thumbnail-overlay"></div>\n\n <a class="uk-position-cover" @click.prevent="open"></a>\n\n <div class="uk-transition-fade uk-position-top-right yo-thumbnail-badge uk-light">\n <a class="uk-icon-link" :title="$trans(\'Delete\')" uk-icon="trash" uk-tooltip="delay: 500" @click.prevent="remove"></a>\n </div>\n\n </div>\n\n <div class="uk-margin-small-top">\n <input class="uk-input" type="text" placeholder="http://" v-model="value" :disabled="attrs.disabled" lazy>\n </div>\n\n <media-picker type="image" :unsplash="unsplash !== false" v-ref:media @select="select"></media-picker>\n\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(281),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-video.vue: named exports in *.vue files are ignored."),i=n(282),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={methods:{open:function(){this.$refs.media.open()},select:function(e){this.value=e},remove:function(){this.value=""}}}},function(e,t){e.exports='\n\n<div>\n\n <div class="uk-position-relative">\n <a class="uk-form-icon uk-form-icon-flip" uk-icon="pencil" :class="{\'uk-disabled\': attrs.disabled}" @click.prevent="open"></a>\n <input class="uk-input" type="text" placeholder="http://" v-model="value" :disabled="attrs.disabled" lazy>\n </div>\n\n <media-picker type="video" v-ref:media @select="select"></media-picker>\n\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(284),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-editor.vue: named exports in *.vue files are ignored."),i=n(293),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(32),o=r(i),a=n(2),s=r(a),l=n(286),u=r(l),c=window.localStorage||{},f="builder.editor.tab";c[f]||(c[f]=0),t.default={data:function(){return{tab:c[f],rendered:[]}},created:function(){var e=this;this.debounceUpdate=(0,o.default)(function(t){return e.value=t},this.attrs.debounce||50),!this.attrs.height&&this.isVisual&&(this.attrs.height=window.WFEditor||window.JContentEditor?440:330)},computed:{isVisual:function(){return"code"!==this.editor&&(window.WFEditor||window.JContentEditor||window.tinyMCE)}},methods:{hasRendered:function(e){return~this.rendered.indexOf(e)},update:function(e){this.debounceUpdate(e),this._isBeingDestroyed&&this.debounceUpdate.flush()},show:function(e){var t=this,n=e.target;this.tab=c[f]=(0,s.default)(n).index(),this.hasRendered(this.tab)?this.$nextTick(function(){var e=t.$refs[0===t.tab&&t.$refs.visual?"visual":"code"];void 0!==t.value&&e.setValue(t.value),e.refresh()}):this.rendered.push(this.tab)}},beforeDestroy:function(){this.debounceUpdate.flush()},components:{editorCode:u.default}}},function(e,t,n){var r=n(12),i=function(){return r.Date.now()};e.exports=i},function(e,t,n){var r,i,o={};r=n(287),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/editor-code.vue: named exports in *.vue files are ignored."),i=n(292),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),i=function(e){return e&&e.__esModule?e:{default:e}}(r);n(125),n(81),n(126),n(288),n(289),n(127),n(290),n(291),t.default={name:"editor-code",props:{value:{type:String,default:""},attrs:{type:Object,default:function(){return{}}},mode:{type:String,default:"text/html"}},ready:function(){var e=this;this.event=this.attrs.lazy?"blur":"change",this.editor=(0,i.default)(this.$el,{value:this.value,autoCloseBrackets:!0,autoCloseTags:!0,autofocus:!1,dragDrop:!1,indentUnit:4,indentWithTabs:!1,lineNumbers:!0,lineWrapping:!0,matchBrackets:!0,matchTags:!0,mode:this.mode,tabSize:4,viewportMargin:2}),this.attrs.height&&this.editor.setSize(null,this.attrs.height),this.editor.on(this.event,function(){return e.$emit("update",e.editor.getValue())}),this.editor.on("inputRead",function(e){var t=e.getCursor(),n=e.getTokenAt(t),r=i.default.innerMode(e.getMode(),n.state).mode.name;~["xml","css","less"].indexOf(r)&&n.string.trim()&&("xml"!==r||"<"!==n.string.charAt(0)&&"attribute"!==n.type?(n.type&&"css"===r||"less"===r)&&i.default.showHint(e,function(){var r=i.default.hint.css(e);if(!r&&n.string.match(/\.el-/)){var o=["element","section","title","meta","content","item","link","image"].map(function(e){return".el-"+e}).filter(function(e){return 0===e.indexOf(n.string)});o.length&&(r={from:i.default.Pos(t.line,n.start),to:i.default.Pos(t.line,n.end),list:o})}return r},{completeSingle:!1}):i.default.showHint(e,i.default.hint.html,{completeSingle:!1}))}),this.editor.refresh()},methods:{setValue:function(e){this.editor&&this.editor.getValue()!==e&&this.editor.setValue(e||""),this.editor.refresh()},refresh:function(){this.editor.refresh()}},beforeDestroy:function(){this.editor.off(this.event)}}},function(e,t,n){!function(e){e(n(18),n(126),n(125),n(81))}(function(e){"use strict";function t(e,t,n){var r=e.current(),i=r.search(t);return i>-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}function n(e){var t=l[e];return t||(l[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function r(e,t){var r=e.match(n(t));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function i(e,t){return new RegExp((t?"^":"")+"</s*"+e+"s*>","i")}function o(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}function a(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(!i[0]||i[1].test(r(t,i[0])))return i[2]}}var s={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},l={};e.defineMode("htmlmixed",function(n,r){function l(r,o){var s,f=u.token(r,o.htmlState),d=/\btag\b/.test(f);if(d&&!/[<>\s\/]/.test(r.current())&&(s=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&c.hasOwnProperty(s))o.inTag=s+" ";else if(o.inTag&&d&&/>$/.test(r.current())){var h=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var p=">"==r.current()&&a(c[h[1]],h[2]),v=e.getMode(n,p),m=i(h[1],!0),g=i(h[1],!1);o.token=function(e,n){return e.match(m,!1)?(n.token=l,n.localState=n.localMode=null,null):t(e,g,n.localMode.token(e,n.localState))},o.localMode=v,o.localState=e.startState(v,u.indent(o.htmlState,""))}else o.inTag&&(o.inTag+=r.current(),r.eol()&&(o.inTag+=" "));return f}var u=e.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:r.multilineTagIndentFactor,multilineTagIndentPastTag:r.multilineTagIndentPastTag}),c={},f=r&&r.tags,d=r&&r.scriptTypes;if(o(s,c),f&&o(f,c),d)for(var h=d.length-1;h>=0;h--)c.script.unshift(["type",d[h].matches,d[h].mode]);return{startState:function(){return{token:l,inTag:null,localMode:null,localState:null,htmlState:e.startState(u)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(u,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?u.indent(t.htmlState,n):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||u}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";function t(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}function n(e,t,n){var r=e.options.hintOptions,i={};for(var o in p)i[o]=p[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}function r(e){return"string"==typeof e?e:e.text}function i(e,t){function n(e,n){var i;i="string"!=typeof n?function(e){return n(e,t)}:r.hasOwnProperty(n)?r[n]:n,o[e]=i}var r={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close},i=e.options.customKeys,o=i?{}:r;if(i)for(var a in i)i.hasOwnProperty(a)&&n(a,i[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&n(a,s[a]);return o}function o(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function a(t,n){this.completion=t,this.data=n,this.picked=!1;var a=this,s=t.cm,l=this.hints=document.createElement("ul");l.className="CodeMirror-hints",this.selectedHint=n.selectedHint||0;for(var u=n.list,d=0;d<u.length;++d){var h=l.appendChild(document.createElement("li")),p=u[d],v=c+(d!=this.selectedHint?"":" "+f);null!=p.className&&(v=p.className+" "+v),h.className=v,p.render?p.render(h,n,p):h.appendChild(document.createTextNode(p.displayText||r(p))),h.hintId=d}var m=s.cursorCoords(t.options.alignWithWord?n.from:null),g=m.left,y=m.bottom,b=!0;l.style.left=g+"px",l.style.top=y+"px";var w=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),x=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(t.options.container||document.body).appendChild(l);var k=l.getBoundingClientRect(),C=k.bottom-x,_=l.scrollHeight>l.clientHeight+1,S=s.getScrollInfo();if(C>0){var O=k.bottom-k.top;if(m.top-(m.bottom-k.top)-O>0)l.style.top=(y=m.top-O)+"px",b=!1;else if(O>x){l.style.height=x-5+"px",l.style.top=(y=m.bottom-k.top)+"px";var M=s.getCursor();n.from.ch!=M.ch&&(m=s.cursorCoords(M),l.style.left=(g=m.left)+"px",k=l.getBoundingClientRect())}}var T=k.right-w;if(T>0&&(k.right-k.left>w&&(l.style.width=w-5+"px",T-=k.right-k.left-w),l.style.left=(g=m.left-T)+"px"),_)for(var A=l.firstChild;A;A=A.nextSibling)A.style.paddingRight=s.display.nativeBarWidth+"px";if(s.addKeyMap(this.keyMap=i(t,{moveFocus:function(e,t){a.changeActive(a.selectedHint+e,t)},setFocus:function(e){a.changeActive(e)},menuSize:function(){return a.screenAmount()},length:u.length,close:function(){t.close()},pick:function(){a.pick()},data:n})),t.options.closeOnUnfocus){var N;s.on("blur",this.onBlur=function(){N=setTimeout(function(){t.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(N)})}return s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),n=s.getWrapperElement().getBoundingClientRect(),r=y+S.top-e.top,i=r-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(b||(i+=l.offsetHeight),i<=n.top||i>=n.bottom)return t.close();l.style.top=r+"px",l.style.left=g+S.left-e.left+"px"}),e.on(l,"dblclick",function(e){var t=o(l,e.target||e.srcElement);t&&null!=t.hintId&&(a.changeActive(t.hintId),a.pick())}),e.on(l,"click",function(e){var n=o(l,e.target||e.srcElement);n&&null!=n.hintId&&(a.changeActive(n.hintId),t.options.completeOnSingleClick&&a.pick())}),e.on(l,"mousedown",function(){setTimeout(function(){s.focus()},20)}),e.signal(n,"select",u[this.selectedHint],l.childNodes[this.selectedHint]),!0}function s(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}function l(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}function u(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){function r(i){if(i==o.length)return t(null);l(o[i],e,n,function(e){e&&e.list.length>0?t(e):r(i+1)})}var o=s(e,i);r(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}var c="CodeMirror-hint",f="CodeMirror-hint-active";e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",function(r){r=n(this,this.getCursor("start"),r);var i=this.listSelections();if(!(i.length>1)){if(this.somethingSelected()){if(!r.hint.supportsSelection)return;for(var o=0;o<i.length;o++)if(i[o].head.line!=i[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var a=this.state.completionActive=new t(this,r);a.options.hint&&(e.signal(this,"startCompletion",this),a.update(!0))}});var d=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},h=window.cancelAnimationFrame||clearTimeout;t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var i=t.list[n];i.hint?i.hint(this.cm,t,i):this.cm.replaceRange(r(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),this.close()},cursorActivity:function(){this.debounce&&(h(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line);if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||e.ch<this.startPos.ch||this.cm.somethingSelected()||e.ch&&this.options.closeCharacters.test(t.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=d(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;l(this.options.hint,this.cm,this.options,function(r){t.tick==n&&t.finishUpdate(r,e)})}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new a(this,t),e.signal(t,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" "+f,"")),r=this.hints.childNodes[this.selectedHint=t],r.className+=" "+f,r.offsetTop<this.hints.scrollTop?this.hints.scrollTop=r.offsetTop-3:r.offsetTop+r.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:u}),e.registerHelper("hint","fromList",function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,r.length)==r&&l.push(c)}if(l.length)return{list:l,from:a,to:s}}),e.commands.autocomplete=e.showHint;var p={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)})},function(e,t,n){!function(e){e(n(18),n(127))}(function(e){"use strict";function t(e){for(var t in f)f.hasOwnProperty(t)&&(e.attrs[t]=f[t])}function n(t,n){var r={schemaInfo:c};if(n)for(var i in n)r[i]=n[i];return e.hint.xml(t,r)}var r="ab aa af ak sq am ar an hy as av ae ay az bm ba eu be bn bh bi bs br bg my ca ch ce ny zh cv kw co cr hr cs da dv nl dz en eo et ee fo fj fi fr ff gl ka de el gn gu ht ha he hz hi ho hu ia id ie ga ig ik io is it iu ja jv kl kn kr ks kk km ki rw ky kv kg ko ku kj la lb lg li ln lo lt lu lv gv mk mg ms ml mt mi mr mh mn na nv nb nd ne ng nn no ii nr oc oj cu om or os pa pi fa pl ps pt qu rm rn ro ru sa sc sd se sm sg sr gd sn si sk sl so st es su sw ss sv ta te tg th ti bo tk tl tn to tr ts tt tw ty ug uk ur uz ve vi vo wa cy wo fy xh yi yo za zu".split(" "),i=["_blank","_self","_top","_parent"],o=["ascii","utf-8","utf-16","latin1","latin1"],a=["get","post","put","delete"],s=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],l=["all","screen","print","embossed","braille","handheld","print","projection","screen","tty","tv","speech","3d-glasses","resolution [>][<][=] [X]","device-aspect-ratio: X/Y","orientation:portrait","orientation:landscape","device-height: [X]","device-width: [X]"],u={attrs:{}},c={a:{attrs:{href:null,ping:null,type:null,media:l,target:i,hreflang:r}},abbr:u,acronym:u,address:u,applet:u,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:l,hreflang:r,type:null,shape:["default","rect","circle","poly"]}},article:u,aside:u,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["","autoplay"],loop:["","loop"],controls:["","controls"]}},b:u,base:{attrs:{href:null,target:i}},basefont:u,bdi:u,bdo:u,big:u,blockquote:{attrs:{cite:null}},body:u,br:u,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["","autofocus"],disabled:["","autofocus"],formenctype:s,formmethod:a,formnovalidate:["","novalidate"],formtarget:i,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:u,center:u,cite:u,code:u,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["","disabled"],checked:["","checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["","disabled"],multiple:["","multiple"]}},datalist:{attrs:{data:null}},dd:u,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["","open"]}},dfn:u,dir:u,div:u,dl:u,dt:u,em:u,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["","disabled"],form:null,name:null}},figcaption:u,figure:u,font:u,footer:u,form:{attrs:{action:null,name:null,"accept-charset":o,autocomplete:["on","off"],enctype:s,method:a,novalidate:["","novalidate"],target:i}},frame:u,frameset:u,h1:u,h2:u,h3:u,h4:u,h5:u,h6:u,head:{attrs:{},children:["title","base","link","style","meta","script","noscript","command"]},header:u,hgroup:u,hr:u,html:{attrs:{manifest:null},children:["head","body"]},i:u,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["","seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["","autofocus"],checked:["","checked"],disabled:["","disabled"],formenctype:s,formmethod:a,formnovalidate:["","novalidate"],formtarget:i,multiple:["","multiple"],readonly:["","readonly"],required:["","required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:u,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["","autofocus"],disabled:["","disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:u,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:r,media:l,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:u,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:o,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:u,noframes:u,noscript:u,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["","typemustmatch"]}},ol:{attrs:{reversed:["","reversed"],start:null,type:["1","a","A","i","I"]}},optgroup:{attrs:{disabled:["","disabled"],label:null}},option:{attrs:{disabled:["","disabled"],label:null,selected:["","selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:u,param:{attrs:{name:null,value:null}},pre:u,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:u,rt:u,ruby:u,s:u,samp:u,script:{attrs:{type:["text/javascript"],src:null,async:["","async"],defer:["","defer"],charset:o}},section:u,select:{attrs:{form:null,name:null,size:null,autofocus:["","autofocus"],disabled:["","disabled"],multiple:["","multiple"]}},small:u,source:{attrs:{src:null,type:null,media:null}},span:u,strike:u,strong:u,style:{attrs:{type:["text/css"],media:l,scoped:null}},sub:u,summary:u,sup:u,table:u,tbody:u,td:{attrs:{colspan:null,rowspan:null,headers:null}},textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["","autofocus"],disabled:["","disabled"],readonly:["","readonly"],required:["","required"],wrap:["soft","hard"]}},tfoot:u,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:u,time:{attrs:{datetime:null}},title:u,tr:u,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:r}},tt:u,u:u,ul:u,var:u,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["","autoplay"],mediagroup:["movie"],muted:["","muted"],controls:["","controls"]}},wbr:u},f={accesskey:["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","0","1","2","3","4","5","6","7","8","9"],class:null,contenteditable:["true","false"],contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["en","es"],spellcheck:["true","false"],style:null,tabindex:["1","2","3","4","5","6","7","8","9"],title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"]};t(u);for(var d in c)c.hasOwnProperty(d)&&c[d]!=u&&t(c[d]);e.htmlSchema=c,e.registerHelper("hint","html",n)})},function(e,t,n){!function(e){e(n(18),n(81))}(function(e){"use strict";var t={link:1,visited:1,active:1,hover:1,focus:1,"first-letter":1,"first-line":1,"first-child":1,before:1,after:1,lang:1};e.registerHelper("hint","css",function(n){function r(e){for(var t in e)u&&0!=t.lastIndexOf(u,0)||f.push(t)}var i=n.getCursor(),o=n.getTokenAt(i),a=e.innerMode(n.getMode(),o.state);if("css"==a.mode.name){if("keyword"==o.type&&0=="!important".indexOf(o.string))return{list:["!important"],from:e.Pos(i.line,o.start),to:e.Pos(i.line,o.end)};var s=o.start,l=i.ch,u=o.string.slice(0,l-s);/[^\w$_-]/.test(u)&&(u="",s=l=i.ch);var c=e.resolveMode("text/css"),f=[],d=a.state.state;return"pseudo"==d||"variable-3"==o.type?r(t):"block"==d||"maybeprop"==d?r(c.propertyKeywords):"prop"==d||"parens"==d||"at"==d||"params"==d?(r(c.valueKeywords),r(c.colorKeywords)):"media"!=d&&"media_parens"!=d||(r(c.mediaTypes),r(c.mediaFeatures)),f.length?{list:f,from:e.Pos(i.line,s),to:e.Pos(i.line,l)}:void 0}})})},function(e,t){e.exports="\n\n<div></div>\n\n"},function(e,t){e.exports='\n\n<div class="yo-editor" :id="attrs.id">\n\n <template v-if="isVisual">\n\n <ul class="uk-subnav uk-margin-small-bottom uk-flex-right" :active="tab" uk-switcher>\n <li>\n <a>{{ $trans(\'Visual\') }}</a>\n </li>\n <li>\n <a>{{ $trans(\'Code\') }}</a>\n </li>\n </ul>\n\n <ul class="uk-switcher" v-event:show="show">\n <li>\n <editor-visual :value.once="value" :attrs="attrs" :root="root" v-ref:visual v-on:update="update" v-if="hasRendered(0) || tab === 0"></editor-visual>\n </li>\n <li>\n <editor-code :value.once="value" :attrs="attrs" :mode="mode" v-ref:code v-on:update="update" v-if="hasRendered(1) || tab === 1"></editor-code>\n </li>\n </ul>\n\n </template>\n\n <editor-code :value.once="value" :attrs="attrs" :mode="mode" v-ref:code v-on:update="update" v-else></editor-code>\n\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(295),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-gradient.vue: named exports in *.vue files are ignored."),i=n(296),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(80),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={data:function(){return{current:null}},computed:{gradient:{cache:!1,get:function(){return null!==this.current?this.current:this.$parent.getField({name:this.internal})},set:function(e){this.current=e}}},methods:{update:function(){this.$parent.setField({name:this.internal},this.gradient)},close:function(){this.gradient=null}},components:{fieldColor:i.default}}},function(e,t){e.exports='\n\n<div>\n\n <field-color class="uk-form-stacked" :value.sync="value" :preview.sync="gradient" :config="$data" @update="update" @close="close">\n\n <div class="uk-margin-small yo-colorpicker-boxshadow">\n\n <label class="uk-form-label" for="form-gradient">{{ $trans(\'Gradient\') }}</label>\n <input id="form-gradient" class="uk-input uk-form-small" type="text" v-model="gradient">\n\n </div>\n\n </field-color>\n\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(298),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-location.vue: named exports in *.vue files are ignored."),i=n(299),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["value","config"],data:function(){return{cdn:"https://cdn.jsdelivr.net",base:window.$customizer.base,error:!1,apiready:!1}},created:function(){this.loaded=this.$asset({css:this.cdn+"/leaflet/1.0.2/leaflet.css",js:[this.cdn+"/leaflet/1.0.2/leaflet.js",this.cdn+"/places.js/1/places.min.js"]})},ready:function(){var e=this;this.loaded.then(function(){e.apiready=!0,e.$nextTick(function(){return e.init()})},function(){return e.error=!0})},methods:{init:function(){var e=this,t=(this.value||"53.5503,10.0006").split(","),n=L.map(this.$els.map).setView(t,13),r=new L.marker(t,{draggable:"true"});L.tileLayer("http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png",{attribution:'© <a href="http://osm.org/copyright">OpenStreetMap</a>'}).addTo(n),r.on("dragend",function(t){var n=[r.getLatLng().lat.toFixed(4),r.getLatLng().lng.toFixed(4)];e.$set("value",n.join(","))}),n.addLayer(r);var i=places({container:this.$els.input}).on("change",function(t){var o=[t.suggestion.latlng.lat,t.suggestion.latlng.lng];e.$set("value",o.join(",")),r.setLatLng(o).update(),n.panTo(r.getLatLng()),i.close(),i.setVal("")})}}}},function(e,t){e.exports='\n\n<div>\n\n <div class="uk-alert" :class="{\'uk-alert-danger\': error}" v-show="error || !apiready">{{ $trans(error ? \'Failed loading map\' : \'Loading map ...\') }}</div>\n\n <div class="uk-preserve-width" style="min-height:260px;" v-show="apiready" v-el:map></div>\n\n <div class="uk-position-relative uk-margin-small-top" v-show="apiready">\n <input class="uk-input" :placeholder="value" v-el:input>\n </div>\n\n <input type="hidden" v-model="value">\n\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(301),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-boxshadow.vue: named exports in *.vue files are ignored."),i=n(302),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(80),s=r(a);t.default={data:function(){return{allowEmpty:!0,defaults:{none:"",inset:"",offsetX:"1px",offsetY:"1px",blur:"0",spread:"0",color:null},values:!1}},watch:{value:{handler:"parse",immediate:!0}},methods:{update:function(){var e=this,t=this.values.color&&["inset","offsetX","offsetY","blur","spread","color"].map(function(t){return e.values[t]}).join(" ").trim()||"none";t!==this.value&&(this.value=t)},parse:function(){var e=this;this.values=(0,o.default)({},this.defaults);var t=this.value.match(/([^\s]+\(.+?\))|([^\s]+)/g);t=~t.indexOf(",")?t.slice(0,t.indexOf(",")):t,"none"===t[0]&&(this.values.none=t.shift()),"inset"===t[0]&&(this.values.inset=t.shift()),this.values.color=t.pop()||this.defaults.color,["offsetX","offsetY","blur","spread"].forEach(function(n){return e.values[n]=t.shift()||e.defaults[n]})}},components:{fieldColor:s.default}}},function(e,t){e.exports='\n\n<div>\n\n <field-color class="uk-form-stacked" :value.sync="values.color" :config="$data" @update="update" @close="parse">\n\n <div class="uk-grid uk-grid-small uk-child-width-auto uk-margin-small-bottom yo-colorpicker-boxshadow">\n <div>\n <div class="uk-panel">\n\n <label class="uk-form-label" for="form-boxshadow-offset-x">{{ $trans(\'X\') }}</label>\n <input id="form-boxshadow-offset-x" class="uk-input uk-form-small uk-form-width-xsmall" type="text" v-model="values.offsetX" lazy>\n\n </div>\n </div>\n <div>\n <div class="uk-panel">\n\n <label class="uk-form-label" for="form-boxshadow-offset-y">{{ $trans(\'Y\') }}</label>\n <input id="form-boxshadow-offset-y" class="uk-input uk-form-small uk-form-width-xsmall" type="text" v-model="values.offsetY" lazy>\n\n </div>\n </div>\n <div>\n <div class="uk-panel">\n\n <label class="uk-form-label" for="form-boxshadow-blur">{{ $trans(\'Blur\')}}</label>\n <input id="form-boxshadow-blur" class="uk-input uk-form-small uk-form-width-xsmall" type="text" v-model="values.blur" lazy>\n\n </div>\n </div>\n <div>\n <div class="uk-panel">\n\n <label class="uk-form-label" for="form-boxshadow-spread">{{ $trans(\'Spread\')}}</label>\n <input id="form-boxshadow-spread" class="uk-input uk-form-small uk-form-width-xsmall" type="text" v-model="values.spread" lazy>\n\n </div>\n </div>\n <div class="uk-child-width-expand">\n <div class="uk-panel uk-text-center">\n\n <label class="uk-form-label" for="form-boxshadow-inset">{{ $trans(\'Inset\') }}</label>\n <input id="form-boxshadow-inset" class="uk-checkbox uk-margin-remove" type="checkbox" v-model="values.inset" :true-value="\'inset\'" :false-value="\'\'">\n\n </div>\n </div>\n </div>\n\n </field-color>\n\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(304),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-select-img.vue: named exports in *.vue files are ignored."),i=n(305),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={computed:{label:function(){return this.selected.label},selected:function(){return this.options[this.value]||{}}},methods:{open:function(){this.$refs.modal.open()},select:function(e){this.$set("value",e),this.$refs.modal.close()}}}},function(e,t){e.exports='\n\n<div>\n\n <div class="uk-card uk-card-body uk-card-small uk-card-hover yo-panel uk-text-center">\n <img :alt="label" :src="$url(selected.src)" uk-svg>\n <p class="uk-margin-small uk-margin-remove-bottom">{{ label }}</p>\n <a class="uk-position-cover" @click.prevent="open"></a>\n </div>\n\n <modal width="xxlarge" v-ref:modal>\n\n <div class="uk-modal-header">\n <h2 class="uk-modal-title">{{ title }}</h2>\n </div>\n\n <div class="uk-modal-body">\n <div class="uk-grid-collapse uk-child-width-1-4" uk-grid>\n <div v-for="(id, option) in options">\n\n <div class="uk-card uk-card-body uk-card-hover yo-panel uk-text-center" :class="{\'uk-active\': value === id }">\n <img class="uk-svg" :alt="option.label" :src="$url(option.src)" uk-svg>\n <p class="uk-margin-small-top uk-margin-remove-bottom">{{ option.label }}</p>\n <a class="uk-position-cover" @click.prevent="select(id)"></a>\n </div>\n\n </div>\n </div>\n </div>\n\n </modal>\n\n</div>\n\n'},function(e,t){e.exports='\n\n<div class="yo-sidebar-fields">\n <template v-for="field in fields" track-by="name">\n\n <h3 class="yo-sidebar-subheading" v-if="field.label">{{ $trans(field.label) }}</h3>\n\n <template v-if="field.type != \'description\'">\n <div class="uk-margin-small" v-if="field.type != \'radio\' && field.type != \'checkbox\' && field.type != \'grid\'">\n <component :is="field.type" :field="field"></component>\n </div>\n <component v-else :is="field.type" :field="field"></component>\n </template>\n\n <p class="uk-text-muted uk-margin-small" v-if="field.description" v-html="$trans(field.description)"></p>\n\n <hr v-if="field.divider">\n\n </template>\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(308),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-grid.vue: named exports in *.vue files are ignored."),i=n(309),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={computed:{values:function(){return this.$parent.values},fields:function(){return this.filterFields(this.field.fields)}}}},function(e,t){e.exports='\n\n<div class="yo-sidebar-grid" uk-grid :class="{\'uk-grid-small uk-margin-remove-bottom\': style == \'group\', \'uk-grid-medium\': style != \'group\'}">\n\n <div :class="field.width ? \'uk-width-\'+field.width : \'\'" v-for="field in fields" track-by="name">\n\n <h3 class="yo-sidebar-subheading" v-if="field.label">{{ $trans(field.label) }}</h3>\n\n <div class="uk-margin-small" v-if="field.type != \'radio\' && field.type != \'checkbox\'">\n <component :class="{\'yo-form-medium\': style == \'group\'}" :is="field.type" :field="field"></component>\n </div>\n\n <component v-else :class="{\'yo-form-medium\': style == \'group\'}" :is="field.type" :field="field"></component>\n\n <p class="uk-text-muted uk-margin-small" v-if="field.description" v-html="$trans(field.description)"></p>\n\n </div>\n\n</div>\n\n'},function(e,t,n){var r,i,o={};r=n(311),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/field-group.vue: named exports in *.vue files are ignored."),i=n(312),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={computed:{values:function(){return this.$parent.values},fields:function(){return this.filterFields(this.field.fields)}}}},function(e,t){e.exports='\n\n<div class="uk-flex uk-flex-middle uk-margin-small" v-for="field in fields" track-by="name">\n\n <div class="uk-width-expand uk-text-truncate">\n <span :title="field.description" uk-tooltip="delay: 300; pos: top-left" v-if="field.description">{{ $trans(field.label) }}</span>\n <span v-else>{{ $trans(field.label) }}</span>\n </div>\n\n <div class="uk-width-medium">\n\n <component :class="{\'yo-form-medium\': field.type != \'buttonPanel\', \'yo-buttom-medium\': field.type == \'buttonPanel\'}" :is="field.type" :field="field"></component>\n\n </div>\n\n</div>\n\n'},,,,,function(e,t,n){function r(e,t){var n=[];return i(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}var i=n(20);e.exports=r},,,function(e,t){function n(e){return e!==e}e.exports=n},function(e,t){function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}e.exports=n},function(e,t,n){var r=n(117),i=n(323),o=n(74),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},function(e,t){function n(){}e.exports=n},function(e,t){function n(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}e.exports=n},function(e,t){function n(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}e.exports=n},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}e.exports=n},function(e,t,n){function r(e,t){var n=!0;return i(e,function(e,r,i){return n=!!t(e,r,i)}),n}var i=n(20);e.exports=r},,,,function(e,t,n){function r(e){return a(e)||o(e)||!!(s&&e&&e[s])}var i=n(28),o=n(34),a=n(4),s=i?i.isConcatSpreadable:void 0;e.exports=r},function(e,t,n){function r(e,t,n){var r=-1;t=i(t.length?t:[c],l(o));var f=a(e,function(e,n,o){return{criteria:i(t,function(t){return t(e)}),index:++r,value:e}});return s(f,function(e,t){return u(e,t,n)})}var i=n(24),o=n(9),a=n(123),s=n(333),l=n(36),u=n(334),c=n(38);e.exports=r},function(e,t){function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}e.exports=n},function(e,t,n){function r(e,t,n){for(var r=-1,o=e.criteria,a=t.criteria,s=o.length,l=n.length;++r<s;){var u=i(o[r],a[r]);if(u){if(r>=l)return u;return u*("desc"==n[r]?-1:1)}}return e.index-t.index}var i=n(335);e.exports=r},function(e,t,n){function r(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e===e,a=i(e),s=void 0!==t,l=null===t,u=t===t,c=i(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}var i=n(41);e.exports=r},function(e,t){function n(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}e.exports=n},function(e,t,n){function r(e,t,n,r){return i(e,function(e,i,o){t(r,e,n(e),o)}),r}var i=n(20);e.exports=r},,,,,,function(e,t,n){function r(e,t,n,r){if(!s(e))return e;t=o(t,e);for(var u=-1,c=t.length,f=c-1,d=e;null!=d&&++u<c;){var h=l(t[u]),p=n;if(u!=f){var v=d[h];p=r?r(v,h,d):void 0,void 0===p&&(p=s(v)?v:a(t[u+1])?[]:{})}i(d,h,p),d=d[h]}return e}var i=n(53),o=n(30),a=n(44),s=n(7),l=n(31);e.exports=r},,,,,,,,,,,,function(e,t){function n(e){return e.split("")}e.exports=n},function(e,t){function n(e){return e.match(f)||[]}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",l="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",o,a].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",u="[\\ufe0e\\ufe0f]?"+s+l,c="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,o,a,"[\\ud800-\\udfff]"].join("|")+")",f=RegExp(i+"(?="+i+")|"+c+u,"g");e.exports=n},,,,,,,,,,function(e,t,n){function r(e,t){return i(e,t,function(t,n){return o(e,n)})}var i=n(137),o=n(120);e.exports=r},function(e,t,n){function r(e){return(null==e?0:e.length)?i(e,1):[]}var i=n(61);e.exports=r},,,function(e,t,n){function r(e,t,n,$,P,j){var D,F=t&S,I=t&O,H=t&M;if(n&&(D=P?n(e,$,P,j):n(e)),void 0!==D)return D;if(!k(e))return e;var R=b(e);if(R){if(D=m(e),!F)return c(e,D)}else{var z=v(e),W=z==A||z==N;if(w(e))return u(e,F);if(z==E||z==T||W&&!P){if(D=I||W?{}:y(e),!F)return I?d(e,l(D,e)):f(e,s(D,e))}else{if(!L[z])return P?e:{};D=g(e,z,F)}}j||(j=new i);var B=j.get(e);if(B)return B;if(j.set(e,D),C(e))return e.forEach(function(i){D.add(r(i,t,n,i,e,j))}),D;if(x(e))return e.forEach(function(i,o){D.set(o,r(i,t,n,o,e,j))}),D;var V=H?I?p:h:I?keysIn:_,U=R?void 0:V(e);return o(U||e,function(i,o){U&&(o=i,i=e[o]),a(D,o,r(i,t,n,o,e,j))}),D}var i=n(48),o=n(91),a=n(53),s=n(371),l=n(372),u=n(100),c=n(103),f=n(373),d=n(374),h=n(113),p=n(87),v=n(40),m=n(375),g=n(376),y=n(104),b=n(4),w=n(35),x=n(380),k=n(7),C=n(382),_=n(13),S=1,O=2,M=4,T="[object Arguments]",A="[object Function]",N="[object GeneratorFunction]",E="[object Object]",L={};L[T]=L["[object Array]"]=L["[object ArrayBuffer]"]=L["[object DataView]"]=L["[object Boolean]"]=L["[object Date]"]=L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Map]"]=L["[object Number]"]=L[E]=L["[object RegExp]"]=L["[object Set]"]=L["[object String]"]=L["[object Symbol]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L["[object Error]"]=L[A]=L["[object WeakMap]"]=!1,e.exports=r},function(e,t,n){function r(e,t){return e&&i(t,o(t),e)}var i=n(23),o=n(13);e.exports=r},function(e,t,n){function r(e,t){return e&&i(t,o(t),e)}var i=n(23),o=n(54);e.exports=r},function(e,t,n){function r(e,t){return i(e,o(e),t)}var i=n(23),o=n(76);e.exports=r},function(e,t,n){function r(e,t){return i(e,o(e),t)}var i=n(23),o=n(138);e.exports=r},function(e,t){function n(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&i.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var r=Object.prototype,i=r.hasOwnProperty;e.exports=n},function(e,t,n){function r(e,t,n){var r=e.constructor;switch(t){case g:return i(e);case u:case c:return new r(+e);case y:return o(e,n);case b:case w:case x:case k:case C:case _:case S:case O:case M:return l(e,n);case f:return new r;case d:case v:return new r(e);case h:return a(e);case p:return new r;case m:return s(e)}}var i=n(69),o=n(377),a=n(378),s=n(379),l=n(101),u="[object Boolean]",c="[object Date]",f="[object Map]",d="[object Number]",h="[object RegExp]",p="[object Set]",v="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",y="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",x="[object Int8Array]",k="[object Int16Array]",C="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",O="[object Uint16Array]",M="[object Uint32Array]";e.exports=r},function(e,t,n){function r(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var i=n(69);e.exports=r},function(e,t){function n(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}var r=/\w*$/;e.exports=n},function(e,t,n){function r(e){return a?Object(a.call(e)):{}}var i=n(28),o=i?i.prototype:void 0,a=o?o.valueOf:void 0;e.exports=r},function(e,t,n){var r=n(381),i=n(36),o=n(66),a=o&&o.isMap,s=a?i(a):r;e.exports=s},function(e,t,n){function r(e){return o(e)&&i(e)==a}var i=n(40),o=n(14),a="[object Map]";e.exports=r},function(e,t,n){var r=n(383),i=n(36),o=n(66),a=o&&o.isSet,s=a?i(a):r;e.exports=s},function(e,t,n){function r(e){return o(e)&&i(e)==a}var i=n(40),o=n(14),a="[object Set]";e.exports=r},function(e,t,n){function r(e,t){return t=i(t,e),null==(e=a(e,t))||delete e[s(o(t))]}var i=n(30),o=n(147),a=n(385),s=n(31);e.exports=r},function(e,t,n){function r(e,t){return t.length<2?e:i(e,o(t,0,-1))}var i=n(57),o=n(140);e.exports=r},function(e,t,n){function r(e){return i(e)?void 0:e}var i=n(105);e.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(136),o=r(i),a=n(13),s=r(a),l=n(5),u=r(l),c=n(89),f=r(c);t.default={ref:"$builder",name:"builder",data:function(){return(0,u.default)({library:{}},window.$builder)},computed:{layouts:function(){return(0,o.default)(this.library,function(e){return-1!==["layout","section"].indexOf(e.type)})},elements:function(){return(0,o.default)(this.library,function(e){return-1===["layout","section"].indexOf(e.type)})}},methods:{hasLayouts:function(){return(0,s.default)(this.layouts).length>0},hasElements:function(){return(0,s.default)(this.elements).length>0},createElement:function(e){var t=this,n=(0,f.default)();this.$http.post("builder/library",{id:n,element:e}).then(function(){return Vue.set(t.library,n,e)})},updateElement:function(e,t){var n=this;this.$http.post("builder/library",{id:e,element:t}).then(function(){return Vue.set(n.library,e,t)})},deleteElement:function(e){var t=this;this.$http.delete("builder/library",{params:{id:e}}).then(function(){return Vue.delete(t.library,e)})}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return(0,l.default)(e,function(n,r,o){return n.concat((0,d.default)(r)&&!(0,p.default)(r)?i(r,t):(0,c.default)(r)?t.filter(function(e){return(0,m.default)(r,e.src)}).map(function(t){return(0,y.default)({replace:function(n){!n&&(0,m.default)(r,t.src)&&(n=w.default.url("{+$assets}/images/element-image-placeholder.png").slice(window.$config.url.length+1)),e[o]=e[o].replace(t.src,n||"")}},t)}):[])},[])}Object.defineProperty(t,"__esModule",{value:!0});var o=n(525),a=r(o),s=n(83),l=r(s),u=n(47),c=r(u),f=n(7),d=r(f),h=n(46),p=r(h),v=n(526),m=r(v),g=n(5),y=r(g),b=n(3),w=r(b),x=n(529),k=r(x);t.default={ref:"$images",name:"images",components:{DownloadModal:k.default},data:function(){return{images:[]}},methods:{add:function(e){this.images=(0,a.default)(this.images.concat(e||[]),"src")},replace:function(e){var t=this,n=i(e,this.images);if(n.length)return new Promise(function(e,r){return t.$new("Modal",{id:"DownloadModal",width:"xlarge"}).open(e,r,(0,y.default)([],n))}).then(function(){return[e,n]},function(){return!1})}},events:{saveConfig:[{handler:"replace",priority:5},{handler:function(e,t){t&&this.$trigger("loadPreview")},priority:-15}],savePage:[{handler:"replace",priority:5},{handler:function(e,t){t&&this.$trigger("reloadPreview")},priority:-5}],saveModule:[{handler:"replace",priority:5},{handler:function(e,t){t&&this.$trigger("reloadPreview")},priority:-5}]}}},function(e,t,n){function r(e,t){return e&&e.length?o(e,i(t,2)):[]}var i=n(9),o=n(82);e.exports=r},function(e,t,n){function r(e,t,n,r){e=o(e)?e:l(e),n=n&&!r?s(n):0;var c=e.length;return n<0&&(n=u(c+n,0)),a(e)?n<=c&&e.indexOf(t,n)>-1:!!c&&i(e,t,n)>-1}var i=n(59),o=n(15),a=n(47),s=n(43),l=n(527),u=Math.max;e.exports=r},function(e,t,n){function r(e){return null==e?[]:i(e,o(e))}var i=n(528),o=n(13);e.exports=r},function(e,t,n){function r(e,t){return i(t,function(t){return e[t]})}var i=n(24);e.exports=r},function(e,t,n){var r,i,o={};r=n(530),Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.warn("[vue-loader] vendor/yootheme/theme/app/components/modal-download.vue: named exports in *.vue files are ignored."),i=n(531),e.exports=r||{},e.exports.__esModule&&(e.exports=e.exports.default);var a="function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports;i&&(a.template=i),a.computed||(a.computed={}),Object.keys(o).forEach(function(e){var t=o[e];a.computed[e]=function(){return t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{resolve:function(){},reject:function(){},images:[],error:[],total:0,loading:!1,license:'<a href="http://creativecommons.org/publicdomain/zero/1.0/" target="_blank">Creative Commons Zero</a>'}},methods:{next:function(e){var t=this;this.error=[],this.total=this.images.length,this.loading=!0,e?Promise.all(this.images.map(function(e){var n=e.src.match(/images\.unsplash\.com.*[?\/&]id=(\w+)/);return n&&t.$http.post("{+$api}/v1",JSON.stringify({query:r,variables:{id:n[1]}}),{headers:{"Content-Type":"text/plain"}}),t.$http.post("builder/image",{src:e.src,md5:e.md5}).then(function(n){var r=n.data;e.replace(r),t.images.splice(t.images.indexOf(e),1)},function(e){var n=e.data;return t.error.push(n),Promise.resolve()})})).then(function(){t.images.length?t.loading=!1:t.close()}):(this.images.map(function(e){return e.replace()}),this.close())},close:function(){this.resolve(),this.reject=!1,this.$parent.close()}},events:{open:function(e,t,n){this.resolve=e,this.reject=t,this.images=n,this.total=n.length},close:function(){this.reject&&this.reject()}}};var r="query ($id: String!) {\n unsplashDownload (id: $id)\n }"},function(e,t){e.exports='\n\n<div>\n\n <div class="uk-modal-header">\n <h2 class="uk-modal-title">{{ $trans(\'Layout Media Files\') }}</h2>\n </div>\n\n <div class="uk-modal-body">\n <div class="uk-alert-danger uk-alert" uk-alert v-if="error.length">{{ $transChoice(\'{1} %count% image download failed:|]1,Inf[ %count% image downloads failed:\', error.length, {count: error.length}) }} {{ error[0] }}</div>\n <progress class="uk-progress uk-margin-remove" :value="total - images.length" :max="total" v-if="loading"></progress>\n <p>{{ $transChoice("{1} This layout includes a media file which needs to be downloaded to your website\'s media library.|]1,Inf[ This layout includes %count% media files which need to be downloaded to your website\'s media library.", images.length, {count: images.length}) }}</p>\n <p v-html="$trans(\'All images are licensed under %license% which means you can copy, modify, distribute and use the images for free, including commercial purposes, without asking permission.\', {license: license})"></p>\n </div>\n\n <div class="uk-modal-footer uk-text-right" v-show="!loading">\n <button class="uk-button uk-button-default uk-margin-small-right" @click.prevent="next()">{{ $trans(\'Remove Media Files\') }}</button>\n <button class="uk-button uk-button-primary" @click.prevent="next(\'Download\')">{{ $trans(\'Download\') }}</button>\n </div>\n\n</div>\n\n'},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(61),i=n(9),o=n(55),a=n(82),s=n(71),l=n(147),u=o(function(e){var t=l(e);return s(t)&&(t=void 0),a(r(e,1,s,!0),i(t,2))});e.exports=u},,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=[],t=tinyMCE.DOM.events.bind;return tinyMCE.DOM.events.bind=function(){var n=this,r=Array.prototype.slice.call(arguments),i=r[0],o=r[1],a=r[2];return e.push(function(){n.unbind(i,o,a)}),t.apply(this,arguments)},{attach:function(){return e.length},detach:function(t){for(;e.length&&t<e.length;)e.pop()()}}}Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(19),s=r(a),l=n(6),u=r(l),c=n(2),f=r(c),d=n(89),h=r(d),p=n(27);t.default={name:"editor-visual",props:{value:{type:String,default:""},attrs:{type:Object,default:function(){return{}}},root:{type:Boolean,default:!1}},data:function(){return{id:"e"+(0,h.default)().toLowerCase()}},created:function(){window.tinyMCE||this.$destroy(),o||(o=new i)},ready:function(){var e=this;this.listener=o.attach();var t=(0,u.default)({},this.settings,{resize:!0,menubar:!1,width:"100%",height:330,relative_urls:this.settings.relative_urls||!1,init_instance_callback:function(t){(0,s.default)(t.schema.elements,function(e){e.attributePatterns=e.attributePatterns||[],e.attributePatterns.push({pattern:/^uk-.*$/})}),t.setContent(e.value),setTimeout(e.refresh,20)},setup:function(t){if(e.$emit("editor.setup",t),"4"===tinyMCE.majorVersion){e.attrs.lazy?t.on("blur",e.update):(t.on("keyup",e.update),t.on("change",e.update)),t.on("undo",function(){return t.fire("change")}),t.on("redo",function(){return t.fire("change")});var n;t.on(p.pointerDown,function(){t.iframeElement.focus(),n=!0}),t.on("focus",function(){return!n&&t.iframeElement.focus()}),t.on("blur",function(){return n=!1})}else t.onChange.add(e.update),t.onKeyUp.add(e.update)}});!0===this.root&&(t.forced_root_block="",t.force_p_newlines=!1,t.force_br_newlines=!0),this.editor=new tinyMCE.Editor(this.id,t,tinyMCE.EditorManager),this.editor.render()},methods:{update:function(){this.$emit("update",this.editor.getContent())},setValue:function(e){this.editor.getContent()!==e&&this.editor.setContent(e)},refresh:function(){if(this.attrs.height){var e=this.attrs.height,t=document.getElementById(this.editor.id+"_ifr"),n=this.editor.editorContainer;"string"==typeof n&&(n=document.getElementById(n)),t.style.height="0px",e-=(0,f.default)(n).outerHeight(),t.style.height=e>0?e+"px":"300px"}}},beforeDestroy:function(){if(this.editor)try{this.editor.remove(),this.editor.destroy()}catch(e){}finally{this.editor=null,o.detach(this.listener)}}}},function(e,t){e.exports='\n\n<div>\n <textarea class="uk-textarea" :id="id"></textarea>\n</div>\n\n'}]);