/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */

//     Underscore.js 1.10.2
//     https://underscorejs.org
//     (c) 2009-2020 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
//     Underscore may be freely distributed under the MIT license.

//     (c) 2012 Airbnb, Inc.
//
//     polyglot.js may be freely distributed under the terms of the BSD
//     license. For all licensing information, details, and documention:
//     http://airbnb.github.com/polyglot.js
//
//
// Polyglot.js is an I18n helper library written in JavaScript, made to
// work both in the browser and in Node. It provides a simple solution for
// interpolation and pluralization, based off of Airbnb's
// experience adding I18n functionality to its Backbone.js and Node apps.
//
// Polylglot is agnostic to your translation backend. It doesn't perform any
// translation; it simply gives you a way to manage translated phrases from
// your client- or server-side JavaScript application.
//

/**
 * Copyright (C) Baluart.COM - All Rights Reserved
 *
 * @description JavaScript Form Builder for Easy Forms
 * @since 1.0
 * @author Baluart E.I.R.L.
 * @copyright Copyright (c) 2015 - 2021 Baluart E.I.R.L.
 * @license http://codecanyon.net/licenses/faq Envato marketplace licenses
 * @link https://easyforms.dev/ Easy Forms
 */

/**
 * @license text 2.0.16 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, http://github.com/requirejs/text/LICENSE
 */

/*!
 * Bootstrap v3.4.1 (https://getbootstrap.com/)
 * Copyright 2011-2019 Twitter, Inc.
 * Licensed under the MIT license
 */

/**
 * Copyright (C) Baluart.COM - All Rights Reserved
 *
 * @description JavaScript Form Builder for Easy Forms
 * @since 1.0
 * @author Baluart E.I.R.L.
 * @copyright Copyright (c) 2015 - 2021 Baluart E.I.R.L.
 * @license http://codecanyon.net/licenses/faq Envato marketplace licenses
 * @link https://easyforms.dev/ Easy Forms
 *
 * Based on:
 * Bootstrap 2.3.1 Form Builder
 * Copyright (C) 2012 Adam Moore
 * Licensed under MIT (https://github.com/minikomi/Bootstrap-Form-Builder/blob/gh-pages/LICENSE)
 */

/**
 * Copyright (C) Baluart.COM - All Rights Reserved
 *
 * @description JavaScript Form Builder for Easy Forms
 * @since 1.9
 * @author Baluart E.I.R.L.
 * @copyright Copyright (c) 2015 - 2021 Baluart E.I.R.L.
 * @license http://codecanyon.net/licenses/faq Envato marketplace licenses
 * @link https://easyforms.dev/ Easy Forms
 */

/*!
 * clipboard.js v2.0.6
 * https://clipboardjs.com/
 * 
 * Licensed MIT © Zeno Rocha
 */

/**
 * CSS-JSON Converter for JavaScript
 * Converts CSS to JSON and back.
 * Version 2.1
 * Released under the MIT license.
 * Copyright (c) 2013 Aram Kocharyan, http://aramk.com/
 */

/*! grapick - 0.1.7 */

/*
 * jQuery.fontselect - A font selector for system fonts, local fonts and Google Web Fonts
 *
 * Made by Arjan Haverkamp, https://www.webgear.nl
 * Based on original by Tom Moor, http://tommoor.com
 * Copyright (c) 2011 Tom Moor, 2019 Arjan Haverkamp
 * MIT Licensed
 * @version 0.7 - 2019-08-27
 * @url https://github.com/av01d/fontselect-jquery-plugin
 */

/*!
 * jQuery Cookie Plugin v1.4.1
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2006, 2014 Klaus Hartl
 * Released under the MIT license
 */

/*!
 * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2018
 * @version 1.0.5
 * 
 * Additional jQuery plugin enhancements for ColorInput Spectrum plugin by Krajee.
 * 
 * Author: Kartik Visweswaran
 * Copyright: 2015, Kartik Visweswaran, Krajee.com
 * For more Yii related demos visit http://demos.krajee.com
 */

if(function(e,n){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?n(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(e)}("undefined"!=typeof window?window:this,function(e,n){"use strict";function t(e,n,t){var i,o,a=(t=t||pe).createElement("script");if(a.text=e,n)for(i in ue)(o=n[i]||n.getAttribute&&n.getAttribute(i))&&a.setAttribute(i,o);t.head.appendChild(a).parentNode.removeChild(a)}function i(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ie[oe.call(e)]||"object":typeof e}function o(e){var n=!!e&&"length"in e&&e.length,t=i(e);return!ce(e)&&!de(e)&&("array"===t||0===n||"number"==typeof n&&0<n&&n-1 in e)}function a(e,n){return e.nodeName&&e.nodeName.toLowerCase()===n.toLowerCase()}function r(e,n,t){return ce(n)?he.grep(e,function(e,i){return!!n.call(e,i,e)!==t}):n.nodeType?he.grep(e,function(e){return e===n!==t}):"string"!=typeof n?he.grep(e,function(e){return-1<te.call(n,e)!==t}):he.filter(n,e,t)}function l(e,n){for(;(e=e[n])&&1!==e.nodeType;);return e}function s(e){return e}function c(e){throw e}function d(e,n,t,i){var o;try{e&&ce(o=e.promise)?o.call(e).done(n).fail(t):e&&ce(o=e.then)?o.call(e,n,t):n.apply(void 0,[e].slice(i))}catch(e){t.apply(void 0,[e])}}function p(){pe.removeEventListener("DOMContentLoaded",p),e.removeEventListener("load",p),he.ready()}function u(e,n){return n.toUpperCase()}function f(e){return e.replace(Ae,"ms-").replace(Oe,u)}function h(){this.expando=he.expando+h.uid++}function v(e,n,t){var i,o;if(void 0===t&&1===e.nodeType)if(i="data-"+n.replace(Me,"-$&").toLowerCase(),"string"==typeof(t=e.getAttribute(i))){try{t="true"===(o=t)||"false"!==o&&("null"===o?null:o===+o+""?+o:Be.test(o)?JSON.parse(o):o)}catch(e){}Pe.set(e,n,t)}else t=void 0;return t}function g(e,n,t,i){var o,a,r=20,l=i?function(){return i.cur()}:function(){return he.css(e,n,"")},s=l(),c=t&&t[3]||(he.cssNumber[n]?"":"px"),d=e.nodeType&&(he.cssNumber[n]||"px"!==c&&+s)&&je.exec(he.css(e,n));if(d&&d[3]!==c){for(s/=2,c=c||d[3],d=+s||1;r--;)he.style(e,n,d+c),(1-a)*(1-(a=l()/s||.5))<=0&&(r=0),d/=a;d*=2,he.style(e,n,d+c),t=t||[]}return t&&(d=+d||+s||0,o=t[1]?d+(t[1]+1)*t[2]:+t[2],i&&(i.unit=c,i.start=d,i.end=o)),o}function m(e,n){for(var t,i,o,a,r,l,s,c=[],d=0,p=e.length;d<p;d++)(i=e[d]).style&&(t=i.style.display,n?("none"===t&&(c[d]=Fe.get(i,"display")||null,c[d]||(i.style.display="")),""===i.style.display&&Ie(i)&&(c[d]=(s=r=a=void 0,r=(o=i).ownerDocument,l=o.nodeName,(s=He[l])||(a=r.body.appendChild(r.createElement(l)),s=he.css(a,"display"),a.parentNode.removeChild(a),"none"===s&&(s="block"),He[l]=s)))):"none"!==t&&(c[d]="none",Fe.set(i,"display",t)));for(d=0;d<p;d++)null!=c[d]&&(e[d].style.display=c[d]);return e}function b(e,n){var t;return t=void 0!==e.getElementsByTagName?e.getElementsByTagName(n||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(n||"*"):[],void 0===n||n&&a(e,n)?he.merge([e],t):t}function y(e,n){for(var t=0,i=e.length;t<i;t++)Fe.set(e[t],"globalEval",!n||Fe.get(n[t],"globalEval"))}function x(e,n,t,o,a){for(var r,l,s,c,d,p,u=n.createDocumentFragment(),f=[],h=0,v=e.length;h<v;h++)if((r=e[h])||0===r)if("object"===i(r))he.merge(f,r.nodeType?[r]:r);else if(Ke.test(r)){for(l=l||u.appendChild(n.createElement("div")),s=(Ue.exec(r)||["",""])[1].toLowerCase(),c=Je[s]||Je._default,l.innerHTML=c[1]+he.htmlPrefilter(r)+c[2],p=c[0];p--;)l=l.lastChild;he.merge(f,l.childNodes),(l=u.firstChild).textContent=""}else f.push(n.createTextNode(r));for(u.textContent="",h=0;r=f[h++];)if(o&&-1<he.inArray(r,o))a&&a.push(r);else if(d=qe(r),l=b(u.appendChild(r),"script"),d&&y(l),t)for(p=0;r=l[p++];)Ge.test(r.type||"")&&t.push(r);return u}function w(){return!0}function k(){return!1}function C(e,n){return e===function(){try{return pe.activeElement}catch(e){}}()==("focus"===n)}function S(e,n,t,i,o,a){var r,l;if("object"==typeof n){for(l in"string"!=typeof t&&(i=i||t,t=void 0),n)S(e,l,t,i,n[l],a);return e}if(null==i&&null==o?(o=t,i=t=void 0):null==o&&("string"==typeof t?(o=i,i=void 0):(o=i,i=t,t=void 0)),!1===o)o=k;else if(!o)return e;return 1===a&&(r=o,(o=function(e){return he().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=he.guid++)),e.each(function(){he.event.add(this,n,o,i,t)})}function T(e,n,t){t?(Fe.set(e,n,!1),he.event.add(e,n,{namespace:!1,handler:function(e){var i,o,a=Fe.get(this,n);if(1&e.isTrigger&&this[n]){if(a.length)(he.event.special[n]||{}).delegateType&&e.stopPropagation();else if(a=Z.call(arguments),Fe.set(this,n,a),i=t(this,n),this[n](),a!==(o=Fe.get(this,n))||i?Fe.set(this,n,!1):o={},a!==o)return e.stopImmediatePropagation(),e.preventDefault(),o&&o.value}else a.length&&(Fe.set(this,n,{value:he.event.trigger(he.extend(a[0],he.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Fe.get(e,n)&&he.event.add(e,n,w)}function E(e,n){return a(e,"table")&&a(11!==n.nodeType?n:n.firstChild,"tr")&&he(e).children("tbody")[0]||e}function _(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function A(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function O(e,n){var t,i,o,a,r,l;if(1===n.nodeType){if(Fe.hasData(e)&&(l=Fe.get(e).events))for(o in Fe.remove(n,"handle events"),l)for(t=0,i=l[o].length;t<i;t++)he.event.add(n,o,l[o][t]);Pe.hasData(e)&&(a=Pe.access(e),r=he.extend({},a),Pe.set(n,r))}}function D(e,n,i,o){n=ee(n);var a,r,l,s,c,d,p=0,u=e.length,f=u-1,h=n[0],v=ce(h);if(v||1<u&&"string"==typeof h&&!se.checkClone&&Qe.test(h))return e.each(function(t){var a=e.eq(t);v&&(n[0]=h.call(this,t,a.html())),D(a,n,i,o)});if(u&&(r=(a=x(n,e[0].ownerDocument,!1,e,o)).firstChild,1===a.childNodes.length&&(a=r),r||o)){for(s=(l=he.map(b(a,"script"),_)).length;p<u;p++)c=a,p!==f&&(c=he.clone(c,!0,!0),s&&he.merge(l,b(c,"script"))),i.call(e[p],c,p);if(s)for(d=l[l.length-1].ownerDocument,he.map(l,A),p=0;p<s;p++)c=l[p],Ge.test(c.type||"")&&!Fe.access(c,"globalEval")&&he.contains(d,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?he._evalUrl&&!c.noModule&&he._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},d):t(c.textContent.replace(Ze,""),c,d))}return e}function F(e,n,t){for(var i,o=n?he.filter(n,e):e,a=0;null!=(i=o[a]);a++)t||1!==i.nodeType||he.cleanData(b(i)),i.parentNode&&(t&&qe(i)&&y(b(i,"script")),i.parentNode.removeChild(i));return e}function P(e,n,t){var i,o,a,r,l=e.style;return(t=t||nn(e))&&(""!==(r=t.getPropertyValue(n)||t[n])||qe(e)||(r=he.style(e,n)),!se.pixelBoxStyles()&&en.test(r)&&on.test(n)&&(i=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=r,r=t.width,l.width=i,l.minWidth=o,l.maxWidth=a)),void 0!==r?r+"":r}function B(e,n){return{get:function(){if(!e())return(this.get=n).apply(this,arguments);delete this.get}}}function M(e){return he.cssProps[e]||ln[e]||(e in rn?e:ln[e]=function(e){for(var n=e[0].toUpperCase()+e.slice(1),t=an.length;t--;)if((e=an[t]+n)in rn)return e}(e)||e)}function N(e,n,t){var i=je.exec(n);return i?Math.max(0,i[2]-(t||0))+(i[3]||"px"):n}function j(e,n,t,i,o,a){var r="width"===n?1:0,l=0,s=0;if(t===(i?"border":"content"))return 0;for(;r<4;r+=2)"margin"===t&&(s+=he.css(e,t+Re[r],!0,o)),i?("content"===t&&(s-=he.css(e,"padding"+Re[r],!0,o)),"margin"!==t&&(s-=he.css(e,"border"+Re[r]+"Width",!0,o))):(s+=he.css(e,"padding"+Re[r],!0,o),"padding"!==t?s+=he.css(e,"border"+Re[r]+"Width",!0,o):l+=he.css(e,"border"+Re[r]+"Width",!0,o));return!i&&0<=a&&(s+=Math.max(0,Math.ceil(e["offset"+n[0].toUpperCase()+n.slice(1)]-a-s-l-.5))||0),s}function R(e,n,t){var i=nn(e),o=(!se.boxSizingReliable()||t)&&"border-box"===he.css(e,"boxSizing",!1,i),r=o,l=P(e,n,i),s="offset"+n[0].toUpperCase()+n.slice(1);if(en.test(l)){if(!t)return l;l="auto"}return(!se.boxSizingReliable()&&o||!se.reliableTrDimensions()&&a(e,"tr")||"auto"===l||!parseFloat(l)&&"inline"===he.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===he.css(e,"boxSizing",!1,i),(r=s in e)&&(l=e[s])),(l=parseFloat(l)||0)+j(e,n,t||(o?"border":"content"),r,i,l)+"px"}function L(e,n,t,i,o){return new L.prototype.init(e,n,t,i,o)}function q(){fn&&(!1===pe.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(q):e.setTimeout(q,he.fx.interval),he.fx.tick())}function $(){return e.setTimeout(function(){un=void 0}),un=Date.now()}function I(e,n){var t,i=0,o={height:e};for(n=n?1:0;i<4;i+=2-n)o["margin"+(t=Re[i])]=o["padding"+t]=e;return n&&(o.opacity=o.width=e),o}function H(e,n,t){for(var i,o=(z.tweeners[n]||[]).concat(z.tweeners["*"]),a=0,r=o.length;a<r;a++)if(i=o[a].call(t,n,e))return i}function z(e,n,t){var i,o,a=0,r=z.prefilters.length,l=he.Deferred().always(function(){delete s.elem}),s=function(){if(o)return!1;for(var n=un||$(),t=Math.max(0,c.startTime+c.duration-n),i=1-(t/c.duration||0),a=0,r=c.tweens.length;a<r;a++)c.tweens[a].run(i);return l.notifyWith(e,[c,i,t]),i<1&&r?t:(r||l.notifyWith(e,[c,1,0]),l.resolveWith(e,[c]),!1)},c=l.promise({elem:e,props:he.extend({},n),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},t),originalProperties:n,originalOptions:t,startTime:un||$(),duration:t.duration,tweens:[],createTween:function(n,t){var i=he.Tween(e,c.opts,n,t,c.opts.specialEasing[n]||c.opts.easing);return c.tweens.push(i),i},stop:function(n){var t=0,i=n?c.tweens.length:0;if(o)return this;for(o=!0;t<i;t++)c.tweens[t].run(1);return n?(l.notifyWith(e,[c,1,0]),l.resolveWith(e,[c,n])):l.rejectWith(e,[c,n]),this}}),d=c.props;for((!function(e,n){var t,i,o,a,r;for(t in e)if(o=n[i=f(t)],a=e[t],Array.isArray(a)&&(o=a[1],a=e[t]=a[0]),t!==i&&(e[i]=a,delete e[t]),(r=he.cssHooks[i])&&"expand"in r)for(t in a=r.expand(a),delete e[i],a)t in e||(e[t]=a[t],n[t]=o);else n[i]=o}(d,c.opts.specialEasing));a<r;a++)if(i=z.prefilters[a].call(c,e,d,c.opts))return ce(i.stop)&&(he._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return he.map(d,H,c),ce(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),he.fx.timer(he.extend(s,{elem:e,anim:c,queue:c.opts.queue})),c}function W(e){return(e.match(Se)||[]).join(" ")}function V(e){return e.getAttribute&&e.getAttribute("class")||""}function U(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Se)||[]}function G(e,n,t,o){var a;if(Array.isArray(n))he.each(n,function(n,i){t||An.test(e)?o(e,i):G(e+"["+("object"==typeof i&&null!=i?n:"")+"]",i,t,o)});else if(t||"object"!==i(n))o(e,n);else for(a in n)G(e+"["+a+"]",n[a],t,o)}function J(e){return function(n,t){"string"!=typeof n&&(t=n,n="*");var i,o=0,a=n.toLowerCase().match(Se)||[];if(ce(t))for(;i=a[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(t)):(e[i]=e[i]||[]).push(t)}}function K(e,n,t,i){function o(l){var s;return a[l]=!0,he.each(e[l]||[],function(e,l){var c=l(n,t,i);return"string"!=typeof c||r||a[c]?r?!(s=c):void 0:(n.dataTypes.unshift(c),o(c),!1)}),s}var a={},r=e===qn;return o(n.dataTypes[0])||!a["*"]&&o("*")}function X(e,n){var t,i,o=he.ajaxSettings.flatOptions||{};for(t in n)void 0!==n[t]&&((o[t]?e:i||(i={}))[t]=n[t]);return i&&he.extend(!0,e,i),e}var Y=[],Q=Object.getPrototypeOf,Z=Y.slice,ee=Y.flat?function(e){return Y.flat.call(e)}:function(e){return Y.concat.apply([],e)},ne=Y.push,te=Y.indexOf,ie={},oe=ie.toString,ae=ie.hasOwnProperty,re=ae.toString,le=re.call(Object),se={},ce=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},de=function(e){return null!=e&&e===e.window},pe=e.document,ue={type:!0,src:!0,nonce:!0,noModule:!0},fe="3.6.0",he=function(e,n){return new he.fn.init(e,n)};he.fn=he.prototype={jquery:fe,constructor:he,length:0,toArray:function(){return Z.call(this)},get:function(e){return null==e?Z.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var n=he.merge(this.constructor(),e);return n.prevObject=this,n},each:function(e){return he.each(this,e)},map:function(e){return this.pushStack(he.map(this,function(n,t){return e.call(n,t,n)}))},slice:function(){return this.pushStack(Z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(he.grep(this,function(e,n){return(n+1)%2}))},odd:function(){return this.pushStack(he.grep(this,function(e,n){return n%2}))},eq:function(e){var n=this.length,t=+e+(e<0?n:0);return this.pushStack(0<=t&&t<n?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ne,sort:Y.sort,splice:Y.splice},he.extend=he.fn.extend=function(){var e,n,t,i,o,a,r=arguments[0]||{},l=1,s=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[l]||{},l++),"object"==typeof r||ce(r)||(r={}),l===s&&(r=this,l--);l<s;l++)if(null!=(e=arguments[l]))for(n in e)i=e[n],"__proto__"!==n&&r!==i&&(c&&i&&(he.isPlainObject(i)||(o=Array.isArray(i)))?(t=r[n],a=o&&!Array.isArray(t)?[]:o||he.isPlainObject(t)?t:{},o=!1,r[n]=he.extend(c,a,i)):void 0!==i&&(r[n]=i));return r},he.extend({expando:"jQuery"+(fe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var n,t;return!(!e||"[object Object]"!==oe.call(e)||(n=Q(e))&&("function"!=typeof(t=ae.call(n,"constructor")&&n.constructor)||re.call(t)!==le))},isEmptyObject:function(e){var n;for(n in e)return!1;return!0},globalEval:function(e,n,i){t(e,{nonce:n&&n.nonce},i)},each:function(e,n){var t,i=0;if(o(e))for(t=e.length;i<t&&!1!==n.call(e[i],i,e[i]);i++);else for(i in e)if(!1===n.call(e[i],i,e[i]))break;return e},makeArray:function(e,n){var t=n||[];return null!=e&&(o(Object(e))?he.merge(t,"string"==typeof e?[e]:e):ne.call(t,e)),t},inArray:function(e,n,t){return null==n?-1:te.call(n,e,t)},merge:function(e,n){for(var t=+n.length,i=0,o=e.length;i<t;i++)e[o++]=n[i];return e.length=o,e},grep:function(e,n,t){for(var i=[],o=0,a=e.length,r=!t;o<a;o++)!n(e[o],o)!==r&&i.push(e[o]);return i},map:function(e,n,t){var i,a,r=0,l=[];if(o(e))for(i=e.length;r<i;r++)null!=(a=n(e[r],r,t))&&l.push(a);else for(r in e)null!=(a=n(e[r],r,t))&&l.push(a);return ee(l)},guid:1,support:se}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=Y[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,n){ie["[object "+n+"]"]=n.toLowerCase()});var ve=function(e){function n(e,n,t,i){var o,a,r,l,s,d,u,f=n&&n.ownerDocument,h=n?n.nodeType:9;if(t=t||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return t;if(!i&&(A(n),n=n||O,F)){if(11!==h&&(s=ve.exec(e)))if(o=s[1]){if(9===h){if(!(r=n.getElementById(o)))return t;if(r.id===o)return t.push(r),t}else if(f&&(r=f.getElementById(o))&&N(n,r)&&r.id===o)return t.push(r),t}else{if(s[2])return K.apply(t,n.getElementsByTagName(e)),t;if((o=s[3])&&b.getElementsByClassName&&n.getElementsByClassName)return K.apply(t,n.getElementsByClassName(o)),t}if(b.qsa&&!z[e+" "]&&(!P||!P.test(e))&&(1!==h||"object"!==n.nodeName.toLowerCase())){if(u=e,f=n,1===h&&(le.test(e)||re.test(e))){for((f=ge.test(e)&&c(n.parentNode)||n)===n&&b.scope||((l=n.getAttribute("id"))?l=l.replace(ye,xe):n.setAttribute("id",l=j)),a=(d=k(e)).length;a--;)d[a]=(l?"#"+l:":scope")+" "+p(d[a]);u=d.join(",")}try{return K.apply(t,f.querySelectorAll(u)),t}catch(n){z(e,!0)}finally{l===j&&n.removeAttribute("id")}}}return S(e.replace(oe,"$1"),n,t,i)}function t(){var e=[];return function n(t,i){return e.push(t+" ")>y.cacheLength&&delete n[e.shift()],n[t+" "]=i}}function i(e){return e[j]=!0,e}function o(e){var n=O.createElement("fieldset");try{return!!e(n)}catch(e){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function a(e,n){for(var t=e.split("|"),i=t.length;i--;)y.attrHandle[t[i]]=n}function r(e,n){var t=n&&e,i=t&&1===e.nodeType&&1===n.nodeType&&e.sourceIndex-n.sourceIndex;if(i)return i;if(t)for(;t=t.nextSibling;)if(t===n)return-1;return e?1:-1}function l(e){return function(n){return"form"in n?n.parentNode&&!1===n.disabled?"label"in n?"label"in n.parentNode?n.parentNode.disabled===e:n.disabled===e:n.isDisabled===e||n.isDisabled!==!e&&ke(n)===e:n.disabled===e:"label"in n&&n.disabled===e}}function s(e){return i(function(n){return n=+n,i(function(t,i){for(var o,a=e([],t.length,n),r=a.length;r--;)t[o=a[r]]&&(t[o]=!(i[o]=t[o]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function d(){}function p(e){for(var n=0,t=e.length,i="";n<t;n++)i+=e[n].value;return i}function u(e,n,t){var i=n.dir,o=n.next,a=o||i,r=t&&"parentNode"===a,l=q++;return n.first?function(n,t,o){for(;n=n[i];)if(1===n.nodeType||r)return e(n,t,o);return!1}:function(n,t,s){var c,d,p,u=[L,l];if(s){for(;n=n[i];)if((1===n.nodeType||r)&&e(n,t,s))return!0}else for(;n=n[i];)if(1===n.nodeType||r)if(d=(p=n[j]||(n[j]={}))[n.uniqueID]||(p[n.uniqueID]={}),o&&o===n.nodeName.toLowerCase())n=n[i]||n;else{if((c=d[a])&&c[0]===L&&c[1]===l)return u[2]=c[2];if((d[a]=u)[2]=e(n,t,s))return!0}return!1}}function f(e){return 1<e.length?function(n,t,i){for(var o=e.length;o--;)if(!e[o](n,t,i))return!1;return!0}:e[0]}function h(e,n,t,i,o){for(var a,r=[],l=0,s=e.length,c=null!=n;l<s;l++)(a=e[l])&&(t&&!t(a,i,o)||(r.push(a),c&&n.push(l)));return r}function v(e,t,o,a,r,l){return a&&!a[j]&&(a=v(a)),r&&!r[j]&&(r=v(r,l)),i(function(i,l,s,c){var d,p,u,f=[],v=[],g=l.length,m=i||function(e,t,i){for(var o=0,a=t.length;o<a;o++)n(e,t[o],i);return i}(t||"*",s.nodeType?[s]:s,[]),b=!e||!i&&t?m:h(m,f,e,s,c),y=o?r||(i?e:g||a)?[]:l:b;if(o&&o(b,y,s,c),a)for(d=h(y,v),a(d,[],s,c),p=d.length;p--;)(u=d[p])&&(y[v[p]]=!(b[v[p]]=u));if(i){if(r||e){if(r){for(d=[],p=y.length;p--;)(u=y[p])&&d.push(b[p]=u);r(null,y=[],d,c)}for(p=y.length;p--;)(u=y[p])&&-1<(d=r?Y(i,u):f[p])&&(i[d]=!(l[d]=u))}}else y=h(y===l?y.splice(g,y.length):y),r?r(null,l,y,c):K.apply(l,y)})}function g(e){for(var n,t,i,o=e.length,a=y.relative[e[0].type],r=a||y.relative[" "],l=a?1:0,s=u(function(e){return e===n},r,!0),c=u(function(e){return-1<Y(n,e)},r,!0),d=[function(e,t,i){var o=!a&&(i||t!==T)||((n=t).nodeType?s(e,t,i):c(e,t,i));return n=null,o}];l<o;l++)if(t=y.relative[e[l].type])d=[u(f(d),t)];else{if((t=y.filter[e[l].type].apply(null,e[l].matches))[j]){for(i=++l;i<o&&!y.relative[e[i].type];i++);return v(1<l&&f(d),1<l&&p(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(oe,"$1"),t,l<i&&g(e.slice(l,i)),i<o&&g(e=e.slice(i)),i<o&&p(e))}d.push(t)}return f(d)}var m,b,y,x,w,k,C,S,T,E,_,A,O,D,F,P,B,M,N,j="sizzle"+1*new Date,R=e.document,L=0,q=0,$=t(),I=t(),H=t(),z=t(),W=function(e,n){return e===n&&(_=!0),0},V={}.hasOwnProperty,U=[],G=U.pop,J=U.push,K=U.push,X=U.slice,Y=function(e,n){for(var t=0,i=e.length;t<i;t++)if(e[t]===n)return t;return-1},Q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Z="[\\x20\\t\\r\\n\\f]",ee="(?:\\\\[\\da-fA-F]{1,6}"+Z+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",ne="\\["+Z+"*("+ee+")(?:"+Z+"*([*^$|!~]?=)"+Z+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ee+"))|)"+Z+"*\\]",te=":("+ee+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",ie=new RegExp(Z+"+","g"),oe=new RegExp("^"+Z+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Z+"+$","g"),ae=new RegExp("^"+Z+"*,"+Z+"*"),re=new RegExp("^"+Z+"*([>+~]|"+Z+")"+Z+"*"),le=new RegExp(Z+"|>"),se=new RegExp(te),ce=new RegExp("^"+ee+"$"),de={ID:new RegExp("^#("+ee+")"),CLASS:new RegExp("^\\.("+ee+")"),TAG:new RegExp("^("+ee+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+te),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Z+"*(even|odd|(([+-]|)(\\d*)n|)"+Z+"*(?:([+-]|)"+Z+"*(\\d+)|))"+Z+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+Z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Z+"*((?:-\\d)?\\d*)"+Z+"*\\)|)(?=[^-]|$)","i")},pe=/HTML$/i,ue=/^(?:input|select|textarea|button)$/i,fe=/^h\d$/i,he=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ge=/[+~]/,me=new RegExp("\\\\[\\da-fA-F]{1,6}"+Z+"?|\\\\([^\\r\\n\\f])","g"),be=function(e,n){var t="0x"+e.slice(1)-65536;return n||(t<0?String.fromCharCode(t+65536):String.fromCharCode(t>>10|55296,1023&t|56320))},ye=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,xe=function(e,n){return n?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},we=function(){A()},ke=u(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{K.apply(U=X.call(R.childNodes),R.childNodes),U[R.childNodes.length].nodeType}catch(m){K={apply:U.length?function(e,n){J.apply(e,X.call(n))}:function(e,n){for(var t=e.length,i=0;e[t++]=n[i++];);e.length=t-1}}}for(m in b=n.support={},w=n.isXML=function(e){var n=e&&e.namespaceURI,t=e&&(e.ownerDocument||e).documentElement;return!pe.test(n||t&&t.nodeName||"HTML")},A=n.setDocument=function(e){var n,t,i=e?e.ownerDocument||e:R;return i!=O&&9===i.nodeType&&i.documentElement&&(D=(O=i).documentElement,F=!w(O),R!=O&&(t=O.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",we,!1):t.attachEvent&&t.attachEvent("onunload",we)),b.scope=o(function(e){return D.appendChild(e).appendChild(O.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),b.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=o(function(e){return e.appendChild(O.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=he.test(O.getElementsByClassName),b.getById=o(function(e){return D.appendChild(e).id=j,!O.getElementsByName||!O.getElementsByName(j).length}),b.getById?(y.filter.ID=function(e){var n=e.replace(me,be);return function(e){return e.getAttribute("id")===n}},y.find.ID=function(e,n){if(void 0!==n.getElementById&&F){var t=n.getElementById(e);return t?[t]:[]}}):(y.filter.ID=function(e){var n=e.replace(me,be);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},y.find.ID=function(e,n){if(void 0!==n.getElementById&&F){var t,i,o,a=n.getElementById(e);if(a){if((t=a.getAttributeNode("id"))&&t.value===e)return[a];for(o=n.getElementsByName(e),i=0;a=o[i++];)if((t=a.getAttributeNode("id"))&&t.value===e)return[a]}return[]}}),y.find.TAG=b.getElementsByTagName?function(e,n){return void 0!==n.getElementsByTagName?n.getElementsByTagName(e):b.qsa?n.querySelectorAll(e):void 0}:function(e,n){var t,i=[],o=0,a=n.getElementsByTagName(e);if("*"===e){for(;t=a[o++];)1===t.nodeType&&i.push(t);return i}return a},y.find.CLASS=b.getElementsByClassName&&function(e,n){if(void 0!==n.getElementsByClassName&&F)return n.getElementsByClassName(e)},B=[],P=[],(b.qsa=he.test(O.querySelectorAll))&&(o(function(e){var n;D.appendChild(e).innerHTML="<a id='"+j+"'></a><select id='"+j+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&P.push("[*^$]="+Z+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||P.push("\\["+Z+"*(?:value|"+Q+")"),e.querySelectorAll("[id~="+j+"-]").length||P.push("~="),(n=O.createElement("input")).setAttribute("name",""),e.appendChild(n),e.querySelectorAll("[name='']").length||P.push("\\["+Z+"*name"+Z+"*="+Z+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||P.push(":checked"),e.querySelectorAll("a#"+j+"+*").length||P.push(".#.+[+~]"),e.querySelectorAll("\\\f"),P.push("[\\r\\n\\f]")}),o(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var n=O.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&P.push("name"+Z+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&P.push(":enabled",":disabled"),D.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&P.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),P.push(",.*:")})),(b.matchesSelector=he.test(M=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&o(function(e){b.disconnectedMatch=M.call(e,"*"),M.call(e,"[s!='']:x"),B.push("!=",te)}),P=P.length&&new RegExp(P.join("|")),B=B.length&&new RegExp(B.join("|")),n=he.test(D.compareDocumentPosition),N=n||he.test(D.contains)?function(e,n){var t=9===e.nodeType?e.documentElement:e,i=n&&n.parentNode;return e===i||!(!i||1!==i.nodeType||!(t.contains?t.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,n){if(n)for(;n=n.parentNode;)if(n===e)return!0;return!1},W=n?function(e,n){if(e===n)return _=!0,0;var t=!e.compareDocumentPosition-!n.compareDocumentPosition;return t||(1&(t=(e.ownerDocument||e)==(n.ownerDocument||n)?e.compareDocumentPosition(n):1)||!b.sortDetached&&n.compareDocumentPosition(e)===t?e==O||e.ownerDocument==R&&N(R,e)?-1:n==O||n.ownerDocument==R&&N(R,n)?1:E?Y(E,e)-Y(E,n):0:4&t?-1:1)}:function(e,n){if(e===n)return _=!0,0;var t,i=0,o=e.parentNode,a=n.parentNode,l=[e],s=[n];if(!o||!a)return e==O?-1:n==O?1:o?-1:a?1:E?Y(E,e)-Y(E,n):0;if(o===a)return r(e,n);for(t=e;t=t.parentNode;)l.unshift(t);for(t=n;t=t.parentNode;)s.unshift(t);for(;l[i]===s[i];)i++;return i?r(l[i],s[i]):l[i]==R?-1:s[i]==R?1:0}),O},n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){if(A(e),b.matchesSelector&&F&&!z[t+" "]&&(!B||!B.test(t))&&(!P||!P.test(t)))try{var i=M.call(e,t);if(i||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){z(t,!0)}return 0<n(t,O,null,[e]).length},n.contains=function(e,n){return(e.ownerDocument||e)!=O&&A(e),N(e,n)},n.attr=function(e,n){(e.ownerDocument||e)!=O&&A(e);var t=y.attrHandle[n.toLowerCase()],i=t&&V.call(y.attrHandle,n.toLowerCase())?t(e,n,!F):void 0;return void 0!==i?i:b.attributes||!F?e.getAttribute(n):(i=e.getAttributeNode(n))&&i.specified?i.value:null},n.escape=function(e){return(e+"").replace(ye,xe)},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},n.uniqueSort=function(e){var n,t=[],i=0,o=0;if(_=!b.detectDuplicates,E=!b.sortStable&&e.slice(0),e.sort(W),_){for(;n=e[o++];)n===e[o]&&(i=t.push(o));for(;i--;)e.splice(t[i],1)}return E=null,e},x=n.getText=function(e){var n,t="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)t+=x(e)}else if(3===o||4===o)return e.nodeValue}else for(;n=e[i++];)t+=x(n);return t},(y=n.selectors={cacheLength:50,createPseudo:i,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(me,be),e[3]=(e[3]||e[4]||e[5]||"").replace(me,be),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||n.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&n.error(e[0]),e},PSEUDO:function(e){var n,t=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":t&&se.test(t)&&(n=k(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(e[0]=e[0].slice(0,n),e[2]=t.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var n=e.replace(me,be).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===n}},CLASS:function(e){var n=$[e+" "];return n||(n=new RegExp("(^|"+Z+")"+e+"("+Z+"|$)"))&&$(e,function(e){return n.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(o){var a=n.attr(o,e);return null==a?"!="===t:!t||(a+="","="===t?a===i:"!="===t?a!==i:"^="===t?i&&0===a.indexOf(i):"*="===t?i&&-1<a.indexOf(i):"$="===t?i&&a.slice(-i.length)===i:"~="===t?-1<(" "+a.replace(ie," ")+" ").indexOf(i):"|="===t&&(a===i||a.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,n,t,i,o){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),l="of-type"===n;return 1===i&&0===o?function(e){return!!e.parentNode}:function(n,t,s){var c,d,p,u,f,h,v=a!==r?"nextSibling":"previousSibling",g=n.parentNode,m=l&&n.nodeName.toLowerCase(),b=!s&&!l,y=!1;if(g){if(a){for(;v;){for(u=n;u=u[v];)if(l?u.nodeName.toLowerCase()===m:1===u.nodeType)return!1;h=v="only"===e&&!h&&"nextSibling"}return!0}if(h=[r?g.firstChild:g.lastChild],r&&b){for(y=(f=(c=(d=(p=(u=g)[j]||(u[j]={}))[u.uniqueID]||(p[u.uniqueID]={}))[e]||[])[0]===L&&c[1])&&c[2],u=f&&g.childNodes[f];u=++f&&u&&u[v]||(y=f=0)||h.pop();)if(1===u.nodeType&&++y&&u===n){d[e]=[L,f,y];break}}else if(b&&(y=f=(c=(d=(p=(u=n)[j]||(u[j]={}))[u.uniqueID]||(p[u.uniqueID]={}))[e]||[])[0]===L&&c[1]),!1===y)for(;(u=++f&&u&&u[v]||(y=f=0)||h.pop())&&((l?u.nodeName.toLowerCase()!==m:1!==u.nodeType)||!++y||(b&&((d=(p=u[j]||(u[j]={}))[u.uniqueID]||(p[u.uniqueID]={}))[e]=[L,y]),u!==n)););return(y-=o)===i||y%i==0&&0<=y/i}}},PSEUDO:function(e,t){var o,a=y.pseudos[e]||y.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return a[j]?a(t):1<a.length?(o=[e,e,"",t],y.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,n){for(var i,o=a(e,t),r=o.length;r--;)e[i=Y(e,o[r])]=!(n[i]=o[r])}):function(e){return a(e,0,o)}):a}},pseudos:{not:i(function(e){var n=[],t=[],o=C(e.replace(oe,"$1"));return o[j]?i(function(e,n,t,i){for(var a,r=o(e,null,i,[]),l=e.length;l--;)(a=r[l])&&(e[l]=!(n[l]=a))}):function(e,i,a){return n[0]=e,o(n,null,a,t),n[0]=null,!t.pop()}}),has:i(function(e){return function(t){return 0<n(e,t).length}}),contains:i(function(e){return e=e.replace(me,be),function(n){return-1<(n.textContent||x(n)).indexOf(e)}}),lang:i(function(e){return ce.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(me,be).toLowerCase(),function(n){var t;do{if(t=F?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return(t=t.toLowerCase())===e||0===t.indexOf(e+"-")}while((n=n.parentNode)&&1===n.nodeType);return!1}}),target:function(n){var t=e.location&&e.location.hash;return t&&t.slice(1)===n.id},root:function(e){return e===D},focus:function(e){return e===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:l(!1),disabled:l(!0),checked:function(e){var n=e.nodeName.toLowerCase();return"input"===n&&!!e.checked||"option"===n&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!y.pseudos.empty(e)},header:function(e){return fe.test(e.nodeName)},input:function(e){return ue.test(e.nodeName)},button:function(e){var n=e.nodeName.toLowerCase();return"input"===n&&"button"===e.type||"button"===n},text:function(e){var n;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(n=e.getAttribute("type"))||"text"===n.toLowerCase())},first:s(function(){return[0]}),last:s(function(e,n){return[n-1]}),eq:s(function(e,n,t){return[t<0?t+n:t]}),even:s(function(e,n){for(var t=0;t<n;t+=2)e.push(t);return e}),odd:s(function(e,n){for(var t=1;t<n;t+=2)e.push(t);return e}),lt:s(function(e,n,t){for(var i=t<0?t+n:n<t?n:t;0<=--i;)e.push(i);return e}),gt:s(function(e,n,t){for(var i=t<0?t+n:t;++i<n;)e.push(i);return e})}}).pseudos.nth=y.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})y.pseudos[m]=function(e){return function(n){return"input"===n.nodeName.toLowerCase()&&n.type===e}}(m);for(m in{submit:!0,reset:!0})y.pseudos[m]=function(e){return function(n){var t=n.nodeName.toLowerCase();return("input"===t||"button"===t)&&n.type===e}}(m);return d.prototype=y.filters=y.pseudos,y.setFilters=new d,k=n.tokenize=function(e,t){var i,o,a,r,l,s,c,d=I[e+" "];if(d)return t?0:d.slice(0);for(l=e,s=[],c=y.preFilter;l;){for(r in i&&!(o=ae.exec(l))||(o&&(l=l.slice(o[0].length)||l),s.push(a=[])),i=!1,(o=re.exec(l))&&(i=o.shift(),a.push({value:i,type:o[0].replace(oe," ")}),l=l.slice(i.length)),y.filter)!(o=de[r].exec(l))||c[r]&&!(o=c[r](o))||(i=o.shift(),a.push({value:i,type:r,matches:o}),l=l.slice(i.length));if(!i)break}return t?l.length:l?n.error(e):I(e,s).slice(0)},C=n.compile=function(e,t){var o,a,r,l,s,c,d=[],p=[],u=H[e+" "];if(!u){for(t||(t=k(e)),o=t.length;o--;)(u=g(t[o]))[j]?d.push(u):p.push(u);(u=H(e,(a=p,l=0<(r=d).length,
s=0<a.length,c=function(e,t,i,o,c){var d,p,u,f=0,v="0",g=e&&[],m=[],b=T,x=e||s&&y.find.TAG("*",c),w=L+=null==b?1:Math.random()||.1,k=x.length;for(c&&(T=t==O||t||c);v!==k&&null!=(d=x[v]);v++){if(s&&d){for(p=0,t||d.ownerDocument==O||(A(d),i=!F);u=a[p++];)if(u(d,t||O,i)){o.push(d);break}c&&(L=w)}l&&((d=!u&&d)&&f--,e&&g.push(d))}if(f+=v,l&&v!==f){for(p=0;u=r[p++];)u(g,m,t,i);if(e){if(0<f)for(;v--;)g[v]||m[v]||(m[v]=G.call(o));m=h(m)}K.apply(o,m),c&&!e&&0<m.length&&1<f+r.length&&n.uniqueSort(o)}return c&&(L=w,T=b),g},l?i(c):c))).selector=e}return u},S=n.select=function(e,n,t,i){var o,a,r,l,s,d="function"==typeof e&&e,u=!i&&k(e=d.selector||e);if(t=t||[],1===u.length){if(2<(a=u[0]=u[0].slice(0)).length&&"ID"===(r=a[0]).type&&9===n.nodeType&&F&&y.relative[a[1].type]){if(!(n=(y.find.ID(r.matches[0].replace(me,be),n)||[])[0]))return t;d&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=de.needsContext.test(e)?0:a.length;o--&&(r=a[o],!y.relative[l=r.type]);)if((s=y.find[l])&&(i=s(r.matches[0].replace(me,be),ge.test(a[0].type)&&c(n.parentNode)||n))){if(a.splice(o,1),!(e=i.length&&p(a)))return K.apply(t,i),t;break}}return(d||C(e,u))(i,n,!F,t,!n||ge.test(e)&&c(n.parentNode)||n),t},b.sortStable=j.split("").sort(W).join("")===j,b.detectDuplicates=!!_,A(),b.sortDetached=o(function(e){return 1&e.compareDocumentPosition(O.createElement("fieldset"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||a("type|href|height|width",function(e,n,t){if(!t)return e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),b.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||a("value",function(e,n,t){if(!t&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||a(Q,function(e,n,t){var i;if(!t)return!0===e[n]?n.toLowerCase():(i=e.getAttributeNode(n))&&i.specified?i.value:null}),n}(e);he.find=ve,he.expr=ve.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=ve.uniqueSort,he.text=ve.getText,he.isXMLDoc=ve.isXML,he.contains=ve.contains,he.escapeSelector=ve.escape;var ge=function(e,n,t){for(var i=[],o=void 0!==t;(e=e[n])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&he(e).is(t))break;i.push(e)}return i},me=function(e,n){for(var t=[];e;e=e.nextSibling)1===e.nodeType&&e!==n&&t.push(e);return t},be=he.expr.match.needsContext,ye=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;he.filter=function(e,n,t){var i=n[0];return t&&(e=":not("+e+")"),1===n.length&&1===i.nodeType?he.find.matchesSelector(i,e)?[i]:[]:he.find.matches(e,he.grep(n,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var n,t,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(n=0;n<i;n++)if(he.contains(o[n],this))return!0}));for(t=this.pushStack([]),n=0;n<i;n++)he.find(e,o[n],t);return 1<i?he.uniqueSort(t):t},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&be.test(e)?he(e):e||[],!1).length}});var xe,we=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,n,t){var i,o;if(!e)return this;if(t=t||xe,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:we.exec(e))||!i[1]&&n)return!n||n.jquery?(n||t).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof he?n[0]:n,he.merge(this,he.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:pe,!0)),ye.test(i[1])&&he.isPlainObject(n))for(i in n)ce(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}return(o=pe.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ce(e)?void 0!==t.ready?t.ready(e):e(he):he.makeArray(e,this)}).prototype=he.fn,xe=he(pe);var ke=/^(?:parents|prev(?:Until|All))/,Ce={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var n=he(e,this),t=n.length;return this.filter(function(){for(var e=0;e<t;e++)if(he.contains(this,n[e]))return!0})},closest:function(e,n){var t,i=0,o=this.length,a=[],r="string"!=typeof e&&he(e);if(!be.test(e))for(;i<o;i++)for(t=this[i];t&&t!==n;t=t.parentNode)if(t.nodeType<11&&(r?-1<r.index(t):1===t.nodeType&&he.find.matchesSelector(t,e))){a.push(t);break}return this.pushStack(1<a.length?he.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?te.call(he(e),this[0]):te.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,n){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,n))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var n=e.parentNode;return n&&11!==n.nodeType?n:null},parents:function(e){return ge(e,"parentNode")},parentsUntil:function(e,n,t){return ge(e,"parentNode",t)},next:function(e){return l(e,"nextSibling")},prev:function(e){return l(e,"previousSibling")},nextAll:function(e){return ge(e,"nextSibling")},prevAll:function(e){return ge(e,"previousSibling")},nextUntil:function(e,n,t){return ge(e,"nextSibling",t)},prevUntil:function(e,n,t){return ge(e,"previousSibling",t)},siblings:function(e){return me((e.parentNode||{}).firstChild,e)},children:function(e){return me(e.firstChild)},contents:function(e){return null!=e.contentDocument&&Q(e.contentDocument)?e.contentDocument:(a(e,"template")&&(e=e.content||e),he.merge([],e.childNodes))}},function(e,n){he.fn[e]=function(t,i){var o=he.map(this,n,t);return"Until"!==e.slice(-5)&&(i=t),i&&"string"==typeof i&&(o=he.filter(i,o)),1<this.length&&(Ce[e]||he.uniqueSort(o),ke.test(e)&&o.reverse()),this.pushStack(o)}});var Se=/[^\x20\t\r\n\f]+/g;he.Callbacks=function(e){var n,t;e="string"==typeof e?(n=e,t={},he.each(n.match(Se)||[],function(e,n){t[n]=!0}),t):he.extend({},e);var o,a,r,l,s=[],c=[],d=-1,p=function(){for(l=l||e.once,r=o=!0;c.length;d=-1)for(a=c.shift();++d<s.length;)!1===s[d].apply(a[0],a[1])&&e.stopOnFalse&&(d=s.length,a=!1);e.memory||(a=!1),o=!1,l&&(s=a?[]:"")},u={add:function(){return s&&(a&&!o&&(d=s.length-1,c.push(a)),function n(t){he.each(t,function(t,o){ce(o)?e.unique&&u.has(o)||s.push(o):o&&o.length&&"string"!==i(o)&&n(o)})}(arguments),a&&!o&&p()),this},remove:function(){return he.each(arguments,function(e,n){for(var t;-1<(t=he.inArray(n,s,t));)s.splice(t,1),t<=d&&d--}),this},has:function(e){return e?-1<he.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return l=c=[],s=a="",this},disabled:function(){return!s},lock:function(){return l=c=[],a||o||(s=a=""),this},locked:function(){return!!l},fireWith:function(e,n){return l||(n=[e,(n=n||[]).slice?n.slice():n],c.push(n),o||p()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},he.extend({Deferred:function(n){var t=[["notify","progress",he.Callbacks("memory"),he.Callbacks("memory"),2],["resolve","done",he.Callbacks("once memory"),he.Callbacks("once memory"),0,"resolved"],["reject","fail",he.Callbacks("once memory"),he.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return he.Deferred(function(n){he.each(t,function(t,i){var o=ce(e[i[4]])&&e[i[4]];a[i[1]](function(){var e=o&&o.apply(this,arguments);e&&ce(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(n,i,o){function a(n,t,i,o){return function(){var l=this,d=arguments,p=function(){var e,p;if(!(n<r)){if((e=i.apply(l,d))===t.promise())throw new TypeError("Thenable self-resolution");p=e&&("object"==typeof e||"function"==typeof e)&&e.then,ce(p)?o?p.call(e,a(r,t,s,o),a(r,t,c,o)):(r++,p.call(e,a(r,t,s,o),a(r,t,c,o),a(r,t,s,t.notifyWith))):(i!==s&&(l=void 0,d=[e]),(o||t.resolveWith)(l,d))}},u=o?p:function(){try{p()}catch(e){he.Deferred.exceptionHook&&he.Deferred.exceptionHook(e,u.stackTrace),r<=n+1&&(i!==c&&(l=void 0,d=[e]),t.rejectWith(l,d))}};n?u():(he.Deferred.getStackHook&&(u.stackTrace=he.Deferred.getStackHook()),e.setTimeout(u))}}var r=0;return he.Deferred(function(e){t[0][3].add(a(0,e,ce(o)?o:s,e.notifyWith)),t[1][3].add(a(0,e,ce(n)?n:s)),t[2][3].add(a(0,e,ce(i)?i:c))}).promise()},promise:function(e){return null!=e?he.extend(e,o):o}},a={};return he.each(t,function(e,n){var r=n[2],l=n[5];o[n[1]]=r.add,l&&r.add(function(){i=l},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),r.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=r.fireWith}),o.promise(a),n&&n.call(a,a),a},when:function(e){var n=arguments.length,t=n,i=Array(t),o=Z.call(arguments),a=he.Deferred(),r=function(e){return function(t){i[e]=this,o[e]=1<arguments.length?Z.call(arguments):t,--n||a.resolveWith(i,o)}};if(n<=1&&(d(e,a.done(r(t)).resolve,a.reject,!n),"pending"===a.state()||ce(o[t]&&o[t].then)))return a.then();for(;t--;)d(o[t],r(t),a.reject);return a.promise()}});var Te=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;he.Deferred.exceptionHook=function(n,t){e.console&&e.console.warn&&n&&Te.test(n.name)&&e.console.warn("jQuery.Deferred exception: "+n.message,n.stack,t)},he.readyException=function(n){e.setTimeout(function(){throw n})};var Ee=he.Deferred();he.fn.ready=function(e){return Ee.then(e).catch(function(e){he.readyException(e)}),this},he.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0)!==e&&0<--he.readyWait||Ee.resolveWith(pe,[he])}}),he.ready.then=Ee.then,"complete"===pe.readyState||"loading"!==pe.readyState&&!pe.documentElement.doScroll?e.setTimeout(he.ready):(pe.addEventListener("DOMContentLoaded",p),e.addEventListener("load",p));var _e=function(e,n,t,o,a,r,l){var s=0,c=e.length,d=null==t;if("object"===i(t))for(s in a=!0,t)_e(e,n,s,t[s],!0,r,l);else if(void 0!==o&&(a=!0,ce(o)||(l=!0),d&&(l?(n.call(e,o),n=null):(d=n,n=function(e,n,t){return d.call(he(e),t)})),n))for(;s<c;s++)n(e[s],t,l?o:o.call(e[s],s,n(e[s],t)));return a?e:d?n.call(e):c?n(e[0],t):r},Ae=/^-ms-/,Oe=/-([a-z])/g,De=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};h.uid=1,h.prototype={cache:function(e){var n=e[this.expando];return n||(n={},De(e)&&(e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,configurable:!0}))),n},set:function(e,n,t){var i,o=this.cache(e);if("string"==typeof n)o[f(n)]=t;else for(i in n)o[f(i)]=n[i];return o},get:function(e,n){return void 0===n?this.cache(e):e[this.expando]&&e[this.expando][f(n)]},access:function(e,n,t){return void 0===n||n&&"string"==typeof n&&void 0===t?this.get(e,n):(this.set(e,n,t),void 0!==t?t:n)},remove:function(e,n){var t,i=e[this.expando];if(void 0!==i){if(void 0!==n){t=(n=Array.isArray(n)?n.map(f):(n=f(n))in i?[n]:n.match(Se)||[]).length;for(;t--;)delete i[n[t]]}(void 0===n||he.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var n=e[this.expando];return void 0!==n&&!he.isEmptyObject(n)}};var Fe=new h,Pe=new h,Be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Me=/[A-Z]/g;he.extend({hasData:function(e){return Pe.hasData(e)||Fe.hasData(e)},data:function(e,n,t){return Pe.access(e,n,t)},removeData:function(e,n){Pe.remove(e,n)},_data:function(e,n,t){return Fe.access(e,n,t)},_removeData:function(e,n){Fe.remove(e,n)}}),he.fn.extend({data:function(e,n){var t,i,o,a=this[0],r=a&&a.attributes;if(void 0===e){if(this.length&&(o=Pe.get(a),1===a.nodeType&&!Fe.get(a,"hasDataAttrs"))){for(t=r.length;t--;)r[t]&&0===(i=r[t].name).indexOf("data-")&&(i=f(i.slice(5)),v(a,i,o[i]));Fe.set(a,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Pe.set(this,e)}):_e(this,function(n){var t;if(a&&void 0===n)return void 0!==(t=Pe.get(a,e))?t:void 0!==(t=v(a,e))?t:void 0;this.each(function(){Pe.set(this,e,n)})},null,n,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Pe.remove(this,e)})}}),he.extend({queue:function(e,n,t){var i;if(e)return n=(n||"fx")+"queue",i=Fe.get(e,n),t&&(!i||Array.isArray(t)?i=Fe.access(e,n,he.makeArray(t)):i.push(t)),i||[]},dequeue:function(e,n){n=n||"fx";var t=he.queue(e,n),i=t.length,o=t.shift(),a=he._queueHooks(e,n);"inprogress"===o&&(o=t.shift(),i--),o&&("fx"===n&&t.unshift("inprogress"),delete a.stop,o.call(e,function(){he.dequeue(e,n)},a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,n){var t=n+"queueHooks";return Fe.get(e,t)||Fe.access(e,t,{empty:he.Callbacks("once memory").add(function(){Fe.remove(e,[n+"queue",t])})})}}),he.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?he.queue(this[0],e):void 0===n?this:this.each(function(){var t=he.queue(this,e,n);he._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&he.dequeue(this,e)})},dequeue:function(e){return this.each(function(){he.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var t,i=1,o=he.Deferred(),a=this,r=this.length,l=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof e&&(n=e,e=void 0),e=e||"fx";r--;)(t=Fe.get(a[r],e+"queueHooks"))&&t.empty&&(i++,t.empty.add(l));return l(),o.promise(n)}});var Ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,je=new RegExp("^(?:([+-])=|)("+Ne+")([a-z%]*)$","i"),Re=["Top","Right","Bottom","Left"],Le=pe.documentElement,qe=function(e){return he.contains(e.ownerDocument,e)},$e={composed:!0};Le.getRootNode&&(qe=function(e){return he.contains(e.ownerDocument,e)||e.getRootNode($e)===e.ownerDocument});var Ie=function(e,n){return"none"===(e=n||e).style.display||""===e.style.display&&qe(e)&&"none"===he.css(e,"display")},He={};he.fn.extend({show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ie(this)?he(this).show():he(this).hide()})}});var ze,We,Ve=/^(?:checkbox|radio)$/i,Ue=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ge=/^$|^module$|\/(?:java|ecma)script/i;ze=pe.createDocumentFragment().appendChild(pe.createElement("div")),(We=pe.createElement("input")).setAttribute("type","radio"),We.setAttribute("checked","checked"),We.setAttribute("name","t"),ze.appendChild(We),se.checkClone=ze.cloneNode(!0).cloneNode(!0).lastChild.checked,ze.innerHTML="<textarea>x</textarea>",se.noCloneChecked=!!ze.cloneNode(!0).lastChild.defaultValue,ze.innerHTML="<option></option>",se.option=!!ze.lastChild;var Je={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Je.tbody=Je.tfoot=Je.colgroup=Je.caption=Je.thead,Je.th=Je.td,se.option||(Je.optgroup=Je.option=[1,"<select multiple='multiple'>","</select>"]);var Ke=/<|&#?\w+;/,Xe=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,n,t,i,o){var a,r,l,s,c,d,p,u,f,h,v,g=Fe.get(e);if(De(e))for(t.handler&&(t=(a=t).handler,o=a.selector),o&&he.find.matchesSelector(Le,o),t.guid||(t.guid=he.guid++),(s=g.events)||(s=g.events=Object.create(null)),(r=g.handle)||(r=g.handle=function(n){return void 0!==he&&he.event.triggered!==n.type?he.event.dispatch.apply(e,arguments):void 0}),c=(n=(n||"").match(Se)||[""]).length;c--;)f=v=(l=Xe.exec(n[c])||[])[1],h=(l[2]||"").split(".").sort(),f&&(p=he.event.special[f]||{},f=(o?p.delegateType:p.bindType)||f,p=he.event.special[f]||{},d=he.extend({type:f,origType:v,data:i,handler:t,guid:t.guid,selector:o,needsContext:o&&he.expr.match.needsContext.test(o),namespace:h.join(".")},a),(u=s[f])||((u=s[f]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,i,h,r)||e.addEventListener&&e.addEventListener(f,r)),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=t.guid)),o?u.splice(u.delegateCount++,0,d):u.push(d),he.event.global[f]=!0)},remove:function(e,n,t,i,o){var a,r,l,s,c,d,p,u,f,h,v,g=Fe.hasData(e)&&Fe.get(e);if(g&&(s=g.events)){for(c=(n=(n||"").match(Se)||[""]).length;c--;)if(f=v=(l=Xe.exec(n[c])||[])[1],h=(l[2]||"").split(".").sort(),f){for(p=he.event.special[f]||{},u=s[f=(i?p.delegateType:p.bindType)||f]||[],l=l[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=u.length;a--;)d=u[a],!o&&v!==d.origType||t&&t.guid!==d.guid||l&&!l.test(d.namespace)||i&&i!==d.selector&&("**"!==i||!d.selector)||(u.splice(a,1),d.selector&&u.delegateCount--,p.remove&&p.remove.call(e,d));r&&!u.length&&(p.teardown&&!1!==p.teardown.call(e,h,g.handle)||he.removeEvent(e,f,g.handle),delete s[f])}else for(f in s)he.event.remove(e,f+n[c],t,i,!0);he.isEmptyObject(s)&&Fe.remove(e,"handle events")}},dispatch:function(e){var n,t,i,o,a,r,l=new Array(arguments.length),s=he.event.fix(e),c=(Fe.get(this,"events")||Object.create(null))[s.type]||[],d=he.event.special[s.type]||{};for(l[0]=s,n=1;n<arguments.length;n++)l[n]=arguments[n];if(s.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,s)){for(r=he.event.handlers.call(this,s,c),n=0;(o=r[n++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,t=0;(a=o.handlers[t++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==a.namespace&&!s.rnamespace.test(a.namespace)||(s.handleObj=a,s.data=a.data,void 0!==(i=((he.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,l))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,s),s.result}},handlers:function(e,n){var t,i,o,a,r,l=[],s=n.delegateCount,c=e.target;if(s&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],r={},t=0;t<s;t++)void 0===r[o=(i=n[t]).selector+" "]&&(r[o]=i.needsContext?-1<he(o,this).index(c):he.find(o,this,null,[c]).length),r[o]&&a.push(i);a.length&&l.push({elem:c,handlers:a})}return c=this,s<n.length&&l.push({elem:c,handlers:n.slice(s)}),l},addProp:function(e,n){Object.defineProperty(he.Event.prototype,e,{enumerable:!0,configurable:!0,get:ce(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(n){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:n})}})},fix:function(e){return e[he.expando]?e:new he.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var n=this||e;return Ve.test(n.type)&&n.click&&a(n,"input")&&T(n,"click",w),!1},trigger:function(e){var n=this||e;return Ve.test(n.type)&&n.click&&a(n,"input")&&T(n,"click"),!0},_default:function(e){var n=e.target;return Ve.test(n.type)&&n.click&&a(n,"input")&&Fe.get(n,"click")||a(n,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},he.removeEvent=function(e,n,t){e.removeEventListener&&e.removeEventListener(n,t)},he.Event=function(e,n){if(!(this instanceof he.Event))return new he.Event(e,n);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?w:k,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,n&&he.extend(this,n),this.timeStamp=e&&e.timeStamp||Date.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},he.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},he.event.addProp),he.each({focus:"focusin",blur:"focusout"},function(e,n){he.event.special[e]={setup:function(){return T(this,e,C),!1},trigger:function(){return T(this,e),!0},_default:function(){return!0},delegateType:n}}),he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,n){he.event.special[e]={delegateType:n,bindType:n,handle:function(e){var t,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||he.contains(this,i))||(e.type=o.origType,t=o.handler.apply(this,arguments),e.type=n),t}}}),he.fn.extend({on:function(e,n,t,i){return S(this,e,n,t,i)},one:function(e,n,t,i){return S(this,e,n,t,i,1)},off:function(e,n,t){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,he(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return!1!==n&&"function"!=typeof n||(t=n,n=void 0),!1===t&&(t=k),this.each(function(){he.event.remove(this,e,t,n)})}});var Ye=/<script|<style|<link/i,Qe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ze=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;he.extend({htmlPrefilter:function(e){return e},clone:function(e,n,t){var i,o,a,r,l,s,c,d=e.cloneNode(!0),p=qe(e);if(!(se.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(r=b(d),i=0,o=(a=b(e)).length;i<o;i++)l=a[i],s=r[i],"input"===(c=s.nodeName.toLowerCase())&&Ve.test(l.type)?s.checked=l.checked:"input"!==c&&"textarea"!==c||(s.defaultValue=l.defaultValue);if(n)if(t)for(a=a||b(e),r=r||b(d),i=0,o=a.length;i<o;i++)O(a[i],r[i]);else O(e,d);return 0<(r=b(d,"script")).length&&y(r,!p&&b(e,"script")),d},cleanData:function(e){for(var n,t,i,o=he.event.special,a=0;void 0!==(t=e[a]);a++)if(De(t)){if(n=t[Fe.expando]){if(n.events)for(i in n.events)o[i]?he.event.remove(t,i):he.removeEvent(t,i,n.handle);t[Fe.expando]=void 0}t[Pe.expando]&&(t[Pe.expando]=void 0)}}}),he.fn.extend({detach:function(e){return F(this,e,!0)},remove:function(e){return F(this,e)},text:function(e){return _e(this,function(e){return void 0===e?he.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return D(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||E(this,e).appendChild(e)})},prepend:function(){return D(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=E(this,e);n.insertBefore(e,n.firstChild)}})},before:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,n=0;null!=(e=this[n]);n++)1===e.nodeType&&(he.cleanData(b(e,!1)),e.textContent="");return this},clone:function(e,n){return e=null!=e&&e,n=null==n?e:n,this.map(function(){return he.clone(this,e,n)})},html:function(e){return _e(this,function(e){var n=this[0]||{},t=0,i=this.length;if(void 0===e&&1===n.nodeType)return n.innerHTML;if("string"==typeof e&&!Ye.test(e)&&!Je[(Ue.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;t<i;t++)1===(n=this[t]||{}).nodeType&&(he.cleanData(b(n,!1)),n.innerHTML=e);n=0}catch(e){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return D(this,arguments,function(n){var t=this.parentNode;he.inArray(this,e)<0&&(he.cleanData(b(this)),t&&t.replaceChild(n,this))},e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,n){he.fn[e]=function(e){for(var t,i=[],o=he(e),a=o.length-1,r=0;r<=a;r++)t=r===a?this:this.clone(!0),he(o[r])[n](t),ne.apply(i,t.get());return this.pushStack(i)}});var en=new RegExp("^("+Ne+")(?!px)[a-z%]+$","i"),nn=function(n){var t=n.ownerDocument.defaultView;return t&&t.opener||(t=e),t.getComputedStyle(n)},tn=function(e,n,t){var i,o,a={};for(o in n)a[o]=e.style[o],e.style[o]=n[o];for(o in i=t.call(e),n)e.style[o]=a[o];return i},on=new RegExp(Re.join("|"),"i");!function(){function n(){if(d){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Le.appendChild(c).appendChild(d);var n=e.getComputedStyle(d);i="1%"!==n.top,s=12===t(n.marginLeft),d.style.right="60%",r=36===t(n.right),o=36===t(n.width),d.style.position="absolute",a=12===t(d.offsetWidth/3),Le.removeChild(c),d=null}}function t(e){return Math.round(parseFloat(e))}var i,o,a,r,l,s,c=pe.createElement("div"),d=pe.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",se.clearCloneStyle="content-box"===d.style.backgroundClip,he.extend(se,{boxSizingReliable:function(){return n(),o},pixelBoxStyles:function(){return n(),r},pixelPosition:function(){return n(),i},reliableMarginLeft:function(){return n(),s},scrollboxSize:function(){return n(),a},reliableTrDimensions:function(){var n,t,i,o;return null==l&&(n=pe.createElement("table"),t=pe.createElement("tr"),i=pe.createElement("div"),n.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",Le.appendChild(n).appendChild(t).appendChild(i),o=e.getComputedStyle(t),l=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===t.offsetHeight,Le.removeChild(n)),l}}))}();var an=["Webkit","Moz","ms"],rn=pe.createElement("div").style,ln={},sn=/^(none|table(?!-c[ea]).+)/,cn=/^--/,dn={position:"absolute",visibility:"hidden",display:"block"},pn={letterSpacing:"0",fontWeight:"400"};he.extend({cssHooks:{opacity:{get:function(e,n){if(n){var t=P(e,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,n,t,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,r,l=f(n),s=cn.test(n),c=e.style;if(s||(n=M(l)),r=he.cssHooks[n]||he.cssHooks[l],void 0===t)return r&&"get"in r&&void 0!==(o=r.get(e,!1,i))?o:c[n];"string"==(a=typeof t)&&(o=je.exec(t))&&o[1]&&(t=g(e,n,o),a="number"),null!=t&&t==t&&("number"!==a||s||(t+=o&&o[3]||(he.cssNumber[l]?"":"px")),se.clearCloneStyle||""!==t||0!==n.indexOf("background")||(c[n]="inherit"),r&&"set"in r&&void 0===(t=r.set(e,t,i))||(s?c.setProperty(n,t):c[n]=t))}},css:function(e,n,t,i){var o,a,r,l=f(n);return cn.test(n)||(n=M(l)),(r=he.cssHooks[n]||he.cssHooks[l])&&"get"in r&&(o=r.get(e,!0,t)),void 0===o&&(o=P(e,n,i)),"normal"===o&&n in pn&&(o=pn[n]),""===t||t?(a=parseFloat(o),!0===t||isFinite(a)?a||0:o):o}}),he.each(["height","width"],function(e,n){he.cssHooks[n]={get:function(e,t,i){if(t)return!sn.test(he.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?R(e,n,i):tn(e,dn,function(){return R(e,n,i)})},set:function(e,t,i){var o,a=nn(e),r=!se.scrollboxSize()&&"absolute"===a.position,l=(r||i)&&"border-box"===he.css(e,"boxSizing",!1,a),s=i?j(e,n,i,l,a):0;return l&&r&&(s-=Math.ceil(e["offset"+n[0].toUpperCase()+n.slice(1)]-parseFloat(a[n])-j(e,n,"border",!1,a)-.5)),s&&(o=je.exec(t))&&"px"!==(o[3]||"px")&&(e.style[n]=t,t=he.css(e,n)),N(0,t,s)}}}),he.cssHooks.marginLeft=B(se.reliableMarginLeft,function(e,n){if(n)return(parseFloat(P(e,"marginLeft"))||e.getBoundingClientRect().left-tn(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(e,n){he.cssHooks[e+n]={expand:function(t){for(var i=0,o={},a="string"==typeof t?t.split(" "):[t];i<4;i++)o[e+Re[i]+n]=a[i]||a[i-2]||a[0];return o}},"margin"!==e&&(he.cssHooks[e+n].set=N)}),he.fn.extend({css:function(e,n){return _e(this,function(e,n,t){var i,o,a={},r=0;if(Array.isArray(n)){for(i=nn(e),o=n.length;r<o;r++)a[n[r]]=he.css(e,n[r],!1,i);return a}return void 0!==t?he.style(e,n,t):he.css(e,n)},e,n,1<arguments.length)}}),((he.Tween=L).prototype={constructor:L,init:function(e,n,t,i,o,a){this.elem=e,this.prop=t,this.easing=o||he.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=i,this.unit=a||(he.cssNumber[t]?"":"px")},cur:function(){var e=L.propHooks[this.prop];return e&&e.get?e.get(this):L.propHooks._default.get(this)},run:function(e){var n,t=L.propHooks[this.prop];return this.options.duration?this.pos=n=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=n=e,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):L.propHooks._default.set(this),this}}).init.prototype=L.prototype,(L.propHooks={_default:{get:function(e){var n;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(n=he.css(e.elem,e.prop,""))&&"auto"!==n?n:0},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||!he.cssHooks[e.prop]&&null==e.elem.style[M(e.prop)]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=L.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=L.prototype.init,he.fx.step={};var un,fn,hn,vn,gn=/^(?:toggle|show|hide)$/,mn=/queueHooks$/;he.Animation=he.extend(z,{tweeners:{"*":[function(e,n){var t=this.createTween(e,n);return g(t.elem,e,je.exec(n),t),t}]},tweener:function(e,n){ce(e)?(n=e,e=["*"]):e=e.match(Se);for(var t,i=0,o=e.length;i<o;i++)t=e[i],z.tweeners[t]=z.tweeners[t]||[],z.tweeners[t].unshift(n)},prefilters:[function(e,n,t){var i,o,a,r,l,s,c,d,p="width"in n||"height"in n,u=this,f={},h=e.style,v=e.nodeType&&Ie(e),g=Fe.get(e,"fxshow");for(i in t.queue||(null==(r=he._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,l=r.empty.fire,r.empty.fire=function(){r.unqueued||l()}),r.unqueued++,u.always(function(){u.always(function(){r.unqueued--,he.queue(e,"fx").length||r.empty.fire()})})),n)if(o=n[i],gn.test(o)){if(delete n[i],a=a||"toggle"===o,o===(v?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;v=!0}f[i]=g&&g[i]||he.style(e,i)}if((s=!he.isEmptyObject(n))||!he.isEmptyObject(f))for(i in p&&1===e.nodeType&&(t.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=g&&g.display)&&(c=Fe.get(e,"display")),"none"===(d=he.css(e,"display"))&&(c?d=c:(m([e],!0),c=e.style.display||c,d=he.css(e,"display"),m([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===he.css(e,"float")&&(s||(u.done(function(){h.display=c}),null==c&&(d=h.display,c="none"===d?"":d)),h.display="inline-block")),t.overflow&&(h.overflow="hidden",u.always(function(){h.overflow=t.overflow[0],h.overflowX=t.overflow[1],h.overflowY=t.overflow[2]})),s=!1,f)s||(g?"hidden"in g&&(v=g.hidden):g=Fe.access(e,"fxshow",{display:c}),a&&(g.hidden=!v),v&&m([e],!0),u.done(function(){for(i in v||m([e]),Fe.remove(e,"fxshow"),f)he.style(e,i,f[i])})),s=H(v?g[i]:0,i,u),i in g||(g[i]=s.start,v&&(s.end=s.start,s.start=0))}],prefilter:function(e,n){n?z.prefilters.unshift(e):z.prefilters.push(e)}}),he.speed=function(e,n,t){var i=e&&"object"==typeof e?he.extend({},e):{complete:t||!t&&n||ce(e)&&e,duration:e,easing:t&&n||n&&!ce(n)&&n};return he.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in he.fx.speeds?i.duration=he.fx.speeds[i.duration]:i.duration=he.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){
ce(i.old)&&i.old.call(this),i.queue&&he.dequeue(this,i.queue)},i},he.fn.extend({fadeTo:function(e,n,t,i){return this.filter(Ie).css("opacity",0).show().end().animate({opacity:n},e,t,i)},animate:function(e,n,t,i){var o=he.isEmptyObject(e),a=he.speed(n,t,i),r=function(){var n=z(this,he.extend({},e),a);(o||Fe.get(this,"finish"))&&n.stop(!0)};return r.finish=r,o||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(e,n,t){var i=function(e){var n=e.stop;delete e.stop,n(t)};return"string"!=typeof e&&(t=n,n=e,e=void 0),n&&this.queue(e||"fx",[]),this.each(function(){var n=!0,o=null!=e&&e+"queueHooks",a=he.timers,r=Fe.get(this);if(o)r[o]&&r[o].stop&&i(r[o]);else for(o in r)r[o]&&r[o].stop&&mn.test(o)&&i(r[o]);for(o=a.length;o--;)a[o].elem!==this||null!=e&&a[o].queue!==e||(a[o].anim.stop(t),n=!1,a.splice(o,1));!n&&t||he.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var n,t=Fe.get(this),i=t[e+"queue"],o=t[e+"queueHooks"],a=he.timers,r=i?i.length:0;for(t.finish=!0,he.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),n=a.length;n--;)a[n].elem===this&&a[n].queue===e&&(a[n].anim.stop(!0),a.splice(n,1));for(n=0;n<r;n++)i[n]&&i[n].finish&&i[n].finish.call(this);delete t.finish})}}),he.each(["toggle","show","hide"],function(e,n){var t=he.fn[n];he.fn[n]=function(e,i,o){return null==e||"boolean"==typeof e?t.apply(this,arguments):this.animate(I(n,!0),e,i,o)}}),he.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){he.fn[e]=function(e,t,i){return this.animate(n,e,t,i)}}),he.timers=[],he.fx.tick=function(){var e,n=0,t=he.timers;for(un=Date.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||he.fx.stop(),un=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){fn||(fn=!0,q())},he.fx.stop=function(){fn=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(n,t){return n=he.fx&&he.fx.speeds[n]||n,t=t||"fx",this.queue(t,function(t,i){var o=e.setTimeout(t,n);i.stop=function(){e.clearTimeout(o)}})},hn=pe.createElement("input"),vn=pe.createElement("select").appendChild(pe.createElement("option")),hn.type="checkbox",se.checkOn=""!==hn.value,se.optSelected=vn.selected,(hn=pe.createElement("input")).value="t",hn.type="radio",se.radioValue="t"===hn.value;var bn,yn=he.expr.attrHandle;he.fn.extend({attr:function(e,n){return _e(this,he.attr,e,n,1<arguments.length)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,n,t){var i,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?he.prop(e,n,t):(1===a&&he.isXMLDoc(e)||(o=he.attrHooks[n.toLowerCase()]||(he.expr.match.bool.test(n)?bn:void 0)),void 0!==t?null===t?void he.removeAttr(e,n):o&&"set"in o&&void 0!==(i=o.set(e,t,n))?i:(e.setAttribute(n,t+""),t):o&&"get"in o&&null!==(i=o.get(e,n))?i:null==(i=he.find.attr(e,n))?void 0:i)},attrHooks:{type:{set:function(e,n){if(!se.radioValue&&"radio"===n&&a(e,"input")){var t=e.value;return e.setAttribute("type",n),t&&(e.value=t),n}}}},removeAttr:function(e,n){var t,i=0,o=n&&n.match(Se);if(o&&1===e.nodeType)for(;t=o[i++];)e.removeAttribute(t)}}),bn={set:function(e,n,t){return!1===n?he.removeAttr(e,t):e.setAttribute(t,t),t}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,n){var t=yn[n]||he.find.attr;yn[n]=function(e,n,i){var o,a,r=n.toLowerCase();return i||(a=yn[r],yn[r]=o,o=null!=t(e,n,i)?r:null,yn[r]=a),o}});var xn=/^(?:input|select|textarea|button)$/i,wn=/^(?:a|area)$/i;he.fn.extend({prop:function(e,n){return _e(this,he.prop,e,n,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[he.propFix[e]||e]})}}),he.extend({prop:function(e,n,t){var i,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&he.isXMLDoc(e)||(n=he.propFix[n]||n,o=he.propHooks[n]),void 0!==t?o&&"set"in o&&void 0!==(i=o.set(e,t,n))?i:e[n]=t:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=he.find.attr(e,"tabindex");return n?parseInt(n,10):xn.test(e.nodeName)||wn.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),se.optSelected||(he.propHooks.selected={get:function(e){var n=e.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(e){var n=e.parentNode;n&&(n.selectedIndex,n.parentNode&&n.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),he.fn.extend({addClass:function(e){var n,t,i,o,a,r,l,s=0;if(ce(e))return this.each(function(n){he(this).addClass(e.call(this,n,V(this)))});if((n=U(e)).length)for(;t=this[s++];)if(o=V(t),i=1===t.nodeType&&" "+W(o)+" "){for(r=0;a=n[r++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");o!==(l=W(i))&&t.setAttribute("class",l)}return this},removeClass:function(e){var n,t,i,o,a,r,l,s=0;if(ce(e))return this.each(function(n){he(this).removeClass(e.call(this,n,V(this)))});if(!arguments.length)return this.attr("class","");if((n=U(e)).length)for(;t=this[s++];)if(o=V(t),i=1===t.nodeType&&" "+W(o)+" "){for(r=0;a=n[r++];)for(;-1<i.indexOf(" "+a+" ");)i=i.replace(" "+a+" "," ");o!==(l=W(i))&&t.setAttribute("class",l)}return this},toggleClass:function(e,n){var t=typeof e,i="string"===t||Array.isArray(e);return"boolean"==typeof n&&i?n?this.addClass(e):this.removeClass(e):ce(e)?this.each(function(t){he(this).toggleClass(e.call(this,t,V(this),n),n)}):this.each(function(){var n,o,a,r;if(i)for(o=0,a=he(this),r=U(e);n=r[o++];)a.hasClass(n)?a.removeClass(n):a.addClass(n);else void 0!==e&&"boolean"!==t||((n=V(this))&&Fe.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===e?"":Fe.get(this,"__className__")||""))})},hasClass:function(e){var n,t,i=0;for(n=" "+e+" ";t=this[i++];)if(1===t.nodeType&&-1<(" "+W(V(t))+" ").indexOf(n))return!0;return!1}});var kn=/\r/g;he.fn.extend({val:function(e){var n,t,i,o=this[0];return arguments.length?(i=ce(e),this.each(function(t){var o;1===this.nodeType&&(null==(o=i?e.call(this,t,he(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=he.map(o,function(e){return null==e?"":e+""})),(n=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,o,"value")||(this.value=o))})):o?(n=he.valHooks[o.type]||he.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(o,"value"))?t:"string"==typeof(t=o.value)?t.replace(kn,""):null==t?"":t:void 0}}),he.extend({valHooks:{option:{get:function(e){var n=he.find.attr(e,"value");return null!=n?n:W(he.text(e))}},select:{get:function(e){var n,t,i,o=e.options,r=e.selectedIndex,l="select-one"===e.type,s=l?null:[],c=l?r+1:o.length;for(i=r<0?c:l?r:0;i<c;i++)if(((t=o[i]).selected||i===r)&&!t.disabled&&(!t.parentNode.disabled||!a(t.parentNode,"optgroup"))){if(n=he(t).val(),l)return n;s.push(n)}return s},set:function(e,n){for(var t,i,o=e.options,a=he.makeArray(n),r=o.length;r--;)((i=o[r]).selected=-1<he.inArray(he.valHooks.option.get(i),a))&&(t=!0);return t||(e.selectedIndex=-1),a}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,n){if(Array.isArray(n))return e.checked=-1<he.inArray(he(e).val(),n)}},se.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),se.focusin="onfocusin"in e;var Cn=/^(?:focusinfocus|focusoutblur)$/,Sn=function(e){e.stopPropagation()};he.extend(he.event,{trigger:function(n,t,i,o){var a,r,l,s,c,d,p,u,f=[i||pe],h=ae.call(n,"type")?n.type:n,v=ae.call(n,"namespace")?n.namespace.split("."):[];if(r=u=l=i=i||pe,3!==i.nodeType&&8!==i.nodeType&&!Cn.test(h+he.event.triggered)&&(-1<h.indexOf(".")&&(h=(v=h.split(".")).shift(),v.sort()),c=h.indexOf(":")<0&&"on"+h,(n=n[he.expando]?n:new he.Event(h,"object"==typeof n&&n)).isTrigger=o?2:3,n.namespace=v.join("."),n.rnamespace=n.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=void 0,n.target||(n.target=i),t=null==t?[n]:he.makeArray(t,[n]),p=he.event.special[h]||{},o||!p.trigger||!1!==p.trigger.apply(i,t))){if(!o&&!p.noBubble&&!de(i)){for(s=p.delegateType||h,Cn.test(s+h)||(r=r.parentNode);r;r=r.parentNode)f.push(r),l=r;l===(i.ownerDocument||pe)&&f.push(l.defaultView||l.parentWindow||e)}for(a=0;(r=f[a++])&&!n.isPropagationStopped();)u=r,n.type=1<a?s:p.bindType||h,(d=(Fe.get(r,"events")||Object.create(null))[n.type]&&Fe.get(r,"handle"))&&d.apply(r,t),(d=c&&r[c])&&d.apply&&De(r)&&(n.result=d.apply(r,t),!1===n.result&&n.preventDefault());return n.type=h,o||n.isDefaultPrevented()||p._default&&!1!==p._default.apply(f.pop(),t)||!De(i)||c&&ce(i[h])&&!de(i)&&((l=i[c])&&(i[c]=null),he.event.triggered=h,n.isPropagationStopped()&&u.addEventListener(h,Sn),i[h](),n.isPropagationStopped()&&u.removeEventListener(h,Sn),he.event.triggered=void 0,l&&(i[c]=l)),n.result}},simulate:function(e,n,t){var i=he.extend(new he.Event,t,{type:e,isSimulated:!0});he.event.trigger(i,null,n)}}),he.fn.extend({trigger:function(e,n){return this.each(function(){he.event.trigger(e,n,this)})},triggerHandler:function(e,n){var t=this[0];if(t)return he.event.trigger(e,n,t,!0)}}),se.focusin||he.each({focus:"focusin",blur:"focusout"},function(e,n){var t=function(e){he.event.simulate(n,e.target,he.event.fix(e))};he.event.special[n]={setup:function(){var i=this.ownerDocument||this.document||this,o=Fe.access(i,n);o||i.addEventListener(e,t,!0),Fe.access(i,n,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=Fe.access(i,n)-1;o?Fe.access(i,n,o):(i.removeEventListener(e,t,!0),Fe.remove(i,n))}}});var Tn=e.location,En={guid:Date.now()},_n=/\?/;he.parseXML=function(n){var t,i;if(!n||"string"!=typeof n)return null;try{t=(new e.DOMParser).parseFromString(n,"text/xml")}catch(n){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||he.error("Invalid XML: "+(i?he.map(i.childNodes,function(e){return e.textContent}).join("\n"):n)),t};var An=/\[\]$/,On=/\r?\n/g,Dn=/^(?:submit|button|image|reset|file)$/i,Fn=/^(?:input|select|textarea|keygen)/i;he.param=function(e,n){var t,i=[],o=function(e,n){var t=ce(n)?n():n;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){o(this.name,this.value)});else for(t in e)G(t,e[t],n,o);return i.join("&")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&Fn.test(this.nodeName)&&!Dn.test(e)&&(this.checked||!Ve.test(e))}).map(function(e,n){var t=he(this).val();return null==t?null:Array.isArray(t)?he.map(t,function(e){return{name:n.name,value:e.replace(On,"\r\n")}}):{name:n.name,value:t.replace(On,"\r\n")}}).get()}});var Pn=/%20/g,Bn=/#.*$/,Mn=/([?&])_=[^&]*/,Nn=/^(.*?):[ \t]*([^\r\n]*)$/gm,jn=/^(?:GET|HEAD)$/,Rn=/^\/\//,Ln={},qn={},$n="*/".concat("*"),In=pe.createElement("a");In.href=Tn.href,he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tn.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$n,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,n){return n?X(X(e,he.ajaxSettings),n):X(he.ajaxSettings,e)},ajaxPrefilter:J(Ln),ajaxTransport:J(qn),ajax:function(n,t){function i(n,t,i,l){var c,u,f,x,w,k=t;d||(d=!0,s&&e.clearTimeout(s),o=void 0,r=l||"",C.readyState=0<n?4:0,c=200<=n&&n<300||304===n,i&&(x=function(e,n,t){for(var i,o,a,r,l=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===i&&(i=e.mimeType||n.getResponseHeader("Content-Type"));if(i)for(o in l)if(l[o]&&l[o].test(i)){s.unshift(o);break}if(s[0]in t)a=s[0];else{for(o in t){if(!s[0]||e.converters[o+" "+s[0]]){a=o;break}r||(r=o)}a=a||r}if(a)return a!==s[0]&&s.unshift(a),t[a]}(h,C,i)),!c&&-1<he.inArray("script",h.dataTypes)&&he.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),x=function(e,n,t,i){var o,a,r,l,s,c={},d=e.dataTypes.slice();if(d[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(a=d.shift();a;)if(e.responseFields[a]&&(t[e.responseFields[a]]=n),!s&&i&&e.dataFilter&&(n=e.dataFilter(n,e.dataType)),s=a,a=d.shift())if("*"===a)a=s;else if("*"!==s&&s!==a){if(!(r=c[s+" "+a]||c["* "+a]))for(o in c)if((l=o.split(" "))[1]===a&&(r=c[s+" "+l[0]]||c["* "+l[0]])){!0===r?r=c[o]:!0!==c[o]&&(a=l[0],d.unshift(l[1]));break}if(!0!==r)if(r&&e.throws)n=r(n);else try{n=r(n)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+s+" to "+a}}}return{state:"success",data:n}}(h,x,C,c),c?(h.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(he.lastModified[a]=w),(w=C.getResponseHeader("etag"))&&(he.etag[a]=w)),204===n||"HEAD"===h.type?k="nocontent":304===n?k="notmodified":(k=x.state,u=x.data,c=!(f=x.error))):(f=k,!n&&k||(k="error",n<0&&(n=0))),C.status=n,C.statusText=(t||k)+"",c?m.resolveWith(v,[u,k,C]):m.rejectWith(v,[C,k,f]),C.statusCode(y),y=void 0,p&&g.trigger(c?"ajaxSuccess":"ajaxError",[C,h,c?u:f]),b.fireWith(v,[C,k]),p&&(g.trigger("ajaxComplete",[C,h]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof n&&(t=n,n=void 0),t=t||{};var o,a,r,l,s,c,d,p,u,f,h=he.ajaxSetup({},t),v=h.context||h,g=h.context&&(v.nodeType||v.jquery)?he(v):he.event,m=he.Deferred(),b=he.Callbacks("once memory"),y=h.statusCode||{},x={},w={},k="canceled",C={readyState:0,getResponseHeader:function(e){var n;if(d){if(!l)for(l={};n=Nn.exec(r);)l[n[1].toLowerCase()+" "]=(l[n[1].toLowerCase()+" "]||[]).concat(n[2]);n=l[e.toLowerCase()+" "]}return null==n?null:n.join(", ")},getAllResponseHeaders:function(){return d?r:null},setRequestHeader:function(e,n){return null==d&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=n),this},overrideMimeType:function(e){return null==d&&(h.mimeType=e),this},statusCode:function(e){var n;if(e)if(d)C.always(e[C.status]);else for(n in e)y[n]=[y[n],e[n]];return this},abort:function(e){var n=e||k;return o&&o.abort(n),i(0,n),this}};if(m.promise(C),h.url=((n||h.url||Tn.href)+"").replace(Rn,Tn.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Se)||[""],null==h.crossDomain){c=pe.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=In.protocol+"//"+In.host!=c.protocol+"//"+c.host}catch(n){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=he.param(h.data,h.traditional)),K(Ln,h,t,C),d)return C;for(u in(p=he.event&&h.global)&&0==he.active++&&he.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!jn.test(h.type),a=h.url.replace(Bn,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Pn,"+")):(f=h.url.slice(a.length),h.data&&(h.processData||"string"==typeof h.data)&&(a+=(_n.test(a)?"&":"?")+h.data,delete h.data),!1===h.cache&&(a=a.replace(Mn,"$1"),f=(_n.test(a)?"&":"?")+"_="+En.guid+++f),h.url=a+f),h.ifModified&&(he.lastModified[a]&&C.setRequestHeader("If-Modified-Since",he.lastModified[a]),he.etag[a]&&C.setRequestHeader("If-None-Match",he.etag[a])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+$n+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(!1===h.beforeSend.call(v,C,h)||d))return C.abort();if(k="abort",b.add(h.complete),C.done(h.success),C.fail(h.error),o=K(qn,h,t,C)){if(C.readyState=1,p&&g.trigger("ajaxSend",[C,h]),d)return C;h.async&&0<h.timeout&&(s=e.setTimeout(function(){C.abort("timeout")},h.timeout));try{d=!1,o.send(x,i)}catch(n){if(d)throw n;i(-1,n)}}else i(-1,"No Transport");return C},getJSON:function(e,n,t){return he.get(e,n,t,"json")},getScript:function(e,n){return he.get(e,void 0,n,"script")}}),he.each(["get","post"],function(e,n){he[n]=function(e,t,i,o){return ce(t)&&(o=o||i,i=t,t=void 0),he.ajax(he.extend({url:e,type:n,dataType:o,data:t,success:i},he.isPlainObject(e)&&e))}}),he.ajaxPrefilter(function(e){var n;for(n in e.headers)"content-type"===n.toLowerCase()&&(e.contentType=e.headers[n]||"")}),he._evalUrl=function(e,n,t){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){he.globalEval(e,n,t)}})},he.fn.extend({wrapAll:function(e){var n;return this[0]&&(ce(e)&&(e=e.call(this[0])),n=he(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ce(e)?this.each(function(n){he(this).wrapInner(e.call(this,n))}):this.each(function(){var n=he(this),t=n.contents();t.length?t.wrapAll(e):n.append(e)})},wrap:function(e){var n=ce(e);return this.each(function(t){he(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){he(this).replaceWith(this.childNodes)}),this}}),he.expr.pseudos.hidden=function(e){return!he.expr.pseudos.visible(e)},he.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},he.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Hn={0:200,1223:204},zn=he.ajaxSettings.xhr();se.cors=!!zn&&"withCredentials"in zn,se.ajax=zn=!!zn,he.ajaxTransport(function(n){var t,i;if(se.cors||zn&&!n.crossDomain)return{send:function(o,a){var r,l=n.xhr();if(l.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(r in n.xhrFields)l[r]=n.xhrFields[r];for(r in n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)l.setRequestHeader(r,o[r]);t=function(e){return function(){t&&(t=i=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,"abort"===e?l.abort():"error"===e?"number"!=typeof l.status?a(0,"error"):a(l.status,l.statusText):a(Hn[l.status]||l.status,l.statusText,"text"!==(l.responseType||"text")||"string"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=t(),i=l.onerror=l.ontimeout=t("error"),void 0!==l.onabort?l.onabort=i:l.onreadystatechange=function(){4===l.readyState&&e.setTimeout(function(){t&&i()})},t=t("abort");try{l.send(n.hasContent&&n.data||null)}catch(o){if(t)throw o}},abort:function(){t&&t()}}}),he.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),he.ajaxTransport("script",function(e){var n,t;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){n=he("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",t=function(e){n.remove(),t=null,e&&o("error"===e.type?404:200,e.type)}),pe.head.appendChild(n[0])},abort:function(){t&&t()}}});var Wn,Vn=[],Un=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vn.pop()||he.expando+"_"+En.guid++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(n,t,i){var o,a,r,l=!1!==n.jsonp&&(Un.test(n.url)?"url":"string"==typeof n.data&&0===(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Un.test(n.data)&&"data");if(l||"jsonp"===n.dataTypes[0])return o=n.jsonpCallback=ce(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Un,"$1"+o):!1!==n.jsonp&&(n.url+=(_n.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return r||he.error(o+" was not called"),r[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){r=arguments},i.always(function(){void 0===a?he(e).removeProp(o):e[o]=a,n[o]&&(n.jsonpCallback=t.jsonpCallback,Vn.push(o)),r&&ce(a)&&a(r[0]),r=a=void 0}),"script"}),se.createHTMLDocument=((Wn=pe.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Wn.childNodes.length),he.parseHTML=function(e,n,t){return"string"!=typeof e?[]:("boolean"==typeof n&&(t=n,n=!1),n||(se.createHTMLDocument?((i=(n=pe.implementation.createHTMLDocument("")).createElement("base")).href=pe.location.href,n.head.appendChild(i)):n=pe),a=!t&&[],(o=ye.exec(e))?[n.createElement(o[1])]:(o=x([e],n,a),a&&a.length&&he(a).remove(),he.merge([],o.childNodes)));var i,o,a},he.fn.load=function(e,n,t){var i,o,a,r=this,l=e.indexOf(" ");return-1<l&&(i=W(e.slice(l)),e=e.slice(0,l)),ce(n)?(t=n,n=void 0):n&&"object"==typeof n&&(o="POST"),0<r.length&&he.ajax({url:e,type:o||"GET",dataType:"html",data:n}).done(function(e){a=arguments,r.html(i?he("<div>").append(he.parseHTML(e)).find(i):e)}).always(t&&function(e,n){r.each(function(){t.apply(this,a||[e.responseText,n,e])})}),this},he.expr.pseudos.animated=function(e){return he.grep(he.timers,function(n){return e===n.elem}).length},he.offset={setOffset:function(e,n,t){var i,o,a,r,l,s,c=he.css(e,"position"),d=he(e),p={};"static"===c&&(e.style.position="relative"),l=d.offset(),a=he.css(e,"top"),s=he.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(a+s).indexOf("auto")?(r=(i=d.position()).top,o=i.left):(r=parseFloat(a)||0,o=parseFloat(s)||0),ce(n)&&(n=n.call(e,t,he.extend({},l))),null!=n.top&&(p.top=n.top-l.top+r),null!=n.left&&(p.left=n.left-l.left+o),"using"in n?n.using.call(e,p):d.css(p)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(n){he.offset.setOffset(this,e,n)});var n,t,i=this[0];return i?i.getClientRects().length?(n=i.getBoundingClientRect(),t=i.ownerDocument.defaultView,{top:n.top+t.pageYOffset,left:n.left+t.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,n,t,i=this[0],o={top:0,left:0};if("fixed"===he.css(i,"position"))n=i.getBoundingClientRect();else{for(n=this.offset(),t=i.ownerDocument,e=i.offsetParent||t.documentElement;e&&(e===t.body||e===t.documentElement)&&"static"===he.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=he(e).offset()).top+=he.css(e,"borderTopWidth",!0),o.left+=he.css(e,"borderLeftWidth",!0))}return{top:n.top-o.top-he.css(i,"marginTop",!0),left:n.left-o.left-he.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===he.css(e,"position");)e=e.offsetParent;return e||Le})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var t="pageYOffset"===n;he.fn[e]=function(i){return _e(this,function(e,i,o){var a;if(de(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===o)return a?a[n]:e[i];a?a.scrollTo(t?a.pageXOffset:o,t?o:a.pageYOffset):e[i]=o},e,i,arguments.length)}}),he.each(["top","left"],function(e,n){he.cssHooks[n]=B(se.pixelPosition,function(e,t){if(t)return t=P(e,n),en.test(t)?he(e).position()[n]+"px":t})}),he.each({Height:"height",Width:"width"},function(e,n){he.each({padding:"inner"+e,content:n,"":"outer"+e},function(t,i){he.fn[i]=function(o,a){var r=arguments.length&&(t||"boolean"!=typeof o),l=t||(!0===o||!0===a?"margin":"border");return _e(this,function(n,t,o){var a;return de(n)?0===i.indexOf("outer")?n["inner"+e]:n.document.documentElement["client"+e]:9===n.nodeType?(a=n.documentElement,Math.max(n.body["scroll"+e],a["scroll"+e],n.body["offset"+e],a["offset"+e],a["client"+e])):void 0===o?he.css(n,t,l):he.style(n,t,o,l)},n,r?o:void 0,r)}})}),he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,n){he.fn[n]=function(e){return this.on(n,e)}}),he.fn.extend({bind:function(e,n,t){return this.on(e,null,n,t)},unbind:function(e,n){return this.off(e,null,n)},delegate:function(e,n,t,i){return this.on(n,e,t,i)},undelegate:function(e,n,t){return 1===arguments.length?this.off(e,"**"):this.off(n,e||"**",t)},hover:function(e,n){return this.mouseenter(e).mouseleave(n||e)}}),he.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){he.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Gn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;he.proxy=function(e,n){var t,i,o;if("string"==typeof n&&(t=e[n],n=e,e=t),ce(e))return i=Z.call(arguments,2),(o=function(){return e.apply(n||this,i.concat(Z.call(arguments)))}).guid=e.guid=e.guid||he.guid++,o},he.holdReady=function(e){e?he.readyWait++:he.ready(!0)},he.isArray=Array.isArray,he.parseJSON=JSON.parse,he.nodeName=a,he.isFunction=ce,he.isWindow=de,he.camelCase=f,he.type=i,he.now=Date.now,he.isNumeric=function(e){var n=he.type(e);return("number"===n||"string"===n)&&!isNaN(e-parseFloat(e))},he.trim=function(e){return null==e?"":(e+"").replace(Gn,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var Jn=e.jQuery,Kn=e.$;return he.noConflict=function(n){return e.$===he&&(e.$=Kn),n&&e.jQuery===he&&(e.jQuery=Jn),he},void 0===n&&(e.jQuery=e.$=he),he}),function(e,n){var t,i;"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define("underscore",n):(t=e._,i=n(),(e._=i).noConflict=function(){return e._=t,i})}(this,function(){function e(n){return n instanceof e?n:this instanceof e?void(this._wrapped=n):new e(n)}function n(e,n,t){if(void 0===n)return e;switch(null==t?3:t){case 1:return function(t){return e.call(n,t)};case 3:return function(t,i,o){return e.call(n,t,i,o)};case 4:return function(t,i,o,a){return e.call(n,t,i,o,a)}}return function(){return e.apply(n,arguments)}}function t(e,t,i){return null==e?Y:Qe(e)?n(e,t,i):J(e)&&!Xe(e)?Z(e):Q(e)}function i(e,n){return t(e,n,1/0)}function o(n,o,a){return e.iteratee!==i?e.iteratee(n,o):t(n,o,a)}function a(e,n){return n=null==n?e.length-1:+n,function(){for(var t=Math.max(arguments.length-n,0),i=Array(t),o=0;o<t;o++)i[o]=arguments[o+n];switch(n){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var a=Array(n+1);for(o=0;o<n;o++)a[o]=arguments[o];return a[n]=i,e.apply(this,a)}}function r(e){if(!J(e))return{};if(he)return he(e);me.prototype=e;var n=new me;return me.prototype=null,n}function l(e){return function(n){return null==n?void 0:n[e]}}function s(e,n){return null!=e&&pe.call(e,n)}function c(e,n){for(var t=n.length,i=0;i<t;i++){if(null==e)return;e=e[n[i]]}return t?e:void 0}function d(e){var n=xe(e);return"number"==typeof n&&0<=n&&n<=ye}function p(e,t,i){var o,a;if(t=n(t,i),d(e))for(o=0,a=e.length;o<a;o++)t(e[o],o,e);else{var r=j(e);for(o=0,a=r.length;o<a;o++)t(e[r[o]],r[o],e)}return e}function u(e,n,t){n=o(n,t);for(var i=!d(e)&&j(e),a=(i||e).length,r=Array(a),l=0;l<a;l++){var s=i?i[l]:l;r[l]=n(e[s],s,e)}return r}function f(e){return function(t,i,o,a){var r=3<=arguments.length;return function(n,t,i,o){var a=!d(n)&&j(n),r=(a||n).length,l=0<e?0:r-1;for(o||(i=n[a?a[l]:l],l+=e);0<=l&&l<r;l+=e){var s=a?a[l]:l;i=t(i,n[s],s,n)}return i}(t,n(i,a,4),o,r)}}function h(e,n,t){var i=(d(e)?Be:H)(e,n,t);if(void 0!==i&&-1!==i)return e[i]}function v(e,n,t){var i=[];return n=o(n,t),p(e,function(e,t,o){n(e,t,o)&&i.push(e)}),i}function g(e,n,t){n=o(n,t);for(var i=!d(e)&&j(e),a=(i||e).length,r=0;r<a;r++){var l=i?i[r]:r;if(!n(e[l],l,e))return!1}return!0}function m(e,n,t){n=o(n,t);for(var i=!d(e)&&j(e),a=(i||e).length,r=0;r<a;r++){var l=i?i[r]:r;if(n(e[l],l,e))return!0}return!1}function b(e,n,t,i){return d(e)||(e=L(e)),("number"!=typeof t||i)&&(t=0),0<=Ne(e,n,t)}function y(e,n){return u(e,Q(n))}function x(e,n,t){var i,a,r=-1/0,l=-1/0;if(null==n||"number"==typeof n&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=d(e)?e:L(e)).length;s<c;s++)null!=(i=e[s])&&r<i&&(r=i);else n=o(n,t),p(e,function(e,t,i){a=n(e,t,i),(l<a||a===-1/0&&r===-1/0)&&(r=e,l=a)});return r}function w(e,n,t){if(null==n||t)return d(e)||(e=L(e)),e[ee(e.length-1)];var i=d(e)?W(e):L(e),o=xe(i);n=Math.max(Math.min(n,o),0);for(var a=o-1,r=0;r<n;r++){var l=ee(r,a),s=i[r];i[r]=i[l],i[l]=s}return i.slice(0,n)}function k(e,n){return function(t,i,a){var r=n?[[],[]]:{};return i=o(i,a),p(t,function(n,o){var a=i(n,o,t);e(r,n,a)}),r}}function C(e,n,t){return null==e||e.length<1?null==n?void 0:[]:null==n||t?e[0]:S(e,e.length-n)}function S(e,n,t){return ce.call(e,0,Math.max(0,e.length-(null==n||t?1:n)))}function T(e,n,t){return ce.call(e,null==n||t?1:n)}function E(e,n,t,i){for(var o=(i=i||[]).length,a=0,r=xe(e);a<r;a++){var l=e[a];if(d(l)&&(Xe(l)||Ye(l)))if(n)for(var s=0,c=l.length;s<c;)i[o++]=l[s++];else E(l,n,t,i),o=i.length;else t||(i[o++]=l)}return i}function _(e,n,t,i){X(n)||(i=t,t=n,n=!1),null!=t&&(t=o(t,i));for(var a=[],r=[],l=0,s=xe(e);l<s;l++){var c=e[l],d=t?t(c,l,e):c;n&&!t?(l&&r===d||a.push(c),r=d):t?b(r,d)||(r.push(d),a.push(c)):b(a,c)||a.push(c)}return a}function A(e){for(var n=e&&x(e,xe).length||0,t=Array(n),i=0;i<n;i++)t[i]=y(e,i);return t}function O(e){return function(n,t,i){t=o(t,i);for(var a=xe(n),r=0<e?0:a-1;0<=r&&r<a;r+=e)if(t(n[r],r,n))return r;return-1}}function D(e,n,t,i){for(var a=(t=o(t,i,1))(n),r=0,l=xe(e);r<l;){var s=Math.floor((r+l)/2);t(e[s])<a?r=s+1:l=s}return r}function F(e,n,t){return function(i,o,a){var r=0,l=xe(i);if("number"==typeof a)0<e?r=0<=a?a:Math.max(a+l,r):l=0<=a?Math.min(a+1,l):a+l+1;else if(t&&a&&l)return i[a=t(i,o)]===o?a:-1;if(o!=o)return 0<=(a=n(ce.call(i,r,l),K))?a+r:-1;for(a=0<e?r:l-1;0<=a&&a<l;a+=e)if(i[a]===o)return a;return-1}}function P(e,n,t,i,o){if(!(i instanceof n))return e.apply(t,o);var a=r(e.prototype),l=e.apply(a,o);return J(l)?l:a}function B(e){return function(){return!e.apply(this,arguments)}}function M(e,n){var t;return function(){return 0<--e&&(t=n.apply(this,arguments)),e<=1&&(n=null),t}}function N(e,n){var t=We.length,i=e.constructor,o=Qe(i)&&i.prototype||re,a="constructor";for(s(e,a)&&!b(n,a)&&n.push(a);t--;)(a=We[t])in e&&e[a]!==o[a]&&!b(n,a)&&n.push(a)}function j(e){if(!J(e))return[];if(fe)return fe(e);var n=[];for(var t in e)s(e,t)&&n.push(t);return ze&&N(e,n),n}function R(e){if(!J(e))return[];var n=[];for(var t in e)n.push(t);return ze&&N(e,n),n}function L(e){for(var n=j(e),t=n.length,i=Array(t),o=0;o<t;o++)i[o]=e[n[o]];return i}function q(e){for(var n={},t=j(e),i=0,o=t.length;i<o;i++)n[e[t[i]]]=t[i];return n}function $(e){var n=[];for(var t in e)Qe(e[t])&&n.push(t);return n.sort()}function I(e,n){return function(t){var i=arguments.length;if(n&&(t=Object(t)),i<2||null==t)return t;for(var o=1;o<i;o++)for(var a=arguments[o],r=e(a),l=r.length,s=0;s<l;s++){var c=r[s];n&&void 0!==t[c]||(t[c]=a[c])}return t}}function H(e,n,t){n=o(n,t);for(var i,a=j(e),r=0,l=a.length;r<l;r++)if(n(e[i=a[r]],i,e))return i}function z(e,n,t){return n in t}function W(e){return J(e)?Xe(e)?e.slice():Ve({},e):e}function V(e,n){var t=j(n),i=t.length;if(null==e)return!i;for(var o=Object(e),a=0;a<i;a++){var r=t[a];if(n[r]!==o[r]||!(r in o))return!1}return!0}function U(n,t,i,o){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return!1;if(n!=n)return t!=t;var a=typeof n;return("function"===a||"object"===a||"object"==typeof t)&&function(n,t,i,o){n instanceof e&&(n=n._wrapped),t instanceof e&&(t=t._wrapped);var a=de.call(n);if(a!==de.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":
return+n!=+n?+t!=+t:0==+n?1/+n==1/t:+n==+t;case"[object Date]":case"[object Boolean]":return+n==+t;case"[object Symbol]":return le.valueOf.call(n)===le.valueOf.call(t)}var r="[object Array]"===a;if(!r){if("object"!=typeof n||"object"!=typeof t)return!1;var l=n.constructor,c=t.constructor;if(l!==c&&!(Qe(l)&&l instanceof l&&Qe(c)&&c instanceof c)&&"constructor"in n&&"constructor"in t)return!1}o=o||[];for(var d=(i=i||[]).length;d--;)if(i[d]===n)return o[d]===t;if(i.push(n),o.push(t),r){if((d=n.length)!==t.length)return!1;for(;d--;)if(!U(n[d],t[d],i,o))return!1}else{var p,u=j(n);if(d=u.length,j(t).length!==d)return!1;for(;d--;)if(p=u[d],!s(t,p)||!U(n[p],t[p],i,o))return!1}return i.pop(),o.pop(),!0}(n,t,i,o)}function G(e){return function(n){return de.call(n)==="[object "+e+"]"}}function J(e){var n=typeof e;return"function"===n||"object"===n&&!!e}function K(e){return en(e)&&ve(e)}function X(e){return!0===e||!1===e||"[object Boolean]"===de.call(e)}function Y(e){return e}function Q(e){return Xe(e)?function(n){return c(n,e)}:l(e)}function Z(e){return e=Ue({},e),function(n){return V(n,e)}}function ee(e,n){return null==n&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))}function ne(e){var n=function(n){return e[n]},t="(?:"+j(e).join("|")+")",i=RegExp(t),o=RegExp(t,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,n):e}}function te(n,t){return n._chain?e(t).chain():t}function ie(n){return p($(n),function(t){var i=e[t]=n[t];e.prototype[t]=function(){var n=[this._wrapped];return se.apply(n,arguments),te(this,i.apply(e,n))}}),e}var oe="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},ae=Array.prototype,re=Object.prototype,le="undefined"!=typeof Symbol?Symbol.prototype:null,se=ae.push,ce=ae.slice,de=re.toString,pe=re.hasOwnProperty,ue=Array.isArray,fe=Object.keys,he=Object.create,ve=oe.isNaN,ge=oe.isFinite,me=function(){},be=e.VERSION="1.10.2";e.iteratee=i;var ye=Math.pow(2,53)-1,xe=l("length"),we=f(1),ke=f(-1),Ce=a(function(e,n,t){var i,o;return Qe(n)?o=n:Xe(n)&&(i=n.slice(0,-1),n=n[n.length-1]),u(e,function(e){var a=o;if(!a){if(i&&i.length&&(e=c(e,i)),null==e)return;a=e[n]}return null==a?a:a.apply(e,t)})}),Se=k(function(e,n,t){s(e,t)?e[t].push(n):e[t]=[n]}),Te=k(function(e,n,t){e[t]=n}),Ee=k(function(e,n,t){s(e,t)?e[t]++:e[t]=1}),_e=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g,Ae=k(function(e,n,t){e[t?0:1].push(n)},!0),Oe=a(function(e,n){return Fe(e,n)}),De=a(function(e){return _(E(e,!0,!0))}),Fe=a(function(e,n){return n=E(n,!0,!0),v(e,function(e){return!b(n,e)})}),Pe=a(A),Be=O(1),Me=O(-1),Ne=F(1,Be,D),je=F(-1,Me),Re=a(function(e,n,t){if(!Qe(e))throw new TypeError("Bind must be called on a function");var i=a(function(o){return P(e,i,n,this,t.concat(o))});return i}),Le=a(function(e,n){var t=Le.placeholder,i=function(){for(var o=0,a=n.length,r=Array(a),l=0;l<a;l++)r[l]=n[l]===t?arguments[o++]:n[l];for(;o<arguments.length;)r.push(arguments[o++]);return P(e,i,this,this,r)};return i});Le.placeholder=e;var qe=a(function(e,n){var t=(n=E(n,!1,!1)).length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var i=n[t];e[i]=Re(e[i],e)}}),$e=a(function(e,n,t){return setTimeout(function(){return e.apply(null,t)},n)}),Ie=Le($e,e,1),He=Le(M,2),ze=!{toString:null}.propertyIsEnumerable("toString"),We=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Ve=I(R),Ue=I(j),Ge=a(function(e,t){var i={},o=t[0];if(null==e)return i;Qe(o)?(1<t.length&&(o=n(o,t[1])),t=R(e)):(o=z,t=E(t,!1,!1),e=Object(e));for(var a=0,r=t.length;a<r;a++){var l=t[a],s=e[l];o(s,l,e)&&(i[l]=s)}return i}),Je=a(function(e,n){var t,i=n[0];return Qe(i)?(i=B(i),1<n.length&&(t=n[1])):(n=u(E(n,!1,!1),String),i=function(e,t){return!b(n,t)}),Ge(e,i,t)}),Ke=I(R,!0),Xe=ue||G("Array"),Ye=G("Arguments"),Qe=G("Function"),Ze=G("String"),en=G("Number"),nn=G("Date"),tn=G("RegExp"),on=G("Error"),an=G("Symbol"),rn=G("Map"),ln=G("WeakMap"),sn=G("Set"),cn=G("WeakSet");!function(){Ye(arguments)||(Ye=function(e){return s(e,"callee")})}();var dn=oe.document&&oe.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof dn&&(Qe=function(e){return"function"==typeof e||!1});var pn=Date.now||function(){return(new Date).getTime()},un={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},fn=q(un),hn=ne(un),vn=ne(fn),gn=0,mn=e.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},bn=/(.)^/,yn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},xn=/\\|'|\r|\n|\u2028|\u2029/g,wn=function(e){return"\\"+yn[e]};p(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=ae[n];e.prototype[n]=function(){var e=this._wrapped;return t.apply(e,arguments),"shift"!==n&&"splice"!==n||0!==e.length||delete e[0],te(this,e)}}),p(["concat","join","slice"],function(n){var t=ae[n];e.prototype[n]=function(){return te(this,t.apply(this._wrapped,arguments))}}),e.prototype.valueOf=e.prototype.toJSON=e.prototype.value=function(){return this._wrapped},e.prototype.toString=function(){return String(this._wrapped)};var kn=ie({default:e,VERSION:be,iteratee:i,restArguments:a,each:p,forEach:p,map:u,collect:u,reduce:we,foldl:we,inject:we,reduceRight:ke,foldr:ke,find:h,detect:h,filter:v,select:v,reject:function(e,n,t){return v(e,B(o(n)),t)},every:g,all:g,some:m,any:m,contains:b,includes:b,include:b,invoke:Ce,pluck:y,where:function(e,n){return v(e,Z(n))},findWhere:function(e,n){return h(e,Z(n))},max:x,min:function(e,n,t){var i,a,r=1/0,l=1/0;if(null==n||"number"==typeof n&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=d(e)?e:L(e)).length;s<c;s++)null!=(i=e[s])&&i<r&&(r=i);else n=o(n,t),p(e,function(e,t,i){((a=n(e,t,i))<l||a===1/0&&r===1/0)&&(r=e,l=a)});return r},shuffle:function(e){return w(e,1/0)},sample:w,sortBy:function(e,n,t){var i=0;return n=o(n,t),y(u(e,function(e,t,o){return{value:e,index:i++,criteria:n(e,t,o)}}).sort(function(e,n){var t=e.criteria,i=n.criteria;if(t!==i){if(i<t||void 0===t)return 1;if(t<i||void 0===i)return-1}return e.index-n.index}),"value")},groupBy:Se,indexBy:Te,countBy:Ee,toArray:function(e){return e?Xe(e)?ce.call(e):Ze(e)?e.match(_e):d(e)?u(e,Y):L(e):[]},size:function(e){return null==e?0:d(e)?e.length:j(e).length},partition:Ae,first:C,head:C,take:C,initial:S,last:function(e,n,t){return null==e||e.length<1?null==n?void 0:[]:null==n||t?e[e.length-1]:T(e,Math.max(0,e.length-n))},rest:T,tail:T,drop:T,compact:function(e){return v(e,Boolean)},flatten:function(e,n){return E(e,n,!1)},without:Oe,uniq:_,unique:_,union:De,intersection:function(e){for(var n=[],t=arguments.length,i=0,o=xe(e);i<o;i++){var a=e[i];if(!b(n,a)){var r;for(r=1;r<t&&b(arguments[r],a);r++);r===t&&n.push(a)}}return n},difference:Fe,unzip:A,zip:Pe,object:function(e,n){for(var t={},i=0,o=xe(e);i<o;i++)n?t[e[i]]=n[i]:t[e[i][0]]=e[i][1];return t},findIndex:Be,findLastIndex:Me,sortedIndex:D,indexOf:Ne,lastIndexOf:je,range:function(e,n,t){null==n&&(n=e||0,e=0),t||(t=n<e?-1:1);for(var i=Math.max(Math.ceil((n-e)/t),0),o=Array(i),a=0;a<i;a++,e+=t)o[a]=e;return o},chunk:function(e,n){if(null==n||n<1)return[];for(var t=[],i=0,o=e.length;i<o;)t.push(ce.call(e,i,i+=n));return t},bind:Re,partial:Le,bindAll:qe,memoize:function(e,n){var t=function(i){var o=t.cache,a=""+(n?n.apply(this,arguments):i);return s(o,a)||(o[a]=e.apply(this,arguments)),o[a]};return t.cache={},t},delay:$e,defer:Ie,throttle:function(e,n,t){var i,o,a,r,l=0;t||(t={});var s=function(){l=!1===t.leading?0:pn(),i=null,r=e.apply(o,a),i||(o=a=null)},c=function(){var c=pn();l||!1!==t.leading||(l=c);var d=n-(c-l);return o=this,a=arguments,d<=0||n<d?(i&&(clearTimeout(i),i=null),l=c,r=e.apply(o,a),i||(o=a=null)):i||!1===t.trailing||(i=setTimeout(s,d)),r};return c.cancel=function(){clearTimeout(i),l=0,i=o=a=null},c},debounce:function(e,n,t){var i,o,r=function(n,t){i=null,t&&(o=e.apply(n,t))},l=a(function(a){if(i&&clearTimeout(i),t){var l=!i;i=setTimeout(r,n),l&&(o=e.apply(this,a))}else i=$e(r,n,this,a);return o});return l.cancel=function(){clearTimeout(i),i=null},l},wrap:function(e,n){return Le(n,e)},negate:B,compose:function(){var e=arguments,n=e.length-1;return function(){for(var t=n,i=e[n].apply(this,arguments);t--;)i=e[t].call(this,i);return i}},after:function(e,n){return function(){if(--e<1)return n.apply(this,arguments)}},before:M,once:He,keys:j,allKeys:R,values:L,mapObject:function(e,n,t){n=o(n,t);for(var i=j(e),a=i.length,r={},l=0;l<a;l++){var s=i[l];r[s]=n(e[s],s,e)}return r},pairs:function(e){for(var n=j(e),t=n.length,i=Array(t),o=0;o<t;o++)i[o]=[n[o],e[n[o]]];return i},invert:q,functions:$,methods:$,extend:Ve,extendOwn:Ue,assign:Ue,findKey:H,pick:Ge,omit:Je,defaults:Ke,create:function(e,n){var t=r(e);return n&&Ue(t,n),t},clone:W,tap:function(e,n){return n(e),e},isMatch:V,isEqual:function(e,n){return U(e,n)},isEmpty:function(e){return null==e||(d(e)&&(Xe(e)||Ze(e)||Ye(e))?0===e.length:0===j(e).length)},isElement:function(e){return!(!e||1!==e.nodeType)},isArray:Xe,isObject:J,isArguments:Ye,isFunction:Qe,isString:Ze,isNumber:en,isDate:nn,isRegExp:tn,isError:on,isSymbol:an,isMap:rn,isWeakMap:ln,isSet:sn,isWeakSet:cn,isFinite:function(e){return!an(e)&&ge(e)&&!ve(parseFloat(e))},isNaN:K,isBoolean:X,isNull:function(e){return null===e},isUndefined:function(e){return void 0===e},has:function(e,n){if(!Xe(n))return s(e,n);for(var t=n.length,i=0;i<t;i++){var o=n[i];if(null==e||!pe.call(e,o))return!1;e=e[o]}return!!t},identity:Y,constant:function(e){return function(){return e}},noop:function(){},property:Q,propertyOf:function(e){return null==e?function(){}:function(n){return Xe(n)?c(e,n):e[n]}},matcher:Z,matches:Z,times:function(e,t,i){var o=Array(Math.max(0,e));t=n(t,i,1);for(var a=0;a<e;a++)o[a]=t(a);return o},random:ee,now:pn,escape:hn,unescape:vn,result:function(e,n,t){Xe(n)||(n=[n]);var i=n.length;if(!i)return Qe(t)?t.call(e):t;for(var o=0;o<i;o++){var a=null==e?void 0:e[n[o]];void 0===a&&(a=t,o=i),e=Qe(a)?a.call(e):a}return e},uniqueId:function(e){var n=++gn+"";return e?e+n:n},templateSettings:mn,template:function(n,t,i){!t&&i&&(t=i),t=Ke({},t,e.templateSettings);var o,a=RegExp([(t.escape||bn).source,(t.interpolate||bn).source,(t.evaluate||bn).source].join("|")+"|$","g"),r=0,l="__p+='";n.replace(a,function(e,t,i,o,a){return l+=n.slice(r,a).replace(xn,wn),r=a+e.length,t?l+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":i?l+="'+\n((__t=("+i+"))==null?'':__t)+\n'":o&&(l+="';\n"+o+"\n__p+='"),e}),l+="';\n",t.variable||(l="with(obj||{}){\n"+l+"}\n"),l="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+l+"return __p;\n";try{o=new Function(t.variable||"obj","_",l)}catch(t){throw t.source=l,t}var s=function(n){return o.call(this,n,e)};return s.source="function("+(t.variable||"obj")+"){\n"+l+"}",s},chain:function(n){var t=e(n);return t._chain=!0,t},mixin:ie});return kn._=kn}),function(e){var n="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global;if("function"==typeof define&&define.amd)define("backbone",["underscore","jquery","exports"],function(t,i,o){n.Backbone=e(n,o,t,i)});else if("undefined"!=typeof exports){var t,i=require("underscore");try{t=require("jquery")}catch(e){}e(n,exports,i,t)}else n.Backbone=e(n,{},n._,n.jQuery||n.Zepto||n.ender||n.$)}(function(e,n,t,i){var o=e.Backbone,a=Array.prototype.slice;n.VERSION="1.4.0",n.$=i,n.noConflict=function(){return e.Backbone=o,this},n.emulateHTTP=!1,n.emulateJSON=!1;var r,l=n.Events={},s=/\s+/,c=function(e,n,i,o,a){var r,l=0;if(i&&"object"==typeof i){void 0!==o&&"context"in a&&void 0===a.context&&(a.context=o);for(r=t.keys(i);l<r.length;l++)n=c(e,n,r[l],i[r[l]],a)}else if(i&&s.test(i))for(r=i.split(s);l<r.length;l++)n=e(n,r[l],o,a);else n=e(n,i,o,a);return n};l.on=function(e,n,t){if(this._events=c(d,this._events||{},e,n,{context:t,ctx:this,listening:r}),r){(this._listeners||(this._listeners={}))[r.id]=r,r.interop=!1}return this},l.listenTo=function(e,n,i){if(!e)return this;var o=e._listenId||(e._listenId=t.uniqueId("l")),a=this._listeningTo||(this._listeningTo={}),l=r=a[o];l||(this._listenId||(this._listenId=t.uniqueId("l")),l=r=a[o]=new g(this,e));var s=p(e,n,i,this);if(r=void 0,s)throw s;return l.interop&&l.on(n,i),this};var d=function(e,n,t,i){if(t){var o=e[n]||(e[n]=[]),a=i.context,r=i.ctx,l=i.listening;l&&l.count++,o.push({callback:t,context:a,ctx:a||r,listening:l})}return e},p=function(e,n,t,i){try{e.on(n,t,i)}catch(e){return e}};l.off=function(e,n,t){return this._events?(this._events=c(u,this._events,e,n,{context:t,listeners:this._listeners}),this):this},l.stopListening=function(e,n,i){var o=this._listeningTo;if(!o)return this;for(var a=e?[e._listenId]:t.keys(o),r=0;r<a.length;r++){var l=o[a[r]];if(!l)break;l.obj.off(n,i,this),l.interop&&l.off(n,i)}return t.isEmpty(o)&&(this._listeningTo=void 0),this};var u=function(e,n,i,o){if(e){var a,r=o.context,l=o.listeners,s=0;if(n||r||i){for(a=n?[n]:t.keys(e);s<a.length;s++){n=a[s];var c=e[n];if(!c)break;for(var d=[],p=0;p<c.length;p++){var u=c[p];if(i&&i!==u.callback&&i!==u.callback._callback||r&&r!==u.context)d.push(u);else{var f=u.listening;f&&f.off(n,i)}}d.length?e[n]=d:delete e[n]}return e}for(a=t.keys(l);s<a.length;s++)l[a[s]].cleanup()}};l.once=function(e,n,t){var i=c(f,{},e,n,this.off.bind(this));return"string"==typeof e&&null==t&&(n=void 0),this.on(i,n,t)},l.listenToOnce=function(e,n,t){var i=c(f,{},n,t,this.stopListening.bind(this,e));return this.listenTo(e,i)};var f=function(e,n,i,o){if(i){var a=e[n]=t.once(function(){o(n,a),i.apply(this,arguments)});a._callback=i}return e};l.trigger=function(e){if(!this._events)return this;for(var n=Math.max(0,arguments.length-1),t=Array(n),i=0;i<n;i++)t[i]=arguments[i+1];return c(h,this._events,e,void 0,t),this};var h=function(e,n,t,i){if(e){var o=e[n],a=e.all;o&&a&&(a=a.slice()),o&&v(o,i),a&&v(a,[n].concat(i))}return e},v=function(e,n){var t,i=-1,o=e.length,a=n[0],r=n[1],l=n[2];switch(n.length){case 0:for(;++i<o;)(t=e[i]).callback.call(t.ctx);return;case 1:for(;++i<o;)(t=e[i]).callback.call(t.ctx,a);return;case 2:for(;++i<o;)(t=e[i]).callback.call(t.ctx,a,r);return;case 3:for(;++i<o;)(t=e[i]).callback.call(t.ctx,a,r,l);return;default:for(;++i<o;)(t=e[i]).callback.apply(t.ctx,n);return}},g=function(e,n){this.id=e._listenId,this.listener=e,this.obj=n,this.interop=!0,this.count=0,this._events=void 0};g.prototype.on=l.on,g.prototype.off=function(e,n){var t;this.interop?(this._events=c(u,this._events,e,n,{context:void 0,listeners:void 0}),t=!this._events):(this.count--,t=0===this.count),t&&this.cleanup()},g.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},l.bind=l.on,l.unbind=l.off,t.extend(n,l);var m=n.Model=function(e,n){var i=e||{};n||(n={}),this.preinitialize.apply(this,arguments),this.cid=t.uniqueId(this.cidPrefix),this.attributes={},n.collection&&(this.collection=n.collection),n.parse&&(i=this.parse(i,n)||{});var o=t.result(this,"defaults");i=t.defaults(t.extend({},o,i),o),this.set(i,n),this.changed={},this.initialize.apply(this,arguments)};t.extend(m.prototype,l,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(e){return t.clone(this.attributes)},sync:function(){return n.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return t.escape(this.get(e))},has:function(e){return null!=this.get(e)},matches:function(e){return!!t.iteratee(e,this)(this.attributes)},set:function(e,n,i){if(null==e)return this;var o;if("object"==typeof e?(o=e,i=n):(o={})[e]=n,i||(i={}),!this._validate(o,i))return!1;var a=i.unset,r=i.silent,l=[],s=this._changing;this._changing=!0,s||(this._previousAttributes=t.clone(this.attributes),this.changed={});var c=this.attributes,d=this.changed,p=this._previousAttributes;for(var u in o)n=o[u],t.isEqual(c[u],n)||l.push(u),t.isEqual(p[u],n)?delete d[u]:d[u]=n,a?delete c[u]:c[u]=n;if(this.idAttribute in o&&(this.id=this.get(this.idAttribute)),!r){l.length&&(this._pending=i);for(var f=0;f<l.length;f++)this.trigger("change:"+l[f],this,c[l[f]],i)}if(s)return this;if(!r)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(e,n){return this.set(e,void 0,t.extend({},n,{unset:!0}))},clear:function(e){var n={};for(var i in this.attributes)n[i]=void 0;return this.set(n,t.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!t.isEmpty(this.changed):t.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&t.clone(this.changed);var n,i=this._changing?this._previousAttributes:this.attributes,o={};for(var a in e){var r=e[a];t.isEqual(i[a],r)||(o[a]=r,n=!0)}return!!n&&o},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return t.clone(this._previousAttributes)},fetch:function(e){e=t.extend({parse:!0},e);var n=this,i=e.success;return e.success=function(t){var o=e.parse?n.parse(t,e):t;if(!n.set(o,e))return!1;i&&i.call(e.context,n,t,e),n.trigger("sync",n,t,e)},J(this,e),this.sync("read",this,e)},save:function(e,n,i){var o;null==e||"object"==typeof e?(o=e,i=n):(o={})[e]=n,i=t.extend({validate:!0,parse:!0},i);var a=i.wait;if(o&&!a){if(!this.set(o,i))return!1}else if(!this._validate(o,i))return!1;var r=this,l=i.success,s=this.attributes;i.success=function(e){r.attributes=s;var n=i.parse?r.parse(e,i):e;if(a&&(n=t.extend({},o,n)),n&&!r.set(n,i))return!1;l&&l.call(i.context,r,e,i),r.trigger("sync",r,e,i)},J(this,i),o&&a&&(this.attributes=t.extend({},s,o));var c=this.isNew()?"create":i.patch?"patch":"update";"patch"!==c||i.attrs||(i.attrs=o);var d=this.sync(c,this,i);return this.attributes=s,d},destroy:function(e){e=e?t.clone(e):{};var n=this,i=e.success,o=e.wait,a=function(){n.stopListening(),n.trigger("destroy",n,n.collection,e)};e.success=function(t){o&&a(),i&&i.call(e.context,n,t,e),n.isNew()||n.trigger("sync",n,t,e)};var r=!1;return this.isNew()?t.defer(e.success):(J(this,e),r=this.sync("delete",this,e)),o||a(),r},url:function(){var e=t.result(this,"urlRoot")||t.result(this.collection,"url")||G();if(this.isNew())return e;var n=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(n)},parse:function(e,n){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},t.extend({},e,{validate:!0}))},_validate:function(e,n){if(!n.validate||!this.validate)return!0;e=t.extend({},this.attributes,e);var i=this.validationError=this.validate(e,n)||null;return!i||(this.trigger("invalid",this,i,t.extend(n,{validationError:i})),!1)}});var b=n.Collection=function(e,n){n||(n={}),this.preinitialize.apply(this,arguments),n.model&&(this.model=n.model),void 0!==n.comparator&&(this.comparator=n.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,t.extend({silent:!0},n))},y={add:!0,remove:!0,merge:!0},x={add:!0,remove:!1},w=function(e,n,t){t=Math.min(Math.max(t,0),e.length);var i,o=Array(e.length-t),a=n.length;for(i=0;i<o.length;i++)o[i]=e[i+t];for(i=0;i<a;i++)e[i+t]=n[i];for(i=0;i<o.length;i++)e[i+a+t]=o[i]};t.extend(b.prototype,l,{model:m,preinitialize:function(){},initialize:function(){},toJSON:function(e){return this.map(function(n){return n.toJSON(e)})},sync:function(){return n.sync.apply(this,arguments)},add:function(e,n){return this.set(e,t.extend({merge:!1},n,x))},remove:function(e,n){n=t.extend({},n);var i=!t.isArray(e);e=i?[e]:e.slice();var o=this._removeModels(e,n);return!n.silent&&o.length&&(n.changes={added:[],merged:[],removed:o},this.trigger("update",this,n)),i?o[0]:o},set:function(e,n){if(null!=e){n=t.extend({},y,n),n.parse&&!this._isModel(e)&&(e=this.parse(e,n)||[]);var i=!t.isArray(e);e=i?[e]:e.slice();var o=n.at;null!=o&&(o=+o),o>this.length&&(o=this.length),o<0&&(o+=this.length+1);var a,r,l=[],s=[],c=[],d=[],p={},u=n.add,f=n.merge,h=n.remove,v=!1,g=this.comparator&&null==o&&!1!==n.sort,m=t.isString(this.comparator)?this.comparator:null;for(r=0;r<e.length;r++){a=e[r];var b=this.get(a);if(b){if(f&&a!==b){var x=this._isModel(a)?a.attributes:a;n.parse&&(x=b.parse(x,n)),b.set(x,n),c.push(b),g&&!v&&(v=b.hasChanged(m))}p[b.cid]||(p[b.cid]=!0,l.push(b)),e[r]=b}else u&&(a=e[r]=this._prepareModel(a,n))&&(s.push(a),this._addReference(a,n),p[a.cid]=!0,l.push(a))}if(h){for(r=0;r<this.length;r++)a=this.models[r],p[a.cid]||d.push(a);d.length&&this._removeModels(d,n)}var k=!1,C=!g&&u&&h;if(l.length&&C?(k=this.length!==l.length||t.some(this.models,function(e,n){return e!==l[n]}),this.models.length=0,w(this.models,l,0),this.length=this.models.length):s.length&&(g&&(v=!0),w(this.models,s,null==o?this.length:o),this.length=this.models.length),v&&this.sort({silent:!0}),!n.silent){for(r=0;r<s.length;r++)null!=o&&(n.index=o+r),a=s[r],a.trigger("add",a,this,n);(v||k)&&this.trigger("sort",this,n),(s.length||d.length||c.length)&&(n.changes={added:s,removed:d,merged:c},this.trigger("update",this,n))}return i?e[0]:e}},reset:function(e,n){n=n?t.clone(n):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],n);return n.previousModels=this.models,this._reset(),e=this.add(e,t.extend({silent:!0},n)),n.silent||this.trigger("reset",this,n),e},push:function(e,n){return this.add(e,t.extend({at:this.length},n))},pop:function(e){var n=this.at(this.length-1);return this.remove(n,e)},unshift:function(e,n){return this.add(e,t.extend({at:0},n))},shift:function(e){var n=this.at(0);return this.remove(n,e)},slice:function(){return a.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[this.modelId(this._isModel(e)?e.attributes:e)]||e.cid&&this._byId[e.cid]},has:function(e){return null!=this.get(e)},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,n){return this[n?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(e){var n=this.comparator;if(!n)throw new Error("Cannot sort a set without a comparator");e||(e={});var i=n.length;return t.isFunction(n)&&(n=n.bind(this)),1===i||t.isString(n)?this.models=this.sortBy(n):this.models.sort(n),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return this.map(e+"")},fetch:function(e){e=t.extend({parse:!0},e);var n=e.success,i=this;return e.success=function(t){var o=e.reset?"reset":"set";i[o](t,e),n&&n.call(e.context,i,t,e),i.trigger("sync",i,t,e)},J(this,e),this.sync("read",this,e)},create:function(e,n){n=n?t.clone(n):{};var i=n.wait;if(!(e=this._prepareModel(e,n)))return!1;i||this.add(e,n);var o=this,a=n.success;return n.success=function(e,n,t){i&&o.add(e,t),a&&a.call(t.context,e,n,t)},e.save(null,n),e},parse:function(e,n){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e){return e[this.model.prototype.idAttribute||"id"]},values:function(){return new C(this,S)},keys:function(){return new C(this,T)},entries:function(){return new C(this,E)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,n){if(this._isModel(e))return e.collection||(e.collection=this),e;n=n?t.clone(n):{},n.collection=this;var i=new this.model(e,n);return i.validationError?(this.trigger("invalid",this,i.validationError,n),!1):i},_removeModels:function(e,n){for(var t=[],i=0;i<e.length;i++){var o=this.get(e[i]);if(o){var a=this.indexOf(o);this.models.splice(a,1),this.length--,delete this._byId[o.cid];var r=this.modelId(o.attributes);null!=r&&delete this._byId[r],n.silent||(n.index=a,o.trigger("remove",o,this,n)),t.push(o),this._removeReference(o,n)}}return t},_isModel:function(e){return e instanceof m},_addReference:function(e,n){this._byId[e.cid]=e;var t=this.modelId(e.attributes);null!=t&&(this._byId[t]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,n){delete this._byId[e.cid];var t=this.modelId(e.attributes);null!=t&&delete this._byId[t],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,n,t,i){if(n){if(("add"===e||"remove"===e)&&t!==this)return;if("destroy"===e&&this.remove(n,i),"change"===e){var o=this.modelId(n.previousAttributes()),a=this.modelId(n.attributes);o!==a&&(null!=o&&delete this._byId[o],null!=a&&(this._byId[a]=n))}}this.trigger.apply(this,arguments)}});var k="function"==typeof Symbol&&Symbol.iterator;k&&(b.prototype[k]=b.prototype.values);var C=function(e,n){this._collection=e,this._kind=n,this._index=0},S=1,T=2,E=3;k&&(C.prototype[k]=function(){return this}),C.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var e=this._collection.at(this._index);this._index++;var n;if(this._kind===S)n=e;else{var t=this._collection.modelId(e.attributes);n=this._kind===T?t:[t,e]}return{value:n,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var _=n.View=function(e){this.cid=t.uniqueId("view"),this.preinitialize.apply(this,arguments),t.extend(this,t.pick(e,O)),this._ensureElement(),this.initialize.apply(this,arguments)},A=/^(\S+)\s*(.*)$/,O=["model","collection","el","id","attributes","className","tagName","events"];t.extend(_.prototype,l,{tagName:"div",$:function(e){return this.$el.find(e)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof n.$?e:n.$(e),this.el=this.$el[0]},delegateEvents:function(e){if(e||(e=t.result(this,"events")),!e)return this;this.undelegateEvents();for(var n in e){var i=e[n];if(t.isFunction(i)||(i=this[i]),i){var o=n.match(A);this.delegate(o[1],o[2],i.bind(this))}}return this},delegate:function(e,n,t){return this.$el.on(e+".delegateEvents"+this.cid,n,t),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,n,t){return this.$el.off(e+".delegateEvents"+this.cid,n,t),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(this.el)this.setElement(t.result(this,"el"));else{var e=t.extend({},t.result(this,"attributes"));this.id&&(e.id=t.result(this,"id")),this.className&&(e.class=t.result(this,"className")),this.setElement(this._createElement(t.result(this,"tagName"))),this._setAttributes(e)}},_setAttributes:function(e){this.$el.attr(e)}});var D=function(e,n,t,i){switch(n){case 1:return function(){return e[t](this[i])};case 2:return function(n){return e[t](this[i],n)};case 3:return function(n,o){return e[t](this[i],P(n,this),o)};case 4:return function(n,o,a){return e[t](this[i],P(n,this),o,a)};default:return function(){var n=a.call(arguments);return n.unshift(this[i]),e[t].apply(e,n)}}},F=function(e,n,i,o){t.each(i,function(t,i){n[i]&&(e.prototype[i]=D(n,t,i,o))})},P=function(e,n){return t.isFunction(e)?e:t.isObject(e)&&!n._isModel(e)?B(e):t.isString(e)?function(n){return n.get(e)}:e},B=function(e){var n=t.matches(e);return function(e){return n(e.attributes)}},M={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},N={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};t.each([[b,M,"models"],[m,N,"attributes"]],function(e){var n=e[0],i=e[1],o=e[2];n.mixin=function(e){var i=t.reduce(t.functions(e),function(e,n){return e[n]=0,e},{});F(n,e,i,o)},F(n,t,i,o)}),n.sync=function(e,i,o){var a=j[e];t.defaults(o||(o={}),{emulateHTTP:n.emulateHTTP,emulateJSON:n.emulateJSON});var r={type:a,dataType:"json"};if(o.url||(r.url=t.result(i,"url")||G()),null!=o.data||!i||"create"!==e&&"update"!==e&&"patch"!==e||(r.contentType="application/json",r.data=JSON.stringify(o.attrs||i.toJSON(o))),o.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),o.emulateHTTP&&("PUT"===a||"DELETE"===a||"PATCH"===a)){r.type="POST",o.emulateJSON&&(r.data._method=a);var l=o.beforeSend;o.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",a),l)return l.apply(this,arguments)}}"GET"===r.type||o.emulateJSON||(r.processData=!1);var s=o.error;o.error=function(e,n,t){o.textStatus=n,o.errorThrown=t,s&&s.call(o.context,e,n,t)};var c=o.xhr=n.ajax(t.extend(r,o));return i.trigger("request",i,c,o),c};var j={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};n.ajax=function(){return n.$.ajax.apply(n.$,arguments)};var R=n.Router=function(e){e||(e={}),this.preinitialize.apply(this,arguments),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},L=/\((.*?)\)/g,q=/(\(\?)?:\w+/g,$=/\*\w+/g,I=/[\-{}\[\]+?.,\\\^$|#\s]/g;t.extend(R.prototype,l,{preinitialize:function(){},initialize:function(){},route:function(e,i,o){t.isRegExp(e)||(e=this._routeToRegExp(e)),t.isFunction(i)&&(o=i,i=""),o||(o=this[i]);var a=this;return n.history.route(e,function(t){var r=a._extractParameters(e,t);!1!==a.execute(o,r,i)&&(a.trigger.apply(a,["route:"+i].concat(r)),a.trigger("route",i,r),n.history.trigger("route",a,i,r))}),this},execute:function(e,n,t){e&&e.apply(this,n)},navigate:function(e,t){return n.history.navigate(e,t),this},_bindRoutes:function(){if(this.routes){this.routes=t.result(this,"routes");for(var e,n=t.keys(this.routes);null!=(e=n.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(I,"\\$&").replace(L,"(?:$1)?").replace(q,function(e,n){return n?e:"([^/?]+)"}).replace($,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,n){var i=e.exec(n).slice(1);return t.map(i,function(e,n){return n===i.length-1?e||null:e?decodeURIComponent(e):null})}});var H=n.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},z=/^[#\/]|\s+$/g,W=/^\/+|\/+$/g,V=/#.*$/;H.started=!1,t.extend(H.prototype,l,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var n=(e||this).location.href.match(/#(.*)$/);return n?n[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(z,"")},start:function(e){if(H.started)throw new Error("Backbone.history has already been started");if(H.started=!0,this.options=t.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(W,"/"),this._wantsHashChange&&this._wantsPushState){
if(!this._hasPushState&&!this.atRoot()){var n=this.root.slice(0,-1)||"/";return this.location.replace(n+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var i=document.body,o=i.insertBefore(this.iframe,i.firstChild).contentWindow;o.document.open(),o.document.close(),o.location.hash="#"+this.fragment}var a=window.addEventListener||function(e,n){return attachEvent("on"+e,n)};if(this._usePushState?a("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?a("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,n){return detachEvent("on"+e,n)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),H.started=!1},route:function(e,n){this.handlers.unshift({route:e,callback:n})},checkUrl:function(e){var n=this.getFragment();if(n===this.fragment&&this.iframe&&(n=this.getHash(this.iframe.contentWindow)),n===this.fragment)return!1;this.iframe&&this.navigate(n),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),t.some(this.handlers,function(n){if(n.route.test(e))return n.callback(e),!0}))},navigate:function(e,n){if(!H.started)return!1;n&&!0!==n||(n={trigger:!!n}),e=this.getFragment(e||"");var t=this.root;""!==e&&"?"!==e.charAt(0)||(t=t.slice(0,-1)||"/");var i=t+e;e=e.replace(V,"");var o=this.decodeFragment(e);if(this.fragment!==o){if(this.fragment=o,this._usePushState)this.history[n.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);if(this._updateHash(this.location,e,n.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var a=this.iframe.contentWindow;n.replace||(a.document.open(),a.document.close()),this._updateHash(a.location,e,n.replace)}}return n.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,n,t){if(t){var i=e.href.replace(/(javascript:|#).*$/,"");e.replace(i+"#"+n)}else e.hash="#"+n}}),n.history=new H;var U=function(e,n){var i,o=this;return i=e&&t.has(e,"constructor")?e.constructor:function(){return o.apply(this,arguments)},t.extend(i,o,n),i.prototype=t.create(o.prototype,e),i.prototype.constructor=i,i.__super__=o.prototype,i};m.extend=b.extend=R.extend=_.extend=H.extend=U;var G=function(){throw new Error('A "url" property or function must be specified')},J=function(e,n){var t=n.error;n.error=function(i){t&&t.call(n.context,e,i,n),e.trigger("error",e,i,n)}};return n}),function(e,n){"function"==typeof define&&define.amd?define("polyglot",[],function(){return n(e)}):"object"==typeof exports?module.exports=n(e):e.Polyglot=n(e)}(this,function(e){"use strict";function n(e){e=e||{},this.phrases={},this.extend(e.phrases||{}),this.currentLocale=e.locale||"en",this.allowMissing=!!e.allowMissing,this.warn=e.warn||s}function t(e){var n,t,i,o={};for(n in e)if(e.hasOwnProperty(n)){t=e[n];for(i in t)o[t[i]]=n}return o}function i(e){var n=/^\s+|\s+$/g;return e.replace(n,"")}function o(e,n,t){var o,a,l;return null!=t&&e?(a=e.split(d),l=a[r(n,t)]||a[0],o=i(l)):o=e,o}function a(e){var n=t(u);return n[e]||n.en}function r(e,n){return p[a(e)](n)}function l(e,n){for(var t in n)"_"!==t&&n.hasOwnProperty(t)&&(e=e.replace(new RegExp("%\\{"+t+"\\}","g"),n[t]));return e}function s(n){e.console&&e.console.warn&&e.console.warn("WARNING: "+n)}function c(e){var n={};for(var t in e)n[t]=e[t];return n}n.VERSION="0.4.3",n.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},n.prototype.extend=function(e,n){var t;for(var i in e)e.hasOwnProperty(i)&&(t=e[i],n&&(i=n+"."+i),"object"==typeof t?this.extend(t,i):this.phrases[i]=t)},n.prototype.unset=function(e,n){var t;if("string"==typeof e)delete this.phrases[e];else for(var i in e)e.hasOwnProperty(i)&&(t=e[i],n&&(i=n+"."+i),"object"==typeof t?this.unset(t,i):delete this.phrases[i])},n.prototype.clear=function(){this.phrases={}},n.prototype.replace=function(e){this.clear(),this.extend(e)},n.prototype.t=function(e,n){var t,i;return n=null==n?{}:n,"number"==typeof n&&(n={smart_count:n}),"string"==typeof this.phrases[e]?t=this.phrases[e]:"string"==typeof n._?t=n._:this.allowMissing?t=e:(this.warn('Missing translation for key: "'+e+'"'),i=e),"string"==typeof t&&(n=c(n),i=o(t,this.currentLocale,n.smart_count),i=l(i,n)),i},n.prototype.has=function(e){return e in this.phrases};var d="||||",p={chinese:function(e){return 0},german:function(e){return 1!==e?1:0},french:function(e){return e>1?1:0},russian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){return 1===e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0}},u={chinese:["fa","id","ja","ko","lo","ms","th","tr","zh"],german:["da","de","en","es","fi","el","he","hu","it","nl","no","pt","sv"],french:["fr","tl","pt-br"],russian:["hr","ru"],czech:["cs"],polish:["pl"],icelandic:["is"]};return n}),define("models/component",["jquery","underscore","backbone"],function(e,n,t){return t.Model.extend({initialize:function(){this.has("fresh")||this.set("fresh",!0)},getValues:function(){return n.reduce(this.get("fields"),function(e,t,i){return"select"==t.type?e[i]=n.find(t.value,function(e){return e.selected}).value:e[i]=t.value,e},{})},setField:function(e,t){var i=this.get("fields");n.isUndefined(i[e])||n.isUndefined(i[e].value)||(i[e].value=t,this.set("fields",i))},getField:function(e){var t=this.get("fields");return n.isUndefined(t[e])||n.isUndefined(t[e].value)?"":t[e].value},getType:function(){return this.getField("id").split("_",1).shift()}})}),define("text",["module"],function(e){"use strict";function n(e,n){return void 0===e||""===e?n:e}function t(e,t,i,o){if(t===o)return!0;if(e===i){if("http"===e)return n(t,"80")===n(o,"80");if("https"===e)return n(t,"443")===n(o,"443")}return!1}var i,o,a,r,l,s=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],c=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,d=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,p="undefined"!=typeof location&&location.href,u=p&&location.protocol&&location.protocol.replace(/\:/,""),f=p&&location.hostname,h=p&&(location.port||void 0),v={},g=e.config&&e.config()||{};return i={version:"2.0.16",strip:function(e){if(e){e=e.replace(c,"");var n=e.match(d);n&&(e=n[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:g.createXhr||function(){var e,n,t;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(n=0;n<3;n+=1){t=s[n];try{e=new ActiveXObject(t)}catch(e){}if(e){s=[t];break}}return e},parseName:function(e){var n,t,i,o=!1,a=e.lastIndexOf("."),r=0===e.indexOf("./")||0===e.indexOf("../");return-1!==a&&(!r||a>1)?(n=e.substring(0,a),t=e.substring(a+1)):n=e,i=t||n,a=i.indexOf("!"),-1!==a&&(o="strip"===i.substring(a+1),i=i.substring(0,a),t?t=i:n=i),{moduleName:n,ext:t,strip:o}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,n,o,a){var r,l,s,c=i.xdRegExp.exec(e);return!c||(r=c[2],l=c[3],l=l.split(":"),s=l[1],l=l[0],(!r||r===n)&&(!l||l.toLowerCase()===o.toLowerCase())&&(!s&&!l||t(r,s,n,a)))},finishLoad:function(e,n,t,o){t=n?i.strip(t):t,g.isBuild&&(v[e]=t),o(t)},load:function(e,n,t,o){if(o&&o.isBuild&&!o.inlineText)return void t();g.isBuild=o&&o.isBuild;var a=i.parseName(e),r=a.moduleName+(a.ext?"."+a.ext:""),l=n.toUrl(r),s=g.useXhr||i.useXhr;if(0===l.indexOf("empty:"))return void t();!p||s(l,u,f,h)?i.get(l,function(n){i.finishLoad(e,a.strip,n,t)},function(e){t.error&&t.error(e)}):n([r],function(e){i.finishLoad(a.moduleName+"."+a.ext,a.strip,e,t)},function(e){t.error&&t.error(e)})},write:function(e,n,t,o){if(v.hasOwnProperty(n)){var a=i.jsEscape(v[n]);t.asModule(e+"!"+n,"define(function () { return '"+a+"';});\n")}},writeFile:function(e,n,t,o,a){var r=i.parseName(n),l=r.ext?"."+r.ext:"",s=r.moduleName+l,c=t.toUrl(r.moduleName+l)+".js";i.load(s,t,function(n){var t=function(e){return o(c,e)};t.asModule=function(e,n){return o.asModule(e,c,n)},i.write(e,s,t,a)},a)}},"node"===g.env||!g.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"]?(o=require.nodeRequire("fs"),i.get=function(e,n,t){try{var i=o.readFileSync(e,"utf8");"\ufeff"===i[0]&&(i=i.substring(1)),n(i)}catch(e){t&&t(e)}}):"xhr"===g.env||!g.env&&i.createXhr()?i.get=function(e,n,t,o){var a,r=i.createXhr();if(r.open("GET",e,!0),o)for(a in o)o.hasOwnProperty(a)&&r.setRequestHeader(a.toLowerCase(),o[a]);g.onXhr&&g.onXhr(r,e),r.onreadystatechange=function(i){var o,a;4===r.readyState&&(o=r.status||0,o>399&&o<600?(a=new Error(e+" HTTP status: "+o),a.xhr=r,t&&t(a)):n(r.responseText),g.onXhrComplete&&g.onXhrComplete(r,e))},r.send(null)}:"rhino"===g.env||!g.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?i.get=function(e,n){var t,i,o=new java.io.File(e),a=java.lang.System.getProperty("line.separator"),r=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(o),"utf-8")),l="";try{for(t=new java.lang.StringBuffer,i=r.readLine(),i&&i.length()&&65279===i.charAt(0)&&(i=i.substring(1)),null!==i&&t.append(i);null!==(i=r.readLine());)t.append(a),t.append(i);l=String(t.toString())}finally{r.close()}n(l)}:("xpconnect"===g.env||!g.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(a=Components.classes,r=Components.interfaces,Components.utils.import("resource://gre/modules/FileUtils.jsm"),l="@mozilla.org/windows-registry-key;1"in a,i.get=function(e,n){var t,i,o,s={};l&&(e=e.replace(/\//g,"\\")),o=new FileUtils.File(e);try{t=a["@mozilla.org/network/file-input-stream;1"].createInstance(r.nsIFileInputStream),t.init(o,1,0,!1),i=a["@mozilla.org/intl/converter-input-stream;1"].createInstance(r.nsIConverterInputStream),i.init(t,"utf-8",t.available(),r.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),i.readString(t.available(),s),i.close(),t.close(),n(s.value)}catch(e){throw new Error((o&&o.path||"")+": "+e)}}),i}),define("text!templates/app/recaptcha.html",[],function(){return'\x3c!-- reCAPTCHA --\x3e{{ if ( field.siteKey ) { }}\n<div class="form-group{{ if (field.containerClass) { }} {{= field.containerClass }}{{ } }}">\n    <div id="{{= field.id }}" class="g-recaptcha" data-sitekey="{{= field.siteKey }}" data-theme="{{= field.theme }}" data-type="{{= field.type }}" data-size="{{= field.size }}"></div>\n</div>\n{{ } else { }}\n<div class="g-recaptcha" data-sitekey="your_site_key"></div>\n{{ } }}'}),define("text!templates/popover/popover-main.html",[],function(){return'<form data-id="{{= id }}" data-type="{{= type }}" class="form">\n    <div class="popover-content-settings">\n        {{= basicFields }}\n        {{ if (advancedFields) { }}\n        <div>\n            {{= advancedFields }}\n        </div>\n        {{ } }}\n    </div>\n    <div class="divider"></div>\n    <div class="popover-content-actions">\n        <button id="save" class="btn btn-primary" title="{{= polyglot.t(\'popover.save\') }}">\n            <i class="far fa-check me-1"></i> {{= polyglot.t(\'popover.save\') }}\n        </button>\n        <button id="copy" class="btn btn-icon btn-info" title="{{= polyglot.t(\'popover.copy\') }}">\n            <i class="far fa-copy"></i>\n        </button>\n        <button id="delete" class="btn btn-icon btn-danger" title="{{= polyglot.t(\'popover.delete\') }}">\n            <i class="far fa-trash-alt"></i>\n        </button>\n        <button id="cancel" class="btn btn-icon btn-secondary" title="{{= polyglot.t(\'popover.cancel\') }}">\n            <i class="far fa-times"></i>\n        </button>\n    </div>\n</form>'}),define("text!templates/popover/popover-input.html",[],function(){return'{{ if(name !== "id") {}}<div class="form-group">\n    <label class="form-label"> {{= polyglot.t(label) }} </label>\n    <input class="input-large field form-control" data-type="{{= type }}" type="text" name="{{= name }}" id="{{= name }}" value="{{- value }}" />\n</div>{{ } }}\n'}),define("text!templates/popover/popover-number.html",[],function(){return'{{ if(name !== "id") {}}<div class="form-group">\n    <label class="form-label"> {{= polyglot.t(label) }} </label>\n    <input class="input-large field form-control" data-type="{{= type }}" type="number" name="{{= name }}" id="{{= name }}" value="{{- value }}" />\n</div>{{ } }}\n'}),define("text!templates/popover/popover-select.html",[],function(){return'<div class="form-group">\n    <label class="form-label"> {{= polyglot.t(label) }} </label>\n    <select class="field form-select" data-type="{{= type }}" id=\'{{= name }}\'>{{ _.each(value, function(v,k){ }}\n        <option value="{{= v["value"] }}"{{ if (v["selected"]){ }} selected{{ } }}>{{= v["label"] }}</option>{{ }); }}\n    </select>\n</div>'}),define("text!templates/popover/popover-textarea.html",[],function(){return'<div class="form-group">\n    <label class="form-label"> {{= polyglot.t(label) }} </label>\n    <textarea class="field form-control" data-type="{{= type }}" style="min-height: 100px" id="{{= name }}">{{= value }}</textarea>\n</div>\n'}),define("text!templates/popover/popover-textarea-split.html",[],function(){return'<div class="form-group">\n    <label class="form-label"> {{= polyglot.t(label) }} </label>\n    <textarea class="field form-control" data-type="{{= type }}" style="min-height: 100px" id="{{= name }}">{{ for ( var i = 0; i < value.length ; i++ ) { }}{{= value[i] }}{{ if (i < value.length - 1) { }}{{= "\\n" }}{{ } }}{{ } }}</textarea>\n</div>\n'}),define("text!templates/popover/popover-checkbox.html",[],function(){return'<div class="form-check">\n    <input type="checkbox" data-type="{{= type }}" class="form-check-input field" name="{{= name }}" id="{{= name }}"{{ if(value) {}} checked="checked" {{ } }}>\n    <label for="{{= name }}" class="form-check-label">{{= polyglot.t(label) }}</label>\n</div>\n'}),define("text!templates/popover/popover-choice.html",[],function(){return'<div id="{{= name }}" class="form-group field field-choice" data-type="{{= type }}">\n    <label class=\'form-label\'> {{= polyglot.t(label) }} </label>\n    <div class="show-options">\n        <label for="{{= name }}-show-values" id="{{= name }}-for-show-values" class="for-show-values">\n            <input type="checkbox" id="{{= name }}-show-values" class="show-values"> {{= polyglot.t(\'popover.values\') }}\n        </label>\n        <label for="{{= name }}-show-images" id="{{= name }}-for-show-images" class="for-show-images">\n            <input type="checkbox" id="{{= name }}-show-images" class="show-images"> {{= polyglot.t(\'popover.images\') }}\n        </label>\n    </div>\n    <div class="choices">\n        {{ for ( var i = 0; i < value.length ; i++ ) { }}\n        {{ var items = value[i].split("|"); var last = items[items.length-1]; var selected = (last==="selected"||last==="select"|last==="check"); var answer = items[0]; var val = ((items.length >= 3) || (items.length == 2 && !selected)) ? items[1] : \'\'; var image = ((items.length >= 4) || (items.length == 3 && !selected)) ? items[2] : \'\'; if (image.length > 0 && val.length < 1) { val = answer; } }}\n        <div class="row g-0 choice">\n            <div class="col-1">\n                <div class="form-check">\n                    <input type="checkbox"{{ if(selected) { }} checked{{ } }} name="selected[]" class="form-check-input selected-choice" />\n                </div>\n            </div>\n            <div class="col-8 ps-1 choice-answer">\n                <input type="text" class="form-control form-control-sm" placeholder="{{= polyglot.t(\'popover.choice\') }}" value=\'{{- answer }}\' name="answer[]" />\n            </div>\n            <div class="col-4 choice-value">\n                <input type="text" class="form-control form-control-sm" placeholder="{{= polyglot.t(\'popover.value\') }}" value=\'{{- val }}\' name="value[]" />\n            </div>\n            <div class="col-3">\n                <div class="actions">\n                    <span class="fas fa-plus-circle add-choice"></span>\n                    <span class="fas fa-minus-circle text-danger remove-choice"></span>\n                </div>\n            </div>\n            <div class="col-8 ps-1 offset-1 choice-image">\n                <input type="text" class="form-control form-control-sm" placeholder="{{= polyglot.t(\'popover.image\') }}" value=\'{{- image }}\' name="image[]" />\n            </div>\n        </div>\n        {{ } }}\n    </div>\n    <textarea id="{{= name }}-bulk-choices" class="form-control bulk-choices" style="min-height: 100px; display: none">{{ for ( var i = 0; i < value.length ; i++ ) { }}{{= value[i] }}{{ if (i < value.length - 1) { }}{{= "\\n" }}{{ } }}{{ } }}</textarea>\n    <a id="{{= name }}-bulk-editor" href="#" class="btn btn-sm btn-default bulk-editor">{{= polyglot.t(\'popover.bulkEditor\') }}</a>\n    <a id="{{= name }}-bulk-cancel" href="#" class="btn btn-sm btn-danger bulk-cancel" style="display: none">{{= polyglot.t(\'popover.cancel\') }}</a>\n</div>\n'}),define("text!templates/component/heading.html",[],function(){return'{{ if (field.containerClass) { }}\x3c!-- Heading --\x3e\n<div class="{{= field.containerClass }}">\n    <{{= field.type }} {{ if(field.cssClass) { }}class="{{= field.cssClass }}"{{ } }}>{{= field.text }}</{{= field.type }}>\n</div>\n{{ } else { }}\x3c!-- Heading --\x3e\n<{{= field.type }} {{ if(field.cssClass) { }}class="{{= field.cssClass }}"{{ } }}>{{= field.text }}</{{= field.type}}>\n{{ } }}'}),define("text!templates/component/paragraph.html",[],function(){return'{{ if(field.containerClass) { }}\x3c!-- Paragraph Text --\x3e\n<div class="{{= field.containerClass }}">\n    <p{{ if(field.cssClass) { }} class="{{= field.cssClass }}" {{ } }}>{{= field.text }}</p>\n</div>\n{{ } else { }}\x3c!-- Paragraph Text --\x3e\n<p{{ if(field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}>{{= field.text }}</p>\n{{ } }}'}),define("text!templates/component/text.html",[],function(){return'{{ if (field.containerClass) { }}\x3c!-- Text --\x3e\n<div class="{{= field.containerClass }}">\n    <div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n        {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}\n        <input type="{{= field.inputType }}" id="{{= field.id }}" name="{{= field.id }}" value="{{= field.predefinedValue }}" data-alias="{{= field.alias }}"{{ if (field.minlength) { }} minlength="{{= field.minlength }}"{{ } }}{{ if (field.maxlength) { }} maxlength="{{= field.maxlength }}"{{ } }}{{ if (field.pattern) { }} pattern="{{= field.pattern }}"{{ } }}{{ if (field.placeholder) { }} placeholder="{{= field.placeholder }}"{{ } }}{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.required) {}} required{{ } }}{{ if (field.unique) { }} data-unique="{{= field.unique }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n    </div>\n</div>\n{{ } else { }}\x3c!-- Text --\x3e\n<div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n    {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}\n    <input type="{{= field.inputType }}" id="{{= field.id }}" name="{{= field.id }}" value="{{= field.predefinedValue }}" data-alias="{{= field.alias }}"{{ if (field.minlength) { }} minlength="{{= field.minlength }}"{{ } }}{{ if (field.maxlength) { }} maxlength="{{= field.maxlength }}"{{ } }}{{ if (field.pattern) { }} pattern="{{= field.pattern }}"{{ } }}{{ if (field.placeholder) { }} placeholder="{{= field.placeholder }}"{{ } }}{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.required) {}} required{{ } }}{{ if (field.unique) { }} data-unique="{{= field.unique }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n</div>\n{{ } }}'}),define("text!templates/component/number.html",[],function(){return'{{ if (field.containerClass) { }}\x3c!-- Number --\x3e\n<div class="{{= field.containerClass }}">\n    <div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n        {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}\n        <input type="{{= field.inputType }}" id="{{= field.id }}" name="{{= field.id }}" value="{{= field.predefinedValue }}" data-alias="{{= field.alias }}"{{ if (field.min) { }} min="{{= field.min }}"{{ } }}{{ if (field.max) { }} max="{{= field.max }}"{{ } }}{{ if (field.step) { }} step="{{= field.step }}"{{ } }}{{ if (field.integerOnly) { }} data-integer-only="{{= field.integerOnly }}"{{ } }}{{ if (field.integerPattern) { }} data-integer-pattern="{{= field.integerPattern }}"{{ } }}{{ if (field.numberPattern) { }} data-number-pattern="{{= field.numberPattern }}"{{ } }}{{ if (field.placeholder) { }} placeholder="{{= field.placeholder }}"{{ } }} {{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }} {{ if(field.required) { }} required{{ } }}{{ if (field.unique) { }} data-unique="{{= field.unique }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n    </div>\n</div>\n{{ } else { }}\x3c!-- Text --\x3e\n<div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n    {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}\n    <input type="{{= field.inputType }}" id="{{= field.id }}" name="{{= field.id }}" value="{{= field.predefinedValue }}" data-alias="{{= field.alias }}"{{ if (field.min) { }} min="{{= field.min }}"{{ } }}{{ if (field.max) { }} max="{{= field.max }}"{{ } }}{{ if (field.step) { }} step="{{= field.step }}"{{ } }}{{ if (field.integerOnly) { }} data-integer-only="{{= field.integerOnly }}"{{ } }}{{ if (field.integerPattern) { }} data-integer-pattern="{{= field.integerPattern }}"{{ } }}{{ if (field.numberPattern) { }} data-number-pattern="{{= field.numberPattern }}"{{ } }}{{ if (field.placeholder) { }} placeholder="{{= field.placeholder }}"{{ } }} {{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }} {{ if(field.required) { }} required{{ } }}{{ if (field.unique) { }} data-unique="{{= field.unique }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n</div>\n{{ } }}'}),define("text!templates/component/date.html",[],function(){return'{{ if (field.containerClass) { }}\x3c!-- Date --\x3e\n<div class="{{= field.containerClass }}">\n    <div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n        {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}\n        <input type="{{= field.inputType }}" id="{{= field.id }}" name="{{= field.id }}" value="{{= field.predefinedValue }}" data-alias="{{= field.alias }}"{{ if (field.min) { }} min="{{= field.min }}"{{ } }}{{ if(field.max) { }} max="{{= field.max }}"{{ } }}{{ if(field.step) { }} step="{{= field.step }}"{{ } }}{{ if (field.placeholder) { }} placeholder="{{= field.placeholder }}"{{ } }}{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.required) {}} required{{ } }}{{ if (field.unique) { }} data-unique="{{= field.unique }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n    </div>\n</div>\n{{ } else { }}\x3c!-- Date --\x3e\n<div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n    {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}\n    <input type="{{= field.inputType }}" id="{{= field.id }}" name="{{= field.id }}" value="{{= field.predefinedValue }}" data-alias="{{= field.alias }}"{{ if (field.min) { }} min="{{= field.min }}"{{ } }}{{ if(field.max) { }} max="{{= field.max }}"{{ } }}{{ if(field.step) { }} step="{{= field.step }}"{{ } }}{{ if (field.placeholder) { }} placeholder="{{= field.placeholder }}"{{ } }}{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.required) {}} required{{ } }}{{ if (field.unique) { }} data-unique="{{= field.unique }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n</div>\n{{ } }}'}),define("text!templates/component/email.html",[],function(){
return'{{ if (field.containerClass) { }}\x3c!-- Email --\x3e\n<div class="{{= field.containerClass }}">\n    <div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n        {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}\n        <input type="email" id="{{= field.id }}" name="{{= field.id }}" value="{{= field.predefinedValue }}" data-alias="{{= field.alias }}"{{ if (field.minlength) { }} minlength="{{= field.minlength }}"{{ } }}{{ if (field.maxlength) { }} maxlength="{{= field.maxlength }}"{{ } }}{{ if (field.pattern) { }} pattern="{{= field.pattern }}"{{ } }}{{ if (field.placeholder) { }} placeholder="{{= field.placeholder }}"{{ } }}{{ if (field.checkdns) { }} data-check-dns="true"{{ } }}{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if (field.multiple) { }} multiple{{ } }}{{ if(field.required) {}} required{{ } }}{{ if (field.unique) { }} data-unique="{{= field.unique }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n    </div>\n</div>\n{{ } else { }}\x3c!-- Email --\x3e\n<div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n    {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}\n    <input type="email" id="{{= field.id }}" name="{{= field.id }}" value="{{= field.predefinedValue }}" data-alias="{{= field.alias }}"{{ if (field.minlength) { }} minlength="{{= field.minlength }}"{{ } }}{{ if (field.maxlength) { }} maxlength="{{= field.maxlength }}"{{ } }}{{ if (field.pattern) { }} pattern="{{= field.pattern }}"{{ } }}{{ if (field.placeholder) { }} placeholder="{{= field.placeholder }}"{{ } }}{{ if (field.checkdns) { }} data-check-dns="true"{{ } }}{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if (field.multiple) { }} multiple{{ } }}{{ if(field.required) {}} required{{ } }}{{ if (field.unique) { }} data-unique="{{= field.unique }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n</div>\n{{ } }}'}),define("text!templates/component/textarea.html",[],function(){return'{{ if (field.containerClass) { }}\x3c!-- Text Area --\x3e\n<div class="{{= field.containerClass }}">\n    <div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n        {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}\n        <textarea id="{{= field.id }}" name="{{= field.id }}" rows="{{= field.fieldSize }}" data-alias="{{= field.alias }}"{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if (field.placeholder) { }} placeholder="{{= field.placeholder }}"{{ } }}{{ if (field.minlength) { }} minlength="{{= field.minlength }}"{{ } }}{{ if (field.maxlength) { }} maxlength="{{= field.maxlength }}"{{ } }}{{ if(field.required) {}} required{{ } }}{{ if (field.unique) { }} data-unique="{{= field.unique }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{= field.predefinedValue }}</textarea>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n    </div>\n</div>\n{{ } else { }}\x3c!-- Text Area --\x3e\n<div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n    {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}\n    <textarea id="{{= field.id }}" name="{{= field.id }}" rows="{{= field.fieldSize }}" data-alias="{{= field.alias }}"{{ if (field.cssClass) { }} class="{{= field.cssClass }}" {{ } }}{{ if (field.placeholder) { }} placeholder="{{= field.placeholder }}"{{ } }}{{ if (field.minlength) { }} minlength="{{= field.minlength }}"{{ } }}{{ if (field.maxlength) { }} maxlength="{{= field.maxlength }}"{{ } }}{{ if(field.required) {}} required{{ } }}{{ if (field.unique) { }} data-unique="{{= field.unique }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{= field.predefinedValue }}</textarea>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n</div>\n{{ } }}'}),define("text!templates/component/checkbox.html",[],function(){return'{{ if (field.containerClass) { }}\x3c!-- Checkbox --\x3e\n<div class="{{= field.containerClass }}">\n    <div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}{{ if (field.asButton) { }} form-group-btn{{ } }}">{{ if (field.label) { }}\n        <label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ _.each(field.checkboxes, function(checkbox, i){ var items = checkbox.split("|"); var last = items[items.length-1]; var checked = (last==="selected"||last==="select"|last==="check"); checkbox = items[0]; var value = ((items.length >= 3) || (items.length == 2) && !checked) ? items[1] : items[0]; var figure = ((items.length >= 4) || (items.length == 3 && !checked)) ? items[2] : false; }}\n        <div{{ if (field.cssClass) { }} class="{{= field.cssClass }}{{ if (field.inline) { }} form-check-inline{{ } }}{{ if (field.asButton) { }} form-check-btn{{ } }}"{{ } }}{{ if(field.disabled) { }} disabled{{ } }}>\n            <input type="checkbox" name="{{= field.id }}[]" id="{{= field.id+\'_\'+i }}" class="form-check-input{{ if (field.asButton) { }} btn-check{{ } }}" value="{{- value.replace(/(<([^>]+)>)/ig,\'\') }}" data-alias="{{= field.alias }}"{{ if(field.required){ }}data-required="true" {{ } }}{{ if(field.readOnly) { }}readOnly {{ } }}{{ if(field.disabled) {}}disabled {{ } }} {{ if(checked) { }}checked {{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}><label for="{{= field.id+\'_\'+i }}" class="form-check-label{{ if (field.asButton) { }} btn btn-default{{ } }}">{{ if(figure) { }}\n                <span class="figure">{{ if (figure.indexOf("http") == 0) { }}<img src="{{= figure }}" />{{ } else { }}<span class="{{= figure }}"> </span>{{ } }}</span>{{ } }}\n                {{= checkbox }} </label>\n        </div>{{ }); }}\n        <span id="{{= field.id }}"></span>\n        {{ if (field.helpText && field.helpTextPlacement === "below") { }}<p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n    </div>\n</div>\n{{ } else { }}\x3c!-- Checkbox --\x3e\n<div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}{{ if (field.asButton) { }} form-group-btn{{ } }}">{{ if (field.label) { }}\n    <label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ _.each(field.checkboxes, function(checkbox, i){ var items = checkbox.split("|"); var last = items[items.length-1]; var checked = (last==="selected"||last==="select"|last==="check"); checkbox = items[0]; var value = ((items.length >= 3) || (items.length == 2) && !checked) ? items[1] : items[0]; var figure = ((items.length >= 4) || (items.length == 3 && !checked)) ? items[2] : false; }}\n    <div{{ if (field.cssClass) { }} class="{{= field.cssClass }}{{ if (field.inline) { }} form-check-inline{{ } }}{{ if (field.asButton) { }} form-check-btn{{ } }}"{{ } }}{{ if(field.disabled) { }} disabled{{ } }}>\n        <input type="checkbox" name="{{= field.id }}[]" id="{{= field.id+\'_\'+i }}" class="form-check-input{{ if (field.asButton) { }} btn-check{{ } }}" value="{{- value.replace(/(<([^>]+)>)/ig,\'\') }}" data-alias="{{= field.alias }}"{{ if(field.required){ }}data-required="true" {{ } }}{{ if(field.readOnly) { }}readOnly {{ } }}{{ if(field.disabled) {}}disabled {{ } }} {{ if(checked) { }}checked {{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}><label class="form-check-label{{ if (field.asButton) { }} btn btn-default{{ } }}" for="{{= field.id+\'_\'+i }}">{{ if(figure) { }}\n            <span class="figure">{{ if (figure.indexOf("http") == 0) { }}<img src="{{= figure }}" />{{ } else { }}<span class="{{= figure }}"> </span>{{ } }}</span>{{ } }}\n            {{= checkbox }} </label>\n    </div>{{ }); }}\n    <span id="{{= field.id }}"></span>\n    {{ if (field.helpText && field.helpTextPlacement === "below") { }}<p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n</div>\n{{ } }}'}),define("text!templates/component/radio.html",[],function(){return'{{ if (field.containerClass) { }}\x3c!-- Radio --\x3e\n<div class="{{= field.containerClass }}">\n    <div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}{{ if (field.asButton) { }} form-group-btn{{ } }}">{{ if (field.label) { }}\n        <label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ _.each(field.radios, function(radio, i){ var items = radio.split("|"); var last = items[items.length-1]; var checked = (last==="selected"||last==="select"|last==="check"); radio = items[0]; var value = ((items.length >= 3) || (items.length == 2) && !checked) ? items[1] : items[0]; var figure = ((items.length >= 4) || (items.length == 3 && !checked)) ? items[2] : false; }}\n        <div{{ if (field.cssClass) { }} class="{{= field.cssClass }}{{ if (field.inline) { }} form-check-inline{{ } }}{{ if (field.asButton) { }} form-check-btn{{ } }}"{{ } }}{{ if(field.disabled) { }} disabled{{ } }}>\n            <input type="radio" name="{{= field.id }}" id="{{= field.id+\'_\'+i }}" class="form-check-input{{ if (field.asButton) { }} btn-check{{ } }}" value="{{- value.replace(/(<([^>]+)>)/ig,\'\') }}" data-alias="{{= field.alias }}"{{ if(field.required){ }}data-required="true" {{ } }}{{ if(field.readOnly) { }}readOnly {{ } }}{{ if(field.disabled) {}}disabled {{ } }} {{ if(checked) { }}checked {{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>\n            <label for="{{= field.id+\'_\'+i }}" class="form-check-label{{ if (field.asButton) { }} btn btn-default{{ } }}">{{ if(figure) { }}\n                <span class="figure">{{ if (figure.indexOf("http") == 0) { }}<img src="{{= figure }}" />{{ } else { }}<span class="{{= figure }}"> </span>{{ } }}</span>{{ } }}\n                {{= radio }}\n            </label>\n        </div>{{ }); }}\n        <span id="{{= field.id }}"></span>\n        {{ if (field.helpText && field.helpTextPlacement === "below") { }}<p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n    </div>\n</div>\n{{ } else { }}\x3c!-- Radio --\x3e\n<div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}{{ if (field.asButton) { }} form-group-btn{{ } }}">{{ if (field.label) { }}\n    <label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ _.each(field.radios, function(radio, i){ var items = radio.split("|"); var last = items[items.length-1]; var checked = (last==="selected"||last==="select"|last==="check"); radio = items[0]; var value = ((items.length >= 3) || (items.length == 2) && !checked) ? items[1] : items[0]; var figure = ((items.length >= 4) || (items.length == 3 && !checked)) ? items[2] : false; }}\n    <div{{ if (field.cssClass) { }} class="{{= field.cssClass }}{{ if (field.inline) { }} form-check-inline{{ } }}{{ if (field.asButton) { }} form-check-btn{{ } }}"{{ } }}{{ if(field.disabled) { }} disabled{{ } }}>\n        <input type="radio" name="{{= field.id }}" id="{{= field.id+\'_\'+i }}" class="form-check-input{{ if (field.asButton) { }} btn-check{{ } }}" value="{{- value.replace(/(<([^>]+)>)/ig,\'\') }}" data-alias="{{= field.alias }}"{{ if(field.required){ }}data-required="true" {{ } }}{{ if(field.readOnly) { }}readOnly {{ } }}{{ if(field.disabled) {}}disabled {{ } }} {{ if(checked) { }}checked {{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>\n        <label class="form-check-label{{ if (field.asButton) { }} btn btn-default{{ } }}" for="{{= field.id+\'_\'+i }}">{{ if(figure) { }}\n        <span class="figure">{{ if (figure.indexOf("http") == 0) { }}<img src="{{= figure }}" />{{ } else { }}<span class="{{= figure }}"> </span>{{ } }}</span>{{ } }}\n            {{= radio }}\n        </label>\n    </div>{{ }); }}\n    <span id="{{= field.id }}"></span>\n    {{ if (field.helpText && field.helpTextPlacement === "below") { }}<p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n</div>\n{{ } }}'}),define("text!templates/component/selectlist.html",[],function(){return'{{ if (field.containerClass) { }}\x3c!-- Select List --\x3e\n<div class="{{= field.containerClass }}">\n    <div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n        {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}\n        <select id="{{= field.id }}" name="{{= field.id }}[]" data-alias="{{= field.alias }}"{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if (field.required) { }} required{{ } }}{{ if (field.readOnly) { }} readOnly{{ } }}{{ if (field.disabled) { }} disabled{{ } }}{{ if (field.multiple) { }} multiple{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{ if(field.placeholder) { }}\n            <option value="" disabled selected>{{= field.placeholder }}</option>{{ } }}{{ var lastIndex = field.options.length - 1; var groups = []; _.each(field.options, function(option, index) { var items = option.split("|"); var last = items[items.length-1]; var selected = (last==="selected"||last==="select"|last==="check"); var option = items[0]; var value = ((items.length == 3 && selected) || (items.length == 2) && !selected) ? items[1] : items[0]; }}\n            {{ if (typeof value === \'string\' && (value.substring(0, 2) === \'[[\') && (value.substring(value.length-2, value.length) === \']]\')) { }} {{ if (groups.length !== 0) { }}</optgroup>{{ } }}<optgroup label="{{= value.substring(2, value.length - 2) }}">{{ groups.push(index); } else { }} <option value="{{= value }}" {{ if (selected) { }} selected{{ } }}>{{= option }}</option> {{ } }}   {{ if (lastIndex === index && groups.length > 0) { }}</optgroup>{{ } }} {{ }); }}\n        </select>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n    </div>\n</div>\n{{ } else { }}\x3c!-- Select List --\x3e\n<div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n    {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}\n    <select id="{{= field.id }}" name="{{= field.id }}[]" data-alias="{{= field.alias }}" {{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.required) { }} required{{ } }}{{ if (field.readOnly) { }} readOnly{{ } }}{{ if (field.disabled) { }} disabled{{ } }}{{ if (field.multiple) { }} multiple{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{ if(field.placeholder) { }}\n        <option value="" disabled selected>{{= field.placeholder }}</option>{{ } }}{{ var lastIndex = field.options.length - 1; var groups = []; _.each(field.options, function(option, index) { var items = option.split("|"); var last = items[items.length-1]; var selected = (last==="selected"||last==="select"|last==="check"); var option = items[0]; var value = ((items.length == 3 && selected) || (items.length == 2) && !selected) ? items[1] : items[0]; }}\n        {{ if (typeof value === \'string\' && (value.substring(0, 2) === \'[[\') && (value.substring(value.length-2, value.length) === \']]\')) { }} {{ if (groups.length !== 0) { }}</optgroup>{{ } }}<optgroup label="{{= value.substring(2, value.length - 2) }}">{{ groups.push(index); } else { }} <option value="{{= value }}" {{ if (selected) { }} selected{{ } }}>{{= option }}</option> {{ } }}   {{ if (lastIndex === index && groups.length > 0) { }}</optgroup>{{ } }} {{ }); }}\n    </select>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n</div>\n{{ } }}'}),define("text!templates/component/hidden.html",[],function(){return'\x3c!-- Hidden --\x3e\n<div>\n    <input type="hidden" id="{{= field.id }}" name="{{= field.id }}" value="{{= field.predefinedValue }}" data-alias="{{= field.alias }}"{{ if (field.label) { }} data-label="{{= field.label }}"{{ } }}{{ if (field.unique) { }} data-unique="{{= field.unique }}"{{ } }}{{ if (field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var value = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- value }}"{{ } }}{{ }) }}>\n</div>\n'}),define("text!templates/component/file.html",[],function(){return'{{ if (field.containerClass) { }}\x3c!-- File --\x3e\n<div class="{{= field.containerClass }}">\n    <div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n        {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}\n        <input type="file" id="{{= field.id }}" name="{{= field.id }}[]" data-alias="{{= field.alias }}" accept="{{= field.accept }}"{{ if (field.minFiles) { }} data-min-files="{{= field.minFiles }}"{{ } }}{{ if(field.maxFiles) { }} data-max-files="{{= field.maxFiles }}"{{ } }}{{ if (field.minSize) { }} data-min-size="{{= field.minSize }}"{{ } }}{{ if(field.maxSize) { }} data-max-size="{{= field.maxSize }}"{{ } }}{{ if(field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.required){ }} required{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ if(field.maxFiles && field.maxFiles > 1) { }} multiple{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n    </div>\n</div>\n{{ } else { }}\x3c!-- File --\x3e\n<div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n    {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}\n    <input type="file" id="{{= field.id }}" name="{{= field.id }}[]" data-alias="{{= field.alias }}" accept="{{= field.accept }}"{{ if (field.minFiles) { }} data-min-files="{{= field.minFiles }}"{{ } }}{{ if(field.maxFiles) { }} data-max-files="{{= field.maxFiles }}"{{ } }}{{ if (field.minSize) { }} data-min-size="{{= field.minSize }}" {{ } }}{{ if(field.maxSize) { }} data-max-size="{{= field.maxSize }}"{{ } }}{{ if(field.cssClass) { }} class="{{= field.cssClass }}"{{ } }} {{ if(field.required){ }} required{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ if(field.maxFiles && field.maxFiles > 1) { }} multiple{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var val = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- val }}"{{ } }}{{ }) }}>{{ if (field.helpText && field.helpTextPlacement === "below") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}{{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n</div>\n{{ } }}\n'}),define("text!templates/component/snippet.html",[],function(){return'\x3c!-- Snippet --\x3e\n{{ if (field.containerClass) { }}<div class="snippet {{= field.containerClass }}">{{= field.snippet }}</div>{{ } else { }}<div class="snippet">{{= field.snippet }}</div>{{ } }}\n'}),define("text!templates/component/recaptcha.html",[],function(){return'{{ if (field.containerClass) { }}\x3c!-- reCAPTCHA --\x3e\n<div class="{{= field.containerClass }}">\n    \x3c!-- reCAPTCHA --\x3e\n    <div id="recaptcha">\n        <div class="rc">\n            <div class="float-start">\n                <div class="rc-checkbox"></div>\n            </div>\n            <div class="float-start">\n                <div class="rc-label">I\'m not a robot</div>\n            </div>\n            <div class="float-end">\n                <div class="rc-logo">\n                    <div class="rc-logo-img rc-logo-img-portrait"></div>\n                    <div class="rc-logo-text">reCAPTCHA</div>\n                </div>\n                <div class="rc-anchor-pt">\n                    <span>Privacy</span> - <span>Terms</span>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>{{ } else { }}\x3c!-- reCAPTCHA --\x3e\n\x3c!-- reCAPTCHA --\x3e\n<div id="recaptcha">\n    <div class="rc">\n        <div class="float-start">\n            <div class="rc-checkbox"></div>\n        </div>\n        <div class="float-start">\n            <div class="rc-label">I\'m not a robot</div>\n        </div>\n        <div class="float-end">\n            <div class="rc-logo">\n                <div class="rc-logo-img rc-logo-img-portrait"></div>\n                <div class="rc-logo-text">reCAPTCHA</div>\n            </div>\n            <div class="rc-anchor-pt">\n                <span>Privacy</span> - <span>Terms</span>\n            </div>\n        </div>\n    </div>\n</div>\n{{ } }}'}),define("text!templates/component/pagebreak.html",[],function(){return'\x3c!-- Page Break --\x3e\n<div class="page-break" data-button-previous="{{= field.prev }}" data-button-next="{{= field.next }}"></div>\n'}),define("text!templates/component/spacer.html",[],function(){return"\x3c!-- Spacer --\x3e{{ var height = field.height > 0 ? field.height + 'px' : '0'; var style = 'height: ' + height }}\n{{ if (field.containerClass) { }}<div class=\"{{= field.containerClass }}\">{{ } }}\n    <div style=\"{{= style }}\" {{ if (field.cssClass) { }} class=\"{{= field.cssClass }}\" {{ } }}></div>\n{{ if (field.containerClass) { }}</div>{{ } }}\n"}),define("text!templates/component/signature.html",[],function(){return'{{ if (field.containerClass) { }}\x3c!-- Signature --\x3e\n<div class="{{= field.containerClass }}">\n    <div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n        {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n        <p class="form-text">{{= field.helpText }}</p>{{ } }}\n        <div class="signature-pad">\n            <canvas id="{{= field.id }}" width="{{= field.width }}" height="{{= field.height }}" data-color="{{= field.color }}" {{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}></canvas>\n        </div>\n        {{ if (field.helpText && field.helpTextPlacement === "below") { }}<p class="form-text">{{= field.helpText }}</p>{{ } }}\n        <div class="signature-pad-actions">\n            {{ if (field.clear) { }}<button type="button" id="clear_{{= field.id }}" name="clear_{{= field.id }}" class="btn btn-sm btn-default btn-clear" data-exclude="true">{{= field.clearText }}</button>{{ } }}\n            {{ if (field.undo) { }}<button type="button" id="undo_{{= field.id }}" name="undo_{{= field.id }}" class="btn btn-sm btn-default btn-undo" data-exclude="true">{{= field.undoText }}</button>{{ } }}\n        </div>\n        <input type="text" style="display: none" name="hidden_{{= field.id }}" id="hidden_{{= field.id }}" value="" data-alias="{{= field.alias }}" data-label="{{= field.label }}"{{ if(field.required) { }} required{{ } }}>\n        {{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n    </div>\n</div>\n{{ } else { }}\x3c!-- Signature --\x3e\n<div class="{{ if (layout == \'form-horizontal\') { }}row {{ } }}form-group{{ if (field.required) { }} required-control{{ } }}">\n    {{ if (field.label) { }}<label class="{{ if (layout == \'form-horizontal\') { }}col-form-label col-3{{ } }} {{= field.labelClass }}" for="{{= field.id }}">{{= field.label }}</label>{{ } }}{{ if (layout == \'form-horizontal\') { }}<div class="col">{{ } }}{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n    <p class="form-text">{{= field.helpText }}</p>{{ } }}\n    <div class="signature-pad">\n        <canvas id="{{= field.id }}" width="{{= field.width }}" height="{{= field.height }}" data-color="{{= field.color }}" {{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}></canvas>\n    </div>\n    {{ if (field.helpText && field.helpTextPlacement === "below") { }}<p class="form-text">{{= field.helpText }}</p>{{ } }}\n    <div class="signature-pad-actions">\n        {{ if (field.clear) { }}<button type="button" id="clear_{{= field.id }}" name="clear_{{= field.id }}" class="btn btn-sm btn-default btn-clear" data-exclude="true">{{= field.clearText }}</button>{{ } }}\n        {{ if (field.undo) { }}<button type="button" id="undo_{{= field.id }}" name="undo_{{= field.id }}" class="btn btn-sm btn-default btn-undo" data-exclude="true">{{= field.undoText }}</button>{{ } }}\n    </div>\n    <input type="text" style="display: none" name="hidden_{{= field.id }}" id="hidden_{{= field.id }}" value="" data-alias="{{= field.alias }}" data-label="{{= field.label }}"{{ if(field.required) { }} required{{ } }}>\n    {{ if (layout == \'form-horizontal\') { }}</div>{{ } }}\n</div>\n{{ } }}'}),
define("text!templates/component/matrix.html",[],function(){return'\x3c!-- Matrix --\x3e\n{{ if (field.containerClass) { }}<div class="{{= field.containerClass }}">{{ } }}\n    <div class="form-group{{ if(field.required) { }} required-control{{ } }}{{ if(field.inline) { }} inline-control{{ } }}">\n        <table id="{{= field.id }}" class="table-matrix {{= field.tableClass }}" data-matrix-type="{{= field.inputType }}">\n            {{ if (field.label) { }}<caption>\n                <label for="{{= field.id }}"{{ if (field.labelClass) { }} class="{{= field.labelClass }}"{{ } }}>{{= field.label }}</label>{{ if (field.helpText && field.helpTextPlacement === "above") { }}\n                <p class="form-text">{{= field.helpText }}</p>{{ } }}\n            </caption>{{ } }}\n            <thead>\n            <tr>\n                <th{{ if (field.inline) { }} style="display:none"{{ } }}>&nbsp;</th>{{ _.each(field.answers, function(answer, i) { var items = answer.split("|"); var last = items[items.length-1]; var selected = last==="selected"; answer = items[0]; }}\n                <th class="text-center">{{= answer }}</th>{{ }) }}\n            </tr>\n            </thead>\n            <tbody>{{ _.each(field.questions, function(question, i) { var items = question.split("|"); var last = items[items.length-1]; var selected = last==="selected"; question = items[0]; }}\n            <tr>\n                <th{{ if (field.inline) { }} style="display:none"{{ } }}>\n                    <label for="{{= field.id+\'_\'+i }}">{{= question }}</label>\n                </th>{{ _.each(field.answers, function(answer, a_i) { var items = answer.split("|"); var last = items[items.length-1]; var selected = (last==="selected"||last==="select"|last==="check"); answer = items[0]; var value = ((items.length >= 3) || (items.length == 2) && !selected) ? items[1] : items[0]; var figure = ((items.length >= 4) || (items.length == 3 && !checked)) ? items[2] : false; }}\n                <td class="text-center {{= field.id+\'_q_\'+(i+1) }} {{= field.id+\'_a_\'+(a_i+1) }}" title="{{= answer }}">{{ if (field.inputType === "select") { }}\n                    <select name="{{= field.id+\'_\'+i+\'_\'+a_i }}[]" id="{{= field.id+\'_\'+i+\'_\'+a_i }}" data-label="{{- question.replace(/(<([^>]+)>)/ig,\'\') }} > {{- answer.replace(/(<([^>]+)>)/ig,\'\') }}" data-matrix-id="{{= field.id }}" data-matrix-label="{{= field.label }}" data-matrix-question="{{- question.replace(/(<([^>]+)>)/ig,\'\') }}" data-matrix-answer="{{- answer.replace(/(<([^>]+)>)/ig,\'\') }}" class="{{- field.cssClass }}"{{ if(field.alias) { }} data-alias="{{= field.alias+\'_\'+i+\'_\'+a_i }}"{{ } }}{{ if(field.required){ }} required{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ if (field.multiple) { }} multiple{{ } }} >{{ if(field.placeholder) { }}\n                        <option value="" disabled selected>{{= field.placeholder }}</option>{{ } }}{{ var options = value.split(\'/\'); _.each(options, function(option) { }}\n                        <option value="{{- option.replace(/(<([^>]+)>)/ig,\'\') }}">{{= option }}</option>{{ }); }}\n                    </select>{{ } else if (field.inputType === "radio") { }}\n                    <div class="radio">\n                        <span id="{{= field.id+\'_\'+i }}"></span>\n                        <input class="form-check-input" type="{{= field.inputType }}" name="{{= field.id+\'_\'+i }}" id="{{= field.id+\'_\'+i+\'_\'+a_i }}" data-matrix-id="{{= field.id }}" data-matrix-label="{{= field.label }}" data-matrix-question="{{- question.replace(/(<([^>]+)>)/ig,\'\') }}" data-matrix-answer="{{- answer.replace(/(<([^>]+)>)/ig,\'\') }}" value="{{- value.replace(/(<([^>]+)>)/ig,\'\') }}"{{ if(field.alias) { }} data-alias="{{= field.alias+\'_\'+i }}"{{ } }}{{ if(field.required){ }} required{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) {}} disabled{{ } }}{{ if(selected) { }} checked{{ } }}>\n                        <label for="{{= field.id+\'_\'+i+\'_\'+a_i }}"></label>\n                    </div>{{ } else if (field.inputType === "checkbox") { }}\n                    <div class="checkbox">\n                        <span id="{{= field.id+\'_\'+i }}"></span>\n                        <input class="form-check-input" type="{{= field.inputType }}" name="{{= field.id+\'_\'+i }}[]" id="{{= field.id+\'_\'+i+\'_\'+a_i }}" data-matrix-id="{{= field.id }}" data-matrix-label="{{= field.label }}" data-matrix-question="{{- question.replace(/(<([^>]+)>)/ig,\'\') }}" data-matrix-answer="{{- answer.replace(/(<([^>]+)>)/ig,\'\') }}" value="{{- value.replace(/(<([^>]+)>)/ig,\'\') }}"{{ if(field.alias) { }} data-alias="{{= field.alias+\'_\'+i+\'_\'+a_i }}"{{ } }}{{ if(field.required){ }} data-required="true"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) {}} disabled{{ } }}{{ if(selected) { }} checked{{ } }}>\n                        <label for="{{= field.id+\'_\'+i+\'_\'+a_i }}"></label>\n                    </div>{{ } else if (field.inputType === "textarea") { }}\n                    <textarea id="{{= field.id+\'_\'+i+\'_\'+a_i }}" name="{{= field.id+\'_\'+i+\'_\'+a_i }}" data-label="{{- question.replace(/(<([^>]+)>)/ig,\'\') }} > {{- answer.replace(/(<([^>]+)>)/ig,\'\') }}" data-matrix-id="{{= field.id }}" data-matrix-label="{{= field.label.replace(/(<([^>]+)>)/ig,\'\') }}" data-matrix-question="{{- question.replace(/(<([^>]+)>)/ig,\'\') }}" data-matrix-answer="{{- answer.replace(/(<([^>]+)>)/ig,\'\') }}"{{ if(field.alias) { }} data-alias="{{= field.alias+\'_\'+i+\'_\'+a_i }}"{{ } }}{{ if (field.minlength) { }} minlength="{{= field.minlength }}"{{ } }}{{ if (field.maxlength) { }} maxlength="{{= field.maxlength }}"{{ } }}{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if (field.placeholder) { }}placeholder="{{= field.placeholder }}" {{ } }}{{ if(field.required){ }}required {{ } }}{{ if(field.readOnly) { }}readOnly {{ } }}{{ if(field.disabled) { }}disabled {{ } }}>{{ if (value !== answer) { }}{{= value }}{{ } }}</textarea>\n                    {{ } else { }}\n                    <input type="{{= field.inputType }}" id="{{= field.id+\'_\'+i+\'_\'+a_i }}" name="{{= field.id+\'_\'+i+\'_\'+a_i }}" data-label="{{- question.replace(/(<([^>]+)>)/ig,\'\') }} > {{- answer.replace(/(<([^>]+)>)/ig,\'\') }}" data-matrix-id="{{= field.id }}" data-matrix-label="{{= field.label.replace(/(<([^>]+)>)/ig,\'\') }}" data-matrix-question="{{- question.replace(/(<([^>]+)>)/ig,\'\') }}" data-matrix-answer="{{- answer.replace(/(<([^>]+)>)/ig,\'\') }}"{{ if(field.alias) { }} data-alias="{{= field.alias+\'_\'+i+\'_\'+a_i }}"{{ } }}{{ if (value !== answer) { }} value="{{= value }}"{{ } }}{{ if (field.minlength) { }} minlength="{{= field.minlength }}"{{ } }}{{ if (field.maxlength) { }} maxlength="{{= field.maxlength }}"{{ } }}{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if (field.min) { }} min="{{= field.min }}"{{ } }}{{ if (field.max) { }} max="{{= field.max }}"{{ } }}{{ if (field.step) { }} step="{{= field.step }}"{{ } }}{{ if (field.pattern) { }} pattern="{{= field.pattern }}"{{ } }}{{ if (field.placeholder) { }} placeholder="{{- field.placeholder }}"{{ } }}{{ if(field.required){ }} required{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}>\n                    {{ } }}\n                </td>{{ }) }}\n            </tr>{{ }) }}\n            </tbody>\n        </table>\n        {{ if (field.helpText && field.helpTextPlacement === "below") { }}<p class="form-text">{{= field.helpText }}</p>{{ } }}\n    </div>\n{{ if (field.containerClass) { }}</div>{{ } }}'}),define("text!templates/component/nps.html",[],function(){return'\x3c!-- Net Promoter® Score --\x3e\n{{ if (field.containerClass) { }}<div class="{{= field.containerClass }}">{{ } }}\n    <div class="form-group nps-question{{ if(field.required) { }} required-control{{ } }}">\n        <label for="{{= field.id }}"{{ if (field.questionClass) { }} class="{{= field.questionClass }}"{{ } }}>{{= field.question }}</label>\n        <span id="{{= field.id }}"></span>\n        {{ if (field.helpText && field.helpTextPlacement === "above") { }}<p class="form-text">{{= field.helpText }}</p>{{ } }}\n        <div class="answer-container">\n            <table class="table table-nps">\n                <tbody>{{ if (field.labelPlacement === "above") { }}\n                <tr>\n                    <td colspan="11">\n                        <table class="table">\n                            <tr>{{ _.each(field.labels, function(label, labelIdx) { var items = label.split("|"); var last = items[items.length-1]; var selected = (last==="selected"||last==="select"|last==="check"); label = items[0]; var labelPosition = [\'text-start\', \'text-center\', \'text-end\']; }}\n                                <td class="{{= labelPosition[labelIdx] }}{{ if (field.labelClass) { }} {{= field.labelClass }}{{ } }}">\n                                    {{ if (selected) { }}{{= label }}{{ } }}\n                                </td>{{ }); }}\n                            </tr>\n                        </table>\n                    </td>\n                </tr>{{ } }}\n                <tr>{{ _.each([1,2,3,4,5,6,7,8,9,10], function(number, i) { }}\n                    <td class="answer-input">\n                        <input type="radio" name="{{= field.id }}" id="{{= field.id+\'_\'+i }}" value="{{= number }}" data-alias="{{= field.alias }}" class="form-check-input{{ if (field.cssClass) { }} {{= field.cssClass }}{{ } }}"{{ if(field.required){ }} required{{ } }}{{ if(field.disabled) {}} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var value = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- value }}"{{ } }}{{ }) }}>\n                        <label for="{{= field.id+\'_\'+i }}" class="{{= field.buttonClass }}" {{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}>\n                            <span>{{= number }}</span>\n                        </label>\n                    </td>{{ }); }}\n                </tr>{{ if (field.labelPlacement === "below") { }}\n                <tr>\n                    <td colspan="11">\n                        <table class="table">\n                            <tr>{{ _.each(field.labels, function(label, labelIdx) { var items = label.split("|"); var last = items[items.length-1]; var selected = (last==="selected"||last==="select"|last==="check"); label = items[0]; var labelPosition = [\'text-start\', \'text-center\', \'text-end\']; }}\n                                <td class="{{= labelPosition[labelIdx] }}{{ if (field.labelClass) { }} {{= field.labelClass }}{{ } }}">\n                                    {{ if (selected) { }}{{= label }}{{ } }}\n                                </td>{{ }); }}\n                            </tr>\n                        </table>\n                    </td>\n                </tr>{{ } }}\n                </tbody>\n            </table>\n        </div>\n        {{ if (field.helpText && field.helpTextPlacement === "below") { }}<p class="form-text">{{= field.helpText }}</p>{{ } }}\n    </div>\n{{ if (field.containerClass) { }}</div>{{ } }}'}),define("text!templates/component/button.html",[],function(){return'{{ if (field.containerClass) { }}\x3c!-- Button --\x3e\n<div class="{{= field.containerClass }}">\n    {{ if (field.buttonText) {  } }} {{ if (field.label) { }}<div class="form-action">\n        <label {{ if (field.labelClass) { }} class="{{= field.labelClass }}"{{ } }} for="{{= field.id }}">{{= field.label }}</label>\n        {{ if ( field.inputType !== "image" ) { }}<button type="{{= field.inputType }}" id="{{= field.id }}" name="{{= field.id }}"{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var value = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- value }}"{{ } }}{{ }) }}>{{= field.buttonText }}</button>{{ } else { }}<input type="image" src="{{= field.src }}" id="{{= field.id }}" name="{{= field.id }}"{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}>{{ } }}\n    </div>\n    {{ } else { }}<div class="form-action">\n        {{ if ( field.inputType !== "image" ) { }}<button type="{{= field.inputType }}" id="{{= field.id }}" name="{{= field.id }}"{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var value = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- value }}"{{ } }}{{ }) }}>{{= field.buttonText }}</button>{{ } else { }}<input type="image" src="{{= field.src }}" id="{{= field.id }}" name="{{= field.id }}"{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.readOnly) { }} readOnly {{ } }}{{ if(field.disabled) { }} disabled{{ } }}>{{ } }}\n    </div>{{ } }}\n</div>{{ } else { }}\x3c!-- Button --\x3e\n{{ if (field.buttonText) {  } }} {{ if (field.label) { }}<div class="form-action">\n    <label {{ if (field.labelClass) { }} class="{{= field.labelClass }}"{{ } }} for="{{= field.id }}">{{= field.label }}</label>\n    {{ if ( field.inputType !== "image" ) { }}<button type="{{= field.inputType }}" id="{{= field.id }}" name="{{= field.id }}"{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var value = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- value }}"{{ } }}{{ }) }}>{{= field.buttonText }}</button>{{ } else { }}<input type="image" src="{{= field.src }}" id="{{= field.id }}" name="{{= field.id }}"{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}>{{ } }}\n</div>\n{{ } else { }}<div class="form-action">\n    {{ if ( field.inputType !== "image" ) { }}<button type="{{= field.inputType }}" id="{{= field.id }}" name="{{= field.id }}"{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.readOnly) { }} readOnly{{ } }}{{ if(field.disabled) { }} disabled{{ } }}{{ _.each(field.customAttributes, function(attribute, i){ var attrs = attribute.split("|"); var attr = attrs[0]; var value = (attrs.length > 1) ? attrs[1] : attrs[0]; }}{{ if (attr) { }} {{- attr }}="{{- value }}"{{ } }}{{ }) }}>{{= field.buttonText }}</button>{{ } else { }}<input type="image" src="{{= field.src }}" id="{{= field.id }}" name="{{= field.id }}"{{ if (field.cssClass) { }} class="{{= field.cssClass }}"{{ } }}{{ if(field.readOnly) { }} readOnly {{ } }}{{ if(field.disabled) { }} disabled{{ } }}>{{ } }}\n</div>\n{{ } }}{{ } }}'}),define("templates/component/templates",["require","text!templates/component/heading.html","text!templates/component/paragraph.html","text!templates/component/text.html","text!templates/component/number.html","text!templates/component/date.html","text!templates/component/email.html","text!templates/component/textarea.html","text!templates/component/checkbox.html","text!templates/component/radio.html","text!templates/component/selectlist.html","text!templates/component/hidden.html","text!templates/component/file.html","text!templates/component/snippet.html","text!templates/component/recaptcha.html","text!templates/component/pagebreak.html","text!templates/component/spacer.html","text!templates/component/signature.html","text!templates/component/matrix.html","text!templates/component/nps.html","text!templates/component/button.html"],function(e){return{heading:e("text!templates/component/heading.html"),paragraph:e("text!templates/component/paragraph.html"),text:e("text!templates/component/text.html"),number:e("text!templates/component/number.html"),date:e("text!templates/component/date.html"),email:e("text!templates/component/email.html"),textarea:e("text!templates/component/textarea.html"),checkbox:e("text!templates/component/checkbox.html"),radio:e("text!templates/component/radio.html"),selectlist:e("text!templates/component/selectlist.html"),hidden:e("text!templates/component/hidden.html"),file:e("text!templates/component/file.html"),snippet:e("text!templates/component/snippet.html"),recaptcha:e("text!templates/component/recaptcha.html"),pagebreak:e("text!templates/component/pagebreak.html"),spacer:e("text!templates/component/spacer.html"),signature:e("text!templates/component/signature.html"),matrix:e("text!templates/component/matrix.html"),nps:e("text!templates/component/nps.html"),button:e("text!templates/component/button.html")}}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){"use strict";var n=jQuery.fn.jquery.split(" ")[0].split(".");if(n[0]<2&&n[1]<9||1==n[0]&&9==n[1]&&n[2]<1||3<n[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(e){"use strict";e.fn.emulateTransitionEnd=function(n){var t=!1,i=this;return e(this).one("bsTransitionEnd",function(){t=!0}),setTimeout(function(){t||e(i).trigger(e.support.transition.end)},n),this},e(function(){e.support.transition=function(){var e=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(void 0!==e.style[t])return{end:n[t]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(n){if(e(n.target).is(this))return n.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(e){"use strict";var n='[data-dismiss="alert"]',t=function(t){e(t).on("click",n,this.close)};t.VERSION="3.4.1",t.TRANSITION_DURATION=150,t.prototype.close=function(n){function i(){r.detach().trigger("closed.bs.alert").remove()}var o=e(this),a=o.attr("data-target");a||(a=(a=o.attr("href"))&&a.replace(/.*(?=#[^\s]*$)/,"")),a="#"===a?[]:a;var r=e(document).find(a);n&&n.preventDefault(),r.length||(r=o.closest(".alert")),r.trigger(n=e.Event("close.bs.alert")),n.isDefaultPrevented()||(r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(t.TRANSITION_DURATION):i())};var i=e.fn.alert;e.fn.alert=function(n){return this.each(function(){var i=e(this),o=i.data("bs.alert");o||i.data("bs.alert",o=new t(this)),"string"==typeof n&&o[n].call(i)})},e.fn.alert.Constructor=t,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",n,t.prototype.close)}(jQuery),function(e){"use strict";function n(n){return this.each(function(){var i=e(this),o=i.data("bs.button"),a="object"==typeof n&&n;o||i.data("bs.button",o=new t(this,a)),"toggle"==n?o.toggle():n&&o.setState(n)})}var t=function(n,i){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,i),this.isLoading=!1};t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(n){var t="disabled",i=this.$element,o=i.is("input")?"val":"html",a=i.data();n+="Text",null==a.resetText&&i.data("resetText",i[o]()),setTimeout(e.proxy(function(){i[o](null==a[n]?this.options[n]:a[n]),"loadingText"==n?(this.isLoading=!0,i.addClass(t).attr(t,t).prop(t,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(t).removeAttr(t).prop(t,!1))},this),0)},t.prototype.toggle=function(){var e=!0,n=this.$element.closest('[data-toggle="buttons"]');if(n.length){var t=this.$element.find("input");"radio"==t.prop("type")?(t.prop("checked")&&(e=!1),n.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==t.prop("type")&&(t.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),t.prop("checked",this.$element.hasClass("active")),e&&t.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var i=e(t.target).closest(".btn");n.call(i,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(n){e(n.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(n.type))})}(jQuery),function(e){"use strict";function n(n){return this.each(function(){var i=e(this),o=i.data("bs.carousel"),a=e.extend({},t.DEFAULTS,i.data(),"object"==typeof n&&n),r="string"==typeof n?n:a.slide;o||i.data("bs.carousel",o=new t(this,a)),"number"==typeof n?o.to(n):r?o[r]():a.interval&&o.pause().cycle()})}var t=function(n,t){this.$element=e(n),this.$indicators=this.$element.find(".carousel-indicators"),this.options=t,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(n){return n||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,n){var t=this.getItemIndex(n);if(("prev"==e&&0===t||"next"==e&&t==this.$items.length-1)&&!this.options.wrap)return n;var i=(t+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(i)},t.prototype.to=function(e){var n=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){n.to(e)}):t==e?this.pause().cycle():this.slide(t<e?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(n){return n||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,i){var o=this.$element.find(".item.active"),a=i||this.getItemForDirection(n,o),r=this.interval,l="next"==n?"left":"right",s=this;if(a.hasClass("active"))return this.sliding=!1;var c=a[0],d=e.Event("slide.bs.carousel",{relatedTarget:c,direction:l});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var p=e(this.$indicators.children()[this.getItemIndex(a)]);p&&p.addClass("active")}var u=e.Event("slid.bs.carousel",{relatedTarget:c,direction:l});return e.support.transition&&this.$element.hasClass("slide")?(a.addClass(n),"object"==typeof a&&a.length&&a[0].offsetWidth,o.addClass(l),a.addClass(l),o.one("bsTransitionEnd",function(){a.removeClass([n,l].join(" ")).addClass("active"),o.removeClass(["active",l].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger(u)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(o.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(u)),r&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this};var o=function(t){var i=e(this),o=i.attr("href");o&&(o=o.replace(/.*(?=#[^\s]+$)/,""));var a=i.attr("data-target")||o,r=e(document).find(a);if(r.hasClass("carousel")){var l=e.extend({},r.data(),i.data()),s=i.attr("data-slide-to");s&&(l.interval=!1),n.call(r,l),s&&r.data("bs.carousel").to(s),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),function(e){"use strict";function n(n){var t,i=n.attr("data-target")||(t=n.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(i)}function t(n){return this.each(function(){var t=e(this),o=t.data("bs.collapse"),a=e.extend({},i.DEFAULTS,t.data(),"object"==typeof n&&n);!o&&a.toggle&&/show|hide/.test(n)&&(a.toggle=!1),o||t.data("bs.collapse",o=new i(this,a)),"string"==typeof n&&o[n]()})}var i=function(n,t){this.$element=e(n),this.options=e.extend({},i.DEFAULTS,t),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.4.1",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(n=o.data("bs.collapse"))&&n.transitioning)){var a=e.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){o&&o.length&&(t.call(o,"hide"),n||o.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var l=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return l.call(this);var s=e.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",e.proxy(l,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[r](this.$element[0][s])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var t=this.dimension();this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return o.call(this);this.$element[t](0).one("bsTransitionEnd",e.proxy(o,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(t,i){var o=e(i);this.addAriaAndCollapsedClass(n(o),o)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,n){var t=e.hasClass("in");e.attr("aria-expanded",t),n.toggleClass("collapsed",!t).attr("aria-expanded",t)};var o=e.fn.collapse;e.fn.collapse=t,e.fn.collapse.Constructor=i,e.fn.collapse.noConflict=function(){return e.fn.collapse=o,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o=e(this);o.attr("data-target")||i.preventDefault();var a=n(o),r=a.data("bs.collapse")?"toggle":o.data();t.call(a,r)})}(jQuery),function(e){"use strict";function n(n){var t=n.attr("data-target");t||(t=(t=n.attr("href"))&&/#[A-Za-z]/.test(t)&&t.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==t?e(document).find(t):null;return i&&i.length?i:n.parent()}function t(t){t&&3===t.which||(e(".dropdown-backdrop").remove(),e(i).each(function(){var i=e(this),o=n(i),a={relatedTarget:this};o.hasClass("open")&&(t&&"click"==t.type&&/input|textarea/i.test(t.target.tagName)&&e.contains(o[0],t.target)||(o.trigger(t=e.Event("hide.bs.dropdown",a)),t.isDefaultPrevented()||(i.attr("aria-expanded","false"),o.removeClass("open").trigger(e.Event("hidden.bs.dropdown",a)))))}))}var i='[data-toggle="dropdown"]',o=function(n){e(n).on("click.bs.dropdown",this.toggle)};o.VERSION="3.4.1",o.prototype.toggle=function(i){var o=e(this);if(!o.is(".disabled, :disabled")){var a=n(o),r=a.hasClass("open");if(t(),!r){"ontouchstart"in document.documentElement&&!a.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",t);var l={relatedTarget:this};if(a.trigger(i=e.Event("show.bs.dropdown",l)),i.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),a.toggleClass("open").trigger(e.Event("shown.bs.dropdown",l))}return!1}},o.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var o=e(this);if(t.preventDefault(),t.stopPropagation(),!o.is(".disabled, :disabled")){var a=n(o),r=a.hasClass("open");if(!r&&27!=t.which||r&&27==t.which)return 27==t.which&&a.find(i).trigger("focus"),o.trigger("click");var l=a.find(".dropdown-menu li:not(.disabled):visible a");if(l.length){var s=l.index(t.target);38==t.which&&0<s&&s--,40==t.which&&s<l.length-1&&s++,~s||(s=0),l.eq(s).trigger("focus")}}}};var a=e.fn.dropdown;e.fn.dropdown=function(n){return this.each(function(){var t=e(this),i=t.data("bs.dropdown");i||t.data("bs.dropdown",i=new o(this)),"string"==typeof n&&i[n].call(t)})},e.fn.dropdown.Constructor=o,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=a,this},e(document).on("click.bs.dropdown.data-api",t).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",i,o.prototype.toggle).on("keydown.bs.dropdown.data-api",i,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),function(e){"use strict";function n(n,i){return this.each(function(){var o=e(this),a=o.data("bs.modal"),r=e.extend({},t.DEFAULTS,o.data(),"object"==typeof n&&n);a||o.data("bs.modal",a=new t(this,r)),"string"==typeof n?a[n](i):r.show&&a.show(i)})}var t=function(n,t){this.options=t,this.$body=e(document.body),this.$element=e(n),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};t.VERSION="3.4.1",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(n){var i=this,o=e.Event("show.bs.modal",{relatedTarget:n})
;this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(n){e(n.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var o=e.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),o&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var a=e.Event("shown.bs.modal",{relatedTarget:n});o?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(t.TRANSITION_DURATION):i.$element.trigger("focus").trigger(a)}))},t.prototype.hide=function(n){n&&n.preventDefault(),n=e.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(n){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=e.support.transition&&o;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;a?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){i.removeBackdrop(),n&&n()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):r()}else n&&n()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var n=document.documentElement.getBoundingClientRect();e=n.right-Math.abs(n.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var t=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",n+t),e(this.fixedContent).each(function(n,i){var o=i.style.paddingRight,a=e(i).css("padding-right");e(i).data("padding-right",o).css("padding-right",parseFloat(a)+t+"px")}))},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),e(this.fixedContent).each(function(n,t){var i=e(t).data("padding-right");e(t).removeData("padding-right"),t.style.paddingRight=i||""})},t.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var n=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),n};var i=e.fn.modal;e.fn.modal=n,e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=i,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=e(this),o=i.attr("href"),a=i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,""),r=e(document).find(a),l=r.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(o)&&o},r.data(),i.data());i.is("a")&&t.preventDefault(),r.one("show.bs.modal",function(e){e.isDefaultPrevented()||r.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),n.call(r,l,this)})}(jQuery),function(e){"use strict";function n(n,t){var i=n.nodeName.toLowerCase();if(-1!==e.inArray(i,t))return-1===e.inArray(i,o)||Boolean(n.nodeValue.match(r)||n.nodeValue.match(l));for(var a=e(t).filter(function(e,n){return n instanceof RegExp}),s=0,c=a.length;s<c;s++)if(i.match(a[s]))return!0;return!1}function t(t,i,o){if(0===t.length)return t;if(o&&"function"==typeof o)return o(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;var a=document.implementation.createHTMLDocument("sanitization");a.body.innerHTML=t;for(var r=e.map(i,function(e,n){return n}),l=e(a.body).find("*"),s=0,c=l.length;s<c;s++){var d=l[s],p=d.nodeName.toLowerCase();if(-1!==e.inArray(p,r))for(var u=e.map(d.attributes,function(e){return e}),f=[].concat(i["*"]||[],i[p]||[]),h=0,v=u.length;h<v;h++)n(u[h],f)||d.removeAttribute(u[h].nodeName);else d.parentNode.removeChild(d)}return a.body.innerHTML}var i=["sanitize","whiteList","sanitizeFn"],o=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],a={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},r=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,l=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,s=function(e,n){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,n)};s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:a},s.prototype.init=function(n,t,i){if(this.enabled=!0,this.type=n,this.$element=e(t),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),a=o.length;a--;){var r=o[a];if("click"==r)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=r){var l="hover"==r?"mouseenter":"focusin",s="hover"==r?"mouseleave":"focusout";this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},s.prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.getOptions=function(n){var o=this.$element.data();for(var a in o)o.hasOwnProperty(a)&&-1!==e.inArray(a,i)&&delete o[a];return(n=e.extend({},this.getDefaults(),o,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=t(n.template,n.whiteList,n.sanitizeFn)),n},s.prototype.getDelegateOptions=function(){var n={},t=this.getDefaults();return this._options&&e.each(this._options,function(e,i){t[e]!=i&&(n[e]=i)}),n},s.prototype.enter=function(n){var t=n instanceof this.constructor?n:e(n.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(n.currentTarget,this.getDelegateOptions()),e(n.currentTarget).data("bs."+this.type,t)),n instanceof e.Event&&(t.inState["focusin"==n.type?"focus":"hover"]=!0),t.tip().hasClass("in")||"in"==t.hoverState)t.hoverState="in";else{if(clearTimeout(t.timeout),t.hoverState="in",!t.options.delay||!t.options.delay.show)return t.show();t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)}},s.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},s.prototype.leave=function(n){var t=n instanceof this.constructor?n:e(n.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(n.currentTarget,this.getDelegateOptions()),e(n.currentTarget).data("bs."+this.type,t)),n instanceof e.Event&&(t.inState["focusout"==n.type?"focus":"hover"]=!1),!t.isInStateTrue()){if(clearTimeout(t.timeout),t.hoverState="out",!t.options.delay||!t.options.delay.hide)return t.hide();t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)}},s.prototype.show=function(){var n=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var t=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!t)return;var i=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(r);c&&(r=r.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?o.appendTo(e(document).find(this.options.container)):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var d=this.getPosition(),p=o[0].offsetWidth,u=o[0].offsetHeight;if(c){var f=r,h=this.getPosition(this.$viewport);r="bottom"==r&&d.bottom+u>h.bottom?"top":"top"==r&&d.top-u<h.top?"bottom":"right"==r&&d.right+p>h.width?"left":"left"==r&&d.left-p<h.left?"right":r,o.removeClass(f).addClass(r)}var v=this.getCalculatedOffset(r,d,p,u);this.applyPlacement(v,r);var g=function(){var e=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==e&&i.leave(i)};e.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",g).emulateTransitionEnd(s.TRANSITION_DURATION):g()}},s.prototype.applyPlacement=function(n,t){var i=this.tip(),o=i[0].offsetWidth,a=i[0].offsetHeight,r=parseInt(i.css("margin-top"),10),l=parseInt(i.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(l)&&(l=0),n.top+=r,n.left+=l,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},n),0),i.addClass("in");var s=i[0].offsetWidth,c=i[0].offsetHeight;"top"==t&&c!=a&&(n.top=n.top+a-c);var d=this.getViewportAdjustedDelta(t,n,s,c);d.left?n.left+=d.left:n.top+=d.top;var p=/top|bottom/.test(t),u=p?2*d.left-o+s:2*d.top-a+c,f=p?"offsetWidth":"offsetHeight";i.offset(n),this.replaceArrow(u,i[0][f],p)},s.prototype.replaceArrow=function(e,n,t){this.arrow().css(t?"left":"top",50*(1-e/n)+"%").css(t?"top":"left","")},s.prototype.setContent=function(){var e=this.tip(),n=this.getTitle();this.options.html?(this.options.sanitize&&(n=t(n,this.options.whiteList,this.options.sanitizeFn)),e.find(".tooltip-inner").html(n)):e.find(".tooltip-inner").text(n),e.removeClass("fade in top bottom left right")},s.prototype.hide=function(n){function t(){"in"!=i.hoverState&&o.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),n&&n()}var i=this,o=e(this.$tip),a=e.Event("hide.bs."+this.type);if(this.$element.trigger(a),!a.isDefaultPrevented())return o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",t).emulateTransitionEnd(s.TRANSITION_DURATION):t(),this.hoverState=null,this},s.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},s.prototype.hasContent=function(){return this.getTitle()},s.prototype.getPosition=function(n){var t=(n=n||this.$element)[0],i="BODY"==t.tagName,o=t.getBoundingClientRect();null==o.width&&(o=e.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var a=window.SVGElement&&t instanceof window.SVGElement,r=i?{top:0,left:0}:a?null:n.offset(),l={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:n.scrollTop()},s=i?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},o,l,s,r)},s.prototype.getCalculatedOffset=function(e,n,t,i){return"bottom"==e?{top:n.top+n.height,left:n.left+n.width/2-t/2}:"top"==e?{top:n.top-i,left:n.left+n.width/2-t/2}:"left"==e?{top:n.top+n.height/2-i/2,left:n.left-t}:{top:n.top+n.height/2-i/2,left:n.left+n.width}},s.prototype.getViewportAdjustedDelta=function(e,n,t,i){var o={top:0,left:0};if(!this.$viewport)return o;var a=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(e)){var l=n.top-a-r.scroll,s=n.top+a-r.scroll+i;l<r.top?o.top=r.top-l:s>r.top+r.height&&(o.top=r.top+r.height-s)}else{var c=n.left-a,d=n.left+a+t;c<r.left?o.left=r.left-c:d>r.right&&(o.left=r.left+r.width-d)}return o},s.prototype.getTitle=function(){var e=this.$element,n=this.options;return e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},s.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},s.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},s.prototype.enable=function(){this.enabled=!0},s.prototype.disable=function(){this.enabled=!1},s.prototype.toggleEnabled=function(){this.enabled=!this.enabled},s.prototype.toggle=function(n){var t=this;n&&((t=e(n.currentTarget).data("bs."+this.type))||(t=new this.constructor(n.currentTarget,this.getDelegateOptions()),e(n.currentTarget).data("bs."+this.type,t))),n?(t.inState.click=!t.inState.click,t.isInStateTrue()?t.enter(t):t.leave(t)):t.tip().hasClass("in")?t.leave(t):t.enter(t)},s.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})},s.prototype.sanitizeHtml=function(e){return t(e,this.options.whiteList,this.options.sanitizeFn)};var c=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var t=e(this),i=t.data("bs.tooltip"),o="object"==typeof n&&n;!i&&/destroy|hide/.test(n)||(i||t.data("bs.tooltip",i=new s(this,o)),"string"==typeof n&&i[n]())})},e.fn.tooltip.Constructor=s,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=c,this}}(jQuery),function(e){"use strict";var n=function(e,n){this.init("popover",e,n)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.4.1",n.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((n.prototype=e.extend({},e.fn.tooltip.Constructor.prototype)).constructor=n).prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var e=this.tip(),n=this.getTitle(),t=this.getContent();if(this.options.html){var i=typeof t;this.options.sanitize&&(n=this.sanitizeHtml(n),"string"===i&&(t=this.sanitizeHtml(t))),e.find(".popover-title").html(n),e.find(".popover-content").children().detach().end()["string"===i?"html":"append"](t)}else e.find(".popover-title").text(n),e.find(".popover-content").children().detach().end().text(t);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var e=this.$element,n=this.options;return e.attr("data-content")||("function"==typeof n.content?n.content.call(e[0]):n.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=e.fn.popover;e.fn.popover=function(t){return this.each(function(){var i=e(this),o=i.data("bs.popover"),a="object"==typeof t&&t;!o&&/destroy|hide/.test(t)||(o||i.data("bs.popover",o=new n(this,a)),"string"==typeof t&&o[t]())})},e.fn.popover.Constructor=n,e.fn.popover.noConflict=function(){return e.fn.popover=t,this}}(jQuery),function(e){"use strict";function n(t,i){this.$body=e(document.body),this.$scrollElement=e(e(t).is(document.body)?window:t),this.options=e.extend({},n.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function t(t){return this.each(function(){var i=e(this),o=i.data("bs.scrollspy"),a="object"==typeof t&&t;o||i.data("bs.scrollspy",o=new n(this,a)),"string"==typeof t&&o[t]()})}n.VERSION="3.4.1",n.DEFAULTS={offset:10},n.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},n.prototype.refresh=function(){var n=this,t="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(t="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var n=e(this),o=n.data("target")||n.attr("href"),a=/^#./.test(o)&&e(o);return a&&a.length&&a.is(":visible")&&[[a[t]().top+i,o]]||null}).sort(function(e,n){return e[0]-n[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},n.prototype.process=function(){var e,n=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),i=this.options.offset+t-this.$scrollElement.height(),o=this.offsets,a=this.targets,r=this.activeTarget;if(this.scrollHeight!=t&&this.refresh(),i<=n)return r!=(e=a[a.length-1])&&this.activate(e);if(r&&n<o[0])return this.activeTarget=null,this.clear();for(e=o.length;e--;)r!=a[e]&&n>=o[e]&&(void 0===o[e+1]||n<o[e+1])&&this.activate(a[e])},n.prototype.activate=function(n){this.activeTarget=n,this.clear();var t=this.selector+'[data-target="'+n+'"],'+this.selector+'[href="'+n+'"]',i=e(t).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},n.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=e.fn.scrollspy;e.fn.scrollspy=t,e.fn.scrollspy.Constructor=n,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=i,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var n=e(this);t.call(n,n.data())})})}(jQuery),function(e){"use strict";function n(n){return this.each(function(){var i=e(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new t(this)),"string"==typeof n&&o[n]()})}var t=function(n){this.element=e(n)};t.VERSION="3.4.1",t.TRANSITION_DURATION=150,t.prototype.show=function(){var n=this.element,t=n.closest("ul:not(.dropdown-menu)"),i=n.data("target");if(i||(i=(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!n.parent("li").hasClass("active")){var o=t.find(".active:last a"),a=e.Event("hide.bs.tab",{relatedTarget:n[0]}),r=e.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(a),n.trigger(r),!r.isDefaultPrevented()&&!a.isDefaultPrevented()){var l=e(document).find(i);this.activate(n.closest("li"),t),this.activate(l,l.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:n[0]}),n.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},t.prototype.activate=function(n,i,o){function a(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),l?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}var r=i.find("> .active"),l=o&&e.support.transition&&(r.length&&r.hasClass("fade")||!!i.find("> .fade").length);r.length&&l?r.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),r.removeClass("in")};var i=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var o=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(e){"use strict";function n(n){return this.each(function(){var i=e(this),o=i.data("bs.affix"),a="object"==typeof n&&n;o||i.data("bs.affix",o=new t(this,a)),"string"==typeof n&&o[n]()})}var t=function(n,i){this.options=e.extend({},t.DEFAULTS,i);var o=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=o.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,n,t,i){var o=this.$target.scrollTop(),a=this.$element.offset(),r=this.$target.height();if(null!=t&&"top"==this.affixed)return o<t&&"top";if("bottom"==this.affixed)return null!=t?!(o+this.unpin<=a.top)&&"bottom":!(o+r<=e-i)&&"bottom";var l=null==this.affixed,s=l?o:a.top;return null!=t&&o<=t?"top":null!=i&&e-i<=s+(l?r:n)&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),i=this.options.offset,o=i.top,a=i.bottom,r=Math.max(e(document).height(),e(document.body).height());"object"!=typeof i&&(a=o=i),"function"==typeof o&&(o=i.top(this.$element)),"function"==typeof a&&(a=i.bottom(this.$element));var l=this.getState(r,n,o,a);if(this.affixed!=l){null!=this.unpin&&this.$element.css("top","");var s="affix"+(l?"-"+l:""),c=e.Event(s+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(s).trigger(s.replace("affix","affixed")+".bs.affix")}"bottom"==l&&this.$element.offset({top:r-n-a})}};var i=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=i,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),i=t.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),n.call(t,i)})})}(jQuery),define("bootstrap",["jquery"],function(){}),define("views/component",["jquery","underscore","backbone","text!templates/app/recaptcha.html","text!templates/popover/popover-main.html","text!templates/popover/popover-input.html","text!templates/popover/popover-number.html","text!templates/popover/popover-select.html","text!templates/popover/popover-textarea.html","text!templates/popover/popover-textarea-split.html","text!templates/popover/popover-checkbox.html","text!templates/popover/popover-choice.html","templates/component/templates","bootstrap"],function(e,n,t,i,o,a,r,l,s,c,d,p,u){return t.View.extend({tagName:"div",className:"component",initialize:function(){this.template=n.template(u[this.model.get("name")]),this.recaptchaTemplate=n.template(i),this.popoverTemplates={input:n.template(a),number:n.template(r),select:n.template(l),textarea:n.template(s),"textarea-split":n.template(c),checkbox:n.template(d),choice:n.template(p)},this.htmlCode=""},close:function(){this.undelegateEvents(),this.$el.removeData().unbind(),this.remove()},render:function(e,t){var i=this,o=this.model.getValues(),a="",r="";if(!n.isUndefined(o.containerClass)){a=i.model.getField("containerClass");var l=a.match(/col(-12|-11|-10|-[1-9])?/g);n.isNull(l)&&(a="col-12"),e?(l=a.match(/col(-xs|-sm|-md|-lg|-xl|-xll)?(-12|-11|-10|-[1-9])?/g),n.isNull(l)?r="col-12":n.each(l,function(e){r=r.trim()+" "+e,a=a.replace(e,"")}),o.containerClass=a.trim()):o.containerClass=a}if(e){var s=i.model.get("name"),c="";["heading","paragraph","snippet","recaptcha","pagebreak","spacer"].includes(s)||(c='<div class="float-end">',c+='  <div class="dropdown">',c+='    <a class="dropdown-toggle" data-bs-toggle="dropdown" href="#"><span class="fas fa-ellipsis-v"></span></a>',c+='    <div class="dropdown-menu dropdown-menu-end">',c+='      <a href="#" id="copy-id" class="dropdown-item"><span class="dropdown-item-icon"><span class="far fa-copy"></span></span> '+polyglot.t("popover.copyID")+"</a>",c+="    </div>",c+="  </div>",c+="</div>"),this.$el.html(i.template({field:o,layout:t.layoutSelected})).attr({class:"component component-"+i.model.get("name")+" "+r,"data-title":polyglot.t(i.model.get("title"))+c,"data-name":polyglot.t(i.model.get("title")),"data-trigger":"manual","data-placement":"right","data-container":"body","data-html":!0})}else{if("recaptcha"===i.model.get("name"))return o.siteKey=options.reCaptchaSiteKey,this.htmlCode=i.recaptchaTemplate({field:o,layout:t.layoutSelected}),this;this.htmlCode=i.template({field:o,layout:t.layoutSelected})}return this},getPopoverContent:function(){var e=this,t={},i={};n.each(this.model.get("fields"),function(e,n){!0===e.advanced?i[n]=e:t[n]=e});var a=n.reduce(t,function(n,t,i){return t.name=i,n+e.popoverTemplates[t.type](t)},""),r=n.reduce(i,function(n,t,i){return t.name=i,n+e.popoverTemplates[t.type](t)},"");return n.template(o)({title:polyglot.t(e.model.get("title")),id:e.model.getField("id"),type:e.model.getType(),basicFields:a,advancedFields:r})}})}),define("text!templates/widget/checkbox.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-check-square" aria-hidden="true"></span> {{= polyglot.t(\'widget.checkbox\') }}</span>'}),define("text!templates/widget/file.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-cloud-upload" aria-hidden="true"></span> {{= polyglot.t(\'widget.file\') }}</span>'}),define("text!templates/widget/heading.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-heading" aria-hidden="true"></span> {{= polyglot.t(\'widget.heading\') }}</span>'}),define("text!templates/widget/paragraph.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-align-left" aria-hidden="true"></span> {{= polyglot.t(\'widget.paragraph\') }}</span>'}),define("text!templates/widget/radio.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-record-vinyl" aria-hidden="true"></span> {{= polyglot.t(\'widget.radio\') }}</span>'}),define("text!templates/widget/selectlist.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-caret-square-down" aria-hidden="true"></span> {{= polyglot.t(\'widget.selectList\') }}</span>'}),define("text!templates/widget/textarea.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="fal fa-edit" aria-hidden="true"></span> {{= polyglot.t(\'widget.textArea\') }}</span>'}),define("text!templates/widget/text.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-text-width" aria-hidden="true"></span> {{= polyglot.t(\'widget.text\') }}</span>'}),define("text!templates/widget/snippet.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-code" aria-hidden="true"></span> {{= polyglot.t(\'widget.snippet\') }}</span>\n'}),define("text!templates/widget/recaptcha.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-shield-alt" aria-hidden="true"></span> {{= polyglot.t(\'widget.recaptcha\') }}</span>\n'}),define("text!templates/widget/number.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="number-icon" aria-hidden="true">123</span> {{= polyglot.t(\'widget.number\') }}</span>'}),define("text!templates/widget/date.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-calendar-alt" aria-hidden="true"></span> {{= polyglot.t(\'widget.date\') }}</span>'}),define("text!templates/widget/email.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-envelope" aria-hidden="true"></span> {{= polyglot.t(\'widget.email\') }}</span>'}),define("text!templates/widget/hidden.html",[],function(){return'<span class="btn btn-widget"><span class="far fa-sunglasses" aria-hidden="true"></span> {{= polyglot.t(\'widget.hidden\') }}</span>'}),define("text!templates/widget/pagebreak.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-cut" aria-hidden="true"></span> {{= polyglot.t(\'widget.pageBreak\') }}</span>'}),define("text!templates/widget/spacer.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-arrows-alt-v" aria-hidden="true"></span> {{= polyglot.t(\'widget.spacer\') }}</span>'}),define("text!templates/widget/signature.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-pen-alt" aria-hidden="true"></span> {{= polyglot.t(\'widget.signature\') }}</span>'}),define("text!templates/widget/matrix.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="fal fa-table" aria-hidden="true"></span> {{= polyglot.t(\'widget.matrix\') }} </span>\n'}),define("text!templates/widget/nps.html",[],function(){return"<span class=\"btn btn-default btn-widget\"><small>{{= polyglot.t('widget.nps') }}</small></span>"}),define("text!templates/widget/button.html",[],function(){return'<span class="btn btn-default btn-widget"><span class="far fa-check" aria-hidden="true"></span> {{= polyglot.t(\'widget.button\') }}</span>'}),
define("templates/widget/templates",["require","text!templates/widget/checkbox.html","text!templates/widget/file.html","text!templates/widget/heading.html","text!templates/widget/paragraph.html","text!templates/widget/radio.html","text!templates/widget/selectlist.html","text!templates/widget/textarea.html","text!templates/widget/text.html","text!templates/widget/snippet.html","text!templates/widget/recaptcha.html","text!templates/widget/number.html","text!templates/widget/date.html","text!templates/widget/email.html","text!templates/widget/hidden.html","text!templates/widget/pagebreak.html","text!templates/widget/spacer.html","text!templates/widget/signature.html","text!templates/widget/matrix.html","text!templates/widget/nps.html","text!templates/widget/button.html"],function(e){var n=e("text!templates/widget/checkbox.html"),t=e("text!templates/widget/file.html"),i=e("text!templates/widget/heading.html"),o=e("text!templates/widget/paragraph.html"),a=e("text!templates/widget/radio.html"),r=e("text!templates/widget/selectlist.html"),l=e("text!templates/widget/textarea.html"),s=e("text!templates/widget/text.html"),c=e("text!templates/widget/snippet.html"),d=e("text!templates/widget/recaptcha.html"),p=e("text!templates/widget/number.html");return{checkbox:n,file:t,heading:i,paragraph:o,radio:a,selectlist:r,textarea:l,text:s,date:e("text!templates/widget/date.html"),email:e("text!templates/widget/email.html"),snippet:c,recaptcha:d,number:p,hidden:e("text!templates/widget/hidden.html"),pagebreak:e("text!templates/widget/pagebreak.html"),spacer:e("text!templates/widget/spacer.html"),signature:e("text!templates/widget/signature.html"),matrix:e("text!templates/widget/matrix.html"),nps:e("text!templates/widget/nps.html"),button:e("text!templates/widget/button.html")}}),define("views/widget",["jquery","underscore","backbone","text!templates/popover/popover-main.html","text!templates/popover/popover-input.html","text!templates/popover/popover-select.html","text!templates/popover/popover-textarea.html","text!templates/popover/popover-textarea-split.html","text!templates/popover/popover-checkbox.html","../templates/widget/templates","bootstrap"],function(e,n,t,i,o,a,r,l,s,c){return t.View.extend({tagName:"div",className:"widget",initialize:function(){this.template=n.template(c[this.model.get("name")])},render:function(){var e=this;return this.$el.html(e.template(e.model.getValues()))}})}),define("text!templates/app/temp.html",[],function(){return"<form id='temp'>\n  {{= text }}\n</form>\n"}),define("helper/pubsub",["jquery","underscore","backbone"],function(e,n,t){return n.extend({},t.Events)}),define("views/temp-widget",["jquery","underscore","views/widget","text!templates/app/temp.html","helper/pubsub"],function(e,n,t,i,o){return t.extend({initialize:function(){o.on("newTempPostRender",this.postRender,this),o.on("cancelTempPostRender",this.cancelPostRender,this),this.constructor.__super__.initialize.call(this),this.tempTemplate=n.template(i)},id:"temp-widget",className:"temp",render:function(){return this.$el.html(this.tempTemplate({text:this.constructor.__super__.render.call(this).html()}))},close:function(){this.undelegateEvents(),this.$el.removeData().unbind(),o.off("newTempPostRender"),o.off("cancelTempPostRender"),this.remove()},postRender:function(e){this.tempForm=this.$el.find("form")[0],this.halfHeight=Math.floor(this.tempForm.clientHeight/2),this.halfWidth=Math.floor(this.tempForm.clientWidth/2),this.centerOnEvent(e)},events:{mousemove:"mouseMoveHandler",mouseup:"mouseUpHandler"},centerOnEvent:function(e){var n=e.pageX,t=e.pageY;this.tempForm.style.top=t-this.halfHeight+"px",this.tempForm.style.left=n-this.halfWidth+"px",o.trigger("tempMove",e,this.model)},mouseMoveHandler:function(e){e.preventDefault(),this.centerOnEvent(e)},mouseUpHandler:function(e){e.preventDefault(),o.trigger("tempDrop",e,this.model),this.close()},cancelPostRender:function(e){n.isUndefined(e.keyCode)||27!==e.keyCode||(o.trigger("cancelTempMove",this.model),this.close())}})}),define("views/tab-component",["jquery","underscore","backbone","models/component","views/component","views/temp-widget","helper/pubsub"],function(e,n,t,i,o,a,r){return o.extend({events:{mousedown:"mouseDownHandler"},mouseDownHandler:function(n){n.preventDefault(),n.stopPropagation(),e(".popover").hide(),e("body").append(new a({model:new i(e.extend(!0,{},this.model.attributes))}).render()),r.trigger("newTempPostRender",n)}})}),define("views/tab-widget",["jquery","underscore","backbone","models/component","views/widget","views/temp-widget","helper/pubsub"],function(e,n,t,i,o,a,r){return o.extend({events:{mousedown:"mouseDownHandler",mousemove:"mouseMoveHandler",mouseup:"mouseUpHandler",click:"clickHandler"},mouseDownHandler:function(e){e.preventDefault(),e.stopPropagation(),this.flag=1,this.mouseDownEvent=e},mouseMoveHandler:function(n){1===this.flag&&(e(".popover").hide(),e("body").append(new a({model:new i(e.extend(!0,{},this.model.attributes))}).render()),r.trigger("newTempPostRender",this.mouseDownEvent),this.flag=2)},mouseUpHandler:function(e){this.flag=0,this.mouseDownEvent=null},clickHandler:function(n){r.trigger("widgetClick",n,new i(e.extend(!0,{},this.model.attributes)))}})}),define("collections/components",["jquery","underscore","backbone","models/component","views/tab-component","views/tab-widget"],function(e,n,t,i,o,a){return t.Collection.extend({model:i,renderAll:function(){return this.map(function(e){return new o({model:e}).render()})},renderAllAsWidgets:function(){return this.map(function(e){return new a({model:e}).render()})}})}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define("simplebar",n):(e=e||self).SimpleBar=n()}(this,function(){"use strict";function e(e,n){return e(n={exports:{}},n.exports),n.exports}function n(e,n,o){function a(n){var t=d,i=p;return d=p=void 0,g=n,f=e.apply(i,t)}function r(e){var t=e-v;return void 0===v||t>=n||t<0||b&&e-g>=u}function l(){var e=Ni();if(r(e))return s(e);h=setTimeout(l,function(e){var t=n-(e-v);return b?Mi(t,u-(e-g)):t}(e))}function s(e){return h=void 0,y&&d?a(e):(d=p=void 0,f)}function c(){var e=Ni(),t=r(e);if(d=arguments,p=this,v=e,t){if(void 0===h)return function(e){return g=e,h=setTimeout(l,n),m?a(e):f}(v);if(b)return h=setTimeout(l,n),a(v)}return void 0===h&&(h=setTimeout(l,n)),f}var d,p,u,f,h,v,g=0,m=!1,b=!1,y=!0;if("function"!=typeof e)throw new TypeError(wi);return n=i(n)||0,t(o)&&(m=!!o.leading,u=(b="maxWait"in o)?Bi(i(o.maxWait)||0,n):u,y="trailing"in o?!!o.trailing:y),c.cancel=function(){void 0!==h&&clearTimeout(h),g=0,d=v=p=h=void 0},c.flush=function(){return void 0===h?f:s(Ni())},c}function t(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}function i(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&Pi.call(e)==Ci}(e))return ki;if(t(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=t(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Si,"");var i=Ei.test(e);return i||_i.test(e)?Ai(e.slice(2),i?2:8):Ti.test(e)?ki:+e}function o(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}function a(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&Gi.call(e)==Li}(e))return Ri;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(qi,"");var t=Ii.test(e);return t||Hi.test(e)?zi(e.slice(2),t?2:8):$i.test(e)?Ri:+e}function r(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}function l(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}function s(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}function c(e,n){for(var t,i,o=e.length;o--;)if((t=e[o][0])===(i=n)||t!=t&&i!=i)return o;return-1}function d(e){return!(!h(e)||(n=e,po&&po in n))&&(function(e){var n=h(e)?ho.call(e):"";return n==eo||n==no}(e)||function(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}(e)?vo:to).test(function(e){if(null!=e){try{return uo.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var n}function p(e,n){var t,i,o=e.__data__;return("string"==(i=typeof(t=n))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==t:null===t)?o["string"==typeof n?"string":"hash"]:o.map}function u(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return d(t)?t:void 0}function f(e,n){if("function"!=typeof e||n&&"function"!=typeof n)throw new TypeError(Qi);var t=function(){var i=arguments,o=n?n.apply(this,i):i[0],a=t.cache;if(a.has(o))return a.get(o);var r=e.apply(this,i);return t.cache=a.set(o,r),r};return t.cache=new(f.Cache||s),t}function h(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}function v(e){return parseFloat(e)||0}function g(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return n.reduce(function(n,t){return n+v(e["border-"+t+"-width"])},0)}function m(e){var n=e.clientWidth,t=e.clientHeight;if(!n&&!t)return Fo;var i=Do(e).getComputedStyle(e),o=function(e){for(var n={},t=0,i=["top","right","bottom","left"];t<i.length;t++){var o=i[t],a=e["padding-"+o];n[o]=v(a)}return n}(i),a=o.left+o.right,r=o.top+o.bottom,l=v(i.width),s=v(i.height);if("border-box"===i.boxSizing&&(Math.round(l+a)!==n&&(l-=g(i,"left","right")+a),Math.round(s+r)!==t&&(s-=g(i,"top","bottom")+r)),!function(e){return e===Do(e).document.documentElement}(e)){var c=Math.round(l+a)-n,d=Math.round(s+r)-t;1!==Math.abs(c)&&(l-=c),1!==Math.abs(d)&&(s-=d)}return y(o.left,o.top,l,s)}function b(e){return wo?Po(e)?function(e){var n=e.getBBox();return y(0,0,n.width,n.height)}(e):m(e):Fo}function y(e,n,t,i){return{x:e,y:n,width:t,height:i}}function x(){if(null===qo){if("undefined"==typeof document)return qo=0;var e=document.body,n=document.createElement("div");n.classList.add("simplebar-hide-scrollbar"),e.appendChild(n);var t=n.getBoundingClientRect().right;e.removeChild(n),qo=t}return qo}function w(e,n){return RegExp(e,n)}function k(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function C(e){return e&&e.ownerDocument?e.ownerDocument:document}var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},T=function(e){return e&&e.Math==Math&&e},E=T("object"==typeof globalThis&&globalThis)||T("object"==typeof window&&window)||T("object"==typeof self&&self)||T("object"==typeof S&&S)||Function("return this")(),_=function(e){try{return!!e()}catch(e){return!0}},A=!_(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),O={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,F={f:D&&!O.call({1:2},1)?function(e){var n=D(this,e);return!!n&&n.enumerable}:O},P=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}},B={}.toString,M=function(e){return B.call(e).slice(8,-1)},N="".split,j=_(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==M(e)?N.call(e,""):Object(e)}:Object,R=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},L=function(e){return j(R(e))},q=function(e){return"object"==typeof e?null!==e:"function"==typeof e},$=function(e,n){if(!q(e))return e;var t,i;if(n&&"function"==typeof(t=e.toString)&&!q(i=t.call(e)))return i;if("function"==typeof(t=e.valueOf)&&!q(i=t.call(e)))return i;if(!n&&"function"==typeof(t=e.toString)&&!q(i=t.call(e)))return i;throw TypeError("Can't convert object to primitive value")},I={}.hasOwnProperty,H=function(e,n){return I.call(e,n)},z=E.document,W=q(z)&&q(z.createElement),V=function(e){return W?z.createElement(e):{}},U=!A&&!_(function(){return 7!=Object.defineProperty(V("div"),"a",{get:function(){return 7}}).a}),G=Object.getOwnPropertyDescriptor,J={f:A?G:function(e,n){if(e=L(e),n=$(n,!0),U)try{return G(e,n)}catch(e){}if(H(e,n))return P(!F.f.call(e,n),e[n])}},K=function(e){if(!q(e))throw TypeError(String(e)+" is not an object");return e},X=Object.defineProperty,Y={f:A?X:function(e,n,t){if(K(e),n=$(n,!0),K(t),U)try{return X(e,n,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(e[n]=t.value),e}},Q=A?function(e,n,t){return Y.f(e,n,P(1,t))}:function(e,n,t){return e[n]=t,e},Z=function(e,n){try{Q(E,e,n)}catch(t){E[e]=n}return n},ee=E["__core-js_shared__"]||Z("__core-js_shared__",{}),ne=Function.toString;"function"!=typeof ee.inspectSource&&(ee.inspectSource=function(e){return ne.call(e)});var te,ie,oe,ae=ee.inspectSource,re=E.WeakMap,le="function"==typeof re&&/native code/.test(ae(re)),se=e(function(e){(e.exports=function(e,n){return ee[e]||(ee[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),ce=0,de=Math.random(),pe=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++ce+de).toString(36)},ue=se("keys"),fe=function(e){return ue[e]||(ue[e]=pe(e))},he={},ve=E.WeakMap;if(le){var ge=new ve,me=ge.get,be=ge.has,ye=ge.set;te=function(e,n){return ye.call(ge,e,n),n},ie=function(e){return me.call(ge,e)||{}},oe=function(e){return be.call(ge,e)}}else{var xe=fe("state");he[xe]=!0,te=function(e,n){return Q(e,xe,n),n},ie=function(e){return H(e,xe)?e[xe]:{}},oe=function(e){return H(e,xe)}}var we={set:te,get:ie,has:oe,enforce:function(e){return oe(e)?ie(e):te(e,{})},getterFor:function(e){return function(n){var t;if(!q(n)||(t=ie(n)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}}},ke=e(function(e){var n=we.get,t=we.enforce,i=String(String).split("String");(e.exports=function(e,n,o,a){var r=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,s=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof n||H(o,"name")||Q(o,"name",n),t(o).source=i.join("string"==typeof n?n:"")),e!==E?(r?!s&&e[n]&&(l=!0):delete e[n],l?e[n]=o:Q(e,n,o)):l?e[n]=o:Z(n,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&n(this).source||ae(this)})}),Ce=E,Se=function(e){return"function"==typeof e?e:void 0},Te=function(e,n){return arguments.length<2?Se(Ce[e])||Se(E[e]):Ce[e]&&Ce[e][n]||E[e]&&E[e][n]},Ee=Math.ceil,_e=Math.floor,Ae=function(e){return isNaN(e=+e)?0:(e>0?_e:Ee)(e)},Oe=Math.min,De=function(e){return e>0?Oe(Ae(e),9007199254740991):0},Fe=Math.max,Pe=Math.min,Be=function(e){return function(n,t,i){var o,a=L(n),r=De(a.length),l=function(e,n){var t=Ae(e);return t<0?Fe(t+n,0):Pe(t,n)}(i,r);if(e&&t!=t){for(;r>l;)if((o=a[l++])!=o)return!0}else for(;r>l;l++)if((e||l in a)&&a[l]===t)return e||l||0;return!e&&-1}},Me={includes:Be(!0),indexOf:Be(!1)}.indexOf,Ne=function(e,n){var t,i=L(e),o=0,a=[];for(t in i)!H(he,t)&&H(i,t)&&a.push(t);for(;n.length>o;)H(i,t=n[o++])&&(~Me(a,t)||a.push(t));return a},je=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Re=je.concat("length","prototype"),Le={f:Object.getOwnPropertyNames||function(e){return Ne(e,Re)}},qe={f:Object.getOwnPropertySymbols},$e=Te("Reflect","ownKeys")||function(e){var n=Le.f(K(e)),t=qe.f;return t?n.concat(t(e)):n},Ie=function(e,n){for(var t=$e(n),i=Y.f,o=J.f,a=0;a<t.length;a++){var r=t[a];H(e,r)||i(e,r,o(n,r))}},He=/#|\.prototype\./,ze=function(e,n){var t=Ve[We(e)];return t==Ge||t!=Ue&&("function"==typeof n?_(n):!!n)},We=ze.normalize=function(e){return String(e).replace(He,".").toLowerCase()},Ve=ze.data={},Ue=ze.NATIVE="N",Ge=ze.POLYFILL="P",Je=ze,Ke=J.f,Xe=function(e,n){var t,i,o,a,r,l=e.target,s=e.global,c=e.stat;if(t=s?E:c?E[l]||Z(l,{}):(E[l]||{}).prototype)for(i in n){if(a=n[i],o=e.noTargetGet?(r=Ke(t,i))&&r.value:t[i],!Je(s?i:l+(c?".":"#")+i,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Ie(a,o)}(e.sham||o&&o.sham)&&Q(a,"sham",!0),ke(t,i,a,e)}},Ye=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Qe=function(e,n,t){if(Ye(e),void 0===n)return e;switch(t){case 0:return function(){return e.call(n)};case 1:return function(t){return e.call(n,t)};case 2:return function(t,i){return e.call(n,t,i)};case 3:return function(t,i,o){return e.call(n,t,i,o)}}return function(){return e.apply(n,arguments)}},Ze=function(e){return Object(R(e))},en=Array.isArray||function(e){return"Array"==M(e)},nn=!!Object.getOwnPropertySymbols&&!_(function(){return!String(Symbol())}),tn=nn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,on=se("wks"),an=E.Symbol,rn=tn?an:an&&an.withoutSetter||pe,ln=function(e){return H(on,e)||(nn&&H(an,e)?on[e]=an[e]:on[e]=rn("Symbol."+e)),on[e]},sn=ln("species"),cn=function(e,n){var t;return en(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!en(t.prototype)?q(t)&&null===(t=t[sn])&&(t=void 0):t=void 0),new(void 0===t?Array:t)(0===n?0:n)},dn=[].push,pn=function(e){var n=1==e,t=2==e,i=3==e,o=4==e,a=6==e,r=5==e||a;return function(l,s,c,d){for(var p,u,f=Ze(l),h=j(f),v=Qe(s,c,3),g=De(h.length),m=0,b=d||cn,y=n?b(l,g):t?b(l,0):void 0;g>m;m++)if((r||m in h)&&(u=v(p=h[m],m,f),e))if(n)y[m]=u;else if(u)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:dn.call(y,p)}else if(o)return!1;return a?-1:i||o?o:y}},un={forEach:pn(0),map:pn(1),filter:pn(2),some:pn(3),every:pn(4),find:pn(5),findIndex:pn(6)},fn=function(e,n){var t=[][e];return!!t&&_(function(){t.call(null,n||function(){throw 1},1)})},hn=Object.defineProperty,vn={},gn=function(e){throw e},mn=function(e,n){if(H(vn,e))return vn[e];n||(n={});var t=[][e],i=!!H(n,"ACCESSORS")&&n.ACCESSORS,o=H(n,0)?n[0]:gn,a=H(n,1)?n[1]:void 0;return vn[e]=!!t&&!_(function(){if(i&&!A)return!0;var e={length:-1};i?hn(e,1,{enumerable:!0,get:gn}):e[1]=1,t.call(e,o,a)})},bn=un.forEach,yn=fn("forEach"),xn=mn("forEach"),wn=yn&&xn?[].forEach:function(e){return bn(this,e,arguments.length>1?arguments[1]:void 0)};Xe({target:"Array",proto:!0,forced:[].forEach!=wn},{forEach:wn});var kn={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var Cn in kn){var Sn=E[Cn],Tn=Sn&&Sn.prototype;if(Tn&&Tn.forEach!==wn)try{Q(Tn,"forEach",wn)}catch(S){Tn.forEach=wn}}var En,_n,An=!("undefined"==typeof window||!window.document||!window.document.createElement),On=Te("navigator","userAgent")||"",Dn=E.process,Fn=Dn&&Dn.versions,Pn=Fn&&Fn.v8;Pn?_n=(En=Pn.split("."))[0]+En[1]:On&&(!(En=On.match(/Edge\/(\d+)/))||En[1]>=74)&&(En=On.match(/Chrome\/(\d+)/))&&(_n=En[1]);var Bn=_n&&+_n,Mn=ln("species"),Nn=un.filter,jn=function(e){return Bn>=51||!_(function(){var e=[];return(e.constructor={})[Mn]=function(){return{foo:1}},1!==e.filter(Boolean).foo})}(),Rn=mn("filter");Xe({target:"Array",proto:!0,forced:!jn||!Rn},{filter:function(e){return Nn(this,e,arguments.length>1?arguments[1]:void 0)}});var Ln,qn=Object.keys||function(e){return Ne(e,je)},$n=A?Object.defineProperties:function(e,n){K(e);for(var t,i=qn(n),o=i.length,a=0;o>a;)Y.f(e,t=i[a++],n[t]);return e},In=Te("document","documentElement"),Hn=fe("IE_PROTO"),zn=function(){},Wn=function(e){return"<script>"+e+"<\/script>"},Vn=function(){try{Ln=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,n;Vn=Ln?function(e){e.write(Wn("")),e.close();var n=e.parentWindow.Object;return e=null,n}(Ln):((n=V("iframe")).style.display="none",In.appendChild(n),n.src=String("javascript:"),(e=n.contentWindow.document).open(),e.write(Wn("document.F=Object")),e.close(),e.F);for(var t=je.length;t--;)delete Vn.prototype[je[t]];return Vn()};he[Hn]=!0;var Un=Object.create||function(e,n){var t;return null!==e?(zn.prototype=K(e),t=new zn,zn.prototype=null,t[Hn]=e):t=Vn(),void 0===n?t:$n(t,n)},Gn=ln("unscopables"),Jn=Array.prototype;null==Jn[Gn]&&Y.f(Jn,Gn,{configurable:!0,value:Un(null)});var Kn,Xn,Yn,Qn=function(e){Jn[Gn][e]=!0},Zn={},et=!_(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),nt=fe("IE_PROTO"),tt=Object.prototype,it=et?Object.getPrototypeOf:function(e){return e=Ze(e),H(e,nt)?e[nt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?tt:null},ot=ln("iterator"),at=!1;[].keys&&("next"in(Yn=[].keys())?(Xn=it(it(Yn)))!==Object.prototype&&(Kn=Xn):at=!0),null==Kn&&(Kn={}),H(Kn,ot)||Q(Kn,ot,function(){return this});var rt={IteratorPrototype:Kn,BUGGY_SAFARI_ITERATORS:at},lt=Y.f,st=ln("toStringTag"),ct=function(e,n,t){e&&!H(e=t?e:e.prototype,st)&&lt(e,st,{configurable:!0,value:n})},dt=rt.IteratorPrototype,pt=function(){return this},ut=Object.setPrototypeOf||("__proto__"in{}?function(){var e,n=!1,t={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),n=t instanceof Array}catch(e){}return function(t,i){return K(t),function(e){if(!q(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(i),n?e.call(t,i):t.__proto__=i,t}}():void 0),ft=rt.IteratorPrototype,ht=rt.BUGGY_SAFARI_ITERATORS,vt=ln("iterator"),gt=function(){return this},mt=function(e,n,t,i,o,a,r){!function(e,n,t){var i=n+" Iterator";e.prototype=Un(dt,{next:P(1,t)}),ct(e,i,!1),Zn[i]=pt}(t,n,i);var l,s,c,d=function(e){if(e===o&&v)return v;if(!ht&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new t(this,e)}}return function(){return new t(this)}},p=n+" Iterator",u=!1,f=e.prototype,h=f[vt]||f["@@iterator"]||o&&f[o],v=!ht&&h||d(o),g="Array"==n&&f.entries||h;if(g&&(l=it(g.call(new e)),ft!==Object.prototype&&l.next&&(it(l)!==ft&&(ut?ut(l,ft):"function"!=typeof l[vt]&&Q(l,vt,gt)),ct(l,p,!0))),"values"==o&&h&&"values"!==h.name&&(u=!0,v=function(){return h.call(this)}),f[vt]!==v&&Q(f,vt,v),Zn[n]=v,o)if(s={values:d("values"),keys:a?v:d("keys"),entries:d("entries")},r)for(c in s)!ht&&!u&&c in f||ke(f,c,s[c]);else Xe({target:n,proto:!0,forced:ht||u},s);return s},bt=we.set,yt=we.getterFor("Array Iterator"),xt=mt(Array,"Array",function(e,n){bt(this,{type:"Array Iterator",target:L(e),index:0,kind:n})},function(){var e=yt(this),n=e.target,t=e.kind,i=e.index++;return!n||i>=n.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==t?{value:i,done:!1}:"values"==t?{value:n[i],done:!1}:{value:[i,n[i]],done:!1}},"values");Zn.Arguments=Zn.Array,Qn("keys"),Qn("values"),Qn("entries");var wt=Object.assign,kt=Object.defineProperty,Ct=!wt||_(function(){if(A&&1!==wt({b:1},wt(kt({},"a",{enumerable:!0,get:function(){kt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},t=Symbol();return e[t]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),7!=wt({},e)[t]||"abcdefghijklmnopqrst"!=qn(wt({},n)).join("")})?function(e,n){for(var t=Ze(e),i=arguments.length,o=1,a=qe.f,r=F.f;i>o;)for(var l,s=j(arguments[o++]),c=a?qn(s).concat(a(s)):qn(s),d=c.length,p=0;d>p;)l=c[p++],A&&!r.call(s,l)||(t[l]=s[l]);return t}:wt;Xe({target:"Object",stat:!0,forced:Object.assign!==Ct},{assign:Ct});var St={};St[ln("toStringTag")]="z";var Tt="[object z]"===String(St),Et=ln("toStringTag"),_t="Arguments"==M(function(){return arguments}()),At=Tt?M:function(e){var n,t,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,n){try{return e[n]}catch(e){}}(n=Object(e),Et))?t:_t?M(n):"Object"==(i=M(n))&&"function"==typeof n.callee?"Arguments":i},Ot=Tt?{}.toString:function(){return"[object "+At(this)+"]"};Tt||ke(Object.prototype,"toString",Ot,{unsafe:!0});var Dt="\t\n\v\f\r                　\u2028\u2029\ufeff",Ft="["+Dt+"]",Pt=RegExp("^"+Ft+Ft+"*"),Bt=RegExp(Ft+Ft+"*$"),Mt=function(e){return function(n){var t=String(R(n));return 1&e&&(t=t.replace(Pt,"")),2&e&&(t=t.replace(Bt,"")),t}},Nt={start:Mt(1),end:Mt(2),trim:Mt(3)}.trim,jt=E.parseInt,Rt=/^[+-]?0[Xx]/,Lt=8!==jt(Dt+"08")||22!==jt(Dt+"0x16")?function(e,n){var t=Nt(String(e));return jt(t,n>>>0||(Rt.test(t)?16:10))}:jt;Xe({global:!0,forced:parseInt!=Lt},{parseInt:Lt});var qt=function(e){return function(n,t){var i,o,a=String(R(n)),r=Ae(t),l=a.length;return r<0||r>=l?e?"":void 0:(i=a.charCodeAt(r))<55296||i>56319||r+1===l||(o=a.charCodeAt(r+1))<56320||o>57343?e?a.charAt(r):i:e?a.slice(r,r+2):o-56320+(i-55296<<10)+65536}},$t={codeAt:qt(!1),charAt:qt(!0)},It=$t.charAt,Ht=we.set,zt=we.getterFor("String Iterator");mt(String,"String",function(e){Ht(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,n=zt(this),t=n.string,i=n.index;return i>=t.length?{value:void 0,done:!0}:(e=It(t,i),n.index+=e.length,{value:e,done:!1})});var Wt=function(e,n,t){for(var i in n)ke(e,i,n[i],t);return e},Vt=!_(function(){return Object.isExtensible(Object.preventExtensions({}))}),Ut=e(function(e){var n=Y.f,t=pe("meta"),i=0,o=Object.isExtensible||function(){return!0},a=function(e){n(e,t,{value:{objectID:"O"+ ++i,weakData:{}}})},r=e.exports={REQUIRED:!1,fastKey:function(e,n){if(!q(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!H(e,t)){if(!o(e))return"F";if(!n)return"E";a(e)}return e[t].objectID},getWeakData:function(e,n){if(!H(e,t)){if(!o(e))return!0;if(!n)return!1;a(e)}return e[t].weakData},onFreeze:function(e){return Vt&&r.REQUIRED&&o(e)&&!H(e,t)&&a(e),e}};he[t]=!0}),Gt=(Ut.REQUIRED,Ut.fastKey,Ut.getWeakData,Ut.onFreeze,ln("iterator")),Jt=Array.prototype,Kt=ln("iterator"),Xt=function(e,n,t,i){try{return i?n(K(t)[0],t[1]):n(t)}catch(n){var o=e.return;throw void 0!==o&&K(o.call(e)),n}},Yt=e(function(e){var n=function(e,n){this.stopped=e,this.result=n};(e.exports=function(e,t,i,o,a){var r,l,s,c,d,p,u,f,h=Qe(t,i,o?2:1);if(a)r=e;else{if("function"!=typeof(l=function(e){if(null!=e)return e[Kt]||e["@@iterator"]||Zn[At(e)]}(e)))throw TypeError("Target is not iterable");if(void 0!==(f=l)&&(Zn.Array===f||Jt[Gt]===f)){for(s=0,c=De(e.length);c>s;s++)if((d=o?h(K(u=e[s])[0],u[1]):h(e[s]))&&d instanceof n)return d;return new n(!1)}r=l.call(e)}for(p=r.next;!(u=p.call(r)).done;)if("object"==typeof(d=Xt(r,h,u.value,o))&&d&&d instanceof n)return d;return new n(!1)}).stop=function(e){return new n(!0,e)}}),Qt=function(e,n,t){if(!(e instanceof n))throw TypeError("Incorrect "+(t?t+" ":"")+"invocation");return e},Zt=ln("iterator"),ei=!1;try{var ni=0,ti={next:function(){return{done:!!ni++}},return:function(){ei=!0}};ti[Zt]=function(){return this},Array.from(ti,function(){throw 2})}catch(S){}var ii=function(e,n,t){var i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",r=E[e],l=r&&r.prototype,s=r,c={},d=function(e){var n=l[e];ke(l,e,"add"==e?function(e){return n.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!q(e))&&n.call(this,0===e?0:e)}:"get"==e?function(e){return o&&!q(e)?void 0:n.call(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!q(e))&&n.call(this,0===e?0:e)}:function(e,t){return n.call(this,0===e?0:e,t),this})};if(Je(e,"function"!=typeof r||!(o||l.forEach&&!_(function(){(new r).entries().next()}))))s=t.getConstructor(n,e,i,a),Ut.REQUIRED=!0;else if(Je(e,!0)){var p=new s,u=p[a](o?{}:-0,1)!=p,f=_(function(){p.has(1)}),h=function(e,n){if(!ei)return!1;var t=!1;try{var i={};i[Zt]=function(){return{next:function(){return{done:t=!0}}}},function(e){new r(e)}(i)}catch(e){}return t}(),v=!o&&_(function(){for(var e=new r,n=5;n--;)e[a](n,n);return!e.has(-0)});h||((s=n(function(n,t){Qt(n,s,e);var o=function(e,n,t){var i,o;return ut&&"function"==typeof(i=n.constructor)&&i!==t&&q(o=i.prototype)&&o!==t.prototype&&ut(e,o),e}(new r,n,s);return null!=t&&Yt(t,o[a],o,i),o})).prototype=l,l.constructor=s),(f||v)&&(d("delete"),d("has"),i&&d("get")),(v||u)&&d(a),o&&l.clear&&delete l.clear}return c[e]=s,Xe({global:!0,forced:s!=r},c),ct(s,e),o||t.setStrong(s,e,i),s},oi=Ut.getWeakData,ai=we.set,ri=we.getterFor,li=un.find,si=un.findIndex,ci=0,di=function(e){return e.frozen||(e.frozen=new pi)},pi=function(){this.entries=[]},ui=function(e,n){return li(e.entries,function(e){return e[0]===n})};pi.prototype={get:function(e){var n=ui(this,e);if(n)return n[1]},has:function(e){return!!ui(this,e)},set:function(e,n){var t=ui(this,e);t?t[1]=n:this.entries.push([e,n])},delete:function(e){var n=si(this.entries,function(n){return n[0]===e});return~n&&this.entries.splice(n,1),!!~n}};var fi={getConstructor:function(e,n,t,i){var o=e(function(e,a){Qt(e,o,n),ai(e,{type:n,id:ci++,frozen:void 0}),null!=a&&Yt(a,e[i],e,t)}),a=ri(n),r=function(e,n,t){var i=a(e),o=oi(K(n),!0);return!0===o?di(i).set(n,t):o[i.id]=t,e};return Wt(o.prototype,{delete:function(e){var n=a(this);if(!q(e))return!1;var t=oi(e);return!0===t?di(n).delete(e):t&&H(t,n.id)&&delete t[n.id]},has:function(e){var n=a(this);if(!q(e))return!1;var t=oi(e);return!0===t?di(n).has(e):t&&H(t,n.id)}}),Wt(o.prototype,t?{get:function(e){var n=a(this);if(q(e)){var t=oi(e);return!0===t?di(n).get(e):t?t[n.id]:void 0}},set:function(e,n){return r(this,e,n)}}:{add:function(e){return r(this,e,!0)}}),o}},hi=(e(function(e){var n,t=we.enforce,i=!E.ActiveXObject&&"ActiveXObject"in E,o=Object.isExtensible,a=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},r=e.exports=ii("WeakMap",a,fi);if(le&&i){n=fi.getConstructor(a,"WeakMap",!0),Ut.REQUIRED=!0;var l=r.prototype,s=l.delete,c=l.has,d=l.get,p=l.set;Wt(l,{delete:function(e){if(q(e)&&!o(e)){var i=t(this);return i.frozen||(i.frozen=new n),s.call(this,e)||i.frozen.delete(e)}return s.call(this,e)},has:function(e){if(q(e)&&!o(e)){var i=t(this);return i.frozen||(i.frozen=new n),c.call(this,e)||i.frozen.has(e)}return c.call(this,e)},get:function(e){if(q(e)&&!o(e)){var i=t(this);return i.frozen||(i.frozen=new n),c.call(this,e)?d.call(this,e):i.frozen.get(e)}return d.call(this,e)},set:function(e,i){if(q(e)&&!o(e)){var a=t(this);a.frozen||(a.frozen=new n),c.call(this,e)?p.call(this,e,i):a.frozen.set(e,i)}else p.call(this,e,i);return this}})}}),ln("iterator")),vi=ln("toStringTag"),gi=xt.values;for(var mi in kn){var bi=E[mi],yi=bi&&bi.prototype;if(yi){if(yi[hi]!==gi)try{Q(yi,hi,gi)}catch(S){yi[hi]=gi}if(yi[vi]||Q(yi,vi,mi),kn[mi])for(var xi in xt)if(yi[xi]!==xt[xi])try{Q(yi,xi,xt[xi])}catch(S){yi[xi]=xt[xi]}}}var wi="Expected a function",ki=NaN,Ci="[object Symbol]",Si=/^\s+|\s+$/g,Ti=/^[-+]0x[0-9a-f]+$/i,Ei=/^0b[01]+$/i,_i=/^0o[0-7]+$/i,Ai=parseInt,Oi="object"==typeof S&&S&&S.Object===Object&&S,Di="object"==typeof self&&self&&self.Object===Object&&self,Fi=Oi||Di||Function("return this")(),Pi=Object.prototype.toString,Bi=Math.max,Mi=Math.min,Ni=function(){return Fi.Date.now()},ji=function(e,i,o){var a=!0,r=!0;if("function"!=typeof e)throw new TypeError(wi);return t(o)&&(a="leading"in o?!!o.leading:a,r="trailing"in o?!!o.trailing:r),n(e,i,{leading:a,maxWait:i,trailing:r})},Ri=NaN,Li="[object Symbol]",qi=/^\s+|\s+$/g,$i=/^[-+]0x[0-9a-f]+$/i,Ii=/^0b[01]+$/i,Hi=/^0o[0-7]+$/i,zi=parseInt,Wi="object"==typeof S&&S&&S.Object===Object&&S,Vi="object"==typeof self&&self&&self.Object===Object&&self,Ui=Wi||Vi||Function("return this")(),Gi=Object.prototype.toString,Ji=Math.max,Ki=Math.min,Xi=function(){return Ui.Date.now()},Yi=function(e,n,t){function i(n){var t=d,i=p;return d=p=void 0,g=n,f=e.apply(i,t)}function r(e){var t=e-v;return void 0===v||t>=n||t<0||b&&e-g>=u}function l(){var e=Xi();if(r(e))return s(e);h=setTimeout(l,function(e){var t=n-(e-v);return b?Ki(t,u-(e-g)):t}(e))}function s(e){return h=void 0,y&&d?i(e):(d=p=void 0,f)}function c(){var e=Xi(),t=r(e);if(d=arguments,p=this,v=e,t){if(void 0===h)return function(e){return g=e,h=setTimeout(l,n),m?i(e):f}(v);if(b)return h=setTimeout(l,n),i(v)}return void 0===h&&(h=setTimeout(l,n)),f}var d,p,u,f,h,v,g=0,m=!1,b=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return n=a(n)||0,o(t)&&(m=!!t.leading,u=(b="maxWait"in t)?Ji(a(t.maxWait)||0,n):u,y="trailing"in t?!!t.trailing:y),c.cancel=function(){void 0!==h&&clearTimeout(h),g=0,d=v=p=h=void 0},c.flush=function(){return void 0===h?f:s(Xi())},c
},Qi="Expected a function",Zi="__lodash_hash_undefined__",eo="[object Function]",no="[object GeneratorFunction]",to=/^\[object .+?Constructor\]$/,io="object"==typeof S&&S&&S.Object===Object&&S,oo="object"==typeof self&&self&&self.Object===Object&&self,ao=io||oo||Function("return this")(),ro=Array.prototype,lo=Function.prototype,so=Object.prototype,co=ao["__core-js_shared__"],po=function(){var e=/[^.]+$/.exec(co&&co.keys&&co.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),uo=lo.toString,fo=so.hasOwnProperty,ho=so.toString,vo=RegExp("^"+uo.call(fo).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),go=ro.splice,mo=u(ao,"Map"),bo=u(Object,"create");r.prototype.clear=function(){this.__data__=bo?bo(null):{}},r.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},r.prototype.get=function(e){var n=this.__data__;if(bo){var t=n[e];return t===Zi?void 0:t}return fo.call(n,e)?n[e]:void 0},r.prototype.has=function(e){var n=this.__data__;return bo?void 0!==n[e]:fo.call(n,e)},r.prototype.set=function(e,n){return this.__data__[e]=bo&&void 0===n?Zi:n,this},l.prototype.clear=function(){this.__data__=[]},l.prototype.delete=function(e){var n=this.__data__,t=c(n,e);return!(t<0||(t==n.length-1?n.pop():go.call(n,t,1),0))},l.prototype.get=function(e){var n=this.__data__,t=c(n,e);return t<0?void 0:n[t][1]},l.prototype.has=function(e){return c(this.__data__,e)>-1},l.prototype.set=function(e,n){var t=this.__data__,i=c(t,e);return i<0?t.push([e,n]):t[i][1]=n,this},s.prototype.clear=function(){this.__data__={hash:new r,map:new(mo||l),string:new r}},s.prototype.delete=function(e){return p(this,e).delete(e)},s.prototype.get=function(e){return p(this,e).get(e)},s.prototype.has=function(e){return p(this,e).has(e)},s.prototype.set=function(e,n){return p(this,e).set(e,n),this},f.Cache=s;var yo=f,xo=function(){function e(e,n){var t=-1;return e.some(function(e,i){return e[0]===n&&(t=i,!0)}),t}return"undefined"!=typeof Map?Map:function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(n){var t=e(this.__entries__,n),i=this.__entries__[t];return i&&i[1]},n.prototype.set=function(n,t){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=t:this.__entries__.push([n,t])},n.prototype.delete=function(n){var t=this.__entries__,i=e(t,n);~i&&t.splice(i,1)},n.prototype.has=function(n){return!!~e(this.__entries__,n)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(e,n){void 0===n&&(n=null);for(var t=0,i=this.__entries__;t<i.length;t++){var o=i[t];e.call(n,o[1],o[0])}},n}()}(),wo="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ko="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Co="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ko):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},So=2,To=20,Eo=["top","right","bottom","left","width","height","size","weight"],_o="undefined"!=typeof MutationObserver,Ao=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,n){function t(){a&&(a=!1,e()),r&&o()}function i(){Co(t)}function o(){var e=Date.now();if(a){if(e-l<So)return;r=!0}else a=!0,r=!1,setTimeout(i,n);l=e}var a=!1,r=!1,l=0;return o}(this.refresh.bind(this),To)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var n=this.observers_,t=n.indexOf(e);~t&&n.splice(t,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){wo&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),_o?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){wo&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var n=e.propertyName,t=void 0===n?"":n;Eo.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Oo=function(e,n){for(var t=0,i=Object.keys(n);t<i.length;t++){var o=i[t];Object.defineProperty(e,o,{value:n[o],enumerable:!1,writable:!1,configurable:!0})}return e},Do=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ko},Fo=y(0,0,0,0),Po="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Do(e).SVGGraphicsElement}:function(e){return e instanceof Do(e).SVGElement&&"function"==typeof e.getBBox},Bo=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=b(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Mo=function(e,n){var t,i,o,a,r,l,s,c=(i=(t=n).x,o=t.y,a=t.width,r=t.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(l.prototype),Oo(s,{x:i,y:o,width:a,height:r,top:o,right:i+a,bottom:r+o,left:i}),s);Oo(this,{target:e,contentRect:c})},No=function(){function e(e,n,t){if(this.activeObservations_=[],this.observations_=new xo,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=t}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Do(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new Bo(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Do(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(e){return new Mo(e.target,e.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),jo="undefined"!=typeof WeakMap?new WeakMap:new xo,Ro=function e(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=Ao.getInstance(),i=new No(n,t,this);jo.set(this,i)};["observe","unobserve","disconnect"].forEach(function(e){Ro.prototype[e]=function(){var n;return(n=jo.get(this))[e].apply(n,arguments)}});var Lo=void 0!==ko.ResizeObserver?ko.ResizeObserver:Ro,qo=null,$o=null;An&&window.addEventListener("resize",function(){$o!==window.devicePixelRatio&&($o=window.devicePixelRatio,qo=null)});var Io=function(e){return function(n,t,i,o){Ye(t);var a=Ze(n),r=j(a),l=De(a.length),s=e?l-1:0,c=e?-1:1;if(i<2)for(;;){if(s in r){o=r[s],s+=c;break}if(s+=c,e?s<0:l<=s)throw TypeError("Reduce of empty array with no initial value")}for(;e?s>=0:l>s;s+=c)s in r&&(o=t(o,r[s],s,a));return o}},Ho={left:Io(!1),right:Io(!0)}.left,zo=fn("reduce"),Wo=mn("reduce",{1:0});Xe({target:"Array",proto:!0,forced:!zo||!Wo},{reduce:function(e){return Ho(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Vo=Y.f,Uo=Function.prototype,Go=Uo.toString,Jo=/^\s*function ([^ (]*)/;!A||"name"in Uo||Vo(Uo,"name",{configurable:!0,get:function(){try{return Go.call(this).match(Jo)[1]}catch(e){return""}}});var Ko,Xo,Yo=function(){var e=K(this),n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.sticky&&(n+="y"),n},Qo={UNSUPPORTED_Y:_(function(){var e=w("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),BROKEN_CARET:_(function(){var e=w("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},Zo=RegExp.prototype.exec,ea=String.prototype.replace,na=Zo,ta=(Ko=/a/,Xo=/b*/g,Zo.call(Ko,"a"),Zo.call(Xo,"a"),0!==Ko.lastIndex||0!==Xo.lastIndex),ia=Qo.UNSUPPORTED_Y||Qo.BROKEN_CARET,oa=void 0!==/()??/.exec("")[1];(ta||oa||ia)&&(na=function(e){var n,t,i,o,a=this,r=ia&&a.sticky,l=Yo.call(a),s=a.source,c=0,d=e;return r&&(-1===(l=l.replace("y","")).indexOf("g")&&(l+="g"),d=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(s="(?: "+s+")",d=" "+d,c++),t=new RegExp("^(?:"+s+")",l)),oa&&(t=new RegExp("^"+s+"$(?!\\s)",l)),ta&&(n=a.lastIndex),i=Zo.call(r?t:a,d),r?i?(i.input=i.input.slice(c),i[0]=i[0].slice(c),i.index=a.lastIndex,a.lastIndex+=i[0].length):a.lastIndex=0:ta&&i&&(a.lastIndex=a.global?i.index+i[0].length:n),oa&&i&&i.length>1&&ea.call(i[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)}),i});var aa=na;Xe({target:"RegExp",proto:!0,forced:/./.exec!==aa},{exec:aa});var ra=ln("species"),la=!_(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),sa="$0"==="a".replace(/./,"$0"),ca=ln("replace"),da=!!/./[ca]&&""===/./[ca]("a","$0"),pa=!_(function(){var e=/(?:)/,n=e.exec;e.exec=function(){return n.apply(this,arguments)};var t="ab".split(e);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}),ua=function(e,n,t,i){var o=ln(e),a=!_(function(){var n={};return n[o]=function(){return 7},7!=""[e](n)}),r=a&&!_(function(){var n=!1,t=/a/;return"split"===e&&((t={}).constructor={},t.constructor[ra]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return n=!0,null},t[o](""),!n});if(!a||!r||"replace"===e&&(!la||!sa||da)||"split"===e&&!pa){var l=/./[o],s=t(o,""[e],function(e,n,t,i,o){return n.exec===aa?a&&!o?{done:!0,value:l.call(n,t,i)}:{done:!0,value:e.call(t,n,i)}:{done:!1}},{REPLACE_KEEPS_$0:sa,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:da}),c=s[0],d=s[1];ke(String.prototype,e,c),ke(RegExp.prototype,o,2==n?function(e,n){return d.call(e,this,n)}:function(e){return d.call(e,this)})}i&&Q(RegExp.prototype[o],"sham",!0)},fa=$t.charAt,ha=function(e,n,t){return n+(t?fa(e,n).length:1)},va=function(e,n){var t=e.exec;if("function"==typeof t){var i=t.call(e,n);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==M(e))throw TypeError("RegExp#exec called on incompatible receiver");return aa.call(e,n)};ua("match",1,function(e,n,t){return[function(n){var t=R(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,t):new RegExp(n)[e](String(t))},function(e){var i=t(n,e,this);if(i.done)return i.value;var o=K(e),a=String(this);if(!o.global)return va(o,a);var r=o.unicode;o.lastIndex=0;for(var l,s=[],c=0;null!==(l=va(o,a));){var d=String(l[0]);s[c]=d,""===d&&(o.lastIndex=ha(a,De(o.lastIndex),r)),c++}return 0===c?null:s}]});var ga=Math.max,ma=Math.min,ba=Math.floor,ya=/\$([$&'`]|\d\d?|<[^>]*>)/g,xa=/\$([$&'`]|\d\d?)/g;ua("replace",2,function(e,n,t,i){function o(e,t,i,o,a,r){var l=i+e.length,s=o.length,c=xa;return void 0!==a&&(a=Ze(a),c=ya),n.call(r,c,function(n,r){var c;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":c=a[r.slice(1,-1)];break;default:var d=+r;if(0===d)return n;if(d>s){var p=ba(d/10);return 0===p?n:p<=s?void 0===o[p-1]?r.charAt(1):o[p-1]+r.charAt(1):n}c=o[d-1]}return void 0===c?"":c})}var a=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,r=i.REPLACE_KEEPS_$0,l=a?"$":"$0";return[function(t,i){var o=R(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,o,i):n.call(String(o),t,i)},function(e,i){if(!a&&r||"string"==typeof i&&-1===i.indexOf(l)){var s=t(n,e,this,i);if(s.done)return s.value}var c=K(e),d=String(this),p="function"==typeof i;p||(i=String(i));var u=c.global;if(u){var f=c.unicode;c.lastIndex=0}for(var h=[];;){var v=va(c,d);if(null===v)break;if(h.push(v),!u)break;""===String(v[0])&&(c.lastIndex=ha(d,De(c.lastIndex),f))}for(var g,m="",b=0,y=0;y<h.length;y++){v=h[y];for(var x=String(v[0]),w=ga(ma(Ae(v.index),d.length),0),k=[],C=1;C<v.length;C++)k.push(void 0===(g=v[C])?g:String(g));var S=v.groups;if(p){var T=[x].concat(k,w,d);void 0!==S&&T.push(S);var E=String(i.apply(void 0,T))}else E=o(x,d,w,k,S,i);w>=b&&(m+=d.slice(b,w)+E,b=w+x.length)}return m+d.slice(b)}]});var wa=function(e){return Array.prototype.reduce.call(e,function(e,n){var t=n.name.match(/data-simplebar-(.+)/);if(t){var i=t[1].replace(/\W+(.)/g,function(e,n){return n.toUpperCase()});switch(n.value){case"true":e[i]=!0;break;case"false":e[i]=!1;break;case void 0:e[i]=!0;break;default:e[i]=n.value}}return e},{})},ka=function(){function e(n,t){var i=this;this.onScroll=function(){var e=k(i.el);i.scrollXTicking||(e.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(e.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0)},this.scrollX=function(){i.axis.x.isOverflowing&&(i.showScrollbar("x"),i.positionScrollbar("x")),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&(i.showScrollbar("y"),i.positionScrollbar("y")),i.scrollYTicking=!1},this.onMouseEnter=function(){i.showScrollbar("x"),i.showScrollbar("y")},this.onMouseMove=function(e){i.mouseX=e.clientX,i.mouseY=e.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this.onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.hideScrollbars=function(){i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.track.rect)||(i.axis.y.scrollbar.el.classList.remove(i.classNames.visible),i.axis.y.isVisible=!1),i.isWithinBounds(i.axis.x.track.rect)||(i.axis.x.scrollbar.el.classList.remove(i.classNames.visible),i.axis.x.isVisible=!1)},this.onPointerEvent=function(e){var n,t;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(n=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(t=i.isWithinBounds(i.axis.y.track.rect)),(n||t)&&(e.preventDefault(),e.stopPropagation(),"mousedown"===e.type&&(n&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(e,"x"):i.onTrackClick(e,"x")),t&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(e,"y"):i.onTrackClick(e,"y"))))},this.drag=function(n){var t=i.axis[i.draggedAxis].track,o=t.rect[i.axis[i.draggedAxis].sizeAttr],a=i.axis[i.draggedAxis].scrollbar,r=i.contentWrapperEl[i.axis[i.draggedAxis].scrollSizeAttr],l=parseInt(i.elStyles[i.axis[i.draggedAxis].sizeAttr],10);n.preventDefault(),n.stopPropagation();var s=(("y"===i.draggedAxis?n.pageY:n.pageX)-t.rect[i.axis[i.draggedAxis].offsetAttr]-i.axis[i.draggedAxis].dragOffset)/(o-a.size)*(r-l);"x"===i.draggedAxis&&(s=i.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?s-(o+a.size):s,s=i.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-s:s),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=s},this.onEndDrag=function(e){var n=C(i.el),t=k(i.el);e.preventDefault(),e.stopPropagation(),i.el.classList.remove(i.classNames.dragging),n.removeEventListener("mousemove",i.drag,!0),n.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=t.setTimeout(function(){n.removeEventListener("click",i.preventClick,!0),n.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null})},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=n,this.minScrollbarWidth=20,this.options=Object.assign({},e.defaultOptions,{},t),this.classNames=Object.assign({},e.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,e.instances.has(this.el)||(this.recalculate=ji(this.recalculate.bind(this),64),this.onMouseMove=ji(this.onMouseMove.bind(this),64),this.hideScrollbars=Yi(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Yi(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=yo(e.getRtlHelpers),this.init())}e.getRtlHelpers=function(){var n=document.createElement("div");n.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var t=n.firstElementChild;document.body.appendChild(t);var i=t.firstElementChild;t.scrollLeft=0;var o=e.getOffset(t),a=e.getOffset(i);t.scrollLeft=999;var r=e.getOffset(i);return{isRtlScrollingInverted:o.left!==a.left&&a.left-r.left!=0,isRtlScrollbarInverted:o.left!==a.left}},e.getOffset=function(e){var n=e.getBoundingClientRect(),t=C(e),i=k(e);return{top:n.top+(i.pageYOffset||t.documentElement.scrollTop),left:n.left+(i.pageXOffset||t.documentElement.scrollLeft)}};var n=e.prototype;return n.init=function(){e.instances.set(this.el,this),An&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},n.initDOM=function(){var e=this;if(Array.prototype.filter.call(this.el.children,function(n){return n.classList.contains(e.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var n=document.createElement("div"),t=document.createElement("div");n.classList.add(this.classNames.track),t.classList.add(this.classNames.scrollbar),n.appendChild(t),this.axis.x.track.el=n.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=n.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},n.initListeners=function(){var e=this,n=k(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(n){e.el.addEventListener(n,e.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(n){e.el.addEventListener(n,e.onPointerEvent,{capture:!0,passive:!0})}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize);var t=!1,i=n.ResizeObserver||Lo;this.resizeObserver=new i(function(){t&&e.recalculate()}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){t=!0}),this.mutationObserver=new n.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},n.recalculate=function(){var e=k(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var n=this.contentEl.offsetWidth,t=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,r=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var l=this.contentEl.scrollHeight,s=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=i?(n||s)+"px":"auto",this.placeholderEl.style.height=l+"px";var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==n&&s>n,this.axis.y.isOverflowing=l>c,this.axis.x.isOverflowing="hidden"!==a&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==r&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var d=this.axis.x.isOverflowing?this.scrollbarWidth:0,p=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&s>o-p,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>c-d,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},n.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing)return 0;var n,t=this.contentEl[this.axis[e].scrollSizeAttr],i=this.axis[e].track.el[this.axis[e].offsetSizeAttr],o=i/t;return n=Math.max(~~(o*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(n=Math.min(n,this.options.scrollbarMaxSize)),n},n.positionScrollbar=function(n){if(void 0===n&&(n="y"),this.axis[n].isOverflowing){var t=this.contentWrapperEl[this.axis[n].scrollSizeAttr],i=this.axis[n].track.el[this.axis[n].offsetSizeAttr],o=parseInt(this.elStyles[this.axis[n].sizeAttr],10),a=this.axis[n].scrollbar,r=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],l=(r="x"===n&&this.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-r:r)/(t-o),s=~~((i-a.size)*l);s="x"===n&&this.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?s+(i-a.size):s,a.el.style.transform="x"===n?"translate3d("+s+"px, 0, 0)":"translate3d(0, "+s+"px, 0)"}},n.toggleTrackVisibility=function(e){void 0===e&&(e="y");var n=this.axis[e].track.el,t=this.axis[e].scrollbar.el;this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll"):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden"),this.axis[e].isOverflowing?t.style.display="block":t.style.display="none"},n.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},n.onMouseMoveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.rect=this.axis[e].track.el.getBoundingClientRect(),this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[e].scrollbar.rect)?this.axis[e].scrollbar.el.classList.add(this.classNames.hover):this.axis[e].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[e].track.rect)?(this.showScrollbar(e),this.axis[e].track.el.classList.add(this.classNames.hover)):this.axis[e].track.el.classList.remove(this.classNames.hover)},n.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.el.classList.remove(this.classNames.hover),this.axis[e].scrollbar.el.classList.remove(this.classNames.hover)},n.showScrollbar=function(e){void 0===e&&(e="y");var n=this.axis[e].scrollbar.el;this.axis[e].isVisible||(n.classList.add(this.classNames.visible),this.axis[e].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},n.onDragStart=function(e,n){void 0===n&&(n="y");var t=C(this.el),i=k(this.el),o=this.axis[n].scrollbar,a="y"===n?e.pageY:e.pageX;this.axis[n].dragOffset=a-o.rect[this.axis[n].offsetAttr],this.draggedAxis=n,this.el.classList.add(this.classNames.dragging),t.addEventListener("mousemove",this.drag,!0),t.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(t.addEventListener("click",this.preventClick,!0),t.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},n.onTrackClick=function(e,n){var t=this;if(void 0===n&&(n="y"),this.options.clickOnTrack){var i=k(this.el);this.axis[n].scrollbar.rect=this.axis[n].scrollbar.el.getBoundingClientRect();var o=this.axis[n].scrollbar.rect[this.axis[n].offsetAttr],a=parseInt(this.elStyles[this.axis[n].sizeAttr],10),r=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],l=("y"===n?this.mouseY-o:this.mouseX-o)<0?-1:1,s=-1===l?r-a:r+a;!function e(){var o,a;-1===l?r>s&&(r-=40,t.contentWrapperEl.scrollTo(((o={})[t.axis[n].offsetAttr]=r,o)),i.requestAnimationFrame(e)):r<s&&(r+=40,t.contentWrapperEl.scrollTo(((a={})[t.axis[n].offsetAttr]=r,a)),i.requestAnimationFrame(e))}()}},n.getContentElement=function(){return this.contentEl},n.getScrollElement=function(){return this.contentWrapperEl},n.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:x()}catch(e){return x()}},n.removeListeners=function(){var e=this,n=k(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(n){e.el.removeEventListener(n,e.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(n){e.el.removeEventListener(n,e.onPointerEvent,{capture:!0,passive:!0})}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onWindowResize),this.mutationObserver.disconnect(),this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},n.unMount=function(){this.removeListeners(),e.instances.delete(this.el)},n.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},n.findChild=function(e,n){var t=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(e){return t.call(e,n)})[0]},e}();return ka.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},ka.instances=new WeakMap,ka.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),
Array.prototype.forEach.call(document.querySelectorAll('[data-simplebar]:not([data-simplebar="init"])'),function(e){ka.instances.has(e)||new ka(e,wa(e.attributes))})},ka.removeObserver=function(){this.globalObserver.disconnect()},ka.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(ka.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},ka.handleMutations=function(e){e.forEach(function(e){Array.prototype.forEach.call(e.addedNodes,function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?!ka.instances.has(e)&&new ka(e,wa(e.attributes)):Array.prototype.forEach.call(e.querySelectorAll('[data-simplebar]:not([data-simplebar="init"])'),function(e){!ka.instances.has(e)&&new ka(e,wa(e.attributes))}))}),Array.prototype.forEach.call(e.removedNodes,function(e){1===e.nodeType&&(e.hasAttribute('[data-simplebar="init"]')?ka.instances.has(e)&&ka.instances.get(e).unMount():Array.prototype.forEach.call(e.querySelectorAll('[data-simplebar="init"]'),function(e){ka.instances.has(e)&&ka.instances.get(e).unMount()}))})})},ka.getOptions=wa,An&&ka.initHtmlApi(),ka}),define("views/my-form-component",["jquery","underscore","backbone","simplebar","views/component","helper/pubsub"],function(e,n,t,i,o,a){return o.extend({events:{click:"preventPropagation",mousedown:"mouseDownHandler",mouseup:"mouseUpHandler"},mouseDownHandler:function(t){t.stopPropagation(),t.preventDefault();var o=this;e(".popover").remove(),o.$el.popover({trigger:"manual",placement:function(){return window.screen.width<=480||8===window.GridColumns||12===window.GridColumns?"bottom":"right"},html:!0,sanitize:!1,content:function(){return o.getPopoverContent()}}),o.$el.popover("show");var r=e(".popover");r.find("#save").on("click",o.saveHandler(o)),r.find("#copy").on("click",o.copyHandler(o)),r.find("#delete").on("click",o.deleteHandler(o)),r.find("#cancel").on("click",o.cancelHandler(o)),r.find("#copy-id").on("click",o.copyIdHandler(o)),new i(r.find(".popover-content-settings")[0]);var l=r.find("[data-type='choice']");l.length&&l.each(function(t,i){var o=e(i),a=[],l=polyglot.t("popover.choice");if(o.on("click",".bulk-editor",function(n){n.preventDefault();var t=e(n.currentTarget).closest(".form-group"),i=t.attr("id");t.find(".bulk-cancel").show(),t.find(".bulk-choices").show(),t.find(".show-options").hide(),t.find(".choices").hide(),e(this).hide(),a[i]=t.find(".bulk-choices").val()}),o.on("click",".bulk-cancel",function(t){t.preventDefault();var i=e(t.currentTarget).closest(".form-group"),o=i.attr("id");i.find(".bulk-editor").show(),i.find(".show-options").show(),i.find(".choices").show(),i.find(".bulk-choices").hide(),e(this).hide(),n.isUndefined(a[o])||i.find(".bulk-choices").val(a[o])}),o.on("click",".add-choice",function(n){n.preventDefault();var t="col-8",i="display: none",a="display: none";o.find(".show-values").is(":checked")&&(t="col-4",i="display: inline-block"),o.find(".show-images").is(":checked")&&(a="display: inline-block"),e(n.currentTarget).closest(".choice").after('<div class="row g-0 choice"> <div class="col-1">   <div class="form-check">     <input type="checkbox"{{ if (selected) { }} checked{{ } }} name="selected[]" class="form-check-input selected-choice" />   </div> </div> <div class="'+t+' ps-1 choice-answer">   <input type="text" class="form-control form-control-sm" placeholder="'+l+'" value="" name="answer[]"> </div> <div class="col-4 choice-value" style="'+i+'">   <input type="text" class="form-control form-control-sm" placeholder="Value" value="" name="value[]"> </div> <div class="col-2">   <div class="actions">     <span class="fas fa-plus-circle add-choice"></span>     <span class="fas fa-minus-circle text-danger remove-choice"></span>   </div> </div>  <div class="col-8 offset-1 choice-image" style="'+a+'">   <input type="text" class="form-control form-control-sm" placeholder="'+polyglot.t("popover.image")+'" name="image[]" /> </div></div>'),o.trigger("added-choice")}),o.on("click",".remove-choice",function(n){n.preventDefault(),e(n.currentTarget).closest(".row").remove()}),o.on("click",".show-values",function(n){var t=e(n.currentTarget).closest(".form-group");e(this).is(":checked")?(t.find(".choice-answer").removeClass().addClass("col-4 ps-1 choice-answer"),t.find(".choice-value").show()):(t.find(".choice-answer").removeClass().addClass("col-8 ps-1 choice-answer"),t.find(".choice-value").hide())}),o.on("click",".show-images",function(n){var t=e(n.currentTarget).closest(".form-group");e(this).is(":checked")?t.find(".choice-image").show():t.find(".choice-image").hide()}),["customAttributes"].includes(o.attr("id"))&&(l=polyglot.t("popover.attribute"),o.find("input[name='answer[]']").attr("placeholder",l),o.on("added-choice",function(e){o.find(".checkbox").hide()}),o.find(".show-values").click(),o.find(".for-show-values").hide(),o.find(".for-show-images").hide(),o.find(".checkbox").hide()),["options","radios","questions","answers"].includes(o.attr("id"))&&(r.find("#multiple").is(":checked")||o.on("click",".selected-choice",function(){o.find(".selected-choice").not(this).prop("checked",!1)}),["options","questions","answers"].includes(o.attr("id"))&&(o.find(".for-show-images").hide(),["options"].includes(o.attr("id"))&&r.find("#multiple").on("change",function(n){n.preventDefault(),o.find(".selected-choice").prop("checked",!1),e(n.currentTarget).is(":checked")?o.off("click",".selected-choice"):o.on("click",".selected-choice",function(){o.find(".selected-choice").not(this).prop("checked",!1)})}),["questions","answers"].includes(o.attr("id"))))){var s=function(e){e=e||r.find("#inputType").val(),r.find("#questions .for-show-values").hide(),r.find("#questions .checkbox").hide(),n.contains(["radio","checkbox"],e)?r.find("#answers .checkbox").show():r.find("#answers .checkbox").hide(),n.contains(["number","range","date","datetime-local","time","month","week"],e)?r.find("#min, #max, #step").closest(".form-group").show():r.find("#min, #max, #step").closest(".form-group").hide(),n.contains(["text","url","tel","password","email","textarea"],e)?r.find("#minlength, #maxlength").closest(".form-group").show():r.find("#minlength, #maxlength").closest(".form-group").hide(),n.contains(["text","url","tel","password","email","number","range"],e)?r.find("#pattern").closest(".form-group").show():r.find("#pattern").closest(".form-group").hide(),n.contains(["select"],e)?r.find("#multiple").closest(".checkbox").show():r.find("#multiple").closest(".checkbox").hide()},c=r.find("#inputType");s(c.val()),c.change(function(n){s(e(this).val())}),o.on("added-choice",function(e){s()})}}),e("body").on("mousemove",function(n){(Math.abs(t.pageX-n.pageX)>10||Math.abs(t.pageY-n.pageY)>10)&&(o.$el.popover("destroy"),e(".popover").remove(),a.trigger("myComponentDrag",t,o.model),o.mouseUpHandler())})},preventPropagation:function(e){e.stopPropagation(),e.preventDefault()},mouseUpHandler:function(n){var t={selector:"#snippet",suffix:".min",plugins:"advlist autolink link image lists charmap hr anchor searchreplace visualblocks visualchars code fullscreen insertdatetime nonbreaking save table directionality paste",toolbar:"fullscreen code | undo redo | styleselect | bold italic underline strikethrough | forecolor backcolor | alignleft aligncenter alignright alignjustify | ltr rtl | bullist numlist outdent indent | hr link image table",convert_urls:!1,table_default_attributes:{class:"table"},table_class_list:[{title:"None",value:""},{title:"Table",value:"table"},{title:"Condensed",value:"table table-condensed"},{title:"Striped",value:"table table-striped"},{title:"Bordered",value:"table table-bordered"},{title:"Hover",value:"table table-hover"},{title:"Striped & Hover",value:"table table-stripped table-hover"},{title:"Bordered & Hover",value:"table table-bordered table-hover"},{title:"Bordered, Stripped & Hover",value:"table table-bordered table-hover"}],setup:function(n){n.on("FullscreenStateChanged",function(t){e(n.editorContainer).find(".tox-toolbar").toggleClass("tox-toolbar-fullscreen")})}};tinyMCE.get(0)&&tinyMCE.remove(),"dark"===e("body").attr("data-bs-theme")&&(t.skin="oxide-dark",t.content_css="dark"),tinyMCE.init(t).then(function(e){}),e("body").off("mousemove")},saveHandler:function(t){return function(i){i.preventDefault(),window.tinyMCE.get(0)&&window.tinyMCE.triggerSave();var o=e(".popover .field");n.each(o,function(i){var o=e(i),a=o.attr("data-type"),r=o.attr("id");switch(a){case"checkbox":t.model.setField(r,o.is(":checked"));break;case"input":case"number":case"textarea":t.model.setField(r,o.val());break;case"textarea-split":t.model.setField(r,n.chain(o.val().split("\n")).map(function(n){return e.trim(n)}).filter(function(e){return e.length>0}).value());break;case"select":var l=n.map(o.find("option"),function(n){return{value:n.value,selected:n.selected,label:e(n).text()}});t.model.setField(r,l);break;case"choice":var s=t.model.getField(r),c=n.chain(o.find(".bulk-choices").val().split("\n")).map(function(n){return e.trim(n)}).filter(function(e){return e.length>0}).value();c.length&&!n.isEqual(s,c)?t.model.setField(r,c):t.model.setField(r,o.find(".choice").map(function(){var n=e(this).find("input[name='answer[]']").val(),t=e(this).find("input[name='value[]']").val(),i=e(this).find("input[name='image[]']").val(),o=e(this).find("input[name='selected[]']").is(":checked")?"selected":null;return i.length>0&&t.length<1&&(t=n),[n,t,i,o].map(function(n){return e.trim(n)}).filter(function(e){return e.length>0}).join("|")}).get())}}),t.model.trigger("change"),t.$el.popover("destroy"),e(".popover").remove()}},copyHandler:function(n){return function(t){t.preventDefault();var i=n.model,o=i.clone();o.attributes=e.extend(!0,{},o.attributes),o.set("fresh",!0),i.trigger("change"),a.trigger("myComponentCopy",o,i),n.$el.popover("destroy"),e(".popover").remove()}},deleteHandler:function(n){return function(t){t.preventDefault(),confirm(polyglot.t("alert.confirmToDeleteField"))&&(n.$el.popover("destroy"),e(".popover").remove(),a.trigger("myComponentDelete",n.model))}},cancelHandler:function(n){return function(t){t.preventDefault(),n.$el.popover("destroy"),e(".popover").remove()}},copyIdHandler:function(e){return function(n){if(n.preventDefault(),navigator&&navigator.clipboard)navigator.clipboard.writeText(e.model.getField("id"));else{var t=document.createElement("textarea");document.body.appendChild(t),t.value=e.model.getField("id"),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}}})}),define("collections/my-form-components",["jquery","underscore","backbone","models/component","collections/components","views/my-form-component"],function(e,n,t,i,o,a){return o.extend({model:i,initialize:function(){this.bind("add",this.giveUniqueId),this._views={},this._indexByModel={}},giveUniqueId:function(e){if(e.get("fresh")){var t=e.get("name"),i=t+"_"+n.size(this.componentsByName(t));if(n.size(this.componentsByFieldID(i))>0){i=t+"_"+Math.floor(1e6*Math.random()+1)}e.setField("id",i),e.set("fresh",!1)}},componentsByFieldID:function(e){return this.filter(function(n){return n.getField("id")===e})},componentsByName:function(e){return this.filter(function(n){return n.get("name")===e})},pageBreaks:function(){return this.filter(function(e){return"pagebreak"===e.get("name")})},containsFileType:function(){return!(void 0===this.find(function(e){return"file"===e.get("name")}))},containsRecaptcha:function(){return!(void 0===this.find(function(e){return"recaptcha"===e.get("name")}))},findViewByCid:function(e){return this._views[e]},findViewByModelCid:function(e){var n=this._indexByModel[e];return this.findViewByCid(n)},findViewByModel:function(e){return this.findViewByModelCid(e.cid)},loadViews:function(){var e=this;n.each(this._views,function(e){e.close()}),this._views={},this._indexByModel={},this.map(function(n){e.addViewByModel(n)})},removeViewByModel:function(e){return this.findViewByModel(e).close(),delete this._views[this._indexByModel[e.cid]],delete this._indexByModel[e.cid],this},addViewByModel:function(e){var n=new a({model:e});this._views[n.cid]=n,this._indexByModel[e.cid]=n.cid}})}),define("models/style",["jquery","underscore","backbone"],function(e,n,t){return t.Model.extend({setAttribute:function(e,n){var t=this.get("attributes");t[e]=n,this.set("attributes",t)},getAttributes:function(e){return this.get("styles").attributes},getAttribute:function(e){return this.get("styles").attributes[e]}})}),define("collections/my-form-styles",["jquery","underscore","backbone","models/style"],function(e,n,t,i){return t.Collection.extend({model:i,initialize:function(){}})}),define("text!templates/app/tab-nav.html",[],function(){return'<li role="presentation" class="nav-link">\n    <a href="#{{= id }}" aria-controls="{{= id }}" role="tab" data-bs-toggle="tab">{{= title }}</a>\n</li>'}),define("text!templates/app/settingsForm.html",[],function(){return'<div class="form-group mb-3">\n    <label class="form-label" for="settings-form-name">{{= polyglot.t(\'form.name\') }}</label>\n    <input type="text" class="form-control" placeholder="{{= polyglot.t(\'form.name\') }}" id="settings-form-name" value="{{ if(name) { }}{{= name }}{{ } }}">\n    <small class="form-hint">\n        {{= polyglot.t(\'form.description\') }}\n    </small>\n</div>\n<div class="form-group mb-3">\n    <label class="form-label" for="settings-form-layout-selected">{{= polyglot.t(\'form.layout\') }}</label>\n    <select class="form-control" id="settings-form-layout-selected">\n        {{ _.each(layouts, function(layout) { }}\n        <option value="{{= layout.id }}" {{ if( layoutSelected === layout.id ) { }}selected{{ } }}>{{= layout.name }}</option>\n        {{ }); }}\n    </select>\n</div>\n<div class="form-check mb-3">\n    <input type="checkbox" class="form-check-input" id="settings-form-disabled-fieldset" {{ if( disabledFieldset ) { }}checked{{ } }}>\n    <label class="form-label" for="settings-form-disabled-fieldset"> {{= polyglot.t(\'form.disabled\') }}\n    </label>\n</div>'}),define("views/tab",["jquery","underscore","backbone","helper/pubsub","text!templates/app/tab-nav.html","text!templates/app/settingsForm.html"],function(e,n,t,i,o,a){return t.View.extend({tagName:"div",className:"card-body",initialize:function(e){this.options=e,this.id=this.options.id,"settings"===this.id&&(this.renderForm=n.template(a)),this.render()},render:function(){var t=this;n.isUndefined(t.collection)?t.options.content&&"code"===t.id&&(t.$el.append(e("<button type='button' id='copy-source-code' class='btn-clipboard'></button>").text(polyglot.t("form.copy")).attr("title",polyglot.t("form.copyToClipboard"))),t.$el.append(e("<label class='form-label'></label>").text(polyglot.t("form.sourceCode"))),t.$el.append(t.options.content)):n.each(t.collection.renderAllAsWidgets(),function(e){t.$el.append(e)}),"fields"===t.id?this.$el.appendTo("#tab-ef-fields"):"settings"===t.id?this.$el.appendTo("#tab-ef-settings"):"code"===t.id&&this.$el.appendTo("#tab-ef-code"),"settings"===this.id&&(this.$el.append(t.renderForm({name:t.options.settings.name,disabledFieldset:t.options.settings.disabledFieldset,layouts:t.options.settings.layouts,layoutSelected:t.options.settings.layoutSelected})),e("#settings-form-name").on("keyup keypress",function(e){if(13===(e.keyCode||e.which))return e.preventDefault(),!1}),e("#settings").find(":input").on("change",function(n){n.preventDefault();var t=e("#settings-form-name").val(),o=e("#settings-form-disabled-fieldset").is(":checked"),a=e("#settings-form-layout-selected").val(),r={name:t,disabledFieldset:o,layoutSelected:a};i.trigger("changeFormSettings",r)})),this.delegateEvents()}})}),define("views/tab-content",["jquery","underscore","backbone"],function(e,n,t){return t.View.extend({tagName:"div",className:"tab-pane",initialize:function(e){this.options=e,this.id=this.options.id,this.render()},render:function(){var e=this;void 0!==e.collection?n.each(this.collection.renderAllAsWidgets(),function(n){e.$el.append(n)}):e.options.content&&e.$el.append(e.options.content),this.$el.attr("id",this.id),this.$el.attr("role","tabpanel"),this.$el.appendTo(".tab-content"),this.delegateEvents()}})}),self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{};var Prism=function(){var e=/\blang(?:uage)?-(?!\*)(\w+)\b/i,n=self.Prism={util:{encode:function(e){return e instanceof t?new t(e.type,n.util.encode(e.content),e.alias):"Array"===n.util.type(e)?e.map(n.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},clone:function(e){switch(n.util.type(e)){case"Object":var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=n.util.clone(e[i]));return t;case"Array":return e.map(function(e){return n.util.clone(e)})}return e}},languages:{extend:function(e,t){var i=n.util.clone(n.languages[e]);for(var o in t)i[o]=t[o];return i},insertBefore:function(e,t,i,o){o=o||n.languages;var a=o[e];if(2==arguments.length){i=arguments[1];for(var r in i)i.hasOwnProperty(r)&&(a[r]=i[r]);return a}var l={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var r in i)i.hasOwnProperty(r)&&(l[r]=i[r]);l[s]=a[s]}return n.languages.DFS(n.languages,function(n,t){t===o[e]&&n!=e&&(this[n]=l)}),o[e]=l},DFS:function(e,t,i){for(var o in e)e.hasOwnProperty(o)&&(t.call(e,o,e[o],i||o),"Object"===n.util.type(e[o])?n.languages.DFS(e[o],t):"Array"===n.util.type(e[o])&&n.languages.DFS(e[o],t,o))}},highlightAll:function(e,t){for(var i,o=document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'),a=0;i=o[a++];)n.highlightElement(i,!0===e,t)},highlightElement:function(i,o,a){for(var r,l,s=i;s&&!e.test(s.className);)s=s.parentNode;if(s&&(r=(s.className.match(e)||[,""])[1],l=n.languages[r]),l){i.className=i.className.replace(e,"").replace(/\s+/g," ")+" language-"+r,s=i.parentNode,/pre/i.test(s.nodeName)&&(s.className=s.className.replace(e,"").replace(/\s+/g," ")+" language-"+r);var c=i.textContent;if(c){c=c.replace(/^(?:\r?\n|\r)/,"");var d={element:i,language:r,grammar:l,code:c};if(n.hooks.run("before-highlight",d),o&&self.Worker){var p=new Worker(n.filename);p.onmessage=function(e){d.highlightedCode=t.stringify(JSON.parse(e.data),r),n.hooks.run("before-insert",d),d.element.innerHTML=d.highlightedCode,a&&a.call(d.element),n.hooks.run("after-highlight",d)},p.postMessage(JSON.stringify({language:d.language,code:d.code}))}else d.highlightedCode=n.highlight(d.code,d.grammar,d.language),n.hooks.run("before-insert",d),d.element.innerHTML=d.highlightedCode,a&&a.call(i),n.hooks.run("after-highlight",d)}}},highlight:function(e,i,o){var a=n.tokenize(e,i);return t.stringify(n.util.encode(a),o)},tokenize:function(e,t){var i=n.Token,o=[e],a=t.rest;if(a){for(var r in a)t[r]=a[r];delete t.rest}e:for(var r in t)if(t.hasOwnProperty(r)&&t[r]){var l=t[r];l="Array"===n.util.type(l)?l:[l];for(var s=0;s<l.length;++s){var c=l[s],d=c.inside,p=!!c.lookbehind,u=0,f=c.alias;c=c.pattern||c;for(var h=0;h<o.length;h++){var v=o[h];if(o.length>e.length)break e;if(!(v instanceof i)){c.lastIndex=0;var g=c.exec(v);if(g){p&&(u=g[1].length);var m=g.index-1+u,g=g[0].slice(u),b=g.length,y=m+b,x=v.slice(0,m+1),w=v.slice(y+1),k=[h,1];x&&k.push(x);var C=new i(r,d?n.tokenize(g,d):g,f);k.push(C),w&&k.push(w),Array.prototype.splice.apply(o,k)}}}}}return o},hooks:{all:{},add:function(e,t){var i=n.hooks.all;i[e]=i[e]||[],i[e].push(t)},run:function(e,t){var i=n.hooks.all[e];if(i&&i.length)for(var o,a=0;o=i[a++];)o(t)}}},t=n.Token=function(e,n,t){this.type=e,this.content=n,this.alias=t};if(t.stringify=function(e,i,o){if("string"==typeof e)return e;if("Array"===n.util.type(e))return e.map(function(n){return t.stringify(n,i,e)}).join("");var a={type:e.type,content:t.stringify(e.content,i,o),tag:"span",classes:["token",e.type],attributes:{},language:i,parent:o};if("comment"==a.type&&(a.attributes.spellcheck="true"),e.alias){var r="Array"===n.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(a.classes,r)}n.hooks.run("wrap",a);var l="";for(var s in a.attributes)l+=s+'="'+(a.attributes[s]||"")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'" '+l+">"+a.content+"</"+a.tag+">"},!self.document)return self.addEventListener?(self.addEventListener("message",function(e){var t=JSON.parse(e.data),i=t.language,o=t.code;self.postMessage(JSON.stringify(n.util.encode(n.tokenize(o,n.languages[i])))),self.close()},!1),self.Prism):self.Prism;var i=document.getElementsByTagName("script");return i=i[i.length-1],i&&(n.filename=i.src,document.addEventListener&&!i.hasAttribute("data-manual")&&document.addEventListener("DOMContentLoaded",n.highlightAll)),self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),Prism.languages.markup={comment:/<!--[\w\W]*?-->/,prolog:/<\?.+?\?>/,doctype:/<!DOCTYPE.+?>/,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?[\w:-]+\s*(?:\s+[\w:-]+(?:=(?:("|')(\\?[\w\W])*?\1|[^\s'">=]+))?\s*)*\/?>/i,inside:{tag:{pattern:/^<\/?[\w:-]+/i,inside:{punctuation:/^<\/?/,namespace:/^[\w-]+?:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/=|>|"/}},punctuation:/\/?>/,"attr-name":{pattern:/[\w:-]+/,inside:{namespace:/^[\w-]+?:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),define("prism",function(e){return function(){return e.Prism}}(this)),function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("clipboard",[],n):"object"==typeof exports?exports.ClipboardJS=n():e.ClipboardJS=n()}(this,function(){function e(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return t={},e.m=n=[function(e,n){e.exports=function(e){var n;if("SELECT"===e.nodeName)e.focus(),n=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var t=e.hasAttribute("readonly");t||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),n=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),o=document.createRange();o.selectNodeContents(e),i.removeAllRanges(),i.addRange(o),n=i.toString()}return n}},function(e,n){function t(){}t.prototype={on:function(e,n,t){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:n,ctx:t}),this},once:function(e,n,t){function i(){o.off(e,i),n.apply(t,arguments)}var o=this;return i._=n,this.on(e,i,t)},emit:function(e){for(var n=[].slice.call(arguments,1),t=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=t.length;i<o;i++)t[i].fn.apply(t[i].ctx,n);return this},off:function(e,n){var t=this.e||(this.e={}),i=t[e],o=[];if(i&&n)for(var a=0,r=i.length;a<r;a++)i[a].fn!==n&&i[a].fn._!==n&&o.push(i[a]);return o.length?t[e]=o:delete t[e],this}},e.exports=t,e.exports.TinyEmitter=t},function(e,n,t){var i=t(3),o=t(4);e.exports=function(e,n,t){if(!e&&!n&&!t)throw new Error("Missing required arguments");if(!i.string(n))throw new TypeError("Second argument must be a String");if(!i.fn(t))throw new TypeError("Third argument must be a Function");if(i.node(e))return u=n,f=t,(p=e).addEventListener(u,f),{destroy:function(){p.removeEventListener(u,f)}};if(i.nodeList(e))return s=e,c=n,d=t,Array.prototype.forEach.call(s,function(e){e.addEventListener(c,d)}),{destroy:function(){Array.prototype.forEach.call(s,function(e){e.removeEventListener(c,d)})}};if(i.string(e))return a=e,r=n,l=t,o(document.body,a,r,l);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var a,r,l,s,c,d,p,u,f}},function(e,n){n.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,n,t){function i(e,n,t,i,a){var r=function(e,n,t,i){return function(t){t.delegateTarget=o(t.target,n),t.delegateTarget&&i.call(e,t)}}.apply(this,arguments);return e.addEventListener(t,r,a),{destroy:function(){e.removeEventListener(t,r,a)}}}var o=t(5);e.exports=function(e,n,t,o,a){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof t?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,n,t,o,a)}))}},function(e,n){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,n){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(n))return e;e=e.parentNode}}},function(e,n,t){"use strict";function i(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,o),this.resolveOptions(e),this.initSelection()}function a(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,n){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r);var t=function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return t.resolveOptions(n),t.listenClick(e),t}function l(e,n){var t="data-clipboard-"+e;if(n.hasAttribute(t))return n.getAttribute(t)}t.r(n);var s=t(0),c=t.n(s),d="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},p=(function(e,n,t){n&&i(e.prototype,n)}(o,[{key:"resolveOptions",value:function(e){var n=0<arguments.length&&void 0!==e?e:{};this.action=n.action,this.container=n.container,this.emitter=n.emitter,this.target=n.target,this.text=n.text,this.trigger=n.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var t=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=t+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=c()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=c()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(n){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(e){var n=0<arguments.length&&void 0!==e?e:"copy";if(this._action=n,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":d(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),o),u=t(1),f=t.n(u),h=t(2),v=t.n(h),g="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},m=(function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(r,f.a),function(e,n,t){n&&a(e.prototype,n),t&&a(e,t)}(r,[{key:"resolveOptions",value:function(e){var n=0<arguments.length&&void 0!==e?e:{};this.action="function"==typeof n.action?n.action:this.defaultAction,this.target="function"==typeof n.target?n.target:this.defaultTarget,this.text="function"==typeof n.text?n.text:this.defaultText,this.container="object"===g(n.container)?n.container:document.body}},{key:"listenClick",value:function(e){var n=this;this.listener=v()(e,"click",function(e){return n.onClick(e)})}},{key:"onClick",value:function(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new p({action:this.action(n),target:this.target(n),text:this.text(n),container:this.container,trigger:n,emitter:this})}},{key:"defaultAction",value:function(e){return l("action",e)}},{key:"defaultTarget",value:function(e){var n=l("target",e);if(n)return document.querySelector(n)}},{key:"defaultText",value:function(e){return l("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(e){var n=0<arguments.length&&void 0!==e?e:["copy","cut"],t="string"==typeof n?[n]:n,i=!!document.queryCommandSupported;return t.forEach(function(e){i=i&&!!document.queryCommandSupported(e)}),i}}]),r);n.default=m}],e.c=t,e.d=function(n,t,i){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:i})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var o in n)e.d(i,o,function(e){return n[e]}.bind(null,o));return i},e.n=function(n){var t=n&&n.__esModule?function(){
return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},e.p="",e(e.s=6).default;var n,t}),define("models/steps",["jquery","underscore","backbone"],function(e,n,t){return t.Model.extend({getValues:function(){return n.reduce(this.get("fields"),function(e,t,i){return"select"==t.type?e[i]=n.find(t.value,function(e){return e.selected}).value:e[i]=t.value,e},{})},setField:function(e,n){var t=this.get("fields");t[e].value=n,this.set("fields",t)},getField:function(e){return this.get("fields")[e].value}})}),define("text!templates/app/formSteps.html",[],function(){return'{{ if( steps && !noSteps) { }}{{ if( !progressBar ) { }}\n\n\x3c!-- Steps --\x3e\n<div class="steps">{{ _.each(steps, function(step, index, list){ var items = step.split("|"); var title = items[0]; var stage = items[1]; }}\n    <div class="step{{ if(noStages) { }} no-stage{{ } }}{{ if(noTitles) { }} no-title{{ } }}{{ if(index===0) { }} current{{ } }}">\n        {{ if (!noStages) { }}<div class="stage">{{if (stage) { if (stage.indexOf("fa") >= 0) { }}<span class="{{= stage }}"></span>{{ } else { }}{{= stage }}{{ } }}{{ } else { }}{{= index + 1 }}{{ } }}</div>{{ } }} {{ if (!noTitles) { }}<div class="title">{{= title }}</div>{{ } }}\n    </div>{{ }); }}\n</div>{{ } else { }}\n\n\x3c!-- Progress Bar --\x3e\n<div class="progress">\n    <div class="progress-bar" {{ if(!noTitles) { }} data-titles="{{= steps }}"{{ } }}>{{ if(!noStages) { }}<span class="percent">0%</span>{{ } }}{{ if(!noTitles) { }} <span class="title">{{= _.first(steps) }}</span>{{ } }}</div>\n</div>{{ } }}\n{{ } }}'}),define("text!templates/popover/popover-main-steps.html",[],function(){return'<form class="form">\n    <div class="popover-content-settings">\n        {{= basicFields }}\n        {{ if (advancedFields) { }}\n        <div>\n            {{= advancedFields }}\n        </div>\n        {{ } }}\n    </div>\n    <hr/>\n    <div class="popover-content-actions">\n        <button id="save" class="btn btn-primary" title="{{= polyglot.t(\'popover.save\') }}">\n            <i class="far fa-check me-1"></i> {{= polyglot.t(\'popover.save\') }}\n        </button>\n        <button id="cancel" class="btn btn-icon btn-secondary" title="{{= polyglot.t(\'popover.cancel\') }}">\n            <i class="far fa-times"></i>\n        </button>\n    </div>\n</form>\n'}),define("views/my-form-steps",["jquery","underscore","backbone","helper/pubsub","text!templates/app/formSteps.html","text!templates/popover/popover-main-steps.html","text!templates/popover/popover-input.html","text!templates/popover/popover-select.html","text!templates/popover/popover-textarea.html","text!templates/popover/popover-textarea-split.html","text!templates/popover/popover-checkbox.html"],function(e,n,t,i,o,a,r,l,s,c,d){return t.View.extend({tagName:"div",id:"form-steps",events:{click:"preventPropagation",mousedown:"mouseDownHandler",mouseup:"mouseUpHandler"},initialize:function(e){this.template=n.template(o),this.popoverTemplates={input:n.template(r),select:n.template(l),textarea:n.template(s),"textarea-split":n.template(c),checkbox:n.template(d)},this.options=e,this.htmlCode=""},close:function(){this.undelegateEvents(),this.$el.removeData().unbind(),this.remove()},render:function(e){return e?this.$el.html(this.template(this.model.getValues())).attr({class:"component component-form-steps col-12","data-title":"Form Steps","data-trigger":"manual","data-placement":"right","data-container":"body","data-html":!0}):this.htmlCode=this.template(this.model.getValues()),this},getPopoverContent:function(){var e=this,t={},i={};n.map(this.model.get("fields"),function(e,n){!0===e.advanced?i[n]=e:t[n]=e});var o=n.reduce(t,function(n,t,i){return t.name=i,n+e.popoverTemplates[t.type](t)},""),r=n.reduce(i,function(n,t,i){return t.name=i,n+e.popoverTemplates[t.type](t)},"");return n.template(a)({title:e.model.get("title"),basicFields:o,advancedFields:r})},mouseDownHandler:function(n){n.stopPropagation(),n.preventDefault();var t=this;e(".popover").remove(),this.$el.popover({trigger:"manual",placement:function(){return 8===window.GridColumns||12===window.GridColumns?"bottom":"right"},html:!0,sanitize:!1,content:function(){return t.getPopoverContent()}}),this.$el.popover("show"),e(".popover #save").on("click",this.saveHandler(t)),e(".popover #cancel").on("click",this.cancelHandler(t))},preventPropagation:function(e){e.stopPropagation(),e.preventDefault()},mouseUpHandler:function(n){e("body").off("mousemove")},saveHandler:function(t){return function(o){o.preventDefault();var a=e(".popover .field");n.each(a,function(i){var o=e(i),a=o.attr("data-type"),r=o.attr("id");switch(a){case"checkbox":t.model.setField(r,o.is(":checked"));break;case"input":case"textarea":t.model.setField(r,o.val());break;case"textarea-split":t.model.setField(r,n.chain(o.val().split("\n")).map(function(n){return e.trim(n)}).filter(function(e){return e.length>0}).value());break;case"select":var l=n.map(o.find("option"),function(n){return{value:n.value,selected:n.selected,label:e(n).text()}});t.model.setField(r,l)}}),i.trigger("changeFormSteps",t.model),e(".popover").remove()}},cancelHandler:function(n){return function(n){n.preventDefault(),e(".popover").remove()}}})}),define("text!templates/app/renderform.html",[],function(){return'<form id="form-app"{{ if (cssClass) { }} class="{{= cssClass }}"{{ } }}{{ if (multipart) { }} enctype="multipart/form-data"{{ } }}>{{= pageHeader }}\n<fieldset class="row"{{ if (disabled) { }} disabled="disabled"{{ } }}>\n{{= text }}\n</fieldset>\n</form>'}),define("views/my-form",["jquery","underscore","backbone","prism","clipboard","models/steps","views/my-form-steps","views/temp-widget","helper/pubsub","text!templates/app/renderform.html"],function(e,n,t,i,o,a,r,l,s,c){return t.View.extend({tagName:"fieldset",pageHeader:!1,className:"row",initialize:function(t){function i(e){function n(){var e=window.pageXOffset,n=window.pageYOffset,a=n>0,r=n<y,l=e>0,g=e<b,m=e,x=n;if(u&&l){var w=(c-t)/o;m-=50*w}else if(f&&g){var w=(t-p)/o;m+=50*w}if(h&&a){var w=(s-i)/o;x-=50*w}else if(v&&r){var w=(i-d)/o;x+=50*w}return m=Math.max(0,Math.min(b,m)),x=Math.max(0,Math.min(y,x)),m===e&&x===n||window.scrollTo(m,x),!0}if(!document.getElementById("temp-widget"))return clearTimeout(l),!1;var t=e.clientX,i=e.clientY,a=document.documentElement.clientWidth,r=document.documentElement.clientHeight,s=o,c=o,d=r-o,p=a-o,u=t<c,f=t>p,h=i<s,v=i>d;if(!(u||f||h||v))return clearTimeout(l),!1;var g=Math.max(document.body.scrollWidth,document.body.offsetWidth,document.body.clientWidth,document.documentElement.scrollWidth,document.documentElement.offsetWidth,document.documentElement.clientWidth),m=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.body.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight),b=g-a,y=m-r;!function e(){clearTimeout(l),n()&&(l=setTimeout(e,90))}()}this.options=t,this.collection.on("add",this.onAdd,this),this.collection.on("change",this.onChange,this),this.collection.on("remove",this.onRemove,this),s.on("myComponentDrag",this.handleComponentDrag,this),s.on("myComponentDelete",this.handleComponentDelete,this),s.on("myComponentCopy",this.handleComponentCopy,this),s.on("renderForm",this.render,this),s.on("tempMove",this.handleTempMove,this),s.on("cancelTempMove",this.handleCancelTempMove,this),s.on("tempDrop",this.handleTempDrop,this),s.on("widgetClick",this.handleWidgetClick,this),s.on("changeFormSettings",this.changeFormSettings,this),s.on("changeFormSteps",this.changeFormSteps,this),e(document).keydown(function(n){27===n.keyCode&&(e(".popover").remove(),s.trigger("cancelTempPostRender",n))});var o=90,l=null;window.addEventListener("mousemove",i,!1),this.$canvas=e(this.options.settings.canvas),this.renderForm=n.template(c),this.hasSteps=this.collection.pageBreaks().length>0,this.stepsModel=new a(this.options.settings.formSteps),this.pageHeader=new r({pageBreaks:this.collection.pageBreaks(),model:this.stepsModel}),this.collection.loadViews(),this.htmlCollection="",this.updateLayout(),this.render()},onAdd:function(e,t,i){this.hasSteps=this.collection.pageBreaks().length>0,n.isUndefined(e)||this.collection.addViewByModel(e),this.render()},onChange:function(e,t,i){n.isUndefined(e)&&this.render()},onRemove:function(e,t,i){this.hasSteps=this.collection.pageBreaks().length>0,n.isUndefined(e)||this.collection.removeViewByModel(e),options.lastIndex=i.index,this.render()},render:function(){var e=this;this.hasSteps?this.renderFormSteps():this.stepsModel.setField("steps",[]),this.htmlCollection="";var n=document.createDocumentFragment();this.hasSteps&&n.appendChild(this.pageHeader.render(!0).el),this.collection.each(function(t){var i=e.collection.findViewByModel(t);n.appendChild(i.render(!0,e.options.settings).el),e.htmlCollection=e.htmlCollection+"\n"+i.render(!1,e.options.settings).htmlCode}),this.$el.empty(),this.$el.append(n),this.$el.appendTo(this.$canvas.find("form")),this.delegateEvents(),this.postRender()},postRender:function(){window.FormBuilder.html=this.renderForm({cssClass:this.options.settings.layoutSelected,disabled:this.options.settings.disabledFieldset,multipart:this.collection.containsFileType(),pageHeader:this.hasSteps?this.pageHeader.$el.html():"",text:this.htmlCollection}),e("#render").text(window.FormBuilder.html),i.highlightElement(e("#render")[0]),new o(".btn-clipboard",{target:function(){return document.getElementById("render")}}).on("success",function(n){n.clearSelection();var t=e(n.trigger);t.text(polyglot.t("form.copied")),setTimeout(function(){t.text(polyglot.t("form.copy"))},1e3)})},renderFormSteps:function(){var e=this.stepsModel.getField("steps"),t=this.collection.pageBreaks().length+1;t>e.length?n.times(t-e.length,function(){e.push("Untitled Step")}):t<e.length&&n.times(e.length-t,function(){e.pop()}),this.stepsModel.setField("steps",e),this.pageHeader.remove(),this.pageHeader=new r({pageBreaks:this.collection.pageBreaks(),model:this.stepsModel})},getTargetComponent:function(t){var i=e(this.$el.find(".component")),o=n.find(i,function(n){var i=e(n);return i.offset().left+i.outerWidth()>t.pageX&&i.offset().top+i.height()>t.pageY});return o||i[i.length-1]},getComponentsInTheSameRow:function(t){var i=e(this.$el.find(".component")),o=this;return n.filter(i,function(n){var i=e(n);return o.$canvas.offset().left<t.pageX&&i.offset().top<t.pageY&&i.offset().top+i.height()>t.pageY})},isInTheComponentLeftSide:function(n,t){var i=e(n);return i.offset().left<t.pageX&&i.offset().left+50>t.pageX&&i.offset().top<t.pageY&&i.offset().top+i.height()>t.pageY},isInTheComponentRightSide:function(n,t){var i=e(n);return i.offset().left+i.outerWidth()>=t.pageX&&i.offset().left+i.outerWidth()-50<t.pageX&&i.offset().top<t.pageY&&i.offset().top+i.height()>t.pageY},isInCanvas:function(e){return e.pageX>=this.$canvas.offset().left&&e.pageX<this.$canvas.outerWidth()+this.$canvas.offset().left&&e.pageY>=this.$canvas.offset().top&&e.pageY<this.$canvas.height()+this.$canvas.offset().top},isAboveFirstComponent:function(e){return!this.hasSteps&&e.pageY<this.$canvas.offset().top+50},isAboveComponent:function(n,t){var i=e(n);return t.pageY<i.offset().top},handleComponentDrag:function(n,t){e("body").append(new l({model:t}).render()),this.collection.remove(t),s.trigger("newTempPostRender",n)},handleComponentDelete:function(e){this.collection.remove(e)},handleComponentCopy:function(e,n){if(this.collection.containsRecaptcha()&&"recaptcha"===e.get("name"))return!1;var t=this.collection.indexOf(n);this.collection.add(e.toJSON(),{at:t})},handleTempMove:function(n,t){var i=e(".target");if(this.cleanTarget(i),this.isInCanvas(n)){var o=this.getTargetComponent(n);e(o).addClass("target");var a=e("<div>",{class:"placeholder "+t.getField("containerClass")});if(this.isAboveFirstComponent(n))i.before(a);else{var r=!i.hasClass("component-pagebreak");r&&this.isInTheComponentRightSide(o,n)?e(o).addClass("border-right"):r&&this.isInTheComponentLeftSide(o,n)?e(o).addClass("border-left"):(t.setField("containerClass","col-12"),this.isAboveComponent(o,n)?i.before(a):i.after(a))}}},handleCancelTempMove:function(n){var t=e(".target");this.cleanTarget(t),this.collection.add(n,{at:options.lastIndex})},handleTempDrop:function(t,i,o){var a=this,r=e(".target");if(!this.isValidModel(i))return this.cleanTarget(r),!1;if(this.isInCanvas(t)){var l=r.index();if(t.pageY<this.$canvas.offset().top+50)this.collection.add(i,{at:0});else{var s=this.isInTheComponentLeftSide(r[0],t),c=this.isInTheComponentRightSide(r[0],t);if(!r.hasClass("component-pagebreak")&&(s||c)){var d=12,p=this.getComponentsInTheSameRow(t),u=p.length+1;n.contains([2,3,4],u)&&(s&&--l,d=12/u,n.each(p,function(t){var i=e(t).index(),o=a.hasSteps?--i:i,r=a.collection.at(o);n.isUndefined(r)||(r.setField("containerClass","col-"+d),a.collection.set(r,{add:!1,remove:!1,merge:!1}))}),12!==d&&i.setField("containerClass","col-"+d))}else this.isAboveComponent(r[0],t)&&(l-=2);this.collection.add(i,{at:this.hasSteps?l:++l})}}else{var f=e("#formId");options.endPoint.indexOf("form")>-1&&f.length>0&&""!==f.val()&&!confirm(polyglot.t("alert.confirmToDeleteField"))&&this.collection.add(i,{at:options.lastIndex})}this.cleanTarget(r)},cleanTarget:function(n){n.removeClass("target"),e(".placeholder").remove(),e(".component").removeClass("border-right border-left")},handleWidgetClick:function(e,n){if(!this.isValidModel(n))return!1;this.collection.add(n)},isValidModel:function(e){return!this.collection.containsRecaptcha()||"recaptcha"!==e.get("name")},changeFormSteps:function(e){this.options.settings.formSteps=e.toJSON(),this.render()},changeFormSettings:function(e){this.options.settings.name=e.name,this.options.settings.layoutSelected=e.layoutSelected,this.options.settings.disabledFieldset=e.disabledFieldset,this.updateLayout(),this.render()},updateLayout:function(){this.$canvas.find("form").attr("class",this.options.settings.layoutSelected),this.$canvas.find("fieldset").attr("disabled",this.options.settings.disabledFieldset),"form-inline"===this.options.settings.layoutSelected&&this.$el.addClass("align-items-center")}})});var CSSJSON=new function(){var e=this;e.init=function(){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")},String.prototype.repeat=function(e){return new Array(1+e).join(this)}},e.init();var n=/\/\*[\s\S]*?\*\//g,t=/([^\:]+):([^\;]*);/,o=/(\/\*[\s\S]*?\*\/)|([^\s\;\{\}][^\;\{\}]*(?=\{))|(\})|([^\;\{\}]+\;(?!\s*\*\/))/gim,a=function(e){return void 0===e||0==e.length||null==e},r=function(e){return!a(e)&&(e.attributes&&e.children)};e.toJSON=function(i,r){var l={children:{},attributes:{}},s=null,c=0;if(void 0===r)var r={ordered:!1,comments:!1,stripComments:!1,split:!1};for(r.stripComments&&(r.comments=!1,i=i.replace(n,""));null!=(s=o.exec(i));)if(!a(s[1])&&r.comments){var d=s[1].trim();l[c++]=d}else if(a(s[2])){if(!a(s[3]))return l;if(!a(s[4])){var p=s[4].trim(),u=t.exec(p);if(u){var f=u[1].trim(),h=u[2].trim();if(r.ordered){var v={};v.name=f,v.value=h,v.type="attr",l[c++]=v}else if(f in l.attributes){var g=l.attributes[f];g instanceof Array||(l.attributes[f]=[g]),l.attributes[f].push(h)}else l.attributes[f]=h}else l[c++]=p}}else{var f=s[2].trim(),m=e.toJSON(i,r);if(r.ordered){var v={};v.name=f,v.value=m,v.type="rule",l[c++]=v}else{if(r.split)var b=f.split(",");else var b=[f];for(var y=0;y<b.length;y++){var x=b[y].trim();if(x in l.children)for(var w in m.attributes)l.children[x].attributes[w]=m.attributes[w];else l.children[x]=m}}}return l},e.toCSS=function(e,n,t){var o="";if(void 0===n&&(n=0),void 0===t&&(t=!1),e.attributes)for(i in e.attributes){var a=e.attributes[i];if(a instanceof Array)for(var r=0;r<a.length;r++)o+=c(i,a[r],n);else o+=c(i,a,n)}if(e.children){var l=!0;for(i in e.children)t&&!l?o+="\n":l=!1,o+=d(i,e.children[i],n)}return o},e.toHEAD=function(n,t,i){var o=document.getElementsByTagName("head")[0],c=document.getElementById(t),d=null!==c&&c instanceof HTMLStyleElement;if(!a(n)&&o instanceof HTMLHeadElement){if(d){if(!0!==i&&!a(i))return;c.removeAttribute("id")}r(n)&&(n=e.toCSS(n));var p=document.createElement("style");if(p.type="text/css",a(t)?p.id="cssjson_"+s():p.id=t,p.styleSheet?p.styleSheet.cssText=n:p.appendChild(document.createTextNode(n)),o.appendChild(p),l(p))d&&c.parentNode.removeChild(c);else{if(p.parentNode.removeChild(p),!d)return;c.setAttribute("id",t),p=c}return p}},"undefined"!=typeof window&&(window.createCSS=e.toHEAD);var l=function(e){return e instanceof HTMLStyleElement&&e.sheet.cssRules.length>0},s=function(){return Date.now()||+new Date},c=function(e,n,t){return"\t".repeat(t)+e+": "+n+";\n"},d=function(n,t,i){var o="\t".repeat(i)+n+" {\n";return o+=e.toCSS(t,i+1),o+="\t".repeat(i)+"}\n"}};"object"==typeof module&&(module.exports=CSSJSON),define("cssjson",function(e){return function(){return e.CSSJSON}}(this)),function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("grapick",[],n):"object"==typeof exports?exports.Grapick=n():e.Grapick=n()}(this,function(){return function(e){function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var t={};return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=1)}([function(e,n,t){"use strict";function i(e,n,t){n=n.split(/\s+/);for(var i=0;i<n.length;++i)e.addEventListener(n[i],t)}function o(e,n,t){n=n.split(/\s+/);for(var i=0;i<n.length;++i)e.removeEventListener(n[i],t)}Object.defineProperty(n,"__esModule",{value:!0}),n.on=i,n.off=o},function(e,n,t){"use strict";var i=t(2),o=function(e){return e&&e.__esModule?e:{default:e}}(i);e.exports=function(e){return new o.default(e)}},function(e,n,t){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return Array.from(e)}function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function r(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function l(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function e(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(n,t,i){return t&&e(n.prototype,t),i&&e(n,i),n}}(),c=t(3),d=i(c),p=t(4),u=i(p),f=t(0),h=function(e,n){return e.position-n.position},v=function(e){return e+"-gradient("},g=function(e){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,n);var t=r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));e=Object.assign({},e);var i={pfx:"grp",el:".grp",colorEl:"",min:0,max:100,direction:"90deg",type:"linear",height:"30px",width:"100%"};for(var o in i)o in e||(e[o]=i[o]);var l=e.el;if(!((l="string"==typeof l?document.querySelector(l):l)instanceof HTMLElement))throw"Element not found, given "+l;return t.el=l,t.handlers=[],t.options=e,t.on("handler:color:change",function(e,n){return t.change(n)}),t.on("handler:position:change",function(e,n){return t.change(n)}),t.on("handler:remove",function(e){return t.change(1)}),t.on("handler:add",function(e){return t.change(1)}),t.render(),t}return l(n,e),s(n,[{key:"setColorPicker",value:function(e){this.colorPicker=e}},{key:"getValue",value:function(e,n){var t=this.getColorValue(),i=e||this.getType(),o=n||this.getDirection();return t?i+"-gradient("+o+", "+t+")":""}},{key:"getSafeValue",value:function(e,n){var t=this.previewEl,i=this.getValue(e,n);if(!this.sandEl&&(this.sandEl=document.createElement("div")),!t||!i)return"";for(var a=this.sandEl.style,r=[i].concat(o(this.getPrefixedValues(e,n))),l=void 0,s=0;s<r.length&&(l=r[s],a.backgroundImage=l,a.backgroundImage!=l);s++);return a.backgroundImage}},{key:"setValue",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.type,o=this.direction,a=n.indexOf("(")+1,r=n.lastIndexOf(")"),l=n.substring(a,r),s=l.split(/,(?![^(]*\)) /);if(this.clear(t),!l)return void this.updatePreview();s.length>2&&(o=s.shift());var c=void 0;["repeating-linear","repeating-radial","linear","radial"].forEach(function(e){n.indexOf(v(e))>-1&&!c&&(c=1,i=e)}),this.setDirection(o,t),this.setType(i,t),s.forEach(function(n){var i=n.split(" "),o=parseFloat(i.pop()),a=i.join("");e.addHandler(o,a,0,t)}),this.updatePreview()}},{key:"getColorValue",value:function(){var e=this.handlers;return e.sort(h),e=1==e.length?[e[0],e[0]]:e,e.map(function(e){return e.getValue()}).join(", ")}},{key:"getPrefixedValues",value:function(e,n){var t=this.getValue(e,n);return["-moz-","-webkit-","-o-","-ms-"].map(function(e){return""+e+t})}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.updatePreview(),!n.silent&&this.emit("change",e)}},{key:"setDirection",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options.direction=e,this.change(1,n)}},{key:"getDirection",value:function(){return this.options.direction}},{key:"setType",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options.type=e,this.change(1,n)}},{key:"getType",value:function(){return this.options.type}},{key:"addHandler",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new u.default(this,e,n,t);return!i.silent&&this.emit("handler:add",o),o}},{key:"getHandler",value:function(e){return this.handlers[e]}},{key:"getHandlers",value:function(){return this.handlers}},{key:"clear",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.handlers,t=n.length-1;t>=0;t--)n[t].remove(e)}},{key:"getSelected",value:function(){for(var e=this.getHandlers(),n=0;n<e.length;n++){var t=e[n];if(t.isSelected())return t}return null}},{key:"updatePreview",value:function(){var e=this.previewEl;e&&(e.style.backgroundImage=this.getSafeValue("linear","to right"))}},{key:"initEvents",value:function(){var e=this,n=this.options,t=n.min,i=n.max,o=this.previewEl,a=0,r={};o&&(0,f.on)(o,"click",function(n){r.w=o.clientWidth,r.h=o.clientHeight;var l=n.offsetX-o.clientLeft,s=n.offsetY-o.clientTop;if(!((a=l/r.w*100)>i||a<t)){var c=document.createElement("canvas"),d=c.getContext("2d");c.width=r.w,c.height=r.h;var p=d.createLinearGradient(0,0,r.w,r.h);e.getHandlers().forEach(function(e){return p.addColorStop(e.position/100,e.color)}),d.fillStyle=p,d.fillRect(0,0,c.width,c.height),c.style.background="black";var u=c.getContext("2d").getImageData(l,s,1,1).data,f="rgba("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+")";e.addHandler(a,f)}})}},{key:"render",value:function(){var e=this.options,n=this.el,t=e.pfx,i=e.height,o=e.width;if(n){var a=t+"-wrapper",r=t+"-preview";n.innerHTML='\n      <div class="'+a+'">\n        <div class="'+r+'"></div>\n      </div>\n    ';var l=n.querySelector("."+a),s=n.querySelector("."+r),c=l.style;c.position="relative",this.wrapperEl=l,this.previewEl=s,i&&(c.height=i),o&&(c.width=o),this.initEvents(),this.updatePreview()}}}]),n}(d.default);n.default=g},function(e,n){function t(){}t.prototype={on:function(e,n,t){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:n,ctx:t}),this},once:function(e,n,t){function i(){o.off(e,i),n.apply(t,arguments)}var o=this;return i._=n,this.on(e,i,t)},emit:function(e){var n=[].slice.call(arguments,1),t=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=t.length;for(i;i<o;i++)t[i].fn.apply(t[i].ctx,n);return this},off:function(e,n){var t=this.e||(this.e={}),i=t[e],o=[];if(i&&n)for(var a=0,r=i.length;a<r;a++)i[a].fn!==n&&i[a].fn._!==n&&o.push(i[a]);return o.length?t[e]=o:delete t[e],this}},e.exports=t},function(e,n,t){"use strict";function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(n,t,i){return t&&e(n.prototype,t),i&&e(n,i),n}}(),a=t(0),r=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"black",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;i(this,e),n.getHandlers().push(this),this.gp=n,this.position=t,this.color=o,this.selected=0,this.render(),a&&this.select()}return o(e,[{key:"toJSON",value:function(){return{position:this.position,selected:this.selected,color:this.color}}},{key:"setColor",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.color=e,this.emit("handler:color:change",this,n)}},{key:"setPosition",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=this.getEl();this.position=e,t&&(t.style.left=e+"%"),this.emit("handler:position:change",this,n)}},{key:"getColor",value:function(){return this.color}},{key:"getPosition",value:function(){return this.position}},{key:"isSelected",value:function(){return!!this.selected}},{key:"getValue",value:function(){return this.getColor()+" "+this.getPosition()+"%"}},{key:"select",value:function(){var e=this.getEl();this.gp.getHandlers().forEach(function(e){return e.deselect()}),this.selected=1;var n=this.getSelectedCls();e&&(e.className+=" "+n),this.emit("handler:select",this)}},{key:"deselect",value:function(){var e=this.getEl();this.selected=0;var n=this.getSelectedCls();e&&(e.className=e.className.replace(n,"").trim()),this.emit("handler:deselect",this)}},{key:"getSelectedCls",value:function(){return this.gp.options.pfx+"-handler-selected"}},{key:"remove",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getEl(),t=this.gp.getHandlers(),i=t.splice(t.indexOf(this),1)[0];return n&&n.parentNode.removeChild(n),!e.silent&&this.emit("handler:remove",i),i}},{key:"getEl",value:function(){return this.el}},{key:"initEvents",value:function(){var e=this,n=this.getEl(),t=this.gp.previewEl,i=this.gp.options,o=i.min,r=i.max,l=n.querySelector("[data-toggle=handler-close]"),s=n.querySelector("[data-toggle=handler-color-c]"),c=n.querySelector("[data-toggle=handler-color-wrap]"),d=n.querySelector("[data-toggle=handler-color]"),p=n.querySelector("[data-toggle=handler-drag]");if(s&&(0,a.on)(s,"click",function(e){return e.stopPropagation()}),l&&(0,a.on)(l,"click",function(n){n.stopPropagation(),e.remove()}),d&&(0,a.on)(d,"change",function(n){var t=n.target,i=t.value;e.setColor(i),c&&(c.style.backgroundColor=i)}),p){var u=0,f=0,h=0,v={},g={},m={},b=function(n){h=1,m.x=n.clientX-g.x,m.y=n.clientY-g.y,u=100*m.x,u/=v.w,u=f+u,u=u<o?o:u,u=u>r?r:u,e.setPosition(u,0),e.emit("handler:drag",e,u),0===n.which&&y(n)},y=function n(t){h&&(h=0,e.setPosition(u),(0,a.off)(document,"touchmove mousemove",b),(0,a.off)(document,"touchend mouseup",n),e.emit("handler:drag:end",e,u))},x=function(n){0===n.button&&(e.select(),f=e.position,v.w=t.clientWidth,v.h=t.clientHeight,g.x=n.clientX,g.y=n.clientY,(0,a.on)(document,"touchmove mousemove",b),(0,a.on)(document,"touchend mouseup",y),e.emit("handler:drag:start",e))};(0,a.on)(p,"touchstart mousedown",x),(0,a.on)(p,"click",function(e){return e.stopPropagation()})}}},{key:"emit",value:function(){var e;(e=this.gp).emit.apply(e,arguments)}},{key:"render",value:function(){var e=this.gp,n=e.options,t=e.previewEl,i=e.colorPicker,o=n.pfx,a=n.colorEl,r=this.getColor();if(t){var l=document.createElement("div"),s=l.style,c=o+"-handler";return l.className=c,l.innerHTML='\n      <div class="'+c+'-close-c">\n        <div class="'+c+'-close" data-toggle="handler-close">&Cross;</div>\n      </div>\n      <div class="'+c+'-drag" data-toggle="handler-drag"></div>\n      <div class="'+c+'-cp-c" data-toggle="handler-color-c">\n        '+(a||'\n          <div class="'+c+'-cp-wrap" data-toggle="handler-color-wrap" style="background-color: '+r+'">\n            <input type="color" data-toggle="handler-color" value="'+r+'">\n          </div>')+"\n      </div>\n    ",s.position="absolute",s.top=0,s.left=this.position+"%",t.appendChild(l),this.el=l,this.initEvents(),i&&i(this),l}}}]),e}();n.default=r}])}),define("text!data/google-fonts.json",[],function(){
return'{\n  "kind": "webfonts#webfontList",\n  "items": ["ABeeZee","Abel","Abhaya Libre","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Alata","Alatsi","Aldrich","Alef","Alegreya","Alegreya Sans","Alegreya Sans SC","Alegreya SC","Aleo","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almarai","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiko","Amiri","Amita","Anaheim","Andada","Andika","Andika New Basic","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","B612","B612 Mono","Bad Script","Bahiana","Bahianita","Bai Jamjuree","Baloo 2","Baloo Bhai 2","Baloo Bhaina 2","Baloo Chettan 2","Baloo Da 2","Baloo Paaji 2","Baloo Tamma 2","Baloo Tammudu 2","Baloo Thambi 2","Balsamiq Sans","Balthazar","Bangers","Barlow","Barlow Condensed","Barlow Semi Condensed","Barriecito","Barrio","Basic","Baskervville","Battambang","Baumans","Bayon","Be Vietnam","Bebas Neue","Belgrano","Bellefair","Belleza","Bellota","Bellota Text","BenchNine","Bentham","Berkshire Swash","Beth Ellen","Bevan","Big Shoulders Display","Big Shoulders Inline Display","Big Shoulders Inline Text","Big Shoulders Stencil Display","Big Shoulders Stencil Text","Big Shoulders Text","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","BioRhyme","BioRhyme Expanded","Biryani","Bitter","Black And White Picture","Black Han Sans","Black Ops One","Blinker","Bodoni Moda","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","Caladea","Calistoga","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Castoro","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Chakra Petch","Changa","Changa One","Chango","Charm","Charmonman","Chathura","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chilanka","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Coiny","Combo","Comfortaa","Comic Neue","Coming Soon","Commissioner","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Cormorant","Cormorant Garamond","Cormorant Infant","Cormorant SC","Cormorant Unicase","Cormorant Upright","Courgette","Courier Prime","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Pro","Crimson Text","Croissant One","Crushed","Cuprum","Cute Font","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Darker Grotesque","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","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Do Hyeon","Dokdo","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Duru Sans","Dynalight","Eagle Lake","East Sea Dokdo","Eater","EB Garamond","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","Epilogue","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fahkwang","Fanwood Text","Farro","Farsan","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Faustina","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Code","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","Fraunces","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","Gabriela","Gaegu","Gafata","Galada","Galdeano","Galindo","Gamja Flower","Gayathri","Gelasio","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","GFS Didot","GFS Neohellenic","Gidugu","Gilda Display","Girassol","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Goldman","Gorditas","Gothic A1","Gotu","Goudy Bookletter 1911","Graduate","Grand Hotel","Grandstander","Gravitas One","Great Vibes","Grenze","Grenze Gotisch","Griffy","Gruppo","Gudea","Gugi","Gupter","Gurajada","Habibi","Hachi Maru Pop","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Harmattan","Headland One","Heebo","Henny Penny","Hepta Slab","Herr Von Muellerhoff","Hi Melody","Hind","Hind Guntur","Hind Madurai","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","Ibarra Real Nova","IBM Plex Mono","IBM Plex Sans","IBM Plex Sans Condensed","IBM Plex Serif","Iceberg","Iceland","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell DW Pica","IM Fell DW 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","Imbue","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Inria Sans","Inria Serif","Inter","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","JetBrains Mono","Jim Nightshade","Jockey One","Jolly Lodger","Jomhuria","Jomolhari","Josefin Sans","Josefin Slab","Jost","Joti One","Jua","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","K2D","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","Kodchasan","KoHo","Kosugi","Kosugi Maru","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Krub","Kufam","Kulim Park","Kumar One","Kumar One Outline","Kumbh Sans","Kurale","La Belle Aurore","Lacquer","Laila","Lakki Reddy","Lalezar","Lancelot","Langar","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Lemonada","Lexend Deca","Lexend Exa","Lexend Giga","Lexend Mega","Lexend Peta","Lexend Tera","Lexend Zetta","Libre Barcode 128","Libre Barcode 128 Text","Libre Barcode 39","Libre Barcode 39 Extended","Libre Barcode 39 Extended Text","Libre Barcode 39 Text","Libre Barcode EAN13 Text","Libre Baskerville","Libre Caslon Display","Libre Caslon Text","Libre Franklin","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Literata","Liu Jian Mao Cao","Livvic","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Long Cang","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","M PLUS 1p","M PLUS Rounded 1c","Ma Shan Zheng","Macondo","Macondo Swash Caps","Mada","Magra","Maiden Orange","Maitree","Major Mono Display","Mako","Mali","Mallanna","Mandali","Manjari","Manrope","Mansalva","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","Mulish","MuseoModerno","Mystery Quest","Nanum Brush Script","Nanum Gothic","Nanum Gothic Coding","Nanum Myeongjo","Nanum Pen Script","Nerko One","Neucha","Neuton","New Rocker","News Cycle","Niconne","Niramit","Nixie One","Nobile","Nokora","Norican","Nosifer","Notable","Nothing You Could Do","Noticia Text","Noto Sans","Noto Sans HK","Noto Sans JP","Noto Sans KR","Noto Sans SC","Noto Sans TC","Noto Serif","Noto Serif JP","Noto Serif KR","Noto Serif SC","Noto Serif TC","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","NTR","Numans","Nunito","Nunito Sans","Odibee 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","Oxanium","Oxygen","Oxygen Mono","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","Piazzolla","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","Potta One","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Pridi","Princess Sofia","Prociono","Prompt","Prosto One","Proza Libre","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Public Sans","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","Recursive","Red Hat Display","Red Hat Text","Red Rose","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","Rowdies","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","Saira Stencil One","Salsa","Sanchez","Sancreek","Sansita","Sansita Swashed","Sarabun","Sarala","Sarina","Sarpanch","Satisfy","Sawarabi Gothic","Sawarabi Mincho","Scada","Scheherazade","Schoolbell","Scope One","Seaweed Script","Secular One","Sedgwick Ave","Sedgwick Ave Display","Sen","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","Single Day","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Solway","Song Myung","Sonsie One","Sora","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Space Grotesk","Space Mono","Spartan","Special Elite","Spectral","Spectral SC","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Sriracha","Srisakdi","Staatliches","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Stylish","Sue Ellen Francisco","Suez One","Sulphur Point","Sumana","Sunflower","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Syne","Syne Mono","Syne Tactile","Tajawal","Tangerine","Taprom","Tauri","Taviraj","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","Texturina","Thasadith","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Tomorrow","Trade Winds","Trirong","Trispace","Trocchi","Trochut","Trykker","Tulpen One","Turret Road","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Vampiro One","Varela","Varela Round","Varta","Vast Shadow","Vesper Libre","Viaoda Libre","Vibes","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Vollkorn SC","Voltaire","VT323","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Work Sans","Xanh Mono","Yanone Kaffeesatz","Yantramanav","Yatra One","Yellowtail","Yeon Sung","Yeseva One","Yesteryear","Yrsa","Yusei Magic","ZCOOL KuaiLe","ZCOOL QingKe HuangYou","ZCOOL XiaoWei","Zeyada","Zhi Mang Xing","Zilla Slab","Zilla Slab Highlight"]\n}'}),define("text!data/web-gradients.json",[],function(){
return'[\n  {\n    "name":"Warm Flame",\n    "favorite":false,\n    "index":"001",\n    "deg":45,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#ff9a9e",\n        "pos":0\n      },\n      {\n        "color":"#fad0c4",\n        "pos":99\n      },\n      {\n        "color":"#fad0c4",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Night Fade",\n    "favorite":false,\n    "index":"002",\n    "deg":0,\n    "group":[\n      "#FC96D3",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#a18cd1",\n        "pos":0\n      },\n      {\n        "color":"#fbc2eb",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Spring Warmth",\n    "favorite":false,\n    "index":"003",\n    "deg":0,\n    "group":[\n      "#F9AFAD",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#fad0c4",\n        "pos":0\n      },\n      {\n        "color":"#fad0c4",\n        "pos":1\n      },\n      {\n        "color":"#ffd1ff",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Juicy Peach",\n    "favorite":false,\n    "index":"004",\n    "deg":90,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#ffecd2",\n        "pos":0\n      },\n      {\n        "color":"#fcb69f",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Young Passion",\n    "favorite":false,\n    "index":"005",\n    "deg":90,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#ff8177",\n        "pos":0\n      },\n      {\n        "color":"#ff867a",\n        "pos":0\n      },\n      {\n        "color":"#ff8c7f",\n        "pos":21\n      },\n      {\n        "color": "#f99185",\n        "pos": 52\n      },\n      {\n        "color": "#cf556c",\n        "pos": 78\n      },\n      {\n        "color": "#b12a5b",\n        "pos": 100\n      }\n    ]\n  },\n  {\n    "name":"Lady Lips",\n    "favorite":false,\n    "index":"006",\n    "deg":0,\n    "group":[\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#ff9a9e",\n        "pos":0\n      },\n      {\n        "color":"#fecfef",\n        "pos":99\n      },\n      {\n        "color":"#fecfef",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Sunny Morning",\n    "favorite":false,\n    "index":"007",\n    "deg":120,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#f6d365",\n        "pos":0\n      },\n      {\n        "color":"#fda085",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Rainy Ashville",\n    "favorite":false,\n    "index":"008",\n    "deg":0,\n    "group":[\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#fbc2eb",\n        "pos":0\n      },\n      {\n        "color":"#a6c1ee",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Frozen Dreams",\n    "favorite":false,\n    "index":"009",\n    "deg":0,\n    "group":[\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#fdcbf1",\n        "pos":0\n      },\n      {\n        "color":"#fdcbf1",\n        "pos":1\n      },\n      {\n        "color":"#e6dee9",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Winter Neva",\n    "favorite":false,\n    "index":"010",\n    "deg":120,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#a1c4fd",\n        "pos":0\n      },\n      {\n        "color":"#c2e9fb",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Dusty Grass",\n    "favorite":false,\n    "index":"011",\n    "deg":120,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#d4fc79",\n        "pos":0\n      },\n      {\n        "color":"#96e6a1",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Tempting Azure",\n    "favorite":false,\n    "index":"012",\n    "deg":120,\n    "group":[\n      "#259BE5",\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#84fab0",\n        "pos":0\n      },\n      {\n        "color":"#8fd3f4",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Heavy Rain",\n    "favorite":false,\n    "index":"013",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#cfd9df",\n        "pos":0\n      },\n      {\n        "color":"#e2ebf0",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Amy Crisp",\n    "favorite":false,\n    "index":"014",\n    "deg":120,\n    "group":[\n      "#FC96D3",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#a6c0fe",\n        "pos":0\n      },\n      {\n        "color":"#f68084",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Mean Fruit",\n    "favorite":false,\n    "index":"015",\n    "deg":120,\n    "group":[\n      "#F9AFAD",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#fccb90",\n        "pos":0\n      },\n      {\n        "color":"#d57eeb",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Deep Blue",\n    "favorite":false,\n    "index":"016",\n    "deg":120,\n    "group":[\n      "#259BE5",\n      "#FC96D3",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#e0c3fc",\n        "pos":0\n      },\n      {\n        "color":"#8ec5fc",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Ripe Malinka",\n    "favorite":false,\n    "index":"017",\n    "deg":120,\n    "group":[\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#f093fb",\n        "pos":0\n      },\n      {\n        "color":"#f5576c",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Cloudy Knoxville",\n    "favorite":false,\n    "index":"018",\n    "deg":120,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#fdfbfb",\n        "pos":0\n      },\n      {\n        "color":"#ebedee",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Malibu Beach",\n    "favorite":false,\n    "index":"019",\n    "deg":0,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#4facfe",\n        "pos":0\n      },\n      {\n        "color":"#00f2fe",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"New Life",\n    "favorite":false,\n    "index":"020",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#43e97b",\n        "pos":0\n      },\n      {\n        "color":"#38f9d7",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"True Sunset",\n    "favorite":false,\n    "index":"021",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#fa709a",\n        "pos":0\n      },\n      {\n        "color":"#fee140",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Morpheus Den",\n    "favorite":false,\n    "index":"022",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#30cfd0",\n        "pos":0\n      },\n      {\n        "color":"#330867",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Rare Wind",\n    "favorite":false,\n    "index":"023",\n    "deg":0,\n    "group":[\n      "#E5E9EC",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#a8edea",\n        "pos":0\n      },\n      {\n        "color":"#fed6e3",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Near Moon",\n    "favorite":false,\n    "index":"024",\n    "deg":0,\n    "group":[\n      "#7BCC9B",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#5ee7df",\n        "pos":0\n      },\n      {\n        "color":"#b490ca",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Wild Apple",\n    "favorite":false,\n    "index":"025",\n    "deg":0,\n    "group":[\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#d299c2",\n        "pos":0\n      },\n      {\n        "color":"#fef9d7",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Saint Petersburg",\n    "favorite":false,\n    "index":"026",\n    "deg":135,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#f5f7fa",\n        "pos":0\n      },\n      {\n        "color":"#c3cfe2",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Arielles Smile",\n    "favorite":false,\n    "index":"027",\n    "deg":0,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#16d9e3",\n        "pos":0\n      },\n      {\n        "color":"#30c7ec",\n        "pos":47\n      },\n      {\n        "color":"#46aef7",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Plum Plate",\n    "favorite":false,\n    "index":"028",\n    "deg":135,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#667eea",\n        "pos":0\n      },\n      {\n        "color":"#764ba2",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Everlasting Sky",\n    "favorite":false,\n    "index":"029",\n    "deg":135,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#fdfcfb",\n        "pos":0\n      },\n      {\n        "color":"#e2d1c3",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Happy Fisher",\n    "favorite":false,\n    "index":"030",\n    "deg":120,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#89f7fe",\n        "pos":0\n      },\n      {\n        "color":"#66a6ff",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Blessing",\n    "favorite":false,\n    "index":"031",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#fddb92",\n        "pos":0\n      },\n      {\n        "color":"#d1fdff",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Sharpeye Eagle",\n    "favorite":false,\n    "index":"032",\n    "deg":0,\n    "group":[\n      "#7BCC9B",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#9890e3",\n        "pos":0\n      },\n      {\n        "color":"#b1f4cf",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Ladoga Bottom",\n    "favorite":false,\n    "index":"033",\n    "deg":0,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#ebc0fd",\n        "pos":0\n      },\n      {\n        "color":"#d9ded8",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Lemon Gate",\n    "favorite":false,\n    "index":"034",\n    "deg":0,\n    "group":[\n      "#7BCC9B",\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#96fbc4",\n        "pos":0\n      },\n      {\n        "color":"#f9f586",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Itmeo Branding",\n    "favorite":false,\n    "index":"035",\n    "deg":180,\n    "group":[\n      "#259BE5",\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#2af598",\n        "pos":0\n      },\n      {\n        "color":"#009efd",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Zeus Miracle",\n    "favorite":false,\n    "index":"036",\n    "deg":0,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#cd9cf2",\n        "pos":0\n      },\n      {\n        "color":"#f6f3ff",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Old Hat",\n    "favorite":false,\n    "index":"037",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#e4afcb",\n        "pos":0\n      },\n      {\n        "color":"#b8cbb8",\n        "pos":0\n      },\n      {\n        "color":"#b8cbb8",\n        "pos":0\n      },\n      {\n        "color":"#e2c58b",\n        "pos": 30\n      },\n      {\n        "color":"#c2ce9c",\n        "pos": 64\n      },\n      {\n        "color":"#7edbdc",\n        "pos": 100\n      }\n    ]\n  },\n  {\n    "name":"Star Wine",\n    "favorite":false,\n    "index":"038",\n    "deg":0,\n    "group":[\n      "#FC96D3",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#b8cbb8",\n        "pos":0\n      },\n      {\n        "color":"#b8cbb8",\n        "pos":0\n      },\n      {\n        "color":"#b465da",\n        "pos":0\n      },\n      {\n        "color":"#cf6cc9",\n        "pos":33\n      },\n      {\n        "color":"#ee609c",\n        "pos": 66\n      },\n      {\n        "color":"#ee609c",\n        "pos": 100\n      }\n    ]\n  },\n  {\n    "name":"Blue Velvet",\n    "favorite":false,\n    "index":"039",\n    "deg":0,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#6a11cb",\n        "pos":0\n      },\n      {\n        "color":"#2575fc",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Happy Acid",\n    "favorite":false,\n    "index":"041",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#37ecba",\n        "pos":0\n      },\n      {\n        "color":"#72afd3",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Awesome Pine",\n    "favorite":false,\n    "index":"042",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#ebbba7",\n        "pos":0\n      },\n      {\n        "color":"#cfc7f8",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"New York",\n    "favorite":false,\n    "index":"043",\n    "deg":0,\n    "group":[\n      "#259BE5",\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#fff1eb",\n        "pos":0\n      },\n      {\n        "color":"#ace0f9",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Shy Rainbow",\n    "favorite":false,\n    "index":"044",\n    "deg":0,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#eea2a2",\n        "pos":0\n      },\n      {\n        "color":"#bbc1bf",\n        "pos":19\n      },\n      {\n        "color":"#57c6e1",\n        "pos":42\n      }\n    ]\n  },\n  {\n    "name":"Mixed Hopes",\n    "favorite":false,\n    "index":"046",\n    "deg":0,\n    "group":[\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#c471f5",\n        "pos":0\n      },\n      {\n        "color":"#fa71cd",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Fly High",\n    "favorite":false,\n    "index":"047",\n    "deg":0,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#48c6ef",\n        "pos":0\n      },\n      {\n        "color":"#6f86d6",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Strong Bliss",\n    "favorite":false,\n    "index":"048",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#f78ca0",\n        "pos":0\n      },\n      {\n        "color":"#f9748f",\n        "pos":19\n      },\n      {\n        "color":"#fd868c",\n        "pos":60\n      }\n    ]\n  },\n  {\n    "name":"Fresh Milk",\n    "favorite":false,\n    "index":"049",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#feada6",\n        "pos":0\n      },\n      {\n        "color":"#f5efef",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Snow Again",\n    "favorite":false,\n    "index":"050",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#e6e9f0",\n        "pos":0\n      },\n      {\n        "color":"#eef1f5",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"February Ink",\n    "favorite":false,\n    "index":"051",\n    "deg":0,\n    "group":[\n      "#259BE5",\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#accbee",\n        "pos":0\n      },\n      {\n        "color":"#e7f0fd",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Kind Steel",\n    "favorite":false,\n    "index":"052",\n    "deg":-20,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#e9defa",\n        "pos":0\n      },\n      {\n        "color":"#fbfcdb",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Soft Grass",\n    "favorite":false,\n    "index":"053",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#c1dfc4",\n        "pos":0\n      },\n      {\n        "color":"#deecdd",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Grown Early",\n    "favorite":false,\n    "index":"054",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#0ba360",\n        "pos":0\n      },\n      {\n        "color":"#3cba92",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Sharp Blues",\n    "favorite":false,\n    "index":"055",\n    "deg":0,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#00c6fb",\n        "pos":0\n      },\n      {\n        "color":"#005bea",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Shady Water",\n    "favorite":false,\n    "index":"056",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#74ebd5",\n        "pos":0\n      },\n      {\n        "color":"#9face6",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Dirty Beauty",\n    "favorite":false,\n    "index":"057",\n    "deg":0,\n    "group":[\n      "#259BE5",\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#6a85b6",\n        "pos":0\n      },\n      {\n        "color":"#bac8e0",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Great Whale",\n    "favorite":false,\n    "index":"058",\n    "deg":0,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#a3bded",\n        "pos":0\n      },\n      {\n        "color":"#6991c7",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Teen Notebook",\n    "favorite":false,\n    "index":"059",\n    "deg":0,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#9795f0",\n        "pos":0\n      },\n      {\n        "color":"#fbc8d4",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Polite Rumors",\n    "favorite":false,\n    "index":"060",\n    "deg":0,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#a7a6cb",\n        "pos":0\n      },\n      {\n        "color":"#8989ba",\n        "pos":52\n      },\n      {\n        "color":"#8989ba",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Sweet Period",\n    "favorite":false,\n    "index":"061",\n    "deg":0,\n    "group":[\n      "#F9AFAD",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#3f51b1",\n        "pos":0\n      },\n      {\n        "color":"#5a55ae",\n        "pos":13\n      },\n      {\n        "color":"#7b5fac",\n        "pos":25\n      },\n      {\n        "color":"#8f6aae",\n        "pos": 38\n      },\n      {\n        "color":"#a86aa4",\n        "pos": 50\n      },\n      {\n        "color":"#cc6b8e",\n        "pos": 62\n      },\n      {\n        "color":"#f18271",\n        "pos": 75\n      },\n      {\n        "color":"#f3a469",\n        "pos": 87\n      },\n      {\n        "color":"#f7c978",\n        "pos": 100\n      }\n    ]\n  },\n  {\n    "name":"Wide Matrix",\n    "favorite":false,\n    "index":"062",\n    "deg":0,\n    "group":[\n      "#F9AFAD",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#fcc5e4",\n        "pos":0\n      },\n      {\n        "color":"#fda34b",\n        "pos":15\n      },\n      {\n        "color":"#ff7882",\n        "pos":35\n      },\n      {\n        "color":"#c8699e",\n        "pos":52\n      },\n      {\n        "color":"#7046aa",\n        "pos":71\n      },\n      {\n        "color":"#0c1db8",\n        "pos":87\n      },\n      {\n        "color":"#020f75",\n        "pos": 100\n      }\n    ]\n  },\n  {\n    "name":"Soft Cherish",\n    "favorite":false,\n    "index":"063",\n    "deg":0,\n    "group":[\n      "#E5E9EC",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#dbdcd7",\n        "pos":0\n      },\n      {\n        "color":"#dddcd7",\n        "pos":24\n      },\n      {\n        "color":"#e2c9cc",\n        "pos":30\n      },\n      {\n        "color":"#e7627d",\n        "pos":46\n      },\n      {\n        "color":"#b8235a",\n        "pos": 59\n      },\n      {\n        "color":"#801357",\n        "pos":71\n      },\n      {\n        "color":"#3d1635",\n        "pos":84\n      },\n      {\n        "color":"#1c1a27",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Red Salvation",\n    "favorite":false,\n    "index":"064",\n    "deg":0,\n    "group":[\n      "#259BE5",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#f43b47",\n        "pos":0\n      },\n      {\n        "color":"#453a94",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Burning Spring",\n    "favorite":false,\n    "index":"065",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#4fb576",\n        "pos":0\n      },\n      {\n        "color":"#44c489",\n        "pos":30\n      },\n      {\n        "color":"#28a9ae",\n        "pos":46\n      },\n      {\n        "color":"#28a2b7",\n        "pos": 59\n      },\n      {\n        "color":"#4c7788",\n        "pos":71\n      },\n      {\n        "color":"#6c4f63",\n        "pos":80\n      },\n      {\n        "color":"#432c39",\n        "pos": 100\n      }\n    ]\n  },\n  {\n    "name":"Night Party",\n    "favorite":false,\n    "index":"066",\n    "deg":0,\n    "group":[\n      "#259BE5",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#0250c5",\n        "pos":0\n      },\n      {\n        "color":"#d43f8d",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Sky Glider",\n    "favorite":false,\n    "index":"067",\n    "deg":0,\n    "group":[\n      "#7BCC9B",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#88d3ce",\n        "pos":0\n      },\n      {\n        "color":"#6e45e2",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Heaven Peach",\n    "favorite":false,\n    "index":"068",\n    "deg":0,\n    "group":[\n      "#259BE5",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#d9afd9",\n        "pos":0\n      },\n      {\n        "color":"#97d9e1",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Purple Division",\n    "favorite":false,\n    "index":"069",\n    "deg":0,\n    "group":[\n      "#FC96D3",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#7028e4",\n        "pos":0\n      },\n      {\n        "color":"#e5b2ca",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Aqua Splash",\n    "favorite":false,\n    "index":"070",\n    "deg":15,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#13547a",\n        "pos":0\n      },\n      {\n        "color":"#80d0c7",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Above Clouds",\n    "favorite":false,\n    "index":"071",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#BDBBBE",\n        "pos":0\n      },\n      {\n        "color":"#9D9EA3",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Spiky Naga",\n    "favorite":false,\n    "index":"072",\n    "deg":0,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#505285",\n        "pos":0\n      },\n      {\n        "color":"#585e92",\n        "pos":12\n      },\n      {\n        "color":"#65689f",\n        "pos":25\n      }\n    ]\n  },\n  {\n    "name":"Love Kiss",\n    "favorite":false,\n    "index":"073",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#ff0844",\n        "pos":0\n      },\n      {\n        "color":"#ffb199",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Clean Mirror",\n    "favorite":false,\n    "index":"075",\n    "deg":45,\n    "group":[\n      "#259BE5",\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#93a5cf",\n        "pos":0\n      },\n      {\n        "color":"#e4efe9",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Premium Dark",\n    "favorite":false,\n    "index":"076",\n    "deg":0,\n    "group":[\n\n    ],\n    "gradient":[\n      {\n        "color":"#434343",\n        "pos":0\n      },\n      {\n        "color":"#000000",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Cold Evening",\n    "favorite":false,\n    "index":"077",\n    "deg":0,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#0c3483",\n        "pos":0\n      },\n      {\n        "color":"#a2b6df",\n        "pos":100\n      },\n      {\n        "color":"#6b8cce",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Cochiti Lake",\n    "favorite":false,\n    "index":"078",\n    "deg":45,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#93a5cf",\n        "pos":0\n      },\n      {\n        "color":"#e4efe9",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Summer Games",\n    "favorite":false,\n    "index":"079",\n    "deg":0,\n    "group":[\n      "#259BE5",\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#92fe9d",\n        "pos":0\n      },\n      {\n        "color":"#00c9ff",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Passionate Bed",\n    "favorite":false,\n    "index":"080",\n    "deg":0,\n    "group":[\n      "#F9AFAD",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#ff758c",\n        "pos":0\n      },\n      {\n        "color":"#ff7eb3",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Mountain Rock",\n    "favorite":false,\n    "index":"081",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#868f96",\n        "pos":0\n      },\n      {\n        "color":"#596164",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Desert Hump",\n    "favorite":false,\n    "index":"082",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#c79081",\n        "pos":0\n      },\n      {\n        "color":"#dfa579",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Jungle Day",\n    "favorite":false,\n    "index":"083",\n    "deg":45,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#8baaaa",\n        "pos":0\n      },\n      {\n        "color":"#ae8b9c",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Phoenix Start",\n    "favorite":false,\n    "index":"084",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#f83600",\n        "pos":0\n      },\n      {\n        "color":"#f9d423",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"October Silenceiver",\n    "favorite":false,\n    "index":"085",\n    "deg":-20,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#b721ff",\n        "pos":0\n      },\n      {\n        "color":"#21d4fd",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Faraway River",\n    "favorite":false,\n    "index":"086",\n    "deg":-20,\n    "group":[\n      "#7BCC9B",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#6e45e2",\n        "pos":0\n      },\n      {\n        "color":"#88d3ce",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Alchemist Lab",\n    "favorite":false,\n    "index":"087",\n    "deg":-20,\n    "group":[\n      "#7BCC9B",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#d558c8",\n        "pos":0\n      },\n      {\n        "color":"#24d292",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Over Sun",\n    "favorite":false,\n    "index":"088",\n    "deg":60,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#abecd6",\n        "pos":0\n      },\n      {\n        "color":"#fbed96",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Premium White",\n    "favorite":false,\n    "index":"089",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#d5d4d0",\n        "pos":0\n      },\n      {\n        "color":"#d5d4d0",\n        "pos":1\n      },\n      {\n        "color":"#eeeeec",\n        "pos":31\n      }\n    ]\n  },\n  {\n    "name":"Mars Party",\n    "favorite":false,\n    "index":"090",\n    "deg":0,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#5f72bd",\n        "pos":0\n      },\n      {\n        "color":"#9b23ea",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Eternal Constance",\n    "favorite":false,\n    "index":"091",\n    "deg":0,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#09203f",\n        "pos":0\n      },\n      {\n        "color":"#537895",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Japan Blush",\n    "favorite":false,\n    "index":"092",\n    "deg":-20,\n    "group":[\n      "#F9AFAD",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#ddd6f3",\n        "pos":0\n      },\n      {\n        "color":"#faaca8",\n        "pos":100\n      },\n      {\n        "color":"#faaca8",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Smiling Rain",\n    "favorite":false,\n    "index":"093",\n    "deg":-20,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#dcb0ed",\n        "pos":0\n      },\n      {\n        "color":"#99c99c",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Cloudy Apple",\n    "favorite":false,\n    "index":"094",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#f3e7e9",\n        "pos":0\n      },\n      {\n        "color":"#e3eeff",\n        "pos":99\n      },\n      {\n        "color":"#e3eeff",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Big Mango",\n    "favorite":false,\n    "index":"095",\n    "deg":0,\n    "group":[\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#c71d6f",\n        "pos":0\n      },\n      {\n        "color":"#d09693",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Healthy Water",\n    "favorite":false,\n    "index":"096",\n    "deg":60,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#96deda",\n        "pos":0\n      },\n      {\n        "color":"#50c9c3",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Amour Amour",\n    "favorite":false,\n    "index":"097",\n    "deg":0,\n    "group":[\n      "#E5E9EC",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#f77062",\n        "pos":0\n      },\n      {\n        "color":"#fe5196",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Risky Concrete",\n    "favorite":false,\n    "index":"098",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#c4c5c7",\n        "pos":0\n      },\n      {\n        "color":"#dcdddf",\n        "pos":52\n      },\n      {\n        "color":"#ebebeb",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Strong Stick",\n    "favorite":false,\n    "index":"099",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#a8caba",\n        "pos":0\n      },\n      {\n        "color":"#5d4157",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Vicious Stance",\n    "favorite":false,\n    "index":"100",\n    "deg":60,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#29323c",\n        "pos":0\n      },\n      {\n        "color":"#485563",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Palo Alto",\n    "favorite":false,\n    "index":"101",\n    "deg":-60,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#16a085",\n        "pos":0\n      },\n      {\n        "color":"#f4d03f",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Happy Memories",\n    "favorite":false,\n    "index":"102",\n    "deg":-60,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#ff5858",\n        "pos":0\n      },\n      {\n        "color":"#f09819",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Midnight Bloom",\n    "favorite":false,\n    "index":"103",\n    "deg":-20,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#2b5876",\n        "pos":0\n      },\n      {\n        "color":"#4e4376",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Crystalline",\n    "favorite":false,\n    "index":"104",\n    "deg":-20,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#00cdac",\n        "pos":0\n      },\n      {\n        "color":"#8ddad5",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Raccoon Back",\n    "favorite":false,\n    "index":"105",\n    "deg":-180,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#BCC5CE",\n        "pos":0\n      },\n      {\n        "color":"#929EAD",\n        "pos":98\n      }\n    ]\n  },\n  {\n    "name":"Party Bliss",\n    "favorite":false,\n    "index":"106",\n    "deg":0,\n    "group":[\n      "#259BE5",\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#4481eb",\n        "pos":0\n      },\n      {\n        "color":"#04befe",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Confident Cloud",\n    "favorite":false,\n    "index":"107",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#dad4ec",\n        "pos":0\n      },\n      {\n        "color":"#dad4ec",\n        "pos":1\n      },\n      {\n        "color":"#f3e7e9",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Le Cocktail",\n    "favorite":false,\n    "index":"108",\n    "deg":45,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#874da2",\n        "pos":0\n      },\n      {\n        "color":"#c43a30",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"River City",\n    "favorite":false,\n    "index":"109",\n    "deg":0,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#4481eb",\n        "pos":0\n      },\n      {\n        "color":"#04befe",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Frozen Berry",\n    "favorite":false,\n    "index":"110",\n    "deg":0,\n    "group":[\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#e8198b",\n        "pos":0\n      },\n      {\n        "color":"#c7eafd",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Elegance",\n    "favorite":false,\n    "index":"111",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#EADFDF",\n        "pos":59\n      },\n      {\n        "color":"#ECE2DF",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Child Care",\n    "favorite":false,\n    "index":"112",\n    "deg":-20,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#f794a4",\n        "pos":0\n      },\n      {\n        "color":"#fdd6bd",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Flying Lemon",\n    "favorite":false,\n    "index":"113",\n    "deg":60,\n    "group":[\n      "#259BE5",\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#64b3f4",\n        "pos":0\n      },\n      {\n        "color":"#c2e59c",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"New Retrowave",\n    "favorite":false,\n    "index":"114",\n    "deg":0,\n    "group":[\n      "#F9AFAD",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#3b41c5",\n        "pos":0\n      },\n      {\n        "color":"#a981bb",\n        "pos":49\n      },\n      {\n        "color":"#ffc8a9",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Hidden Jaguar",\n    "favorite":false,\n    "index":"115",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#0fd850",\n        "pos":0\n      },\n      {\n        "color":"#f9f047",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Above The Sky",\n    "favorite":false,\n    "index":"116",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#d3d3d3",\n        "pos":0\n      },\n      {\n        "color":"#d3d3d3",\n        "pos":1\n      },\n      {\n        "color":"#e0e0e0",\n        "pos":26\n      }\n    ]\n  },\n  {\n    "name":"Nega",\n    "favorite":false,\n    "index":"117",\n    "deg":45,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#ee9ca7",\n        "pos":0\n      },\n      {\n        "color":"#ffdde1",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Dense Water",\n    "favorite":false,\n    "index":"118",\n    "deg":0,\n    "group":[\n      "#7BCC9B",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#3ab5b0",\n        "pos":0\n      },\n      {\n        "color":"#3d99be",\n        "pos":31\n      },\n      {\n        "color":"#56317a",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Seashore",\n    "favorite":false,\n    "index":"120",\n    "deg":0,\n    "group":[\n      "#259BE5",\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#209cff",\n        "pos":0\n      },\n      {\n        "color":"#68e0cf",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Marble Wall",\n    "favorite":false,\n    "index":"121",\n    "deg":0,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#bdc2e8",\n        "pos":0\n      },\n      {\n        "color":"#bdc2e8",\n        "pos":1\n      },\n      {\n        "color":"#e6dee9",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Cheerful Caramel",\n    "favorite":false,\n    "index":"122",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#e6b980",\n        "pos":0\n      },\n      {\n        "color":"#eacda3",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Night Sky",\n    "favorite":false,\n    "index":"123",\n    "deg":0,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#1e3c72",\n        "pos":0\n      },\n      {\n        "color":"#1e3c72",\n        "pos":1\n      },\n      {\n        "color":"#2a5298",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Magic Lake",\n    "favorite":false,\n    "index":"124",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#d5dee7",\n        "pos":0\n      },\n      {\n        "color":"#ffafbd",\n        "pos":0\n      },\n      {\n        "color":"#c9ffbf",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Young Grass",\n    "favorite":false,\n    "index":"125",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#9be15d",\n        "pos":0\n      },\n      {\n        "color":"#00e3ae",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Colorful Peach",\n    "favorite":false,\n    "index":"126",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#ed6ea0",\n        "pos":0\n      },\n      {\n        "color":"#ec8c69",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Gentle Care",\n    "favorite":false,\n    "index":"127",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#ffc3a0",\n        "pos":0\n      },\n      {\n        "color":"#ffafbd",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Plum Bath",\n    "favorite":false,\n    "index":"128",\n    "deg":0,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#cc208e",\n        "pos":0\n      },\n      {\n        "color":"#6713d2",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Happy Unicorn",\n    "favorite":false,\n    "index":"129",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#b3ffab",\n        "pos":0\n      },\n      {\n        "color":"#12fff7",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Full Metal",\n    "favorite":false,\n    "index":"130",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#D5DEE7",\n        "pos":0\n      },\n      {\n        "color":"#E8EBF2",\n        "pos":50\n      },\n      {\n        "color":"#E2E7ED",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"African Field",\n    "favorite":false,\n    "index":"131",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#65bd60",\n        "pos":0\n      },\n      {\n        "color":"#5ac1a8",\n        "pos":25\n      },\n      {\n        "color":"#3ec6ed",\n        "pos":50\n      }\n    ]\n  },\n  {\n    "name":"Solid Stone",\n    "favorite":false,\n    "index":"132",\n    "deg":0,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#243949",\n        "pos":0\n      },\n      {\n        "color":"#517fa4",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Orange Juice",\n    "favorite":false,\n    "index":"133",\n    "deg":-20,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#fc6076",\n        "pos":0\n      },\n      {\n        "color":"#ff9a44",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Glass Water",\n    "favorite":false,\n    "index":"134",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#dfe9f3",\n        "pos":0\n      },\n      {\n        "color":"#ffffff",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"North Miracle",\n    "favorite":false,\n    "index":"136",\n    "deg":0,\n    "group":[\n      "#259BE5",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#00dbde",\n        "pos":0\n      },\n      {\n        "color":"#fc00ff",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Fruit Blend",\n    "favorite":false,\n    "index":"137",\n    "deg":0,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#f9d423",\n        "pos":0\n      },\n      {\n        "color":"#ff4e50",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Millennium Pine",\n    "favorite":false,\n    "index":"138",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#50cc7f",\n        "pos":0\n      },\n      {\n        "color":"#f5d100",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"High Flight",\n    "favorite":false,\n    "index":"139",\n    "deg":0,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#0acffe",\n        "pos":0\n      },\n      {\n        "color":"#495aff",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Mole Hall",\n    "favorite":false,\n    "index":"140",\n    "deg":-20,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#616161",\n        "pos":0\n      },\n      {\n        "color":"#9bc5c3",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Space Shift",\n    "favorite":false,\n    "index":"142",\n    "deg":60,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#3d3393",\n        "pos":0\n      },\n      {\n        "color":"#2b76b9",\n        "pos":37\n      },\n      {\n        "color":"#2cacd1",\n        "pos":65\n      },\n      {\n        "color": "#35eb93",\n        "pos": 100\n      }\n    ]\n  },\n  {\n    "name":"Forest Inei",\n    "favorite":false,\n    "index":"143",\n    "deg":0,\n    "group":[\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#df89b5",\n        "pos":0\n      },\n      {\n        "color":"#bfd9fe",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Royal Garden",\n    "favorite":false,\n    "index":"144",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#ed6ea0",\n        "pos":0\n      },\n      {\n        "color":"#ec8c69",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Rich Metal",\n    "favorite":false,\n    "index":"145",\n    "deg":0,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#d7d2cc",\n        "pos":0\n      },\n      {\n        "color":"#304352",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Juicy Cake",\n    "favorite":false,\n    "index":"146",\n    "deg":0,\n    "group":[\n      "#F9AFAD",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#e14fad",\n        "pos":0\n      },\n      {\n        "color":"#f9d423",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Smart Indigo",\n    "favorite":false,\n    "index":"147",\n    "deg":0,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#b224ef",\n        "pos":0\n      },\n      {\n        "color":"#7579ff",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Sand Strike",\n    "favorite":false,\n    "index":"148",\n    "deg":0,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#c1c161",\n        "pos":0\n      },\n      {\n        "color":"#c1c161",\n        "pos":0\n      },\n      {\n        "color":"#d4d4b1",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Norse Beauty",\n    "favorite":false,\n    "index":"149",\n    "deg":0,\n    "group":[\n      "#FC96D3",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#ec77ab",\n        "pos":0\n      },\n      {\n        "color":"#7873f5",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Aqua Guidance",\n    "favorite":false,\n    "index":"150",\n    "deg":0,\n    "group":[\n      "#259BE5",\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#007adf",\n        "pos":0\n      },\n      {\n        "color":"#00ecbc",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Sun Veggie",\n    "favorite":false,\n    "index":"151",\n    "deg":-225,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#20E2D7",\n        "pos":0\n      },\n      {\n        "color":"#F9FEA5",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Sea Lord",\n    "favorite":false,\n    "index":"152",\n    "deg":-225,\n    "group":[\n      "#259BE5",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#2CD8D5",\n        "pos":0\n      },\n      {\n        "color":"#C5C1FF",\n        "pos":56\n      },\n      {\n        "color":"#FFBAC3",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Black Sea",\n    "favorite":false,\n    "index":"153",\n    "deg":-225,\n    "group":[\n      "#7BCC9B",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#2CD8D5",\n        "pos":0\n      },\n      {\n        "color":"#6B8DD6",\n        "pos":48\n      },\n      {\n        "color":"#8E37D7",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Grass Shampoo",\n    "favorite":false,\n    "index":"154",\n    "deg":-225,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#DFFFCD",\n        "pos":0\n      },\n      {\n        "color":"#90F9C4",\n        "pos":48\n      },\n      {\n        "color":"#39F3BB",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Landing Aircraft",\n    "favorite":false,\n    "index":"155",\n    "deg":-225,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#5D9FFF",\n        "pos":0\n      },\n      {\n        "color":"#B8DCFF",\n        "pos":48\n      },\n      {\n        "color":"#6BBBFF",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Witch Dance",\n    "favorite":false,\n    "index":"156",\n    "deg":-225,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#A8BFFF",\n        "pos":0\n      },\n      {\n        "color":"#884D80",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Sleepless Night",\n    "favorite":false,\n    "index":"157",\n    "deg":-225,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#5271C4",\n        "pos":0\n      },\n      {\n        "color":"#B19FFF",\n        "pos":48\n      },\n      {\n        "color":"#ECA1FE",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Angel Care",\n    "favorite":false,\n    "index":"158",\n    "deg":-225,\n    "group":[\n      "#F9AFAD"\n    ],\n    "gradient":[\n      {\n        "color":"#FFE29F",\n        "pos":0\n      },\n      {\n        "color":"#FFA99F",\n        "pos":48\n      },\n      {\n        "color":"#FF719A",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Crystal River",\n    "favorite":false,\n    "index":"159",\n    "deg":-225,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#22E1FF",\n        "pos":0\n      },\n      {\n        "color":"#1D8FE1",\n        "pos":48\n      },\n      {\n        "color":"#625EB1",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Soft Lipstick",\n    "favorite":false,\n    "index":"160",\n    "deg":-225,\n    "group":[\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#B6CEE8",\n        "pos":0\n      },\n      {\n        "color":"#F578DC",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Salt Mountain",\n    "favorite":false,\n    "index":"161",\n    "deg":-225,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#FFFEFF",\n        "pos":0\n      },\n      {\n        "color":"#D7FFFE",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Perfect White",\n    "favorite":false,\n    "index":"162",\n    "deg":-225,\n    "group":[\n      "#E5E9EC"\n    ],\n    "gradient":[\n      {\n        "color":"#E3FDF5",\n        "pos":0\n      },\n      {\n        "color":"#FFE6FA",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Fresh Oasis",\n    "favorite":false,\n    "index":"163",\n    "deg":-225,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#7DE2FC",\n        "pos":0\n      },\n      {\n        "color":"#B9B6E5",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Strict November",\n    "favorite":false,\n    "index":"164",\n    "deg":-225,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#CBBACC",\n        "pos":0\n      },\n      {\n        "color":"#2580B3",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Morning Salad",\n    "favorite":false,\n    "index":"165",\n    "deg":-225,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#B7F8DB",\n        "pos":0\n      },\n      {\n        "color":"#50A7C2",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Deep Relief",\n    "favorite":false,\n    "index":"166",\n    "deg":-225,\n    "group":[\n      "#259BE5"\n    ],\n    "gradient":[\n      {\n        "color":"#7085B6",\n        "pos":0\n      },\n      {\n        "color":"#87A7D9",\n        "pos":50\n      },\n      {\n        "color":"#DEF3F8",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Sea Strike",\n    "favorite":false,\n    "index":"167",\n    "deg":-225,\n    "group":[\n      "#259BE5",\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#77FFD2",\n        "pos":0\n      },\n      {\n        "color":"#6297DB",\n        "pos":48\n      },\n      {\n        "color":"#1EECFF",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Night Call",\n    "favorite":false,\n    "index":"168",\n    "deg":-225,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#AC32E4",\n        "pos":0\n      },\n      {\n        "color":"#7918F2",\n        "pos":48\n      },\n      {\n        "color":"#4801FF",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Supreme Sky",\n    "favorite":false,\n    "index":"169",\n    "deg":-225,\n    "group":[\n      "#259BE5",\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#D4FFEC",\n        "pos":0\n      },\n      {\n        "color":"#57F2CC",\n        "pos":48\n      },\n      {\n        "color":"#4596FB",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Light Blue",\n    "favorite":false,\n    "index":"170",\n    "deg":-225,\n    "group":[\n      "#259BE5",\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#9EFBD3",\n        "pos":0\n      },\n      {\n        "color":"#57E9F2",\n        "pos":48\n      },\n      {\n        "color":"#45D4FB",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Mind Crawl",\n    "favorite":false,\n    "index":"171",\n    "deg":-225,\n    "group":[\n      "#7BCC9B"\n    ],\n    "gradient":[\n      {\n        "color":"#473B7B",\n        "pos":0\n      },\n      {\n        "color":"#3584A7",\n        "pos":51\n      },\n      {\n        "color":"#30D2BE",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Lily Meadow",\n    "favorite":false,\n    "index":"172",\n    "deg":-225,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#65379B",\n        "pos":0\n      },\n      {\n        "color":"#886AEA",\n        "pos":53\n      },\n      {\n        "color":"#6457C6",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Sugar Lollipop",\n    "favorite":false,\n    "index":"173",\n    "deg":-225,\n    "group":[\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#A445B2",\n        "pos":0\n      },\n      {\n        "color":"#D41872",\n        "pos":52\n      },\n      {\n        "color":"#FF0066",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Sweet Dessert",\n    "favorite":false,\n    "index":"174",\n    "deg":-225,\n    "group":[\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#7742B2",\n        "pos":0\n      },\n      {\n        "color":"#F180FF",\n        "pos":52\n      },\n      {\n        "color":"#FD8BD9",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Magic Ray",\n    "favorite":false,\n    "index":"175",\n    "deg":-225,\n    "group":[\n      "#259BE5",\n      "#FC96D3",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#FF3CAC",\n        "pos":0\n      },\n      {\n        "color":"#562B7C",\n        "pos":52\n      },\n      {\n        "color":"#2B86C5",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Teen Party",\n    "favorite":false,\n    "index":"176",\n    "deg":-225,\n    "group":[\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#FF057C",\n        "pos":0\n      },\n      {\n        "color":"#8D0B93",\n        "pos":50\n      },\n      {\n        "color":"#321575",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Frozen Heat",\n    "favorite":false,\n    "index":"177",\n    "deg":-225,\n    "group":[\n      "#259BE5",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#FF057C",\n        "pos":0\n      },\n      {\n        "color":"#7C64D5",\n        "pos":48\n      },\n      {\n        "color":"#4CC3FF",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Gagarin View",\n    "favorite":false,\n    "index":"178",\n    "deg":-225,\n    "group":[\n      "#7BCC9B",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#69EACB",\n        "pos":0\n      },\n      {\n        "color":"#EACCF8",\n        "pos":48\n      },\n      {\n        "color":"#6654F1",\n        "pos":100\n      }\n    ]\n  },\n  {\n    "name":"Fabled Sunset",\n    "favorite":false,\n    "index":"179",\n    "deg":-225,\n    "group":[\n      "#259BE5",\n      "#F9AFAD",\n      "#FC96D3"\n    ],\n    "gradient":[\n      {\n        "color":"#231557",\n        "pos":0\n      },\n      {\n        "color":"#44107A",\n        "pos":29\n      },\n      {\n        "color":"#FF1361",\n        "pos":67\n      }\n    ]\n  },\n  {\n    "name":"Perfect Blue",\n    "favorite":false,\n    "index":"180",\n    "deg":-225,\n    "group":[\n      "#259BE5",\n      "#8B56E9"\n    ],\n    "gradient":[\n      {\n        "color":"#3D4E81",\n        "pos":0\n      },\n      {\n        "color":"#5753C9",\n        "pos":48\n      },\n      {\n        "color":"#6E7FF3",\n        "pos":100\n      }\n    ]\n  }\n]'
}),define("text!data/patterns.json",[],function(){return'{\n  "patterns": [\n    "arches.png",\n    "absurdidad.png",\n    "Sports.png",\n    "eight_horns.png",\n    "circles-dark.png",\n    "leaves.png",\n    "sakura.png",\n    "giftly.png",\n    "halftone-yellow.png",\n    "food.png",\n    "cloudy-day.png",\n    "weather.png",\n    "tileable_wood_texture.png",\n    "retina_wood.png",\n    "purty_wood.png",\n    "restaurant_icons.png",\n    "congruent_pentagon.png",\n\n    "60degree_gray.png",\n    "agsquare.png",\n    "arab_tile.png",\n    "asanoha-400px.png",\n    "az_subtle.png",\n    "back_pattern.png",\n    "bananas.png",\n    "batthern.png",\n    "beanstalk.png",\n    "beige_paper.png",\n    "bgnoise_lg.png",\n    "billie_holiday.png",\n    "binding_light.png",\n    "blizzard.png",\n    "blu_stripes.png",\n    "brickwall.png",\n    "bright_squares.png",\n    "brillant.png",\n    "brushed.png",\n    "brushed_alu.png",\n    "candyhole.png",\n    "cardboard_flat.png",\n    "checkered_pattern.png",\n    "christmas-colour.png",\n    "chruch.png",\n    "circles-light.png",\n    "circles.png",\n    "climpek.png",\n    "cloth.png",\n    "cloth_alike.png",\n    "confectionary.png",\n    "connect.png",\n    "contemporary_china.png",\n    "contemporary_china_2.png",\n    "cork-wallet.png",\n    "cork_1.png",\n    "corrugation.png",\n    "country-quilt.png",\n    "cream_dust.png",\n    "cream_pixels.png",\n    "crisp_paper_ruffles.png",\n    "creampaper.png",\n    "cross_scratches.png",\n    "crosses.png",\n    "cubes.png",\n    "cutcube.png",\n    "daimond_eyes.png",\n    "debut_light.png",\n    "diagonal-noise.png",\n    "diagonal_striped_brick.png",\n    "diagonal_waves.png",\n    "diagonales_decalees.png",\n    "diamond_upholstery.png",\n    "diamonds.png",\n    "dimension.png",\n    "doodles.png",\n    "double_lined.png",\n    "dust_scratches.png",\n    "ecailles.png",\n    "elastoplast.png",\n    "elegant_grid.png",\n    "embossed_paper.png",\n    "escheresque.png",\n    "fabric_plaid.png",\n    "fake_luxury.png",\n    "fancy_deboss.png",\n    "first_aid_kit.png",\n    "flowertrail.png",\n    "foggy_birds.png",\n    "foil.png",\n    "folk-pattern.png",\n    "funky-lines.png",\n    "furley_bg.png",\n    "gaming-pattern.png",\n    "geometry.png",\n    "geometry2.png",\n    "gold_scale.png",\n    "gplaypattern.png",\n    "gradient_squares.png",\n    "graphy.png",\n    "gray_jean.png",\n    "green_dust_scratch.png",\n    "grey.png",\n    "grey_sandbag.png",\n    "greyfloral.png",\n    "greyzz.png",\n    "grid_noise.png",\n    "gridme.png",\n    "grilled.png",\n    "halftone.png",\n    "handmadepaper.png",\n    "hexellence.png",\n    "hip-square.png",\n    "hoffman.png",\n    "honey_im_subtle.png",\n    "houndstooth-pattern.png",\n    "ignasi_pattern_s.png",\n    "intersection.png",\n    "just-waves.png",\n    "kindajean.png",\n    "knitted-netting.png",\n    "knitting250px.png",\n    "kuji.png",\n    "leaves-pattern.png",\n    "lghtmesh.png",\n    "light-grey-terrazzo.png",\n    "light-veneer.png",\n    "light_alu.png",\n    "light_checkered_tiles.png",\n    "light_grey.png",\n    "light_grey_floral_motif.png",\n    "light_honeycomb.png",\n    "light_noise_diagonal.png",\n    "light_toast.png",\n    "light_wool.png",\n    "lil_fiber.png",\n    "lined_paper.png",\n    "linen.png",\n    "little_triangles.png",\n    "littleknobs.png",\n    "logo_x_pattern.png",\n    "lyonnette.png",\n    "memphis-colorful.png",\n    "merely_cubed.png",\n    "mirrored_squares.png",\n    "morocco.png",\n    "nasty_fabric.png",\n    "new_year_background.png",\n    "nice_snow.png",\n    "nistri.png",\n    "noise_lines.png",\n    "noise_pattern_with_crosslines.png",\n    "noisy.png",\n    "noisy_grid.png",\n    "norwegian_rose.png",\n    "notebook.png",\n    "old_map.png",\n    "old_mathematics.png",\n    "old_moon.png",\n    "old_wall.png",\n    "organic-tiles.png",\n    "oriental.png",\n    "otis_redding.png",\n    "p1.png",\n    "p2.png",\n    "p4.png",\n    "p5.png",\n    "p6.png",\n    "paisley.png",\n    "palm-leaf.png",\n    "paper_2.png",\n    "paper_3.png",\n    "paven.png",\n    "photography.png",\n    "pineapplecut.png",\n    "pink_rice.png",\n    "pinstripe.png",\n    "pipes.png",\n    "pixel_weave.png",\n    "plaid.png",\n    "playstation-pattern.png",\n    "polaroid.png",\n    "polonez_car.png",\n    "polyester_lite.png",\n    "pool_table.png",\n    "pow-star.png",\n    "project_papper.png",\n    "ps_neutral.png",\n    "psychedelic_pattern.png",\n    "pw_maze_white.png",\n    "pw_pattern.png",\n    "pyramid.png",\n    "qbkls.png",\n    "quilt.png",\n    "regal.png",\n    "restaurant.png",\n    "reticular_tissue.png",\n    "retina_dust.png",\n    "retro_intro.png",\n    "ricepaper_v3.png",\n    "rip_jobs.png",\n    "rough_diagonal.png",\n    "round.png",\n    "satinweave.png",\n    "sativa.png",\n    "sayagata-400px.png",\n    "school.png",\n    "scribble_light.png",\n    "seamless_paper_texture.png",\n    "seigaiha.png",\n    "shinecaro.png",\n    "shinedotted.png",\n    "shl.png",\n    "silver_scales.png",\n    "skelatal_weave.png",\n    "skulls.png",\n    "skyscraper.png",\n    "small-crackle-bright.png",\n    "small_steps.png",\n    "small_tiles.png",\n    "sneaker_mesh_fabric.png",\n    "soft_circle_scales.png",\n    "soft_pad.png",\n    "sos.png",\n    "spiration dark.png",\n    "spiration-light.png",\n    "spring.png",\n    "sprinkles.png",\n    "squairy_light.png",\n    "square_bg.png",\n    "squared_metal.png",\n    "stacked_circles.png",\n    "stitched_wool.png",\n    "stonehaven.png",\n    "strange_bullseyes.png",\n    "straws.png",\n    "striped_lens.png",\n    "stripes-light.png",\n    "struckaxiom.png",\n    "stucco.png",\n    "subtle_dots.png",\n    "subtle_freckles.png",\n    "subtle_stripes.png",\n    "subtle_surface.png",\n    "subtle_white_mini_waves.png",\n    "subtle_zebra_3d.png",\n    "subtlenet2.png",\n    "sun-pattern.png",\n    "swirl.png",\n    "swirl_pattern.png",\n    "symphony.png",\n    "tapestry_pattern.png",\n    "tex2res5.png",\n    "textured_stripes.png",\n    "tic-tac-toe.png",\n    "ticks.png",\n    "tiny-squares.png",\n    "tiny_grid.png",\n    "topography.png",\n    "tree_bark.png",\n    "triangles_pattern.png",\n    "upfeathers.png",\n    "vaio_hard_edge.png",\n    "vertical-waves.png",\n    "vichy.png",\n    "vintage-leaves.png",\n    "vintage_speckles.png",\n    "wall4.png",\n    "washi.png",\n    "wavecut.png",\n    "wavegrid.png",\n    "wavy-dots.png",\n    "weave.png",\n    "wet_snow.png",\n    "whirlpool.png",\n    "white-waves.png",\n    "white_bed_sheet.png",\n    "white_brick_wall.png",\n    "white_carbon.png",\n    "white_carbonfiber.png",\n    "white_paperboard.png",\n    "white_plaster.png",\n    "white_sand.png",\n    "white_texture.png",\n    "white_tiles.png",\n    "white_wall.png",\n    "white_wave.png",\n    "whitediamond.png",\n    "wide_rectangles.png",\n    "wild_flowers.png",\n    "witewall_3.png",\n    "wood_pattern.png",\n    "wormz.png",\n    "worn_dots.png",\n    "wov.png",\n    "xv.png",\n\n    "green_gobbler.png",\n    "morocco-blue.png",\n    "zigzag.png",\n    "woven.png",\n    "random_grey_variations.png",\n    "always_grey.png",\n    "argyle.png",\n    "assault.png",\n    "beanstalk-dark.png",\n    "binding_dark.png",\n    "black_denim.png",\n    "black_lozenge.png",\n    "black_mamba.png",\n    "black_scales.png",\n    "black_thread.png",\n    "black_twill.png",\n    "bo_play_pattern.png",\n    "burried.png",\n    "carbon_fibre.png",\n    "carbon_fibre_big.png",\n    "carbon_fibre_v2.png",\n    "christmas-dark.png",\n    "classy_fabric.png",\n    "congruent_outline.png",\n    "country-quilt-dark.png",\n    "crossed_stripes.png",\n    "curls.png",\n    "dark-grey-terrazzo.png",\n    "dark-paths.png",\n    "dark-triangles.png",\n    "dark_Tire.png",\n    "dark_brick_wall.png",\n    "dark_circles.png",\n    "dark_dotted.png",\n    "dark_dotted2.png",\n    "dark_embroidery.png",\n    "dark_exa.png",\n    "dark_fish_skin.png",\n    "dark_geometric.png",\n    "dark_matter.png",\n    "dark_mosaic.png",\n    "dark_stripes.png",\n    "dark_wall.png",\n    "darkdenim3.png",\n    "darkness.png",\n    "debut_dark.png",\n    "denim.png",\n    "diagmonds.png",\n    "diagonal-squares.png",\n    "dvsup.png",\n    "escheresque_ste.png",\n    "fake_brick.png",\n    "fancy-cushion.png",\n    "folk-pattern-black.png",\n    "footer_lodyas.png",\n    "gray_sand.png",\n    "green-fibers.png",\n    "grey_wash_wall.png",\n    "gun_metal.png",\n    "hexabump.png",\n    "hixs_pattern_evolution.png",\n    "inflicted.png",\n    "low_contrast_linen.png",\n    "micro_carbon.png",\n    "moulin.png",\n    "nami.png",\n    "noisy_net.png",\n    "office.png",\n    "outlets.png",\n    "padded.png",\n    "prism.png",\n    "pw_maze_black.png",\n    "px_by_Gre3g.png",\n    "real_cf.png",\n    "robots.png",\n    "rubber_grip.png",\n    "simple_dashed.png",\n    "skewed_print.png",\n    "slash_it.png",\n    "soft_kill.png",\n    "squares.png",\n    "stardust.png",\n    "starring.png",\n    "stressed_linen.png",\n    "subtle_carbon.png",\n    "tactile_noise.png",\n    "tasky_pattern.png",\n    "triangles.png",\n    "tweed.png",\n    "twinkle_twinkle.png",\n    "txture.png",\n    "type.png",\n    "triangular.png",\n    "use_your_illusion.png",\n    "wild_oliva.png"\n  ]\n}'}),define("text!data/design-properties.json",[],function(){return'[\n  {\n    "name": "global",\n    "properties": [\n      "background-color",\n      "background-image",\n      "background-position",\n      "background-repeat",\n      "background-size",\n      "color",\n      "font-family",\n      "text-align",\n      "margin",\n      "padding"\n    ]\n  },\n  {\n    "name": "form",\n    "properties": [\n      "background-color",\n      "background-image",\n      "background-position",\n      "background-repeat",\n      "background-size",\n      "border-color",\n      "border-radius",\n      "border-style",\n      "border-width",\n      "box-shadow",\n      "margin",\n      "padding",\n      "width",\n      "text-align"\n    ]\n  },\n  {\n    "name": "form-group",\n    "properties": [\n      "background-color",\n      "background-image",\n      "background-position",\n      "background-repeat",\n      "background-size",\n      "border-color",\n      "border-radius",\n      "border-style",\n      "border-width",\n      "box-shadow",\n      "margin",\n      "padding"\n    ]\n  },\n  {\n    "name": "form-control",\n    "properties": [\n      "background-color",\n      "background-image",\n      "background-position",\n      "background-repeat",\n      "background-size",\n      "border-color",\n      "border-radius",\n      "border-style",\n      "border-width",\n      "box-shadow",\n      "color",\n      "font-family",\n      "font-size",\n      "font-weight",\n      "height",\n      "line-height",\n      "margin",\n      "padding",\n      "text-align",\n      "text-decoration",\n      "text-shadow",\n      "text-transform",\n      "transition",\n      "width"\n    ]\n  },\n  {\n    "name": "form-control-focus",\n    "properties": [\n      "background-color",\n      "border-color",\n      "box-shadow",\n      "transition"\n    ]\n  },\n  {\n    "name": "button-primary",\n    "properties": [\n      "background-color",\n      "background-image",\n      "background-position",\n      "background-repeat",\n      "background-size",\n      "border-color",\n      "border-radius",\n      "border-style",\n      "border-width",\n      "box-shadow",\n      "margin",\n      "padding",\n      "width",\n      "height",\n      "color",\n      "font-family",\n      "font-size",\n      "font-weight",\n      "line-height",\n      "text-align",\n      "text-decoration",\n      "text-transform",\n      "transition"\n    ]\n  },\n  {\n    "name": "button-primary-hover",\n    "properties": [\n      "background-color",\n      "background-image",\n      "background-position",\n      "background-repeat",\n      "background-size",\n      "border-color",\n      "border-radius",\n      "border-style",\n      "border-width",\n      "box-shadow",\n      "margin",\n      "padding",\n      "height",\n      "width",\n      "color",\n      "transition"\n    ]\n  },\n  {\n    "name": "button-default",\n    "properties": []\n  },\n  {\n    "name": "button-default-hover",\n    "properties": []\n  },\n  {\n    "name": "button-warning",\n    "properties": []\n  },\n  {\n    "name": "button-warning-hover",\n    "properties": []\n  },\n  {\n    "name": "button-danger",\n    "properties": []\n  },\n  {\n    "name": "button-danger-hover",\n    "properties": []\n  },\n  {\n    "name": "button-info",\n    "properties": []\n  },\n  {\n    "name": "button-info-hover",\n    "properties": []\n  },\n  {\n    "name": "form-label",\n    "properties": [\n      "font-family",\n      "font-size",\n      "line-height",\n      "text-align",\n      "font-weight",\n      "text-transform",\n      "text-decoration",\n      "color",\n      "margin",\n      "padding",\n      "height",\n      "width",\n      "display"\n    ]\n  },\n  {\n    "name": "placeholder",\n    "properties": [\n      "font-family",\n      "font-size",\n      "line-height",\n      "color",\n      "font-weight",\n      "text-align",\n      "text-transform",\n      "text-decoration"\n    ]\n  },\n  {\n    "name": "heading",\n    "properties": [\n      "color",\n      "font-family",\n      "font-size",\n      "line-height",\n      "font-weight",\n      "text-align",\n      "text-transform",\n      "text-decoration",\n      "letter-spacing",\n      "text-shadow",\n      "background-color",\n      "background-image",\n      "background-position",\n      "background-repeat",\n      "background-size",\n      "border-color",\n      "border-radius",\n      "border-style",\n      "border-width",\n      "box-shadow",\n      "margin",\n      "padding",\n      "height",\n      "width"\n    ]\n  },\n  {\n    "name": "paragraph",\n    "properties": [\n      "font-family",\n      "font-size",\n      "line-height",\n      "color",\n      "font-weight",\n      "text-align",\n      "text-transform",\n      "text-decoration",\n      "margin",\n      "padding",\n      "height",\n      "width"\n    ]\n  },\n  {\n    "name": "form-text",\n    "properties": [\n      "font-family",\n      "font-size",\n      "line-height",\n      "color",\n      "font-weight",\n      "text-align",\n      "text-transform",\n      "text-decoration",\n      "background-color",\n      "border-color",\n      "border-radius",\n      "border-style",\n      "border-width",\n      "box-shadow",\n      "margin",\n      "padding",\n      "height",\n      "width"\n    ]\n  },\n  {\n    "name": "link",\n    "properties": [\n      "font-family",\n      "color",\n      "font-size",\n      "font-weight",\n      "text-transform",\n      "text-decoration",\n      "background-color"\n    ]\n  },\n  {\n    "name": "link-hover",\n    "properties": [\n      "font-family",\n      "color",\n      "font-weight",\n      "text-decoration",\n      "background-color"\n    ]\n  },\n  {\n    "name": "step",\n    "properties": [\n      "background-color",\n      "border-style",\n      "border-radius",\n      "border-color",\n      "color",\n      "font-family",\n      "font-weight"\n    ]\n  },\n  {\n    "name": "step-stage",\n    "properties": []\n  },\n  {\n    "name": "step-connection",\n    "properties": []\n  },\n  {\n    "name": "step-current",\n    "properties": [\n      "background-color",\n      "color",\n      "font-weight"\n    ]\n  },\n  {\n    "name": "step-success",\n    "properties": [\n      "background-color",\n      "color",\n      "font-weight"\n    ]\n  },\n  {\n    "name": "step-title",\n    "properties": [\n      "background-color",\n      "border-color",\n      "color"\n    ]\n  },\n  {\n    "name": "step-current-title",\n    "properties": [\n      "background-color",\n      "border-color",\n      "color"\n    ]\n  },\n  {\n    "name": "step-success-title",\n    "properties": [\n      "background-color",\n      "border-color",\n      "color"\n    ]\n  },\n  {\n    "name": "alert",\n    "properties": [\n      "font-family",\n      "font-size",\n      "font-weight",\n      "border-style",\n      "border-width",\n      "border-radius",\n      "box-shadow"\n    ]\n  },\n  {\n    "name": "alert-success",\n    "properties": [\n      "background-color",\n      "border-color",\n      "color"\n    ]\n  },\n  {\n    "name": "alert-danger",\n    "properties": [\n      "background-color",\n      "border-color",\n      "color"\n    ]\n  },\n  {\n    "name": "alert-info",\n    "properties": []\n  },\n  {\n    "name": "alert-warning",\n    "properties": []\n  },\n  {\n    "name": "validation-error-field",\n    "properties": [\n      "background-color",\n      "border-color",\n      "color"\n    ]\n  },\n  {\n    "name": "validation-error-text",\n    "properties": [\n      "color"\n    ]\n  },\n  {\n    "name": "validation-symbol-asterisk",\n    "properties": [\n      "color"\n    ]\n  },\n  {\n    "name": "recaptcha",\n    "properties": [\n      "margin"\n    ]\n  },\n  {\n    "name": "signature-pad",\n    "properties": []\n  },\n  {\n    "name": "signature-canvas",\n    "properties": [\n      "background-color"\n    ]\n  },\n  {\n    "name": "checkbox-input",\n    "properties": [\n      "margin",\n      "background-color",\n      "border-color"\n    ]\n  },\n  {\n    "name": "checkbox-input-checked",\n    "properties": [\n      "background-color"\n    ]\n  },\n  {\n    "name": "checkbox-label",\n    "properties": [\n      "color",\n      "font-weight",\n      "font-size"\n    ]\n  },\n  {\n    "name": "checkbox-label-checked",\n    "properties": [\n      "color",\n      "font-weight"\n    ]\n  },\n  {\n    "name": "checkbox-container",\n    "properties": [\n      "margin",\n      "padding"\n    ]\n  },\n  {\n    "name": "radio-input",\n    "properties": [\n      "background-color",\n      "border-color"\n    ]\n  },\n  {\n    "name": "radio-input-checked",\n    "properties": [\n      "background-color"\n    ]\n  },\n  {\n    "name": "radio-label",\n    "properties": [\n      "color",\n      "font-weight",\n      "font-size"\n    ]\n  },\n  {\n    "name": "radio-label-checked",\n    "properties": [\n      "color",\n      "font-weight"\n    ]\n  },\n  {\n    "name": "radio-container",\n    "properties": [\n      "margin",\n      "padding"\n    ]\n  },\n  {\n    "name": "button-prev",\n    "properties": [\n      "background-color",\n      "color",\n      "border-style",\n      "border-radius",\n      "border-color",\n      "display"\n    ]\n  },\n  {\n    "name": "button-prev-hover",\n    "properties": [\n      "background-color",\n      "color",\n      "border-color"\n    ]\n  },\n  {\n    "name": "button-next",\n    "properties": [\n      "background-color",\n      "color",\n      "float",\n      "border-style",\n      "border-radius",\n      "border-color",\n      "display"\n    ]\n  },\n  {\n    "name": "button-next-hover",\n    "properties": [\n      "background-color",\n      "color",\n      "border-color"\n    ]\n  },\n  {\n    "name": "progress-bar-container",\n    "properties": [\n      "height",\n      "background-color"\n    ]\n  },\n  {\n    "name": "progress-bar",\n    "properties": [\n      "background-color",\n      "color"\n    ]\n  },\n  {\n    "name": "table",\n    "properties": []\n  },\n  {\n    "name": "well",\n    "properties": []\n  }\n]'}),define("text!templates/app/styles.html",[],function(){
return'<div class="accordion" id="accordion-example">\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingGlobal">\n            <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseGlobal" aria-expanded="true">\n                {{= polyglot.t(\'style.global\') }}\n            </button>\n        </h2>\n        <div id="collapseGlobal" class="accordion-collapse collapse show" data-bs-parent="#accordion-example">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.background\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="global-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="global-background-image-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.text\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="global-font-family-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="global-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="global-text-align-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.spacing\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="global-margin-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="global-padding-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingForm">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseForm" aria-expanded="false">\n                {{= polyglot.t(\'style.form\') }}\n            </button>\n        </h2>\n        <div id="collapseForm" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.background\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="form-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-background-image-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.border\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-border-style-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-border-width-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-border-radius-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-box-shadow-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.spacing\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-margin-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-padding-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.extra\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-width-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-text-align-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingFormGroup">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseFormGroup" aria-expanded="false">\n                {{= polyglot.t(\'style.formGroup\') }}\n            </button>\n        </h2>\n        <div id="collapseFormGroup" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.background\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="form-group-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-group-background-image-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.border\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-group-border-style-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-group-border-width-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-group-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-group-border-radius-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-group-box-shadow-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.spacing\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-group-margin-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-group-padding-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingFormControl">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseFormControl" aria-expanded="false">\n                {{= polyglot.t(\'style.formControl\') }}\n            </button>\n        </h2>\n        <div id="collapseFormControl" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.background\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="form-control-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-control-background-image-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.border\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-control-border-style-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-control-border-width-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-control-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-control-border-radius-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-control-box-shadow-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.spacing\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-control-margin-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-control-padding-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.size\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-control-width-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-control-height-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.text\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="form-control-font-family-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-control-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-control-font-size-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-control-line-height-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-control-font-weight-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-control-text-align-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-control-text-transform-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-control-text-decoration-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.extra\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="form-control-transition-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.focusEffect\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="form-control-focus-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-control-focus-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-control-focus-box-shadow-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-control-focus-transition-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingButton">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseButton" aria-expanded="false">\n                {{= polyglot.t(\'style.button\') }}\n            </button>\n        </h2>\n        <div id="collapseButton" class="accordion-collapse collapse" data-bs-parent="#accordion-example">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.background\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="button-primary-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-primary-background-image-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.border\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="button-primary-border-style-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-border-width-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-primary-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-border-radius-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-box-shadow-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.spacing\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="button-primary-margin-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-padding-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.size\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="button-primary-width-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-height-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.text\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="button-primary-font-family-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-font-size-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-line-height-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-primary-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-font-weight-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-text-align-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-text-transform-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-text-decoration-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.extra\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="button-primary-transition-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.hoverEffect\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="button-primary-hover-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-primary-hover-background-image-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-hover-border-style-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-hover-border-width-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-primary-hover-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-hover-border-radius-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-hover-box-shadow-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-hover-margin-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-hover-padding-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-hover-width-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-primary-hover-height-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-primary-hover-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-primary-hover-transition-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingLabel">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseLabel" aria-expanded="false">\n                {{= polyglot.t(\'style.label\') }}\n            </button>\n        </h2>\n        <div id="collapseLabel" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.text\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="form-label-font-family-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-label-font-size-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-label-line-height-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-label-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-label-font-weight-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-label-text-align-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-label-text-transform-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-label-text-decoration-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.spacing\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-label-margin-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-label-padding-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.size\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-label-width-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-label-height-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.extra\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="form-label-display-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingPlaceholder">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapsePlaceholder" aria-expanded="false">\n                {{= polyglot.t(\'style.placeholder\') }}\n            </button>\n        </h2>\n        <div id="collapsePlaceholder" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.text\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="placeholder-font-family-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="placeholder-font-size-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="placeholder-line-height-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="placeholder-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="placeholder-font-weight-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="placeholder-text-align-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="placeholder-text-transform-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="placeholder-text-decoration-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingTitle">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTitle" aria-expanded="false">\n                {{= polyglot.t(\'style.heading\') }}\n            </button>\n        </h2>\n        <div id="collapseTitle" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.text\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="heading-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="heading-font-family-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-font-size-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-line-height-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-font-weight-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-text-align-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-text-transform-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-text-decoration-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-letter-spacing-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-text-shadow-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.background\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="heading-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="heading-background-image-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.border\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="heading-border-style-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-border-width-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="heading-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-border-radius-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-box-shadow-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.spacing\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="heading-margin-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-padding-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.size\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="heading-width-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="heading-height-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingParagraph">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseParagraph" aria-expanded="false">\n                {{= polyglot.t(\'style.paragraph\') }}\n            </button>\n        </h2>\n        <div id="collapseParagraph" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.text\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="paragraph-font-family-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="paragraph-font-size-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="paragraph-line-height-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="paragraph-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="paragraph-font-weight-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="paragraph-text-align-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="paragraph-text-transform-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="paragraph-text-decoration-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.spacing\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="paragraph-margin-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="paragraph-padding-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.size\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="paragraph-width-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="paragraph-height-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingHelpText">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseHelpText" aria-expanded="false">\n                {{= polyglot.t(\'style.helpText\') }}\n            </button>\n        </h2>\n        <div id="collapseHelpText" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.text\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="form-text-font-family-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-text-font-size-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-text-line-height-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-text-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-text-font-weight-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-text-text-align-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-text-text-transform-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-text-text-decoration-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.background\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="form-text-background-color-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.border\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-text-border-style-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-text-border-width-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="form-text-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-text-border-radius-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-text-box-shadow-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.spacing\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-text-margin-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-text-padding-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.size\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="form-text-width-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="form-text-height-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingLink">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseLink" aria-expanded="false">\n                {{= polyglot.t(\'style.link\') }}\n            </button>\n        </h2>\n        <div id="collapseLink" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.text\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="link-font-family-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="link-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="link-font-size-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="link-font-weight-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="link-text-transform-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="link-text-decoration-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.background\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="link-background-color-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.hoverEffect\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="link-hover-font-family-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="link-hover-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="link-hover-font-weight-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="link-hover-text-decoration-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="link-hover-background-color-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingStep">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseStep" aria-expanded="false">\n                {{= polyglot.t(\'style.formSteps\') }}\n            </button>\n        </h2>\n        <div id="collapseStep" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.background\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="step-background-color-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.others\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="step-border-style-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="step-border-radius-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="step-border-color-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.text\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="step-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="step-font-family-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="step-font-weight-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div class="sub-group">\n                            <div class="row">\n                                <div class="col-12">\n                                    <h6 class="sub-title">{{= polyglot.t(\'style.title\') }}</h6>\n                                </div>\n                                <div class="col-12">\n                                    <div id="step-title-background-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <div id="step-title-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <div id="step-title-border-color-wrapper"></div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.currentStep\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="step-current-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="step-current-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="step-current-font-weight-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div class="row">\n                            <div class="col-12">\n                                <div class="sub-group">\n                                    <div class="row">\n                                        <div class="col-12">\n                                            <h6 class="sub-title">{{= polyglot.t(\'style.title\') }}</h6>\n                                        </div>\n                                        <div class="col-12">\n                                            <div id="step-current-title-background-color-wrapper"></div>\n                                        </div>\n                                        <div class="col-12">\n                                            <div id="step-current-title-color-wrapper"></div>\n                                        </div>\n                                        <div class="col-12">\n                                            <div id="step-current-title-border-color-wrapper"></div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.succeedStep\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="step-success-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="step-success-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="step-success-font-weight-wrapper"></div>\n                    </div>\n                    <div class="row">\n                        <div class="col-12">\n                            <div class="sub-group">\n                                <div class="row">\n                                    <div class="col-12">\n                                        <h6 class="sub-title">{{= polyglot.t(\'style.title\') }}</h6>\n                                    </div>\n                                    <div class="col-12">\n                                        <div id="step-success-title-background-color-wrapper"></div>\n                                    </div>\n                                    <div class="col-12">\n                                        <div id="step-success-title-color-wrapper"></div>\n                                    </div>\n                                    <div class="col-12">\n                                        <div id="step-success-title-border-color-wrapper"></div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.previousButton\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="button-prev-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-prev-color-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-prev-border-style-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-prev-border-radius-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-prev-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-prev-display-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">{{= polyglot.t(\'style.previousButtonHoverEffect\') }}</h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="button-prev-hover-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-prev-hover-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-prev-hover-border-color-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.nextButton\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="button-next-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-next-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-next-float-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-next-border-style-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="button-next-border-radius-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-next-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-next-display-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.nextButtonHoverEffect\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="button-next-hover-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-next-hover-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="button-next-hover-border-color-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingAlert">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseAlert" aria-expanded="false">\n                {{= polyglot.t(\'style.formAlerts\') }}\n            </button>\n        </h2>\n        <div id="collapseAlert" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.text\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="alert-font-family-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="alert-font-size-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="alert-font-weight-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">\n                            {{= polyglot.t(\'style.border\') }}\n                        </h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-6">\n                        <div id="alert-border-style-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="alert-border-width-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="alert-border-radius-wrapper"></div>\n                    </div>\n                    <div class="col-6">\n                        <div id="alert-box-shadow-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">{{= polyglot.t(\'style.successMessage\') }}</h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="alert-success-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="alert-success-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="alert-success-color-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">{{= polyglot.t(\'style.errorMessage\') }}</h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="alert-danger-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="alert-danger-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="alert-danger-color-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingValidation">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseValidation" aria-expanded="false">\n                {{= polyglot.t(\'style.fieldValidation\') }}\n            </button>\n        </h2>\n        <div id="collapseValidation" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">{{= polyglot.t(\'style.asteriskSymbol\') }}</h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="validation-symbol-asterisk-color-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">{{= polyglot.t(\'style.textMessage\') }}</h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="validation-error-text-color-wrapper"></div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">{{= polyglot.t(\'style.field\') }}</h6>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <div id="validation-error-field-background-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="validation-error-field-border-color-wrapper"></div>\n                    </div>\n                    <div class="col-12">\n                        <div id="validation-error-field-color-wrapper"></div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="accordion-item">\n        <h2 class="accordion-header" id="headingOther">\n            <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOther" aria-expanded="false">\n                {{= polyglot.t(\'style.otherComponents\') }}\n            </button>\n        </h2>\n        <div id="collapseOther" class="accordion-collapse collapse" data-bs-parent="#accordion">\n            <div class="accordion-body p-0">\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">reCAPTCHA</h6>\n                    </div>\n                    <div class="col-12">\n                        <div class="sub-group">\n                            <div class="row">\n                                <div class="col-12">\n                                    <div id="recaptcha-margin-wrapper"></div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">{{= polyglot.t(\'style.signaturePad\') }}</h6>\n                    </div>\n                    <div class="col-12">\n                        <div class="sub-group">\n                            <div class="row">\n                                <div class="col-12">\n                                    <div id="signature-canvas-background-color-wrapper"></div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">{{= polyglot.t(\'style.checkbox\') }}</h6>\n                    </div>\n                    <div class="col-12">\n                        <div class="sub-group">\n                            <div class="row">\n                                <div class="col-12">\n                                    <h6 class="sub-title">{{= polyglot.t(\'style.spacing\') }}</h6>\n                                </div>\n                                <div class="col-6">\n                                    <div id="checkbox-container-margin-wrapper"></div>\n                                </div>\n                                <div class="col-6">\n                                    <div id="checkbox-container-padding-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <h6 class="sub-title">{{= polyglot.t(\'style.label\') }}</h6>\n                                </div>\n                                <div class="col-6">\n                                    <div id="checkbox-label-font-size-wrapper"></div>\n                                </div>\n                                <div class="col-6">\n                                    <div id="checkbox-label-font-weight-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <div id="checkbox-label-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <h6 class="sub-title">{{= polyglot.t(\'style.input\') }}</h6>\n                                </div>\n                                <div class="col-12">\n                                    <div id="checkbox-input-background-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <div id="checkbox-input-border-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <h6 class="sub-title">{{= polyglot.t(\'style.checked\') }}</h6>\n                                </div>\n                                <div class="col-12">\n                                    <div id="checkbox-input-checked-background-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <div id="checkbox-label-checked-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <div id="checkbox-label-checked-font-weight-wrapper"></div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">{{= polyglot.t(\'style.radioButton\') }}</h6>\n                    </div>\n                    <div class="col-12">\n                        <div class="sub-group">\n                            <div class="row">\n                                <div class="col-12">\n                                    <h6 class="sub-title">{{= polyglot.t(\'style.spacing\') }}</h6>\n                                </div>\n                                <div class="col-6">\n                                    <div id="radio-container-margin-wrapper"></div>\n                                </div>\n                                <div class="col-6">\n                                    <div id="radio-container-padding-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <h6 class="sub-title">{{= polyglot.t(\'style.label\') }}</h6>\n                                </div>\n                                <div class="col-6">\n                                    <div id="radio-label-font-size-wrapper"></div>\n                                </div>\n                                <div class="col-6">\n                                    <div id="radio-label-font-weight-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <div id="radio-label-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <h6 class="sub-title">{{= polyglot.t(\'style.input\') }}</h6>\n                                </div>\n                                <div class="col-12">\n                                    <div id="radio-input-background-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <div id="radio-input-border-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <h6 class="sub-title">{{= polyglot.t(\'style.checked\') }}</h6>\n                                </div>\n                                <div class="col-12">\n                                    <div id="radio-input-checked-background-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <div id="radio-label-checked-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <div id="radio-label-checked-font-weight-wrapper"></div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-12">\n                        <h6 class="sub-title">{{= polyglot.t(\'style.progressBar\') }}</h6>\n                    </div>\n                    <div class="col-12">\n                        <div class="sub-group">\n                            <div class="row">\n                                <div class="col-12">\n                                    <h6 class="sub-title">{{= polyglot.t(\'style.progressBarContainer\') }}</h6>\n                                </div>\n                                <div class="col-12">\n                                    <div id="progress-bar-container-height-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <div id="progress-bar-container-background-color-wrapper"></div>\n                                </div>\n                            </div>\n                            <div class="row">\n                                <div class="col-12">\n                                    <h6 class="sub-title">{{= polyglot.t(\'style.progressBar\') }}</h6>\n                                </div>\n                                <div class="col-12">\n                                    <div id="progress-bar-background-color-wrapper"></div>\n                                </div>\n                                <div class="col-12">\n                                    <div id="progress-bar-color-wrapper"></div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>'
}),define("text!templates/styles/color.html",[],function(){return'<div class="form-group highlight-addon styles-{{- name }}">\n    <label class="form-label has-star" for="{{- name }}">{{- label }}</label>\n    \x3c!--[if lt IE 10]>\n    <input type="text" id="{{- name }}" class="form-control spectrum-input" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}">\n    <br>\n    <div class="alert alert-warning">It is recommended you use an upgraded browser to display the {type} control properly.</div>\n    <![endif]--\x3e\n    <![if gt IE 9]>\n    <div class="spectrum-group input-group input-group-html5 kv-type-text is-bs3">\n        <span id="{{- name }}-cont" class="kv-center-loading input-group-sp input-group-text">\n            <input type="text" id="{{- name }}-source" class="spectrum-source form-control-text" name="{{- name }}-source" value="{{- value }}" style="display:none">\n        </span>\n        <input type="text" id="{{- name }}" class="form-control spectrum-input" name="{{- name }}" value="{{- value }}" placeholder="Select color ...">\n    </div>\n    <![endif]>\n</div>'}),define("text!templates/styles/background-image.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}">\n    <div class="btn-group" data-toggle="buttons" role="group">\n        <label class="btn btn-sm btn-white">\n            <input type="radio" class="btn-check" name="bg-image-type" value="unsplash"> {{= polyglot.t(\'style.images\') }}\n        </label>\n        <label class="btn btn-sm btn-white">\n            <input type="radio" class="btn-check" name="bg-image-type" value="gradient"> {{= polyglot.t(\'style.gradients\') }}\n        </label>\n        <label class="btn btn-sm btn-white">\n            <input type="radio" class="btn-check" name="bg-image-type" value="pattern"> {{= polyglot.t(\'style.patterns\') }}\n        </label>\n        <label class="btn btn-sm btn-white">\n            <input type="radio" class="btn-check" name="bg-image-type" value="other"> {{= polyglot.t(\'style.others\') }}\n        </label>\n        <label class="btn btn-sm btn-white active">\n            <input type="radio" class="btn-check" name="bg-image-type" value=""> <span class="far fa-chevron-up"></span>\n        </label>\n    </div>\n    <div class="unsplash" style="display: none">\n        <div class="row">\n            <div class="col-12">\n                <input type="search" name="unsplash-search-box" placeholder="{{= polyglot.t(\'style.searchImages\') }}" class="form-control form-control-sm" value="">\n            </div>\n        </div>\n        <div class="row">\n            <div class="col-12">\n                <div class="unsplash-search-results"></div>\n            </div>\n            <div class="col-12">\n                <small class="by-unsplash">{{= polyglot.t(\'style.byUnsplash\') }}</small>\n                <small class="photo-by">{{= polyglot.t(\'style.photoByUnsplash\') }}</small>\n            </div>\n        </div>\n    </div>\n    <div class="gradients" style="display: none">\n        <div class="grapick-cont">\n            <div id="gp-{{- name }}"></div>\n            <div class="row" style="margin-top: 20px">\n                <div class="col-6" style="padding-right: 5px">\n                    <select class="form-control form-control-sm" id="switch-type-{{- name }}">\n                        <option value="">{{= polyglot.t(\'style.type\') }}</option>\n                        <option value="radial">{{= polyglot.t(\'style.radial\') }}</option>\n                        <option value="linear">{{= polyglot.t(\'style.linear\') }}</option>\n                        <option value="repeating-radial">{{= polyglot.t(\'style.repeatingRadial\') }}</option>\n                        <option value="repeating-linear">{{= polyglot.t(\'style.repeatingLinear\') }}</option>\n                    </select>\n                </div>\n                <div class="col-6" style="padding-left: 5px">\n                    <select class="form-control form-control-sm" id="switch-angle-{{- name }}">\n                        <option value="">{{= polyglot.t(\'style.direction\') }}</option>\n                        <option value="top">{{= polyglot.t(\'style.top\') }}</option>\n                        <option value="right">{{= polyglot.t(\'style.right\') }}</option>\n                        <option value="center">{{= polyglot.t(\'style.center\') }}</option>\n                        <option value="bottom">{{= polyglot.t(\'style.bottom\') }}</option>\n                        <option value="left">{{= polyglot.t(\'style.left\') }}</option>\n                    </select>\n                </div>\n            </div>\n        </div>\n        <div class="gradient-group">\n            {{ _.each(gradients, function (gradient) { }}\n            <div class="gradient" data-background="{{- gradient.background }}">\n                <div class="gradient-background" style="background-image: {{- gradient.background }}"></div>\n            </div>\n            {{ }) }}\n        </div>\n    </div>\n    <div class="patterns" style="display: none">\n        <div class="pattern-group">\n            {{ _.each(patterns, function (pattern) { }}\n            <div class="pattern-item" data-src="{{- homeUrl }}static_files/images/patterns/{{- pattern }}"></div>\n            {{ }) }}\n        </div>\n    </div>\n    <div class="others" style="display: none">\n        <div class="row">\n            <div class="col-6" style="padding-right: 5px">\n                <div id="{{- scope }}-background-size-wrapper"></div>\n            </div>\n            <div class="col-6" style="padding-left: 5px">\n                <div id="{{- scope }}-background-repeat-wrapper"></div>\n            </div>\n            <div class="col-12" style="margin-top: 10px">\n                <div id="{{- scope }}-background-position-wrapper"></div>\n            </div>\n        </div>\n    </div>\n</div>'}),define("text!templates/styles/background-size.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="auto">auto</option>\n        <option value="cover">cover</option>\n        <option value="contain">contain</option>\n        <option value="100% 100%">100% 100%</option>\n        <option value="100px 100px">100px 100px</option>\n    </datalist>\n</div>'}),define("text!templates/styles/background-repeat.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="repeat">repeat</option>\n        <option value="repeat-x">repeat-x</option>\n        <option value="repeat-y">repeat-y</option>\n        <option value="no-repeat">no-repeat</option>\n        <option value="space">space</option>\n        <option value="round">round</option>\n    </datalist>\n</div>'}),define("text!templates/styles/background-position.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="initial">initial</option>\n        <option value="left top">left top</option>\n        <option value="left center">left center</option>\n        <option value="left bottom">left bottom</option>\n        <option value="right top">right top</option>\n        <option value="right center">right center</option>\n        <option value="right bottom">right bottom</option>\n        <option value="center top">center top</option>\n        <option value="center center">center center</option>\n        <option value="center bottom">center bottom</option>\n        <option value="0% 0%">0% 0%</option>\n        <option value="5% 5%">5% 5%</option>\n        <option value="10% 10%">10% 10%</option>\n        <option value="15% 15%">15% 15%</option>\n        <option value="20% 20%">20% 20%</option>\n        <option value="25% 25%">25% 25%</option>\n        <option value="50% 50%">50% 50%</option>\n        <option value="75% 75%">75% 75%</option>\n        <option value="100% 100%">100% 100%</option>\n        <option value="0px 0px">0px 0px</option>\n    </datalist>\n</div>'}),define("text!templates/styles/border-style.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="none">none</option>\n        <option value="solid">solid</option>\n        <option value="dashed">dashed</option>\n        <option value="dotted">dotted</option>\n        <option value="double">double</option>\n        <option value="groove">groove</option>\n        <option value="ridge">ridge</option>\n        <option value="inset">inset</option>\n        <option value="outset">outset</option>\n    </datalist>\n</div>'}),define("text!templates/styles/border-width.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}">\n</div>'}),define("text!templates/styles/border-radius.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="0">0</option>\n        <option value="1px">1px</option>\n        <option value="2px">2px</option>\n        <option value="3px">3px</option>\n        <option value="4px">4px</option>\n        <option value="5px">5px</option>\n        <option value="6px">6px</option>\n        <option value="7px">7px</option>\n        <option value="8px">8px</option>\n        <option value="9px">9px</option>\n        <option value="10px">10px</option>\n        <option value="11px">11px</option>\n        <option value="12px">12px</option>\n        <option value="13px">13px</option>\n        <option value="14px">14px</option>\n        <option value="15px">15px</option>\n        <option value="16px">16px</option>\n        <option value="17px">17px</option>\n        <option value="18px">18px</option>\n        <option value="19px">19px</option>\n        <option value="20px">20px</option>\n        <option value="25px">25px</option>\n        <option value="30px">30px</option>\n        <option value="35px">35px</option>\n        <option value="40px">40px</option>\n        <option value="45px">45px</option>\n        <option value="50px">50px</option>\n        <option value="75px">75px</option>\n        <option value="100px">100px</option>\n        <option value="1%">1%</option>\n        <option value="2%">2%</option>\n        <option value="3%">3%</option>\n        <option value="4%">4%</option>\n        <option value="5%">5%</option>\n        <option value="6%">6%</option>\n        <option value="7%">7%</option>\n        <option value="8%">8%</option>\n        <option value="9%">9%</option>\n        <option value="10%">10%</option>\n        <option value="1px 1px 1px 1px">1px 1px 1px 1px</option>\n        <option value="2px 2px 2px 2px">2px 2px 2px 2px</option>\n        <option value="3px 3px 3px 3px">3px 3px 3px 3px</option>\n        <option value="4px 4px 4px 4px">4px 4px 4px 4px</option>\n        <option value="5px 5px 5px 5px">5px 5px 5px 5px</option>\n        <option value="6px 6px 6px 6px">6px 6px 6px 6px</option>\n        <option value="7px 7px 7px 7px">7px 7px 7px 7px</option>\n        <option value="8px 8px 8px 8px">8px 8px 8px 8px</option>\n        <option value="9px 9px 9px 9px">9px 9px 9px 9px</option>\n        <option value="10px 10px 10px 10px">10px 10px 10px 10px</option>\n    </datalist>\n</div>'}),define("text!templates/styles/box-shadow.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="none">none</option>\n        {{ _.each(_.range(1, 10, 1), function(a) { var b = a * 2; }}\n        <option value="{{- a }}px {{- b }}px">{{- a }}px {{- b }}px</option>\n        {{ }); }}\n        {{ _.each(_.range(1, 10, 1), function(a) { var b = a * 2; }}\n        <option value="{{- a }}px {{- b }}px #888888">{{- a }}px {{- b }}px #888888</option>\n        {{ }); }}\n        {{ _.each(_.range(1, 10, 1), function(a) { var b = a * 2; }}\n        <option value="{{- a }}px {{- b }}px red">{{- a }}px {{- b }}px red</option>\n        {{ }); }}\n        <option value="1px 1px 5px #aaaaaa">1px 1px 5px #aaaaaa</option>\n        <option value="1px 2px 5px #aaaaaa">1px 2px 5px #aaaaaa</option>\n        <option value="2px 2px 5px #aaaaaa">2px 2px 5px #aaaaaa</option>\n        <option value="3px 3px 5px #aaaaaa">3px 3px 5px #aaaaaa</option>\n        <option value="4px 4px 5px #aaaaaa">4px 4px 5px #aaaaaa</option>\n        <option value="5px 5px 5px #aaaaaa">5px 5px 5px #aaaaaa</option>\n        <option value="6px 6px 5px #aaaaaa">6px 6px 5px #aaaaaa</option>\n        <option value="7px 7px 5px #aaaaaa">7px 7px 5px #aaaaaa</option>\n        <option value="8px 8px 5px #aaaaaa">8px 8px 5px #aaaaaa</option>\n        <option value="9px 9px 5px #aaaaaa">9px 9px 5px #aaaaaa</option>\n        <option value="10px 10px 5px #aaaaaa">10px 10px 5px #aaaaaa</option>\n    </datalist>\n</div>'}),define("text!templates/styles/margin.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="auto">auto</option>\n        <option value="initial">initial</option>\n        <option value="inherit">inherit</option>\n        <option value="0">0</option>\n        {{ _.each(_.range(1, 26, 1), function(number) { }}\n        <option value="{{- number }}px">{{- number }}px</option>\n        {{ }); }}\n        {{ _.each(_.range(30, 100, 5), function(number) { }}\n        <option value="{{- number }}px">{{- number }}px</option>\n        {{ }); }}\n        {{ _.each(_.range(1, 26, 1), function(number) { }}\n        <option value="{{- number }}%">{{- number }}%</option>\n        {{ }); }}\n        {{ _.each(_.range(1, 26, 1), function(number) { }}\n        <option value="0 {{- number }}px">0 {{- number }}px</option>\n        {{ }); }}\n        {{ _.each(_.range(5, 30, 5), function(number) { }}\n        <option value="0 {{- number }}%">0 {{- number }}%</option>\n        {{ }); }}\n    </datalist>\n</div>'}),define("text!templates/styles/padding.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="auto">auto</option>\n        <option value="initial">initial</option>\n        <option value="inherit">inherit</option>\n        <option value="0">0</option>\n        {{ _.each(_.range(1, 26, 1), function(number) { }}\n        <option value="{{- number }}px">{{- number }}px</option>\n        {{ }); }}\n        {{ _.each(_.range(30, 100, 5), function(number) { }}\n        <option value="{{- number }}px">{{- number }}px</option>\n        {{ }); }}\n        {{ _.each(_.range(1, 26, 1), function(number) { }}\n        <option value="{{- number }}%">{{- number }}%</option>\n        {{ }); }}\n        {{ _.each(_.range(1, 26, 1), function(number) { }}\n        <option value="0 {{- number }}px">0 {{- number }}px</option>\n        {{ }); }}\n        {{ _.each(_.range(5, 30, 5), function(number) { }}\n        <option value="0 {{- number }}%">0 {{- number }}%</option>\n        {{ }); }}\n    </datalist>\n</div>'}),define("text!templates/styles/width.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="auto">auto</option>\n        {{ _.each(_.range(100, 0, -1), function(number) { }}\n        <option value="{{- number }}%">{{- number }}%</option>\n        {{ }); }}\n    </datalist>\n</div>'}),define("text!templates/styles/height.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="inherit">inherit</option>\n        <option value="auto">auto</option>\n        {{ _.each(_.range(100, 0, -1), function(number) { }}\n        <option value="{{- number }}%">{{- number }}%</option>\n        {{ }); }}\n    </datalist>\n</div>'}),define("text!templates/styles/float.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="none">none</option>\n        <option value="left">left</option>\n        <option value="right">right</option>\n    </datalist>\n</div>'}),define("text!templates/styles/text-align.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <select id="{{- name }}" name="{{- name }}" class="form-control">\n        <option value="">inherit</option>\n        <option value="left">Left</option>\n        <option value="right">Right</option>\n        <option value="center">Center</option>\n        <option value="justify">Justify</option>\n        <option value="initial">Initial</option>\n    </select>\n</div>'}),define("text!templates/styles/font-family.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}">\n</div>'}),define("text!templates/styles/font-size.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="inherit">inherit</option>\n        <option value="initial">initial</option>\n        <option value="8px">8px</option>\n        <option value="9px">9px</option>\n        <option value="10px">10px</option>\n        <option value="11px">11px</option>\n        <option value="12px">12px</option>\n        <option value="13px">13px</option>\n        <option value="14px">14px</option>\n        <option value="15px">15px</option>\n        <option value="16px">16px</option>\n        <option value="17px">17px</option>\n        <option value="18px">18px</option>\n        <option value="19px">19px</option>\n        <option value="20px">20px</option>\n        <option value="21px">21px</option>\n        <option value="22px">22px</option>\n        <option value="23px">23px</option>\n        <option value="24px">24px</option>\n        <option value="25px">25px</option>\n        <option value="30px">30px</option>\n        <option value="35px">35px</option>\n        <option value="40px">40px</option>\n        <option value="45px">45px</option>\n        <option value="50px">50px</option>\n        <option value="75px">75px</option>\n        <option value="100px">100px</option>\n    </datalist>\n</div>'}),define("text!templates/styles/font-weight.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="inherit">inherit</option>\n        <option value="bold">bold</option>\n        <option value="bolder">bolder</option>\n        <option value="lighter">lighter</option>\n        <option value="normal">normal</option>\n        <option value="100">100</option>\n        <option value="200">200</option>\n        <option value="300">300</option>\n        <option value="400">400</option>\n        <option value="500">500</option>\n        <option value="600">600</option>\n        <option value="700">700</option>\n        <option value="800">800</option>\n        <option value="900">900</option>\n    </datalist>\n</div>'}),define("text!templates/styles/text-transform.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="inherit">inherit</option>\n        <option value="capitalize">capitalize</option>\n        <option value="uppercase">uppercase</option>\n        <option value="lowercase">lowercase</option>\n        <option value="none">none</option>\n    </datalist>\n</div>'}),define("text!templates/styles/text-decoration.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="inherit">inherit</option>\n        <option value="underline">underline</option>\n        <option value="overline">overline</option>\n        <option value="line-through">line-through</option>\n        <option value="underline overline">underline overline</option>\n        <option value="none">none</option>\n    </datalist>\n</div>'}),define("text!templates/styles/line-height.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="inherit">inherit</option>\n        <option value="initial">initial</option>\n        <option value="8px">8px</option>\n        <option value="9px">9px</option>\n        <option value="10px">10px</option>\n        <option value="11px">11px</option>\n        <option value="12px">12px</option>\n        <option value="13px">13px</option>\n        <option value="14px">14px</option>\n        <option value="15px">15px</option>\n        <option value="16px">16px</option>\n        <option value="17px">17px</option>\n        <option value="18px">18px</option>\n        <option value="19px">19px</option>\n        <option value="20px">20px</option>\n        <option value="21px">21px</option>\n        <option value="22px">22px</option>\n        <option value="23px">23px</option>\n        <option value="24px">24px</option>\n        <option value="25px">25px</option>\n        <option value="30px">30px</option>\n        <option value="35px">35px</option>\n        <option value="40px">40px</option>\n        <option value="45px">45px</option>\n        <option value="50px">50px</option>\n        <option value="75px">75px</option>\n        <option value="100px">100px</option>\n    </datalist>\n</div>'}),define("text!templates/styles/text-shadow.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}">\n</div>'}),define("text!templates/styles/letter-spacing.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="inherit">inherit</option>\n        <option value="normal">normal</option>\n        <option value="-3px">-3px</option>\n        <option value="-2px">-2px</option>\n        <option value="-1px">-1px</option>\n        <option value="0">0</option>\n        <option value="1px">1px</option>\n        <option value="2px">1px</option>\n        <option value="3px">3px</option>\n        <option value="initial">initial</option>\n        <option value="unset">unset</option>\n    </datalist>\n</div>'}),define("text!templates/styles/transition.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <input type="text" id="{{- name }}" class="form-control data-list" name="{{- name }}" value="{{- value }}" placeholder="{{- placeholder }}" list="{{- name }}-data-list">\n    <datalist id="{{- name }}-data-list">\n        <option value="none">none</option>\n        <option value="inherit">inherit</option>\n        <option value="background 1s">background 1s</option>\n    </datalist>\n</div>'}),define("text!templates/styles/display.html",[],function(){return'<div class="form-group styles-{{- name }}">\n    <label class="form-label" for="{{- name }}">{{- label }}</label>\n    <select id="{{- name }}" name="{{- name }}" class="form-control">\n        <option value="">Inherit</option>\n        <option value="none">None</option>\n        <option value="block">Block</option>\n        <option value="inline-block">Inline-Block</option>\n        <option value="inline">Inline</option>\n    </select>\n</div>'}),define("views/styles",["jquery","underscore","backbone","cssjson","simplebar","grapick","helper/pubsub","text!data/google-fonts.json","text!data/web-gradients.json","text!data/patterns.json","text!data/design-properties.json","text!templates/app/styles.html","text!templates/styles/color.html","text!templates/styles/background-image.html","text!templates/styles/background-size.html","text!templates/styles/background-repeat.html","text!templates/styles/background-position.html","text!templates/styles/border-style.html","text!templates/styles/border-width.html","text!templates/styles/border-radius.html","text!templates/styles/box-shadow.html","text!templates/styles/margin.html","text!templates/styles/padding.html","text!templates/styles/width.html","text!templates/styles/height.html","text!templates/styles/float.html","text!templates/styles/text-align.html","text!templates/styles/font-family.html","text!templates/styles/font-size.html","text!templates/styles/font-weight.html","text!templates/styles/text-transform.html","text!templates/styles/text-decoration.html","text!templates/styles/line-height.html","text!templates/styles/text-shadow.html","text!templates/styles/letter-spacing.html","text!templates/styles/transition.html","text!templates/styles/display.html"],function(e,n,t,i,o,a,r,l,s,c,d,p,u,f,h,v,g,m,b,y,x,w,k,C,S,T,E,_,A,O,D,F,P,B,M,N,j){return t.View.extend({tagName:"div",className:"",initialize:function(t){this.options=t,this.id=this.options.id,this.properties=JSON.parse(d);var i=JSON.parse(l);if(this.fonts=[],!n.isUndefined(i.items)){var o=this;n.each(i.items,function(e){o.fonts.push(e.replace(/ /g,"+"))})}var a=JSON.parse(c);this.patterns=n.isUndefined(a.patterns)?[]:a.patterns;var r=[];n.each(JSON.parse(s),function(e){if(!n.isUndefined(e.gradient)){var t,i=e.gradient,o=n.pluck(i,"color"),a=n.pluck(i,"pos"),l=e.deg+"deg";switch(i.length){case 2:t="linear-gradient("+l+", "+i[0].color+" "+i[0].pos+"%, "+i[1].color+" "+i[1].pos+"%)";break;case 3:t="linear-gradient("+l+", "+i[0].color+" "+i[0].pos+"%, "+i[1].color+" "+i[1].pos+"%, "+i[2].color+" "+i[2].pos+"%)";break;case 4:t="linear-gradient("+l+", "+i[0].color+" "+i[0].pos+"%, "+i[1].color+" "+i[1].pos+"%, "+i[2].color+" "+i[2].pos+"%, "+i[3].color+" "+i[3].pos+"%)";break;case 5:t="linear-gradient("+l+", "+i[0].color+" "+i[0].pos+"%, "+i[1].color+" "+i[1].pos+"%, "+i[2].color+" "+i[2].pos+"%, "+i[3].color+" "+i[3].pos+"%, "+i[4].color+" "+i[4].pos+"%)"}n.isUndefined(t)||n.isEmpty(t)||r.push({background:t,colors:o,positions:a,direction:l})}}),this.gradients=r,this.template=n.template(p),this.colorTemplate=n.template(u),this.backgroundImageTemplate=n.template(f),this.backgroundSizeTemplate=n.template(h),this.backgroundRepeatTemplate=n.template(v),this.backgroundPositionTemplate=n.template(g),this.borderStyleTemplate=n.template(m),this.borderWidthTemplate=n.template(b),this.borderRadiusTemplate=n.template(y),this.boxShadowTemplate=n.template(x),this.marginTemplate=n.template(w),this.paddingTemplate=n.template(k),this.widthTemplate=n.template(C),this.heightTemplate=n.template(S),this.floatTemplate=n.template(T),this.textAlignTemplate=n.template(E),this.fontFamilyTemplate=n.template(_),this.fontSizeTemplate=n.template(A),this.fontWeightTemplate=n.template(O),this.textTransformTemplate=n.template(D),this.textDecorationTemplate=n.template(F),this.lineHeightTemplate=n.template(P),this.textShadowTemplate=n.template(B),this.letterSpacingTemplate=n.template(M),this.transitionTemplate=n.template(N),this.displayTemplate=n.template(j),this.$html=e(this.template()),this.render()},getAvailableCssProperties:function(e){
var n=["background-color","background-image","background-position","background-repeat","background-size","border-color","border-radius","border-style","border-width","box-shadow","color","display","float","font-family","font-size","font-weight","height","letter-spacing","line-height","margin","padding","text-align","text-decoration","text-shadow","text-transform","transition","width"],t=this.properties.filter(function(n){return n.name===e})[0];return void 0!==t&&(n=t.properties),n},renderCSS:function(e,t,o){var a={};n.each(t,function(e,n){""!==e&&(a[n]=e)});var r={children:{},attributes:{}};r.children[e]={children:{},attributes:a};var l=i.toCSS(r),s=i.toHEAD(l,o,!0);return void 0!==s?s.id:o},renderColorPicker:function(t,i){var o=[["rgb(0, 0, 0)","rgb(67, 67, 67)","rgb(102, 102, 102)"]],a={showInput:!0,showInitial:!0,showPalette:!1,showSelectionPalette:!0,showAlpha:!0,allowEmpty:!0,preferredFormat:"hex",cancelText:polyglot.t("style.cancel"),chooseText:polyglot.t("style.choose"),theme:"sp-krajee",palette:o};t.html(this.colorTemplate(i));var r=i.name,l=t.find("#"+r);return l.data("spectrum")&&l.spectrum("destroy"),a.change=function(e){var t=n.isNull(e)?"":e.toString();l.val(t),l.trigger("change",e)},a.move=function(e){var t=n.isNull(e)?"":e.toString();l.val(t),l.trigger("change",e)},e.when(t.find("#"+r+"-source").spectrum(a)).done(function(){t.find("#"+r+"-source").spectrum("set",l.val()),t.find("#"+r+"-cont").removeClass("kv-center-loading")}),l},renderGoogleFontsSelector:function(t,i){t.html(this.fontFamilyTemplate(i));var o=i.name,a=t.find("#"+o),r=this,l={placeholder:i.placeholder,searchable:!0};return r.fonts.length>0?a.fontselect(e.extend({},l,{googleFonts:r.fonts})):e.getJSON("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyBulCGAb4s71G7ScneWgUUyQvfIQWToz9Y").done(function(t){if(n.isUndefined(t.items))a.fontselect(l);else{for(var i=0;i<t.items.length;i++)n.isUndefined(t.items[i].family)||r.fonts.push(t.items[i].family.replace(/ /g,"+"));a.fontselect(e.extend({},l,{googleFonts:r.fonts}))}}).fail(function(){a.fontselect(l)}),a},renderWidgets:function(){var t=this,i=this.$html;return e.when().then(function(o){e("style[id^='cssjson_']").remove(),t.collection.each(function(o){var r=o.get("name"),l=o.get("selector"),s=o.get("properties"),c=t.renderCSS(l,s),d=t.getAvailableCssProperties(r);n.each(d,function(o){var d=r+"-"+o,p=void 0!==s[o]?s[o]:"",u=i.find("#"+d+"-wrapper");if(u.length)if("background-color"===o)t.renderColorPicker(u,{name:d,label:polyglot.t("style.backgroundColor"),placeholder:polyglot.t("style.selectColor"),value:p}).change(function(i,o){s["background-color"]=n.isUndefined(o)?e(this).val():o.toString(),t.renderCSS(l,s,c)});else if("color"===o)t.renderColorPicker(u,{name:d,label:polyglot.t("style.color"),placeholder:polyglot.t("style.selectColor"),value:p}).change(function(i,o){s.color=n.isUndefined(o)?e(this).val():o.toString(),t.renderCSS(l,s,c)});else if("background-image"===o){u.html(t.backgroundImageTemplate({scope:r,name:d,label:polyglot.t("style.backgroundImageGradient"),placeholder:"none",value:p,patterns:t.patterns,gradients:t.gradients,homeUrl:options.homeUrl}));var f=u.find("#"+d);u.find("input[name=bg-image-type]").on("change",function(){var n=e(this).val();"unsplash"===n?(u.find(".unsplash").show(),u.find(".gradients").hide(),u.find(".patterns").hide(),u.find(".others").hide()):"gradient"===n?(u.find(".unsplash").hide(),u.find(".gradients").show(),u.find(".patterns").hide(),u.find(".others").hide()):"pattern"===n?(u.find(".unsplash").hide(),u.find(".gradients").hide(),u.find(".patterns").show(),u.find(".others").hide()):"other"===n?(u.find(".unsplash").hide(),u.find(".gradients").hide(),u.find(".patterns").hide(),u.find(".others").show()):(u.find(".unsplash").hide(),u.find(".gradients").hide(),u.find(".patterns").hide(),u.find(".others").hide())});var h=!1,v=0,g=u.find("input[type=search]"),m=u.find(".unsplash-search-results"),b=function(n){if(v>=n)return!1;v=n;var t=g.val(),i=0!==t.trim().length,o=i?"https://api.unsplash.com/search/photos":"https://api.unsplash.com/photos";e.ajax({url:o,type:"GET",dataType:"json",data:{client_id:"shFqdn20vjiqrm1h9DUyrDyywLKrmQpsZZnLaUkDIOg",page:n,per_page:10,query:t,order_by:null},success:function(n){var t=i?n.results:n;t.length?(e.each(t,function(n,t){if(void 0!==t.urls&&void 0!==t.user&&void 0!==t.links){var i=e("<span  class='image-item' style='background-color:"+t.color+";' data-id='"+t.id+"' data-user='"+t.user.name+"' data-link='"+t.user.links.html+"' data-regular='"+t.urls.regular+"' data-download-location='"+t.links.download_location+"' />");e(i).css("background-image","url("+t.urls.thumb+")"),m.append(i)}}),h=!0):m.html('<div class="text-muted no-results-found">'+polyglot.t("style.noResultsFound")+"</div>")},error:function(){e(document).trigger("add-alerts",[{message:"<strong>"+polyglot.t("alert.warning")+"</strong> "+polyglot.t("alert.unsplashConnectionError"),priority:"warning"}])}})},y=n.throttle(function(){if(m.scrollTop()+m.innerHeight()+50>=m[0].scrollHeight){var e=m.find("> span").length/10+1;b(e)}},200);m.on("scroll",y);var x;g.on("keyup",function(){clearTimeout(x),x=setTimeout(function(){m.empty(),v=0,b(1)},400)}),h||b(1),u.on("click",".image-item",function(){u.find(".image-item").removeClass("selected");var n=e(this);n.addClass("selected"),f.val(n.data("regular")),u.find(".by-unsplash").hide();var t=n.data("link")+"?utm_source="+polyglot.t("app.name")+"&utm_medium=referral";u.find(".photo-by").html(function(e,i){return i.replace("{photographer}",'<a id="photographer" target="_blank" href="'+t+'">'+n.data("user")+"</a>")}).show(),u.find("#photographer").attr("href",t).text(n.data("user")),f.trigger("change"),e.ajax({url:n.data("download-location"),type:"GET",dataType:"json",data:{client_id:"shFqdn20vjiqrm1h9DUyrDyywLKrmQpsZZnLaUkDIOg"},success:function(){},error:function(){}})}),u.find(".pattern-item").on("click",function(){u.find(".pattern-item").removeClass("selected"),e(this).addClass("selected"),f.val(e(this).data("src")),f.trigger("change")}),u.data("loaded",!1);var w=function(e){if(!u.data("loaded")){null===e&&(e=u.find(".pattern-group").scrollTop());var n=Math.round(e/50),t=16*n;0===t&&(t=24);for(var i,o=n;o<t;o++)i=u.find(".pattern-item:nth-child("+o+")"),i.css("backgroundImage","url("+i.data("src")+")"),o>387&&u.data("loaded",!0)}};if(p.length>0&&(u.find(".pattern-item").removeClass("selected"),u.find(".pattern-item").filter(function(){var e=u.find(this).data("src");return e===p||"url("+e+")"===p}).addClass("selected")),setTimeout(function(){w(0)},10),u.find(".pattern-group").on("scroll",function(){w(null)}),u.find("#gp-"+d).length){var k=new a({el:u.find("#gp-"+d)[0],colorEl:'<input id="gp-cp-'+d+'"/>',direction:"to right",min:1,max:99});k.setColorPicker(function(e){var n=e.getEl().querySelector("#gp-cp-"+d);u.find(n).spectrum({color:e.getColor(),showInput:!0,showInitial:!0,showPalette:!1,showSelectionPalette:!0,showAlpha:!0,allowEmpty:!0,preferredFormat:"hex",theme:"sp-krajee",change:function(n){e.setColor(n.toRgbString())},move:function(n){e.setColor(n.toRgbString(),0)}})}),k.on("change",function(e){f.val(k.getSafeValue()),f.trigger("change")});var C=u.find("#switch-type-"+d),S=u.find("#switch-angle-"+d),T="";C.change(function(){k.setType(e(this).val()),T=e(this).val()}),S.change(function(){k.setDirection(e(this).val()),T=e(this).val()}),u.find(".gradient").on("click",function(){u.find(".gradient").removeClass("selected"),e(this).addClass("selected"),k.clear(),k.setValue(e(this).data("background")),n.isEmpty(T)||k.setType(T),n.isEmpty("")||k.setDirection(""),k.emit("change")});var E=function(e){var n;["repeating-linear","repeating-radial","linear","radial"].forEach(function(t){e.indexOf(t+"-gradient(")>-1&&!n&&(n=1,k.setValue(e))})};p.length>0&&E(p),f.keyup(function(n){var t=e(this).val();86===n.keyCode&&E(t)})}f.change(function(){var n=e(this).val();0===n.indexOf("http")&&(n="url("+n+")"),s["background-image"]=n,t.renderCSS(l,s,c)})}else if("background-size"===o)u.html(t.backgroundSizeTemplate({name:d,label:polyglot.t("style.bgSize"),placeholder:"100% 100%",value:p})),u.find("#"+d).change(function(){s["background-size"]=e(this).val(),t.renderCSS(l,s,c)});else if("background-repeat"===o)u.html(t.backgroundRepeatTemplate({name:d,label:polyglot.t("style.bgRepeat"),placeholder:"repeat",value:p})),u.find("#"+d).change(function(){s["background-repeat"]=e(this).val(),t.renderCSS(l,s,c)});else if("background-position"===o)u.html(t.backgroundPositionTemplate({name:d,label:polyglot.t("style.backgroundPosition"),placeholder:"initial",value:p})),u.find("#"+d).change(function(){s["background-position"]=e(this).val(),t.renderCSS(l,s,c)});else if("border-style"===o)u.html(t.borderStyleTemplate({name:d,label:polyglot.t("style.borderStyle"),placeholder:"solid",value:p})),u.find("#"+d).change(function(){s["border-style"]=e(this).val(),t.renderCSS(l,s,c)});else if("border-width"===o){u.html(t.borderWidthTemplate({name:d,label:polyglot.t("style.borderWidth"),placeholder:"1px",value:p})),u.find("#"+d).change(function(){s["border-width"]=e(this).val(),t.renderCSS(l,s,c)});var _=[{label:polyglot.t("style.none"),value:"0"}];n.each(n.range(1,100,1),function(e){_.push({label:e+"px",value:e+"px"})}),n.each(n.range(1,50,1),function(e){_.push({label:e+"%",value:e+"5"})}),u.find("#"+d).flexdatalist({minLength:0,valueProperty:"value",visibleProperties:["label"],searchIn:"label",noResultsText:"",maxShownResults:200,data:_})}else"border-color"===o?t.renderColorPicker(u,{name:d,label:polyglot.t("style.borderColor"),placeholder:polyglot.t("style.selectColor"),value:p}).change(function(n,i){s["border-color"]=void 0!==i?i.toString():e(this).val(),t.renderCSS(l,s,c)}):"border-radius"===o?(u.html(t.borderRadiusTemplate({name:d,label:polyglot.t("style.borderRadius"),placeholder:"4px",value:p})),u.find("#"+d).change(function(){s["border-radius"]=e(this).val(),t.renderCSS(l,s,c)})):"box-shadow"===o?(u.html(t.boxShadowTemplate({name:d,label:polyglot.t("style.boxShadow"),placeholder:"",value:p})),u.find("#"+d).change(function(){s["box-shadow"]=e(this).val(),t.renderCSS(l,s,c)})):"text-shadow"===o?(u.html(t.textShadowTemplate({name:d,label:polyglot.t("style.textShadow"),placeholder:"",value:p})),u.find("#"+d).change(function(){s["text-shadow"]=e(this).val(),t.renderCSS(l,s,c)}),u.find("#"+d).flexdatalist({minLength:0,valueProperty:"value",visibleProperties:["label"],searchIn:"label",noResultsText:"",data:[{label:polyglot.t("style.none"),value:"none"},{label:polyglot.t("style.basic"),value:"2px 4px 3px rgba(0,0,0,0.3)"},{label:polyglot.t("style.hard"),value:"6px 6px 0px rgba(0,0,0,0.2)"},{label:polyglot.t("style.double"),value:"4px 3px 0px #fff, 9px 8px 0px rgba(0,0,0,0.15)"},{label:polyglot.t("style.downAndDistant"),value:"0px 3px 0px #b2a98f, 0px 14px 10px rgba(0,0,0,0.15), 0px 24px 2px rgba(0,0,0,0.1), 0px 34px 30px rgba(0,0,0,0.1);"},{label:polyglot.t("style.closeAndHeavy"),value:"0px 4px 3px rgba(0,0,0,0.4), 0px 8px 13px rgba(0,0,0,0.1), 0px 18px 23px rgba(0,0,0,0.1)"},{label:"3D",value:"0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15)"},{label:polyglot.t("style.glowing"),value:"0px 0px 6px rgba(255,255,255,0.7)"},{label:polyglot.t("style.superhero"),value:"-10px 10px 0px #00e6e6, -20px 20px 0px #01cccc, -30px 30px 0px #00bdbd;"},{label:polyglot.t("style.multipleLightSources"),value:"0px 15px 5px rgba(0,0,0,0.1), 10px 20px 5px rgba(0,0,0,0.05), -10px 20px 5px rgba(0,0,0,0.05)"},{label:polyglot.t("style.softEmboss"),value:"2px 8px 6px rgba(0,0,0,0.2), 0px -5px 35px rgba(255,255,255,0.3)"},{label:"2px 2px #ff0000",value:"2px 2px #ff0000"}]})):"margin"===o?(u.html(t.marginTemplate({name:d,label:polyglot.t("style.margin"),placeholder:"15px",value:p})),u.find("#"+d).change(function(){s.margin=e(this).val(),t.renderCSS(l,s,c)})):"padding"===o?(u.html(t.paddingTemplate({name:d,label:polyglot.t("style.padding"),placeholder:"15px",value:p})),u.find("#"+d).change(function(){s.padding=e(this).val(),t.renderCSS(l,s,c)})):"width"===o?(u.html(t.widthTemplate({name:d,label:polyglot.t("style.width"),placeholder:"100%",value:p})),u.find("#"+d).change(function(){s.width=e(this).val(),t.renderCSS(l,s,c)})):"height"===o?(u.html(t.heightTemplate({name:d,label:polyglot.t("style.height"),placeholder:"auto",value:p})),u.find("#"+d).change(function(){s.height=e(this).val(),t.renderCSS(l,s,c)})):"float"===o?(u.html(t.floatTemplate({name:d,label:polyglot.t("style.float"),placeholder:"none",value:p})),u.find("#"+d).change(function(){s.float=e(this).val(),t.renderCSS(l,s,c)})):"text-align"===o?(u.html(t.textAlignTemplate({name:d,label:polyglot.t("style.textAlignment"),placeholder:"right",value:p})),u.find("#"+d).val(p),u.find("#"+d).change(function(){s["text-align"]=e(this).val(),t.renderCSS(l,s,c)})):"font-family"===o?t.renderGoogleFontsSelector(u,{name:d,label:polyglot.t("style.fontFamily"),placeholder:polyglot.t("style.selectFont"),value:p.replace(/ /g,"+").replace(/"/g,"")}).change(function(){var e=this.value;e=e.replace(/\+/g," "),e=e.split(":");var n=e[0];s["font-family"]=/\s/.test(n)?'"'+n+'"':n,t.renderCSS(l,s,c)}):"font-size"===o?(u.html(t.fontSizeTemplate({name:d,label:polyglot.t("style.fontSize"),placeholder:"",value:p})),u.find("#"+d).val(p),u.find("#"+d).change(function(){s["font-size"]=e(this).val(),t.renderCSS(l,s,c)})):"font-weight"===o?(u.html(t.fontWeightTemplate({name:d,label:polyglot.t("style.fontWeight"),placeholder:"",value:p})),u.find("#"+d).val(p),u.find("#"+d).change(function(){s["font-weight"]=e(this).val(),t.renderCSS(l,s,c)})):"text-transform"===o?(u.html(t.textTransformTemplate({name:d,label:polyglot.t("style.textTransform"),placeholder:"",value:p})),u.find("#"+d).val(p),u.find("#"+d).change(function(){s["text-transform"]=e(this).val(),t.renderCSS(l,s,c)})):"text-decoration"===o?(u.html(t.textDecorationTemplate({name:d,label:polyglot.t("style.textDecoration"),placeholder:"",value:p})),u.find("#"+d).val(p),u.find("#"+d).change(function(){s["text-decoration"]=e(this).val(),t.renderCSS(l,s,c)})):"line-height"===o?(u.html(t.lineHeightTemplate({name:d,label:polyglot.t("style.lineHeight"),placeholder:"",value:p})),u.find("#"+d).val(p),u.find("#"+d).change(function(){s["line-height"]=e(this).val(),t.renderCSS(l,s,c)})):"letter-spacing"===o?(u.html(t.letterSpacingTemplate({name:d,label:polyglot.t("style.letterSpacing"),placeholder:"",value:p})),u.find("#"+d).val(p),u.find("#"+d).change(function(){s["letter-spacing"]=e(this).val(),t.renderCSS(l,s,c)})):"transition"===o?(u.html(t.transitionTemplate({name:d,label:polyglot.t("style.transition"),placeholder:"",value:p})),u.find("#"+d).val(p),u.find("#"+d).change(function(){s.transition=e(this).val(),t.renderCSS(l,s,c)})):"display"===o&&(u.html(t.displayTemplate({name:d,label:polyglot.t("style.display"),placeholder:"none",value:p})),u.find("#"+d).val(p),u.find("#"+d).change(function(){s.display=e(this).val(),t.renderCSS(l,s,c)}))})}),i.find(".data-list").flexdatalist({minLength:0,noResultsText:""})})},render:function(){var e=this.$html,n=document.getElementById("styles");n.innerHTML="",this.$el.empty(),this.$el.append(e),this.$el.appendTo(n),this.renderWidgets().then(new o(n))}})}),define("text!data/components.json",[],function(){
return'[\n    {\n        "name": "heading",\n        "title": "heading.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "heading"\n            },\n            "text": {\n                "label": "component.text",\n                "type": "input",\n                "value": "Heading"\n            },\n            "type": {\n                "label": "component.type",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "h1",\n                        "label": "H1",\n                        "selected": false\n                    },\n                    {\n                        "value": "h2",\n                        "label": "H2",\n                        "selected": false\n                    },\n                    {\n                        "value": "h3",\n                        "label": "H3",\n                        "selected": true\n                    },\n                    {\n                        "value": "h4",\n                        "label": "H4",\n                        "selected": false\n                    },\n                    {\n                        "value": "h5",\n                        "label": "H5",\n                        "selected": false\n                    },\n                    {\n                        "value": "h6",\n                        "label": "H6",\n                        "selected": false\n                    }\n                ]\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "legend",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "paragraph",\n        "title": "paragraph.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "paragraph"\n            },\n            "text": {\n                "label": "component.text",\n                "type": "textarea",\n                "value": "Paragraph Text"\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "text",\n        "title": "text.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "text"\n            },\n            "inputType": {\n                "label": "component.inputType",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "text",\n                        "label": "Text",\n                        "selected": true\n                    },\n                    {\n                        "value": "tel",\n                        "label": "Tel",\n                        "selected": false\n                    },\n                    {\n                        "value": "url",\n                        "label": "URL",\n                        "selected": false\n                    },\n                    {\n                        "value": "color",\n                        "label": "Color",\n                        "selected": false\n                    },\n                    {\n                        "value": "password",\n                        "label": "Password",\n                        "selected": false\n                    }\n                ]\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": "Text Field"\n            },\n            "placeholder": {\n                "label": "component.placeholder",\n                "type": "input",\n                "value": ""\n            },\n            "predefinedValue": {\n                "label": "component.predefinedValue",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "helpText": {\n                "label": "component.helpText",\n                "type": "textarea",\n                "value": "",\n                "advanced": true\n            },\n            "helpTextPlacement": {\n                "label": "component.helpTextPlacement",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "below",\n                        "label": "Below inputs",\n                        "selected": true\n                    },\n                    {\n                        "value": "above",\n                        "label": "Below inputs",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "minlength": {\n                "label": "component.minlength",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "maxlength": {\n                "label": "component.maxlength",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "pattern": {\n                "label": "component.pattern",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "form-control",\n                "advanced": true\n            },\n            "labelClass": {\n                "label": "component.labelClass",\n                "type": "input",\n                "value": "form-label",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            },\n            "alias": {\n                "label": "component.alias",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "required": {\n                "label": "component.required",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "readOnly": {\n                "label": "component.readOnly",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "disabled": {\n                "label": "component.disabled",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "unique": {\n                "label": "component.unique",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "number",\n        "title": "number.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "number"\n            },\n            "inputType": {\n                "label": "component.inputType",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "number",\n                        "label": "Number",\n                        "selected": true\n                    },\n                    {\n                        "value": "range",\n                        "label": "Range",\n                        "selected": false\n                    }\n                ]\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": "Number Field"\n            },\n            "placeholder": {\n                "label": "component.placeholder",\n                "type": "input",\n                "value": ""\n            },\n            "predefinedValue": {\n                "label": "component.predefinedValue",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "helpText": {\n                "label": "component.helpText",\n                "type": "textarea",\n                "value": "",\n                "advanced": true\n            },\n            "helpTextPlacement": {\n                "label": "component.helpTextPlacement",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "below",\n                        "label": "Below inputs",\n                        "selected": true\n                    },\n                    {\n                        "value": "above",\n                        "label": "Above inputs",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "min": {\n                "label": "component.minNumber",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "max": {\n                "label": "component.maxNumber",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "step": {\n                "label": "component.stepNumber",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "integerPattern": {\n                "label": "component.integerPattern",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "numberPattern": {\n                "label": "component.numberPattern",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "form-control",\n                "advanced": true\n            },\n            "labelClass": {\n                "label": "component.labelClass",\n                "type": "input",\n                "value": "form-label",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            },\n            "alias": {\n                "label": "component.alias",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "required": {\n                "label": "component.required",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "readOnly": {\n                "label": "component.readOnly",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "disabled": {\n                "label": "component.disabled",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "unique": {\n                "label": "component.unique",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "integerOnly": {\n                "label": "component.integerOnly",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "date",\n        "title": "date.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "date"\n            },\n            "inputType": {\n                "label": "component.inputType",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "date",\n                        "label": "Date",\n                        "selected": true\n                    },\n                    {\n                        "value": "datetime-local",\n                        "label": "DateTime-Local",\n                        "selected": false\n                    },\n                    {\n                        "value": "time",\n                        "label": "Time",\n                        "selected": false\n                    },\n                    {\n                        "value": "month",\n                        "label": "Month",\n                        "selected": false\n                    },\n                    {\n                        "value": "week",\n                        "label": "Week",\n                        "selected": false\n                    }\n                ]\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": "Date Field"\n            },\n            "placeholder": {\n                "label": "component.placeholder",\n                "type": "input",\n                "value": ""\n            },\n            "predefinedValue": {\n                "label": "component.predefinedValue",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "helpText": {\n                "label": "component.helpText",\n                "type": "textarea",\n                "value": "",\n                "advanced": true\n            },\n            "helpTextPlacement": {\n                "label": "component.helpTextPlacement",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "below",\n                        "label": "Below inputs",\n                        "selected": true\n                    },\n                    {\n                        "value": "above",\n                        "label": "Above inputs",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "min": {\n                "label": "component.minDate",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "max": {\n                "label": "component.maxDate",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "step": {\n                "label": "component.stepNumber",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "form-control",\n                "advanced": true\n            },\n            "labelClass": {\n                "label": "component.labelClass",\n                "type": "input",\n                "value": "form-label",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            },\n            "alias": {\n                "label": "component.alias",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "required": {\n                "label": "component.required",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "readOnly": {\n                "label": "component.readOnly",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "disabled": {\n                "label": "component.disabled",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "unique": {\n                "label": "component.unique",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "email",\n        "title": "email.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "email"\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": "Email Field"\n            },\n            "placeholder": {\n                "label": "component.placeholder",\n                "type": "input",\n                "value": ""\n            },\n            "predefinedValue": {\n                "label": "component.predefinedValue",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "helpText": {\n                "label": "component.helpText",\n                "type": "textarea",\n                "value": "",\n                "advanced": true\n            },\n            "helpTextPlacement": {\n                "label": "component.helpTextPlacement",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "below",\n                        "label": "Below inputs",\n                        "selected": true\n                    },\n                    {\n                        "value": "above",\n                        "label": "Above inputs",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "minlength": {\n                "label": "component.minlength",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "maxlength": {\n                "label": "component.maxlength",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "pattern": {\n                "label": "component.pattern",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "form-control",\n                "advanced": true\n            },\n            "labelClass": {\n                "label": "component.labelClass",\n                "type": "input",\n                "value": "form-label",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            },\n            "alias": {\n                "label": "component.alias",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "required": {\n                "label": "component.required",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "readOnly": {\n                "label": "component.readOnly",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "disabled": {\n                "label": "component.disabled",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "unique": {\n                "label": "component.unique",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "checkdns": {\n                "label": "component.checkDNS",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "multiple": {\n                "label": "component.multiple",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "textarea",\n        "title": "textarea.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "textarea"\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": "Text Area"\n            },\n            "placeholder": {\n                "label": "component.placeholder",\n                "type": "input",\n                "value": ""\n            },\n            "predefinedValue": {\n                "label": "component.predefinedValue",\n                "type": "textarea",\n                "value": ""\n            },\n            "helpText": {\n                "label": "component.helpText",\n                "type": "textarea",\n                "value": "",\n                "advanced": true\n            },\n            "helpTextPlacement": {\n                "label": "component.helpTextPlacement",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "below",\n                        "label": "Below inputs",\n                        "selected": true\n                    },\n                    {\n                        "value": "above",\n                        "label": "Above inputs",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "minlength": {\n                "label": "component.minlength",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "maxlength": {\n                "label": "component.maxlength",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "fieldSize": {\n                "label": "component.fieldSize",\n                "type": "input",\n                "value": 3,\n                "advanced": true\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "form-control",\n                "advanced": true\n            },\n            "labelClass": {\n                "label": "component.labelClass",\n                "type": "input",\n                "value": "form-label",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            },\n            "alias": {\n                "label": "component.alias",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "required": {\n                "label": "component.required",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "readOnly": {\n                "label": "component.readOnly",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "disabled": {\n                "label": "component.disabled",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "unique": {\n                "label": "component.unique",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "checkbox",\n        "title": "checkbox.title",\n        "fields": {\n            "id": {\n                "label": "component.groupName",\n                "type": "input",\n                "value": "checkbox"\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": "Check All That Apply"\n            },\n            "checkboxes": {\n                "label": "component.checkboxes",\n                "type": "choice",\n                "value": [\n                    "First Choice|selected",\n                    "Second Choice",\n                    "Third Choice"\n                ]\n            },\n            "helpText": {\n                "label": "component.helpText",\n                "type": "textarea",\n                "value": "",\n                "advanced": true\n            },\n            "helpTextPlacement": {\n                "label": "component.helpTextPlacement",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "below",\n                        "label": "Below inputs",\n                        "selected": true\n                    },\n                    {\n                        "value": "above",\n                        "label": "Above inputs",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "checkbox-inline",\n                "advanced": true\n            },\n            "labelClass": {\n                "label": "component.labelClass",\n                "type": "input",\n                "value": "form-label",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            },\n            "alias": {\n                "label": "component.alias",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "required": {\n                "label": "component.required",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "readOnly": {\n                "label": "component.readOnly",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "disabled": {\n                "label": "component.disabled",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "inline": {\n                "label": "component.inline",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "radio",\n        "title": "radio.title",\n        "fields": {\n            "id": {\n                "label": "component.groupName",\n                "type": "input",\n                "value": "radio"\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": "Select a Choice"\n            },\n            "radios": {\n                "label": "component.radios",\n                "type": "choice",\n                "value": [\n                    "First Choice|selected",\n                    "Second Choice",\n                    "Third Choice"\n                ]\n            },\n            "helpText": {\n                "label": "component.helpText",\n                "type": "textarea",\n                "value": "",\n                "advanced": true\n            },\n            "helpTextPlacement": {\n                "label": "component.helpTextPlacement",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "below",\n                        "label": "Below inputs",\n                        "selected": true\n                    },\n                    {\n                        "value": "above",\n                        "label": "Above inputs",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "radio-inline",\n                "advanced": true\n            },\n            "labelClass": {\n                "label": "component.labelClass",\n                "type": "input",\n                "value": "form-label",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            },\n            "alias": {\n                "label": "component.alias",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "required": {\n                "label": "component.required",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "readOnly": {\n                "label": "component.readOnly",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "disabled": {\n                "label": "component.disabled",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "inline": {\n                "label": "component.inline",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "selectlist",\n        "title": "selectlist.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "selectlist"\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": "Select a Choice"\n            },\n            "options": {\n                "label": "component.options",\n                "type": "choice",\n                "value": [\n                    "First Choice|selected",\n                    "Second Choice",\n                    "Third Choice"\n                ]\n            },\n            "placeholder": {\n                "label": "component.placeholder",\n                "type": "input",\n                "value": ""\n            },\n            "helpText": {\n                "label": "component.helpText",\n                "type": "textarea",\n                "value": "",\n                "advanced": true\n            },\n            "helpTextPlacement": {\n                "label": "component.helpTextPlacement",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "below",\n                        "label": "Below inputs",\n                        "selected": true\n                    },\n                    {\n                        "value": "above",\n                        "label": "Above inputs",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "form-control",\n                "advanced": true\n            },\n            "labelClass": {\n                "label": "component.labelClass",\n                "type": "input",\n                "value": "form-label",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            },\n            "alias": {\n                "label": "component.alias",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "required": {\n                "label": "component.required",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "readOnly": {\n                "label": "component.readOnly",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "disabled": {\n                "label": "component.disabled",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "multiple": {\n                "label": "component.multiple",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "hidden",\n        "title": "hidden.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "hidden"\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": ""\n            },\n            "predefinedValue": {\n                "label": "component.predefinedValue",\n                "type": "input",\n                "value": ""\n            },\n            "alias": {\n                "label": "component.alias",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "disabled": {\n                "label": "component.disabled",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "unique": {\n                "label": "component.unique",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "file",\n        "title": "file.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "file"\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": "Attach a File"\n            },\n            "accept": {\n                "label": "component.accept",\n                "type": "input",\n                "value": ".gif, .jpg, .png"\n            },\n            "helpText": {\n                "label": "component.helpText",\n                "type": "textarea",\n                "value": "",\n                "advanced": true\n            },\n            "helpTextPlacement": {\n                "label": "component.helpTextPlacement",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "below",\n                        "label": "Below inputs",\n                        "selected": true\n                    },\n                    {\n                        "value": "above",\n                        "label": "Above inputs",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "minFiles": {\n                "label": "component.minFiles",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "maxFiles": {\n                "label": "component.maxFiles",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "minSize": {\n                "label": "component.minSize",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "maxSize": {\n                "label": "component.maxSize",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "labelClass": {\n                "label": "component.labelClass",\n                "type": "input",\n                "value": "form-label",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            },\n            "alias": {\n                "label": "component.alias",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "required": {\n                "label": "component.required",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "readOnly": {\n                "label": "component.readOnly",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "disabled": {\n                "label": "component.disabled",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "snippet",\n        "title": "snippet.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "snippet"\n            },\n            "snippet": {\n                "label": "component.htmlCode",\n                "type": "textarea",\n                "value": "Replace this code"\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "recaptcha",\n        "title": "recaptcha.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "recaptcha"\n            },\n            "theme": {\n                "label": "component.theme",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "light",\n                        "label": "Light",\n                        "selected": true\n                    },\n                    {\n                        "value": "dark",\n                        "label": "Dark",\n                        "selected": false\n                    }\n                ]\n            },\n            "type": {\n                "label": "component.type",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "image",\n                        "label": "Image",\n                        "selected": true\n                    },\n                    {\n                        "value": "audio",\n                        "label": "Audio",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "size": {\n                "label": "component.size",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "normal",\n                        "label": "Normal",\n                        "selected": true\n                    },\n                    {\n                        "value": "compact",\n                        "label": "Compact",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "pagebreak",\n        "title": "pagebreak.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "pagebreak"\n            },\n            "prev": {\n                "label": "component.prev",\n                "type": "input",\n                "value": ""\n            },\n            "next": {\n                "label": "component.next",\n                "type": "input",\n                "value": ""\n            }\n        }\n    },\n    {\n        "name": "spacer",\n        "title": "spacer.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "spacer"\n            },\n            "height": {\n                "label": "component.height",\n                "type": "number",\n                "value": "50"\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "signature",\n        "title": "signature.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "signature"\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": "Signature"\n            },\n            "required": {\n                "label": "component.required",\n                "type": "checkbox",\n                "value": false\n            },\n            "clear": {\n                "label": "component.clear",\n                "type": "checkbox",\n                "value": true\n            },\n            "undo": {\n                "label": "component.undo",\n                "type": "checkbox",\n                "value": true\n            },\n            "helpText": {\n                "label": "component.helpText",\n                "type": "textarea",\n                "value": "",\n                "advanced": true\n            },\n            "helpTextPlacement": {\n                "label": "component.helpTextPlacement",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "below",\n                        "label": "Below inputs",\n                        "selected": true\n                    },\n                    {\n                        "value": "above",\n                        "label": "Above inputs",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "width": {\n                "label": "component.width",\n                "type": "input",\n                "value": "400",\n                "advanced": true\n            },\n            "height": {\n                "label": "component.height",\n                "type": "input",\n                "value": "200",\n                "advanced": true\n            },\n            "color": {\n                "label": "component.color",\n                "type": "input",\n                "value": "black",\n                "advanced": true\n            },\n            "clearText": {\n                "label": "component.clearText",\n                "type": "input",\n                "value": "Clear",\n                "advanced": true\n            },\n            "undoText": {\n                "label": "component.undoText",\n                "type": "input",\n                "value": "Undo",\n                "advanced": true\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "labelClass": {\n                "label": "component.labelClass",\n                "type": "input",\n                "value": "form-label",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            },\n            "alias": {\n                "label": "component.alias",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "matrix",\n        "title": "matrix.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "matrix"\n            },\n            "inputType": {\n                "label": "component.inputType",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "radio",\n                        "label": "Radio Button",\n                        "selected": true\n                    },\n                    {\n                        "value": "checkbox",\n                        "label": "Checkbox",\n                        "selected": false\n                    },\n                    {\n                        "value": "select",\n                        "label": "Select List",\n                        "selected": false\n                    },\n                    {\n                        "value": "text",\n                        "label": "Text",\n                        "selected": false\n                    },\n                    {\n                        "value": "textarea",\n                        "label": "Text Area",\n                        "selected": false\n                    },\n                    {\n                        "value": "number",\n                        "label": "Number",\n                        "selected": false\n                    },\n                    {\n                        "value": "range",\n                        "label": "Range",\n                        "selected": false\n                    },\n                    {\n                        "value": "email",\n                        "label": "Email",\n                        "selected": false\n                    },\n                    {\n                        "value": "tel",\n                        "label": "Tel",\n                        "selected": false\n                    },\n                    {\n                        "value": "url",\n                        "label": "URL",\n                        "selected": false\n                    },\n                    {\n                        "value": "color",\n                        "label": "Color",\n                        "selected": false\n                    },\n                    {\n                        "value": "password",\n                        "label": "Password",\n                        "selected": false\n                    },\n                    {\n                        "value": "date",\n                        "label": "Date",\n                        "selected": false\n                    },\n                    {\n                        "value": "datetime-local",\n                        "label": "DateTime-Local",\n                        "selected": false\n                    },\n                    {\n                        "value": "time",\n                        "label": "Time",\n                        "selected": false\n                    },\n                    {\n                        "value": "month",\n                        "label": "Month",\n                        "selected": false\n                    },\n                    {\n                        "value": "week",\n                        "label": "Week",\n                        "selected": false\n                    }\n                ]\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": "Answer the following questions"\n            },\n            "questions": {\n                "label": "component.questions",\n                "type": "choice",\n                "value": [\n                    "First Question",\n                    "Second Question",\n                    "Third Question"\n                ]\n            },\n            "answers": {\n                "label": "component.answers",\n                "type": "choice",\n                "value": [\n                    "Answer A",\n                    "Answer B",\n                    "Answer C"\n                ]\n            },\n            "placeholder": {\n                "label": "component.placeholder",\n                "type": "input",\n                "value": ""\n            },\n            "helpText": {\n                "label": "component.helpText",\n                "type": "textarea",\n                "value": ""\n            },\n            "helpTextPlacement": {\n                "label": "component.helpTextPlacement",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "below",\n                        "label": "Below inputs",\n                        "selected": true\n                    },\n                    {\n                        "value": "above",\n                        "label": "Above inputs",\n                        "selected": false\n                    }\n                ],\n                "advanced": true\n            },\n            "pattern": {\n                "label": "component.pattern",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "minlength": {\n                "label": "component.minlength",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "maxlength": {\n                "label": "component.maxlength",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "min": {\n                "label": "component.min",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "max": {\n                "label": "component.max",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "step": {\n                "label": "component.step",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "form-control",\n                "advanced": true\n            },\n            "labelClass": {\n                "label": "component.labelClass",\n                "type": "input",\n                "value": "form-label",\n                "advanced": true\n            },\n            "tableClass": {\n                "label": "component.tableClass",\n                "type": "input",\n                "value": "table table-striped table-hover",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            },\n            "required": {\n                "label": "component.required",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "readOnly": {\n                "label": "component.readOnly",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "disabled": {\n                "label": "component.disabled",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "inline": {\n                "label": "component.inline",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "multiple": {\n                "label": "component.multiple",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            }\n        }\n    },\n    {\n        "name": "button",\n        "title": "button.title",\n        "fields": {\n            "id": {\n                "label": "component.id",\n                "type": "input",\n                "value": "button"\n            },\n            "inputType": {\n                "label": "component.type",\n                "type": "select",\n                "value": [\n                    {\n                        "value": "submit",\n                        "label": "Submit",\n                        "selected": true\n                    },\n                    {\n                        "value": "reset",\n                        "label": "Reset",\n                        "selected": false\n                    },\n                    {\n                        "value": "image",\n                        "label": "Image",\n                        "selected": false\n                    },\n                    {\n                        "value": "button",\n                        "label": "Button",\n                        "selected": false\n                    }\n                ]\n            },\n            "buttonText": {\n                "label": "component.buttonText",\n                "type": "input",\n                "value": "Submit"\n            },\n            "label": {\n                "label": "component.label",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "src": {\n                "label": "component.src",\n                "type": "input",\n                "value": "",\n                "advanced": true\n            },\n            "cssClass": {\n                "label": "component.cssClass",\n                "type": "input",\n                "value": "btn btn-primary",\n                "advanced": true\n            },\n            "labelClass": {\n                "label": "component.labelClass",\n                "type": "input",\n                "value": "form-label",\n                "advanced": true\n            },\n            "containerClass": {\n                "label": "component.containerClass",\n                "type": "input",\n                "value": "col-12",\n                "advanced": true\n            },\n            "readOnly": {\n                "label": "component.readOnly",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            },\n            "disabled": {\n                "label": "component.disabled",\n                "type": "checkbox",\n                "value": false,\n                "advanced": true\n            }\n        }\n    }\n]'
}),define("text!data/i18n.json",[],function(){return'{\n    "phrases": {\n        "form.name": "Form Name",\n        "form.description": "Used to identify the form on administration pages.",\n        "form.layout": "Form Layout",\n        "form.disabled": "Disable form elements",\n        "form.sourceCode": "Source Code preview",\n        "form.copy": "Copy",\n        "form.copied": "Copied!",\n        "form.copyToClipboard": "Copy to clipboard",\n        "formSteps.title": "Form Steps",\n        "formSteps.id": "ID / Name",\n        "formSteps.steps": "Steps",\n        "formSteps.progressBar": "Progress Bar",\n        "formSteps.noTitles": "No Titles",\n        "formSteps.noStages": "No Stages",\n        "formSteps.noSteps": "No Form Steps",\n        "popover.save": "Save",\n        "popover.delete": "Delete",\n        "popover.cancel": "Cancel",\n        "popover.more": "More",\n        "tab.fields": "Fields",\n        "tab.settings": "Settings",\n        "tab.code": "Code",\n        "alert.warning": "Warning!",\n        "alert.errorSavingData": "There was a problem saving data. Please retry later",\n        "alert.unsavedChanges": "YOU HAVE UNSAVED CHANGES! ALL CHANGES IN THE FORM WILL BE LOST!",\n        "widget.button": "Submit",\n        "widget.checkbox": "Checkboxes",\n        "widget.date": "Date Field",\n        "widget.email": "Email Field",\n        "widget.file": "File Upload",\n        "widget.heading": "Heading",\n        "widget.hidden": "Hidden Field",\n        "widget.number": "Number Field",\n        "widget.pageBreak": "Page Break",\n        "widget.paragraph": "Paragraph",\n        "widget.radio": "Radio Buttons",\n        "widget.recaptcha": "reCaptcha",\n        "widget.selectList": "Select List",\n        "widget.snippet": "Snippet",\n        "widget.text": "Text Field",\n        "widget.textArea": "Text Area",\n        "heading.title": "Heading",\n        "paragraph.title": "Paragraph",\n        "text.title": "Text",\n        "number.title": "Number",\n        "date.title": "Date",\n        "email.title": "Email",\n        "textarea.title": "Text Area",\n        "checkbox.title": "Checkbox",\n        "radio.title": "Radio",\n        "selectlist.title": "Select List",\n        "hidden.title": "Hidden",\n        "file.title": "File",\n        "snippet.title": "Snippet",\n        "recaptcha.title": "reCAPTCHA",\n        "pagebreak.title": "Page Break",\n        "button.title": "Button",\n        "component.id": "ID / Name",\n        "component.text": "Text",\n        "component.inputType": "Input Type",\n        "component.type": "Type",\n        "component.size": "Size",\n        "component.label": "Label",\n        "component.placeholder": "Placeholder",\n        "component.required": "Required",\n        "component.predefinedValue": "Predefined Value",\n        "component.helpText": "Help Text",\n        "component.fieldSize": "Field Size",\n        "component.groupName": "Group Name",\n        "component.checkboxes": "Checkboxes",\n        "component.radios": "Radios",\n        "component.options": "Options",\n        "component.value": "Value",\n        "component.accept": "Accept",\n        "component.pattern": "Pattern",\n        "component.integerPattern": "Integer Pattern",\n        "component.numberPattern": "Number Pattern",\n        "component.prev": "Text of Previous Button",\n        "component.next": "Text of Next Button",\n        "component.buttonText": "Button Text",\n        "component.src": "Image Source",\n        "component.inline": "Inline",\n        "component.unique": "Unique",\n        "component.readOnly": "Read Only",\n        "component.integerOnly": "Integer Only",\n        "component.minNumber": "Min number",\n        "component.maxNumber": "Max number",\n        "component.stepNumber": "Step number",\n        "component.minDate": "Min date",\n        "component.maxDate": "Max date",\n        "component.minSize": "Min Size",\n        "component.maxSize": "Max Size",\n        "component.htmlCode": "HTML Code",\n        "component.theme": "Theme",\n        "component.checkDNS": "Check DNS",\n        "component.multiple": "Multiple",\n        "component.disabled": "Disabled",\n        "component.cssClass": "CSS Class",\n        "component.labelClass": "Label CSS Class",\n        "component.containerClass": "Container CSS Class"\n    }\n}'}),define("text!data/init-form.json",[],function(){return'{\n    "initForm": [\n        {\n            "name": "heading",\n            "title": "heading.title",\n            "fields": {\n                "id": {\n                    "label": "component.id",\n                    "type": "input",\n                    "value": "heading_0"\n                },\n                "text": {\n                    "label": "component.text",\n                    "type": "input",\n                    "value": "Untitled Form"\n                },\n                "type": {\n                    "label": "component.type",\n                    "type": "select",\n                    "value": [\n                        {\n                            "value": "h1",\n                            "label": "H1",\n                            "selected": false\n                        },\n                        {\n                            "value": "h2",\n                            "label": "H2",\n                            "selected": false\n                        },\n                        {\n                            "value": "h3",\n                            "label": "H3",\n                            "selected": true\n                        },\n                        {\n                            "value": "h4",\n                            "label": "H4",\n                            "selected": false\n                        },\n                        {\n                            "value": "h5",\n                            "label": "H5",\n                            "selected": false\n                        },\n                        {\n                            "value": "h6",\n                            "label": "H6",\n                            "selected": false\n                        }\n                    ]\n                },\n                "cssClass": {\n                    "label": "component.cssClass",\n                    "type": "input",\n                    "value": "legend",\n                    "advanced": true\n                },\n                "containerClass": {\n                    "label": "component.containerClass",\n                    "type": "input",\n                    "value": "",\n                    "advanced": true\n                }\n            },\n            "fresh": false\n        },\n        {\n            "name": "paragraph",\n            "title": "paragraph.title",\n            "fields": {\n                "id": {\n                    "label": "component.id",\n                    "type": "input",\n                    "value": "paragraph_0"\n                },\n                "text": {\n                    "label": "component.text",\n                    "type": "textarea",\n                    "value": "This is my form. Please fill it out. Thanks!"\n                },\n                "cssClass": {\n                    "label": "component.cssClass",\n                    "type": "input",\n                    "value": "",\n                    "advanced": true\n                },\n                "containerClass": {\n                    "label": "component.containerClass",\n                    "type": "input",\n                    "value": "",\n                    "advanced": true\n                }\n            },\n            "fresh": false\n        }\n    ],\n    "settings": {\n        "name": "Untitled Form",\n        "canvas": "#canvas",\n        "disabledFieldset": false,\n        "layoutSelected": "",\n        "layouts": [\n            {\n                "id": "",\n                "name": "Vertical"\n            },\n            {\n                "id": "form-horizontal",\n                "name": "Horizontal"\n            },\n            {\n                "id": "form-inline",\n                "name": "Inline"\n            }\n        ],\n        "formSteps": {\n            "title": "formSteps.title",\n            "fields": {\n                "id": {\n                    "label": "formSteps.id",\n                    "type": "input",\n                    "value": "formSteps"\n                },\n                "steps": {\n                    "label": "formSteps.steps",\n                    "type": "textarea-split",\n                    "value": []\n                },\n                "progressBar": {\n                    "label": "formSteps.progressBar",\n                    "type": "checkbox",\n                    "value": false\n                },\n                "noTitles": {\n                    "label": "formSteps.noTitles",\n                    "type": "checkbox",\n                    "value": false\n                },\n                "noStages": {\n                    "label": "formSteps.noStages",\n                    "type": "checkbox",\n                    "value": false\n                },\n                "noSteps": {\n                    "label": "formSteps.noSteps",\n                    "type": "checkbox",\n                    "value": false\n                }\n            }\n        }\n    }\n}'}),define("text!data/css-rules.json",[],function(){return'[\n  {\n    "name": "global",\n    "selector": "#canvas"\n  },\n  {\n    "name": "form",\n    "selector": "#canvas form"\n  },\n  {\n    "name": "form-group",\n    "selector": "#canvas form .form-group"\n  },\n  {\n    "name": "form-control",\n    "selector": "#canvas form .form-control"\n  },\n  {\n    "name": "form-control-focus",\n    "selector": "#canvas form .form-control:focus"\n  },\n  {\n    "name": "button-primary",\n    "selector": "#canvas form .btn.btn-primary"\n  },\n  {\n    "name": "button-primary-hover",\n    "selector": "#canvas form .btn.btn-primary:hover, #canvas form .btn.btn-primary:active, #canvas form .btn.btn-primary:focus"\n  },\n  {\n    "name": "button-default",\n    "selector": "#canvas form .btn.btn-default"\n  },\n  {\n    "name": "button-default-hover",\n    "selector": "#canvas form .btn.btn-default:hover, #canvas form .btn.btn-default:active, #canvas form .btn.btn-default:focus"\n  },\n  {\n    "name": "button-warning",\n    "selector": "#canvas form .btn.btn-warning"\n  },\n  {\n    "name": "button-warning-hover",\n    "selector": "#canvas form .btn.btn-warning:hover, #canvas form .btn.btn-warning:active, #canvas form .btn.btn-warning:focus"\n  },\n  {\n    "name": "button-danger",\n    "selector": "#canvas form .btn.btn-danger"\n  },\n  {\n    "name": "button-danger-hover",\n    "selector": "#canvas form .btn.btn-danger:hover, #canvas form .btn.btn-danger:active, #canvas form .btn.btn-danger:focus"\n  },\n  {\n    "name": "button-info",\n    "selector": "#canvas form .btn.btn-danger"\n  },\n  {\n    "name": "button-info-hover",\n    "selector": "#canvas form .btn.btn-info:hover, #canvas form .btn.btn-info:active, #canvas form .btn.btn-info:focus"\n  },\n  {\n    "name": "form-label",\n    "selector": "#canvas form .form-label"\n  },\n  {\n    "name": "placeholder",\n    "selector": "#canvas form ::placeholder"\n  },\n  {\n    "name": "heading",\n    "selector": "#canvas form h1, #canvas form h2, #canvas form h3, #canvas form h4, #canvas form h5, #canvas form h6, #canvas form .legend"\n  },\n  {\n    "name": "paragraph",\n    "selector": "#canvas form p"\n  },\n  {\n    "name": "form-text",\n    "selector": "#canvas form .form-text"\n  },\n  {\n    "name": "link",\n    "selector": "#canvas form a"\n  },\n  {\n    "name": "link-hover",\n    "selector": "#canvas form a:hover"\n  },\n  {\n    "name": "step",\n    "selector": "#canvas form .steps .step .stage, #canvas form .steps .step:before, #canvas form .steps .step:after"\n  },\n  {\n    "name": "step-stage",\n    "selector": "#canvas form .steps .step .stage"\n  },\n  {\n    "name": "step-connection",\n    "selector": "#canvas form .steps .step:after, #canvas form .steps .step:before"\n  },\n  {\n    "name": "step-current",\n    "selector": "#canvas form .steps .step.current .stage, #canvas form .steps .step.current:after, #canvas form .steps .step.current:before"\n  },\n  {\n    "name": "step-success",\n    "selector": "#canvas form .steps .step.success .stage, #canvas form .steps .step.success:after, #canvas form .steps .step.success:before"\n  },\n  {\n    "name": "step-title",\n    "selector": "#canvas form .steps .step .title"\n  },\n  {\n    "name": "step-current-title",\n    "selector": "#canvas form .steps .step.current .title"\n  },\n  {\n    "name": "step-success-title",\n    "selector": "#canvas form .steps .step.success .title"\n  },\n  {\n    "name": "alert",\n    "selector": ".alert"\n  },\n  {\n    "name": "alert-success",\n    "selector": ".alert-success"\n  },\n  {\n    "name": "alert-danger",\n    "selector": ".alert-danger"\n  },\n  {\n    "name": "alert-info",\n    "selector": ".alert-info"\n  },\n  {\n    "name": "alert-warning",\n    "selector": ".alert-warning"\n  },\n  {\n    "name": "validation-error-field",\n    "selector": ".has-error .form-control"\n  },\n  {\n    "name": "validation-error-text",\n    "selector": ".has-error .form-text, .has-error .form-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline, .has-error.radio label, .has-error.checkbox label, .has-error.radio-inline label, .has-error.checkbox-inline label"\n  },\n  {\n    "name": "validation-symbol-asterisk",\n    "selector": ".required .form-label:after, .required-control .form-label:after"\n  },\n  {\n    "name": "recaptcha",\n    "selector": "#recaptcha, .g-recaptcha"\n  },\n  {\n    "name": "signature-pad",\n    "selector": ".signature-pad"\n  },\n  {\n    "name": "signature-canvas",\n    "selector": ".signature-pad canvas"\n  },\n  {\n    "name": "checkbox-input",\n    "selector": "input[type=checkbox]"\n  },\n  {\n    "name": "checkbox-input-checked",\n    "selector": "input[type=checkbox]:checked"\n  },\n  {\n    "name": "checkbox-label",\n    "selector": "input[type=checkbox]+label"\n  },\n  {\n    "name": "checkbox-label-checked",\n    "selector": "input[type=checkbox]:checked+label"\n  },\n  {\n    "name": "checkbox-container",\n    "selector": "div:has(> input[type=checkbox])"\n  },\n  {\n    "name": "radio-input",\n    "selector": "input[type=radio]"\n  },\n  {\n    "name": "radio-input-checked",\n    "selector": "input[type=radio]:checked"\n  },\n  {\n    "name": "radio-label",\n    "selector": "input[type=radio]+label"\n  },\n  {\n    "name": "radio-label-checked",\n    "selector": "input[type=radio]:checked+label"\n  },\n  {\n    "name": "radio-container",\n    "selector": "div:has(> input[type=radio])"\n  },\n  {\n    "name": "button-prev",\n    "selector": ".btn.prev"\n  },\n  {\n    "name": "button-prev-hover",\n    "selector": "#canvas form .btn.prev:hover, #canvas form .btn.prev:active, #canvas form .btn.prev:focus"\n  },\n  {\n    "name": "button-next",\n    "selector": ".btn.next"\n  },\n  {\n    "name": "button-next-hover",\n    "selector": "#canvas form .btn.next:hover, #canvas form .btn.next:active, #canvas form .btn.next:focus"\n  },\n  {\n    "name": "progress-bar-container",\n    "selector": ".progress"\n  },\n  {\n    "name": "progress-bar",\n    "selector": ".progress-bar"\n  },\n  {\n    "name": "table",\n    "selector": ".table"\n  },\n  {\n    "name": "well",\n    "selector": ".well"\n  }\n]'}),define("text!data/css-properties.json",[],function(){return'{\n  "animation": "",\n  "animation-delay": "",\n  "animation-direction": "",\n  "animation-duration": "",\n  "animation-iteration-count": "",\n  "animation-name": "",\n  "animation-play-state": "",\n  "animation-timing-function": "",\n  "azimuth": "",\n  "backface-visibility": "",\n  "background": "",\n  "background-attachment": "",\n  "background-clip": "",\n  "background-color": "",\n  "background-image": "",\n  "background-origin": "",\n  "background-position": "",\n  "background-repeat": "",\n  "background-size": "",\n  "bleed": "",\n  "border": "",\n  "border-bottom": "",\n  "border-bottom-color": "",\n  "border-bottom-left-radius": "",\n  "border-bottom-right-radius": "",\n  "border-bottom-style": "",\n  "border-bottom-width": "",\n  "border-collapse": "",\n  "border-color": "",\n  "border-image": "",\n  "border-image-outset": "",\n  "border-image-repeat": "",\n  "border-image-source": "",\n  "border-image-width": "",\n  "border-left": "",\n  "border-left-color": "",\n  "border-left-style": "",\n  "border-left-width": "",\n  "border-radius": "",\n  "border-right": "",\n  "border-right-color": "",\n  "border-right-style": "",\n  "border-right-width": "",\n  "border-spacing": "",\n  "border-style": "",\n  "border-top": "",\n  "border-top-color": "",\n  "border-top-left-radius": "",\n  "border-top-right-radius": "",\n  "border-top-style": "",\n  "border-top-width": "",\n  "border-width": "",\n  "bottom": "",\n  "box-shadow": "",\n  "box-sizing": "",\n  "caption-side": "",\n  "clear": "",\n  "clip": "",\n  "color": "",\n  "column-count": "",\n  "column-fill": "",\n  "column-gap": "",\n  "column-rule": "",\n  "column-rule-color": "",\n  "column-rule-style": "",\n  "column-rule-width": "",\n  "column-span": "",\n  "column-width": "",\n  "columns": "",\n  "content": "",\n  "counter-increment": "",\n  "counter-reset": "",\n  "cursor": "",\n  "direction": "",\n  "display": "",\n  "empty-cells": "",\n  "float": "",\n  "font": "",\n  "font-family": "",\n  "font-size": "",\n  "font-size-adjust": "",\n  "font-stretch": "",\n  "font-style": "",\n  "font-variant": "",\n  "font-weight": "",\n  "height": "",\n  "hyphens": "",\n  "image-rendering": "",\n  "left": "",\n  "letter-spacing": "",\n  "line-height": "",\n  "list-style": "",\n  "list-style-image": "",\n  "list-style-position": "",\n  "list-style-type": "",\n  "margin": "",\n  "margin-bottom": "",\n  "margin-left": "",\n  "margin-right": "",\n  "margin-top": "",\n  "marker-offset": "",\n  "marks": "",\n  "max-height": "",\n  "max-width": "",\n  "min-height": "",\n  "min-width": "",\n  "opacity": "",\n  "orphans": "",\n  "outline": "",\n  "outline-color": "",\n  "outline-offset": "",\n  "outline-style": "",\n  "outline-width": "",\n  "overflow": "",\n  "overflow-x": "",\n  "padding": "",\n  "padding-bottom": "",\n  "padding-left": "",\n  "padding-right": "",\n  "padding-top": "",\n  "page-break-after": "",\n  "page-break-before": "",\n  "page-break-inside": "",\n  "perspective": "",\n  "perspective-origin": "",\n  "position": "",\n  "quotes": "",\n  "resize": "",\n  "right": "",\n  "tab-size": "",\n  "table-layout": "",\n  "text-align": "",\n  "text-align-last": "",\n  "text-decoration": "",\n  "text-decoration-color": "",\n  "text-decoration-line": "",\n  "text-decoration-style": "",\n  "text-indent": "",\n  "text-shadow": "",\n  "text-transform": "",\n  "top": "",\n  "transform": "",\n  "transform-origin": "",\n  "transform-style": "",\n  "transition": "",\n  "transition-delay": "",\n  "transition-duration": "",\n  "transition-property": "",\n  "transition-timing-function": "",\n  "vertical-align": "",\n  "visibility": "",\n  "white-space": "",\n  "widows": "",\n  "width": "",\n  "word-spacing": "",\n  "word-wrap": "",\n  "z-index": ""\n}'}),define("text!templates/app/render.html",[],function(){return'<pre><code id="render" class="language-markup"></code></pre>'}),function(e){var n={};e.fn.fontselect=function(t){var i=function(e,n){return function(){return e.apply(n,arguments)}},o={style:"font-select",placeholder:"Select a font",placeholderSearch:"Search...",searchable:!0,lookahead:2,googleApi:"https://fonts.googleapis.com/css?family=",localFontsUrl:"/fonts/",systemFonts:"inherit|Arial|Helvetica+Neue|Courier+New|Times+New+Roman|Comic+Sans+MS|Verdana|Impact".split("|"),googleFonts:"Abril+Fatface|Aclonica|Alfa+Slab+One|Allan|Amarante|Annie+Use+Your+Telescope|Anonymous+Pro|Allerta+Stencil|Allerta|Amaranth|Anton|Arbutus|Architects+Daughter|Archivo+Black|Arimo|Artifika|Arvo|Asset|Astloch|Audiowide|Bangers|Baumans|Bentham|Bevan|Bigshot+One|Black+Ops+One|Bowlby+One|Bowlby+One+SC|Brawler|Bubblegum+Sans|Buda:300|Butcherman|Butterfly+Kids|Cabin|Caesar+Dressing|Calligraffitti|Candal|Cantarell|Cardo|Carter+One|Caudex|Cedarville+Cursive|Changa+One|Cherry+Cream+Soda|Chewy|Coda|Codystar|Comfortaa|Coming+Soon|Copse|Corben|Cousine|Covered+By+Your+Grace|Crafty+Girls|Crimson+Text|Crushed|Cuprum|Damion|Dancing+Script|Dawning+of+a+New+Day|Days+One|Didact+Gothic|Diplomata|Droid+Sans|Droid+Serif|EB+Garamond|Ewert|Expletus+Sans|Faster+One|Fontdiner+Swanky|Forum|Francois+One|Fredoka+One|Fugaz+One|Glass+Antiqua|Geo|Give+You+Glory|Goblin+One|Gorditas|Goudy+Bookletter+1911|Gravitas+One|Gruppo|Hammersmith+One|Hanalei|Henny+Penny|Holtwood+One+SC|Homemade+Apple|Inconsolata|Indie+Flower|Irish+Grover|Istok+Web|Josefin+Sans|Josefin+Slab|Judson|Jura|Just+Another+Hand|Just+Me+Again+Down+Here|Kameron|Kenia|Kranky|Kreon|Kristi|La+Belle+Aurore|Lato|League+Script|Lekton|Limelight|Lobster|Lobster+Two|Lora|Love+Ya+Like+A+Sister|Loved+by+the+King|Luckiest+Guy|Maiden+Orange|Mako|Maven+Pro|Maven+Pro:900|Meddon|MedievalSharp|Megrim|Merriweather|Metrophobic|Michroma|Miltonian+Tattoo|Miltonian|Modern+Antiqua|Monofett|Molengo|Montserrat:300|Montserrat|Montserrat:700|Mountains+of+Christmas|Muli:300|Muli|Mystery+Quest|Neucha|Neuton|News+Cycle|Nixie+One|Nobile|Nova+Cut|Nova+Flat|Nova+Mono|Nova+Oval|Nova+Round|Nova+Script|Nova+Slim|Nova+Square|Nunito|Old+Standard+TT|Open+Sans:300|Open+Sans|Open+Sans:600|Open+Sans:800|Open+Sans+Condensed:300|Orbitron|Orbitron:500|Orbitron:700|Orbitron:900|Oswald|Over+the+Rainbow|Piedra|Prociono|Questrial|Reenie+Beanie|Pacifico|Patrick+Hand|Paytone+One|Permanent+Marker|Philosopher|Play|Playfair+Display|Podkova|Poiret+One|Press+Start+2P|Puritan|Quattrocento|Quattrocento+Sans|Racing+Sans+One|Radley|Raleway:100|Redressed|Ribeye|Ribeye+Marrow|Risque|Rock+Salt|Rokkitt|Ruslan+Display|Schoolbell|Shadows+Into+Light|Shanti|Sigmar+One|Six+Caps|Slackey|Smythe|Sniglet|Sniglet:800|Special+Elite|Stardos+Stencil|Sue+Elen+Francisco|Sunshiney|Swanky+and+Moo+Moo|Syncopate|Tangerine|Tenor+Sans|Terminal+Dosis+Light|The+Girl+Next+Door|Tinos|Ubuntu|Ultra|Unkempt|UnifrakturCook:bold|UnifrakturMaguntia|Varela|Varela+Round|Vast+Shadow|Vibur|Vollkorn|VT323|Waiting+for+the+Sunrise|Wallpoet|Walter+Turncoat|Wire+One|Yanone+Kaffeesatz|Yeseva+One|Zeyada".split("|")},a=function(){function t(n,t){t.systemFonts||(t.systemFonts=[]),t.localFonts||(t.localFonts=[]),t.googleFonts||(t.googleFonts=[]),this.options=t,this.$original=e(n),this.setupHtml(),this.getVisibleFonts(),this.bindEvents(),this.query="",this.keyActive=!1,this.searchBoxHeight=0;var i=this.$original.val();i&&(this.updateSelected(),this.addFontLink(i))}return t.prototype={keyDown:function(n){function t(e){e.preventDefault(),e.stopPropagation()}if(this.keyActive=!0,27==n.keyCode)return t(n),void this.toggleDropdown("hide");if(38==n.keyCode){t(n);var i=e("li.active",this.$results),o=i.prev("li");return void(o.length>0&&(i.removeClass("active"),this.$results.scrollTop(o.addClass("active")[0].offsetTop-this.searchBoxHeight)))}if(40==n.keyCode){t(n);var i=e("li.active",this.$results),a=i.next("li");return void(a.length>0&&(i.removeClass("active"),this.$results.scrollTop(a.addClass("active")[0].offsetTop-this.searchBoxHeight)))}if(13==n.keyCode)return t(n),void e("li.active",this.$results).trigger("click");this.query+=String.fromCharCode(n.keyCode).toLowerCase();var r=e("li[data-query^='"+this.query+"']").first();r.length>0&&(e("li.active",this.$results).removeClass("active"),this.$results.scrollTop(r.addClass("active")[0].offsetTop))},keyUp:function(e){this.keyActive=!1},bindEvents:function(){var n=this;e("li",this.$results).click(i(this.selectFont,this)).mouseover(i(this.activateFont,this)),this.$select.click(i(function(){n.toggleDropdown("show")},this)),this.$original.on("setFont",function(t,i,o){o=o||400;var a=i.replace(/ /g,"+")+(400==o?"":":"+o),r=e("li[data-value='"+a+"']",n.$results);0==r.length&&(a=i.replace(/ /g,"+")),r=e("li[data-value='"+a+"']",n.$results),e("li.active",n.$results).removeClass("active"),r.addClass("active"),n.$original.val(a),n.updateSelected(),n.addFontLink(r.data("value"))}),this.$original.on("change",function(){n.updateSelected(),n.addFontLink(e("li.active",n.$results).data("value"))}),this.options.searchable&&this.$input.on("keyup",function(){var t=this.value.toLowerCase();e("li",n.$results).each(function(){-1==e(this).text().toLowerCase().indexOf(t)?e(this).hide():e(this).show()})}),e(document).on("click",function(t){0===e(t.target).closest("."+n.options.style).length&&n.toggleDropdown("hide")})},toggleDropdown:function(e){"hide"===e?(this.$element.off("keydown keyup"),this.query="",this.keyActive=!1,this.$element.removeClass("font-select-active"),this.$drop.hide(),clearInterval(this.visibleInterval)):(this.$element.on("keydown",i(this.keyDown,this)),this.$element.on("keyup",i(this.keyUp,this)),this.$element.addClass("font-select-active"),this.$drop.show(),this.visibleInterval=setInterval(i(this.getVisibleFonts,this),500),this.searchBoxHeight=this.$search.outerHeight(),this.moveToSelected())},selectFont:function(){var n=e("li.active",this.$results).data("value");this.$original.val(n).change(),this.updateSelected(),this.toggleDropdown("hide")},moveToSelected:function(){var n=this.$original.val().replace(/ /g,"+"),t=n?e("li[data-value='"+n+"']",this.$results):t=e("li",this.$results).first();this.$results.scrollTop(t.addClass("active")[0].offsetTop-this.searchBoxHeight)},activateFont:function(n){this.keyActive||(e("li.active",this.$results).removeClass("active"),e(n.target).addClass("active"))},updateSelected:function(){var n=this.$original.val();e("span",this.$element).text(this.toReadable(n)).css(this.toStyle(n))},setupHtml:function(){this.$original.hide(),this.$element=e("<div>",{class:this.options.style}),this.$select=e('<span tabindex="0">'+this.options.placeholder+"</span>"),this.$search=e("<div>",{class:"fs-search"}),this.$input=e("<input>",{type:"text",class:"form-control"}),this.options.placeholderSearch&&this.$input.attr("placeholder",this.options.placeholderSearch),this.$search.append(this.$input),this.$drop=e("<div>",{class:"fs-drop"}),this.$results=e("<ul>",{class:"fs-results"}),this.$original.after(this.$element.append(this.$select,this.$drop)),this.options.searchable&&this.$drop.append(this.$search),this.$drop.append(this.$results.append(this.fontsAsHtml())).hide()},fontsAsHtml:function(){var e,n,t,i,o="",a=this.options.systemFonts,r=this.options.localFonts,l=this.options.googleFonts;for(e=0;e<a.length;e++)n=this.toReadable(a[e]),t=this.toStyle(a[e]),i="font-family:"+t["font-family"],(r.length>0||l.length>0)&&e==a.length-1&&(i+=";border-bottom:1px solid #444"),o+='<li data-value="'+a[e]+'" data-query="'+a[e].toLowerCase()+'" style="'+i+'">'+n+"</li>";for(e=0;e<r.length;e++)n=this.toReadable(r[e]),t=this.toStyle(r[e]),i="font-family:"+t["font-family"],l.length>0&&e==r.length-1&&(i+=";border-bottom:1px solid #444"),o+='<li data-value="'+r[e]+'" data-query="'+r[e].toLowerCase()+'" style="'+i+'">'+n+"</li>";for(e=0;e<l.length;e++)n=this.toReadable(l[e]),t=this.toStyle(l[e]),i="font-family:"+t["font-family"]+";font-weight:"+t["font-weight"],o+='<li data-value="'+l[e]+'" data-query="'+l[e].toLowerCase()+'" style="'+i+'">'+n+"</li>";return o},toReadable:function(e){return e.replace(/[\+|:]/g," ")},toStyle:function(e){var n=e.split(":");return{"font-family":"'"+this.toReadable(n[0])+"'","font-weight":n[1]||400}},getVisibleFonts:function(){if(!this.$results.is(":hidden")){var n=this,t=this.$results.scrollTop(),i=t+this.$results.height();if(this.options.lookahead){var o=e("li",this.$results).first().height();i+=o*this.options.lookahead}e("li:visible",this.$results).each(function(){var o=e(this).position().top+t;o+e(this).height()>=t&&o<=i&&n.addFontLink(e(this).data("value"))})}},addFontLink:function(t){n[t]||(n[t]=!0,this.options.googleFonts.indexOf(t)>-1?e("link:last").after('<link href="'+this.options.googleApi+t+'" rel="stylesheet" type="text/css">'):this.options.localFonts.indexOf(t)>-1&&(t=this.toReadable(t),e("head").append("<style> @font-face { font-family:'"+t+"'; font-style:normal; font-weight:400; src:local('"+t+"'), url('"+this.options.localFontsUrl+t+".woff') format('woff'); } </style>")))}},t}();return this.each(function(){return t&&e.extend(o,t),new a(this,o)})}}(jQuery),define("jquery.fontselect",["jquery"],function(){}),jQuery.fn.flexdatalist=function(e,n){"use strict";var t=function(e,n){e.each(function(){var e=$(this),t=e.data(),i=t.flexdatalist,o=t.aliascontainer;o&&(e.removeClass("flexdatalist-set").attr({style:null,tabindex:null}).val(i&&i.originalValue&&!n?i.originalValue:"").removeData("flexdatalist").removeData("aliascontainer").off(),o.remove())})};if("string"==typeof e&&"reset"!==e){if(void 0!==this[0].fvalue){var i=this[0];if("destroy"===e)t(this,n);else if("value"===e){if(void 0===n)return i.fvalue.get();i.fvalue.set(n)}else if("add"===e){if(void 0===n)return i.debug("Missing value to add!");i.fvalue.add(n)}else if("toggle"===e){if(void 0===n)return i.debug("Missing value to toggle!");i.fvalue.toggle(n)}else if("remove"===e){if(void 0===n)return i.debug("Missing value to remove!");i.fvalue.remove(n)}else if("disabled"===e){if(void 0===n)return i.fdisabled();i.fdisabled(n)}else if("string"==typeof e){if(void 0===n)return i.options.get(e);i.options.set(e,n)}return this}e={_option:n}}this.length>0&&void 0!==this[0].fvalue&&t(this);var o=$.extend({url:null,data:[],params:{},relatives:null,chainedRelatives:!1,cache:!0,cacheLifetime:60,minLength:2,groupBy:!1,selectionRequired:!1,focusFirstResult:!1,textProperty:null,valueProperty:null,visibleProperties:[],iconProperty:"thumb",searchIn:["label"],searchContain:!1,searchEqual:!1,searchByWord:!1,searchDisabled:!1,searchDelay:300,normalizeString:null,multiple:null,disabled:null,maxShownResults:100,removeOnBackspace:!0,noResultsText:'No results found for "{keyword}"',toggleSelected:!1,allowDuplicateValues:!1,redoSearchOnFocus:!0,requestType:"get",requestContentType:"x-www-form-urlencoded",resultsProperty:"results",keywordParamName:"keyword",limitOfValues:0,valuesSeparator:",",debug:!0},e);return this.each(function(e){var n=$(this),t=this,i=null,a=[],r="flex"+e,l=null,s=null;this.init=function(){var e=this.options.init();this.set.up(),l.on("focusin",function(e){t.action.redoSearchFocus(e),t.action.showAllResults(e),s&&s.addClass("focus")}).on("input keydown",function(e){9===t.keyNum(e)&&t.results.remove(),t.action.keypressValue(e,188),t.action.backSpaceKeyRemove(e)}).on("input keyup",function(e){t.action.keypressValue(e,13),t.action.keypressSearch(e),t.action.copyValue(e),t.action.backSpaceKeyRemove(e),t.action.showAllResults(e),t.action.clearValue(e),t.action.removeResults(e),t.action.inputWidth(e)}).on("focusout",function(e){s&&s.removeClass("focus"),t.action.clearText(e),t.action.clearValue(e)}),window.onresize=function(e){t.position()},this.cache.gc(),e.selectionRequired&&t.fvalue.clear(!0,!0),this.fvalue._load(e.originalValue,function(i,o){t.fdisabled(e.disabled),n.trigger("init:flexdatalist",[e])},!0)},this.action={keypressValue:function(e,n){var i=t.keyNum(e),o=l[0].value,a=t.options.get();if(o.length>0&&i===n&&!a.selectionRequired&&a.multiple){var o=l[0].value;e.preventDefault(),t.fvalue.extract(o),t.results.remove()}},keypressSearch:function(e){var n=t.keyNum(e),o=l.val(),a=o.length,r=t.options.get();clearTimeout(i),(!n||13!==n&&(n<37||n>40))&&(i=setTimeout(function(){(0===r.minLength&&a>0||r.minLength>0&&a>=r.minLength)&&t.data.load(function(e){t.search.get(o,e,function(e){t.results.show(e)})})},r.searchDelay))},redoSearchFocus:function(e){var n=t.fvalue.get(),i=t.options.get(),o=l.val()
;i.redoSearchOnFocus&&(o.length>0&&i.multiple||o.length>0&&0===n.length)&&this.keypressSearch(e)},copyValue:function(e){if(13!==t.keyNum(e)){var n=l.val(),i=t.fvalue.get(!0),o=t.options.get();o.multiple||o.selectionRequired||n.length===i.length||t.fvalue.extract(n)}},backSpaceKeyRemove:function(e){var n=t.options.get();if(n.removeOnBackspace&&n.multiple){var i=l.val(),o=l.data("_remove");8===t.keyNum(e)&&(0===i.length?o?(t.fvalue.remove(o),l.data("_remove",null)):l.data("_remove",l.parents("li:eq(0)").prev()):l.data("_remove",null))}},showAllResults:function(e){var n=l.val();""===(n=$.trim(n))&&0===t.options.get("minLength")&&t.data.load(function(e){t.results.show(e)})},inputWidth:function(e){if(t.options.get().multiple){var i=l.val(),o=parseInt(l.css("fontSize").replace("px","")),a=n.innerWidth(),r=(i.length+1)*o;r>=40&&r<=a&&(l[0].style.width=r+"px")}},clearText:function(e){var n=t.fvalue.get(),i=t.options.get();!i.multiple&&i.selectionRequired&&0===n.length&&(l[0].value="")},clearValue:function(e){var n=(t.fvalue.get(),l.val()),i=t.options.get();!i.multiple&&i.selectionRequired&&n.length<=i.minLength&&t.fvalue.clear()},removeResults:function(e){var n=(t.fvalue.get(),l.val()),i=t.options.get();i.minLength>0&&n.length<i.minLength&&t.results.remove()}},this.set={up:function(){l=this.alias(),t.options.get("multiple")?s=this.multipleInput(l):l.insertAfter(n),n.attr("autofocus")&&l.focus(),n.data("aliascontainer",s||l).addClass("flexdatalist flexdatalist-set").css({position:"absolute",top:-14e3,left:-14e3}).attr("tabindex",-1);var e=n.attr("id"),i=l.attr("id");$('label[for="'+e+'"]').attr("for",i),this.chained()},alias:function(){var e=n.attr("id")?n.attr("id")+"-flexdatalist":r;return $('<input type="text">').attr({class:n.attr("class"),name:n.attr("name")?"flexdatalist-"+n.attr("name"):null,id:e,placeholder:n.attr("placeholder")}).addClass("flexdatalist-alias "+e).removeClass("flexdatalist").attr("autocomplete","off")},multipleInput:function(e){return s=$('<ul tabindex="1">').addClass("flexdatalist-multiple "+r).css({"border-color":n.css("border-left-color"),"border-width":n.css("border-left-width"),"border-style":n.css("border-left-style"),"border-radius":n.css("border-top-left-radius"),"background-color":n.css("background-color")}).insertAfter(n).click(function(){$(this).find("input").focus()}),$('<li class="input-container">').addClass("flexdatalist-multiple-value").append(e).appendTo(s),s},chained:function(){var e=t.options.get();if(e.relatives&&e.chainedRelatives){var n=function(n){e.relatives.each(function(){var e=t.isEmpty($(this).val()),n=t.isEmpty(t.value);!e&&n||t.fvalue.clear(),t.fdisabled(e)})};e.relatives.on("change",function(){n()}),n()}}},this.fvalue={get:function(e){var n=t.value;return!t.options.get().multiple&&!this.isJSON()||e?n:this.toObj(n)},set:function(e,i){return t.fdisabled()||(i||this.clear(!0),this._load(e)),n},add:function(e){return t.options.get("multiple")&&this.set(e,!0),this},toggle:function(e){return t.fdisabled()||this.multiple.toggle(e),this},remove:function(e){if(!t.fdisabled()){e=this.toObj(e),n.trigger("before:flexdatalist.remove",[e]);var i=[];if($.isArray(e))$.each(e,function(e,n){var o=t.fvalue.multiple.remove(n);o&&i.push(o)});else{var o=this.multiple.remove(e);o&&i.push(o)}n.trigger("after:flexdatalist.remove",[e,i]).trigger("change:flexdatalist",[i,t.options.get()]).trigger("change")}return this},_load:function(e,n,i){var o=t.options.get(),a=o.valueProperty,r=this.toStr(e),l=this.get(!0);return n=n||$.noop,0==r.length&&0==l.length?void n(e):(e=this.toObj(e),t.isEmpty(e)||t.isEmpty(a)||"*"===a?(n(e),void t.fvalue.extract(e,i)):(t.isObject(a)||(a=a.split(",")),void t.data.load(function(i){t.isObject(e)?$.isArray(e)||(e=[e]):e=e.split(",");for(var o=[],r=0;r<e.length;r++)for(var l=e[r],s=0;s<i.length;s++)for(var c=i[s],d=0;d<a.length;d++){var p=a[d],l=t.isDefined(l,p)?l[p]:l;t.isDefined(c,p)&&l===c[p]&&o.push(c)}o.length>0&&t.fvalue.extract(o,!0),n(e)},e)))},extract:function(e,i){var o=t.options.get(),a=[];i||n.trigger("before:flexdatalist.value",[e,o]),$.isArray(e)?$.each(e,function(e,n){a.push(t.fvalue._extract(n))}):a=t.fvalue._extract(e),i||n.trigger("after:flexdatalist.value",[a,o]).trigger("change:flexdatalist",[a,o]).trigger("change")},_extract:function(e){var n=this.text(e),i=this.value(e);t.value;if(t.options.get().multiple){if(!t.isEmpty(i)){if(t.isDup(i))return;a.push(i),this.multiple.add(i,n)}}else this.single(i,n);return{value:i,text:n}},single:function(e,n){n&&n!==l.val()&&(l[0].value=n),t.value=e},multiple:{add:function(e,n){var i=this,o=this.li(e,n);t.options.get();o.click(function(){i.toggle($(this))}).find(".fdl-remove").click(function(){t.fvalue.remove($(this).parent())}),this.push(e),l[0].value="",this.checkLimit()},push:function(e,n){var i=t.fvalue.get();e=t.fvalue.toObj(e),i.push(e),e=t.fvalue.toStr(i),t.value=e},toggle:function(e){var i=t.options.get();if(i.toggleSelected){var o=this.findLi(e);if(o){var a=o.index(),r=o.data(),l=o.hasClass("disabled")?"enable":"disable",s=t.fvalue.get(),c=[{value:r.value,text:r.text,action:l},i];if(n.trigger("before:flexdatalist.toggle",c),"enable"===l){var d=o.data("value");s.splice(a,0,d),o.removeClass("disabled")}else s.splice(a,1),o.addClass("disabled");s=t.fvalue.toStr(s),t.value=s,n.trigger("after:flexdatalist.toggle",c).trigger("change:flexdatalist",c).trigger("change")}}},remove:function(e){var n=this.findLi(e);if(n){var i=t.fvalue.get(),o=n.index(),r=n.data(),l=(t.options.get(),{value:r.value,text:r.text});return i.splice(o,1),i=t.fvalue.toStr(i),t.value=i,n.remove(),t.fvalue.multiple.checkLimit(),a.splice(o,1),l}},removeAll:function(){var e=t.fvalue.get(),i=t.options.get();n.trigger("before:flexdatalist.remove.all",[e,i]),s.find("li:not(.input-container)").remove(),t.value="",a=[],n.trigger("after:flexdatalist.remove.all",[e,i])},li:function(e,n){var i=s.find("li.input-container");return $("<li>").addClass("value"+(t.options.get("toggleSelected")?" toggle":"")).append('<span class="text">'+n+"</span>").append('<span class="fdl-remove">&times;</span>').data({text:n,value:t.fvalue.toObj(e)}).insertBefore(i)},checkLimit:function(){var e=t.options.get("limitOfValues");if(e>0){var n=s.find("li.input-container");e==a.length?n.hide():n.show()}},findLi:function(e){if(e instanceof jQuery)0===e.length&&(e=null);else{var n=e;e=null,s.find("li:not(.input-container)").each(function(){var t=$(this);if(t.data("value")===n)return e=t,!1})}return e},isEmpty:function(){return this.get().length>0}},value:function(e){var n=e,i=t.options.get(),o=i.valueProperty;if(t.isObject(e))if(this.isJSON()||this.isMixed())if(delete e.name_highlight,$.isArray(o)){for(var a={},r=0;r<o.length;r++)t.isDefined(e,o[r])&&(a[o[r]]=e[o[r]]);n=this.toStr(a)}else n=this.toStr(e);else n=t.isDefined(e,o)?e[o]:t.isDefined(e,i.searchIn[0])?e[i.searchIn[0]]:null;return n},text:function(e){var n=e,i=t.options.get();return t.isObject(e)&&(n=e[i.searchIn[0]],n=t.isDefined(e,i.textProperty)?e[i.textProperty]:this.placeholders.replace(e,i.textProperty,n)),$("<div>").html(n).text()},placeholders:{replace:function(e,n,i){if(t.isObject(e)&&"string"==typeof n){var o=this.parse(n);if(!t.isEmpty(e)&&o)return $.each(o,function(i,o){t.isDefined(e,o)&&(n=n.replace(i,e[o]))}),n}return i},parse:function(e){var n=e.match(/\{.+?\}/g);if(n){var t={};return n.map(function(e){t[e]=e.slice(1,-1)}),t}return!1}},clear:function(e,i){var o=t.value,r=t.options.get();return r.multiple&&this.multiple.removeAll(),t.value="",""===o||i||n.trigger("change:flexdatalist",[{value:"",text:""},r]).trigger("change"),e&&(l[0].value=""),a=[],this},toObj:function(e){if("object"!=typeof e){var n=t.options.get();t.isEmpty(e)||!t.isDefined(e)?e=n.multiple?[]:this.isJSON()?{}:"":this.isCSV()?(e=e.toString().split(n.valuesSeparator),e=$.map(e,function(e){return $.trim(e)})):(this.isMixed()||this.isJSON())&&this.isJSON(e)?e=JSON.parse(e):"number"==typeof e&&(e=e.toString())}return e},toStr:function(e){return"string"!=typeof e&&(t.isEmpty(e)||!t.isDefined(e)?e="":"number"==typeof e?e=e.toString():this.isCSV()?e=e.join(t.options.get("valuesSeparator")):(this.isJSON()||this.isMixed())&&(e=JSON.stringify(e))),$.trim(e)},isJSON:function(e){if(void 0!==e){if(t.isObject(e))e=JSON.stringify(e);else if("string"!=typeof e)return!1;return 0===e.indexOf("{")||0===e.indexOf("[{")}var n=t.options.get(),i=n.valueProperty;return t.isObject(i)||"*"===i},isMixed:function(){var e=t.options.get();return!e.selectionRequired&&"*"===e.valueProperty},isCSV:function(){return!this.isJSON()&&t.options.get("multiple")}},this.data={load:function(e,t){var i=this,o=[];n.trigger("before:flexdatalist.data"),this.url(function(t){o=o.concat(t),i.static(function(t){o=o.concat(t),i.datalist(function(t){o=o.concat(t),n.trigger("after:flexdatalist.data",[o]),e(o)})})},t)},static:function(e){var n=t.options.get();if("string"==typeof n.data){var i=n.data,o=t.cache.read(i,!0);if(o)return void e(o);this.remote({url:i,success:function(o){n.data=o,e(o),t.cache.write(i,o,n.cacheLifetime,!0)}})}else"object"!=typeof n.data&&(n.data=[]),e(n.data)},datalist:function(e){var i=n.attr("list"),o=[];t.isEmpty(i)||$("#"+i).find("option").each(function(){var e=$(this),n=e.val(),t=e.text();o.push({label:t.length>0?t:n,value:n})}),e(o)},url:function(e,n){var i=l.val(),o=t.options.get(),a=o.keywordParamName,r=t.fvalue.get(),s=this.relativesData();if(t.isEmpty(o.url))return e([]);var c={};"post"===o.requestType&&($.each(o,function(e,n){0!=e.indexOf("_")&&"data"!=e&&(c[e]=n)}),delete c.relatives);var d=t.cache.keyGen({relative:s,load:n,keyword:i,contain:o.searchContain},o.url),p=t.cache.read(d,!0);if(p)return void e(p);var u=$.extend(s,o.params,{load:n,contain:o.searchContain,selected:r,original:o.originalValue,options:c});u[a]=i,this.remote({url:o.url,data:u,success:function(n){l.val().length>=i.length&&e(n),t.cache.write(d,n,o.cacheLifetime,!0)}})},remote:function(e){var i=this,o=t.options.get();n.hasClass("flexdatalist-loading")||(n.addClass("flexdatalist-loading"),"json"===o.requestContentType&&(e.data=JSON.stringify(e.data)),$.ajax($.extend({type:o.requestType,dataType:"json",contentType:"application/"+o.requestContentType+"; charset=UTF-8",complete:function(){n.removeClass("flexdatalist-loading")}},e,{success:function(n){n=i.extractRemoteData(n),e.success(n)}})))},extractRemoteData:function(e){var n=t.options.get(),i=t.isDefined(e,n.resultsProperty)?e[n.resultsProperty]:e;return"string"==typeof i&&0===i.indexOf("[{")&&(i=JSON.parse(i)),i&&i.options&&t.options.set($.extend({},n,i.options)),t.isObject(i)?i:[]},relativesData:function(){var e=t.options.get("relatives"),n={};return e&&(n.relatives={},e.each(function(){var e=$(this),t=e.attr("name").split("][").join("-").split("]").join("-").split("[").join("-").replace(/^\|+|\-+$/g,"");n.relatives[t]=e.val()})),n}},this.search={get:function(e,i,o){var a=this;if(t.options.get().searchDisabled)r=i;else{var r=t.cache.read(e);if(!r){if(n.trigger("before:flexdatalist.search",[e,i]),!t.isEmpty(e)){r=[];for(var l=a.split(e),s=0;s<i.length;s++){var c=i[s];t.isDup(c)||(c=a.matches(c,l))&&r.push(c)}}t.cache.write(e,r,2),n.trigger("after:flexdatalist.search",[e,i,r])}}o(r)},matches:function(e,n){var i=$.extend({},e),o=[],a=t.options.get(),r=a.searchIn;if(n.length>0)for(var l=0;l<r.length;l++){var s=r[l];if(t.isDefined(e,s)&&e[s]){for(var c=e[s].toString(),d=c,p=this.split(c),u=0;u<n.length;u++){var f=n[u];this.find(f,p)&&(o.push(f),d=this.highlight(f,d))}d!==c&&(i[s+"_highlight"]=this.highlight(d))}}return!(0===o.length||a.searchByWord&&o.length<n.length-1)&&i},highlight:function(e,n){return n?n.replace(new RegExp(e,t.options.get("searchContain")?"ig":"i"),"|:|$&|::|"):(e=e.split("|:|").join('<span class="highlight">'),e.split("|::|").join("</span>"))},find:function(e,n){for(var i=t.options.get(),o=0;o<n.length;o++){var a=n[o];if(a=this.normalizeString(a),e=this.normalizeString(e),i.searchEqual)return a==e;if(i.searchContain?a.indexOf(e)>=0:0===a.indexOf(e))return!0}return!1},split:function(e){if("string"==typeof e&&(e=[$.trim(e)]),t.options.get("searchByWord"))for(var n=0;n<e.length;n++){var i=$.trim(e[n]);if(i.indexOf(" ")>0){var o=i.split(" ");$.merge(e,o)}}return e},normalizeString:function(e){if("string"==typeof e){var n=t.options.get("normalizeString");return"function"==typeof n&&(e=n(e)),e.toUpperCase()}return e}},this.results={show:function(e){var i=this,o=t.options.get();if(this.remove(!0),e){if(0===e.length)return void this.empty(o.noResultsText);var a=this.container();o.groupBy?(e=this.group(e),Object.keys(e).forEach(function(n,r){var l=e[n],s=o.groupBy,c=t.results.highlight(l[0],s,n);$("<li>").addClass("group").append($("<span>").addClass("group-name").html(c)).append($("<span>").addClass("group-item-count").text(" "+l.length)).appendTo(a);i.items(l,a)})):this.items(e,a);var r=a.find("li:not(.group)");r.on("click",function(e){var a=$(this).data("item");a&&(t.fvalue.extract(a),i.remove(),n.trigger("select:flexdatalist",[a,o]))}).hover(function(){r.removeClass("active"),$(this).addClass("active").trigger("active:flexdatalist.results",[$(this).data("item")])},function(){$(this).removeClass("active")}),o.focusFirstResult&&r.filter(":first").addClass("active")}},empty:function(e){if(!t.isEmpty(e)){var n=this.container(),i=l.val();e=e.split("{keyword}").join(i),$("<li>").addClass("item no-results").append(e).appendTo(n)}},items:function(e,i){var o=t.options.get("maxShownResults");n.trigger("show:flexdatalist.results",[e]);for(var a=0;a<e.length&&!(o>0&&o===a);a++)this.item(e[a]).appendTo(i);n.trigger("shown:flexdatalist.results",[e])},item:function(e){for(var n=$("<li>").data("item",e).addClass("item"),i=t.options.get(),o=i.visibleProperties,a=0;a<o.length;a++){var r=o[a];if(r.indexOf("{")>-1){var l=t.fvalue.placeholders.replace(e,r),s=t.fvalue.placeholders.parse(r);c=$("<span>").addClass("item item-"+Object.values(s).join("-")).html(l+" ").appendTo(n)}else{if(i.groupBy&&i.groupBy===r||!t.isDefined(e,r))continue;var c={};if(r===i.iconProperty)c=$("<img>").addClass("item item-"+r).attr("src",e[r]);else{var d=t.results.highlight(e,r);c=$("<span>").addClass("item item-"+r).html(d+" ")}}c.appendTo(n)}return n},container:function(){var e=n;s&&(e=s);var i=$("ul.flexdatalist-results");return 0===i.length&&(i=$("<ul>").addClass("flexdatalist-results ").appendTo("body").attr("id",l.attr("id")+"-results").css({"border-color":e.css("border-left-color"),"border-width":"1px","border-bottom-left-radius":e.css("border-bottom-left-radius"),"border-bottom-right-radius":e.css("border-bottom-right-radius")}).data({target:s||l,input:n}),t.position(l)),i},group:function(e){for(var n=[],i=t.options.get("groupBy"),o=0;o<e.length;o++){var a=e[o];if(t.isDefined(a,i)){var r=a[i];t.isDefined(n,r)||(n[r]=[]),n[r].push(a)}}return n},highlight:function(e,n,i){return t.isDefined(e,n+"_highlight")?e[n+"_highlight"]:t.isDefined(e,n)?e[n]:i},remove:function(e){var t="ul.flexdatalist-results";e&&(t="ul.flexdatalist-results li"),n.trigger("remove:flexdatalist.results"),$(t).remove(),n.trigger("removed:flexdatalist.results")}},this.cache={write:function(e,n,i,o){if(t.cache.isSupported()){e=this.keyGen(e,void 0,o);var a={value:n,timestamp:t.unixtime(),lifetime:i||!1};localStorage.setItem(e,JSON.stringify(a))}},read:function(e,n){if(t.cache.isSupported()){e=this.keyGen(e,void 0,n);var i=localStorage.getItem(e);if(i){var o=JSON.parse(i);if(!this.expired(o))return o.value;localStorage.removeItem(e)}}return null},delete:function(e,n){t.cache.isSupported()&&(e=this.keyGen(e,void 0,n),localStorage.removeItem(e))},clear:function(){if(t.cache.isSupported()){for(var e in localStorage)(e.indexOf(r)>-1||e.indexOf("global")>-1)&&localStorage.removeItem(e);localStorage.clear()}},gc:function(){if(t.cache.isSupported())for(var e in localStorage)if(e.indexOf(r)>-1||e.indexOf("global")>-1){var n=localStorage.getItem(e);n=JSON.parse(n),this.expired(n)&&localStorage.removeItem(e)}},isSupported:function(){if(t.options.get("cache"))try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}return!1},expired:function(e){if(e.lifetime){var n=t.unixtime()-e.timestamp;return e.lifetime<=n}return!1},keyGen:function(e,n,t){"object"==typeof e&&(e=JSON.stringify(e));var i,o,a=void 0===n?2166136261:n;for(i=0,o=e.length;i<o;i++)a^=e.charCodeAt(i),a+=(a<<1)+(a<<4)+(a<<7)+(a<<8)+(a<<24);return(t?"global":r)+("0000000"+(a>>>0).toString(16)).substr(-8)}},this.options={init:function(){var e=$.extend({},o,n.data(),{multiple:null===o.multiple?n.is("[multiple]"):o.multiple,disabled:null===o.disabled?n.is("[disabled]"):o.disabled,originalValue:t.value});return this.set(e),e},get:function(e){var i=n.data("flexdatalist");return e?t.isDefined(i,e)?i[e]:null:i||{}},set:function(e,i){var o=this.get();return t.isDefined(o,e)&&t.isDefined(i)?o[e]=i:t.isObject(e)&&(o=this._normalize(e)),n.data("flexdatalist",o),n},_normalize:function(e){if(e.searchIn=t.csvToArray(e.searchIn),e.relatives=e.relatives&&$(e.relatives).length>0?$(e.relatives):null,e.textProperty=null===e.textProperty?e.searchIn[0]:e.textProperty,e.visibleProperties=t.csvToArray(e.visibleProperties,e.searchIn),"*"===e.valueProperty&&e.multiple&&!e.selectionRequired)throw new Error("Selection must be required for multiple, JSON fields!");return e}},this.position=function(){var e=$("ul.flexdatalist-results"),n=e.data("target");e.length>0&&e.css({width:n.outerWidth()+"px",top:n.offset().top+n.outerHeight()+"px",left:n.offset().left+"px"})},this.fdisabled=function(e){if(this.isDefined(e)){if(n.prop("disabled",e),l.prop("disabled",e),s){s.css("background-color",n.css("background-color"));var t=s.find("li .fdl-remove"),i=s.find("li.input-container");e?(s.addClass("disabled"),t.length>0&&i.hide(),t.hide()):(s.removeClass("disabled"),i.show(),t.show())}this.options.set("disabled",e)}return this.options.get("disabled")},this.isDup=function(e){return!this.options.get("allowDuplicateValues")&&(a.length>0&&a.indexOf(this.fvalue.value(e))>-1)},this.keyNum=function(e){return e.which||e.keyCode},this.isEmpty=function(e){return!t.isDefined(e)||(null===e||!0!==e&&(0===this.length(e)||""===$.trim(e)))},this.isObject=function(e){return e&&"object"==typeof e},this.length=function(e){return this.isObject(e)?Object.keys(e).length:"number"==typeof e||"number"==typeof e.length?e.toString().length:0},this.isDefined=function(e,n){var t=void 0!==e;return t&&void 0!==n?void 0!==e[n]:t},this.unixtime=function(e){var n=new Date;return e&&(n=new Date(e)),Math.round(n.getTime()/1e3)},this.csvToArray=function(e,n){return 0===e.length?n:"string"==typeof e?e.split(t.options.get("valuesSeparator")):e},this.debug=function(e,i){var o=t.options.get();o.debug&&(i||(i={}),e="Flexdatalist: "+e,console.warn(e),console.log($.extend({inputName:n.attr("name"),options:o},i)),console.log("--- /flexdatalist ---"))},this.init()})},jQuery(function(e){e(document).data("flexdatalist")||e(document).mouseup(function(n){var t=e(".flexdatalist-results"),i=t.data("target");i&&i.is(":focus")||t.is(n.target)||0!==t.has(n.target).length||t.remove()}).keydown(function(n){var t=e(".flexdatalist-results"),i=t.find("li"),o=i.filter(".active"),a=o.index(),r=i.length,l=n.which||n.keyCode;if(0!==r){if(27===l)return void t.remove();if(13===l)n.preventDefault(),o.click();else if(40===l||38===l){n.preventDefault(),40===l?o=a<r&&o.nextAll(".item").first().length>0?o.removeClass("active").nextAll(".item").first().addClass("active"):i.removeClass("active").filter(".item:first").addClass("active"):38===l&&(o=a>0&&o.prevAll(".item").first().length>0?o.removeClass("active").prevAll(".item").first().addClass("active"):i.removeClass("active").filter(".item:last").addClass("active")),o.trigger("active:flexdatalist.results",[o.data("item")]);var s=(0===o.prev().length?o:o.prev()).position().top;t.animate({scrollTop:s+t.scrollTop()},100)}}}).data("flexdatalist",!0),jQuery("input.flexdatalist:not(.flexdatalist-set):not(.autodiscover-disabled)").flexdatalist()}),function(e){var n=e.fn.val;e.fn.val=function(e){var t=this.length>0&&void 0!==this[0].fvalue;return void 0===e?t?this[0].fvalue.get(!0):n.call(this):t?this[0].fvalue.set(e):n.call(this,e)}}(jQuery),define("jquery.flexdatalist",["jquery"],function(){}),function(e){"function"==typeof define&&define.amd?define("jquery.cookie",["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){function n(e){return l.raw?e:encodeURIComponent(e)}function t(e){return l.raw?e:decodeURIComponent(e)}function i(e){return n(l.json?JSON.stringify(e):String(e))}function o(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(r," ")),l.json?JSON.parse(e):e}catch(e){}}function a(n,t){var i=l.raw?n:o(n);return e.isFunction(t)?t(i):i}var r=/\+/g,l=e.cookie=function(o,r,s){if(arguments.length>1&&!e.isFunction(r)){if(s=e.extend({},l.defaults,s),"number"==typeof s.expires){var c=s.expires,d=s.expires=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*c)}return document.cookie=[n(o),"=",i(r),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}for(var p=o?void 0:{},u=document.cookie?document.cookie.split("; "):[],f=0,h=u.length;f<h;f++){var v=u[f].split("="),g=t(v.shift()),m=v.join("=");if(o===g){p=a(m,r);break}o||void 0===(m=a(m))||(p[g]=m)}return p};l.defaults={},e.removeCookie=function(n,t){return e.cookie(n,"",e.extend({},t,{expires:-1})),!e.cookie(n)}}),function(e,n,t,i){"use strict";var o=function(n,i){function o(e){return"notice"===e?"info":"error"===e?"danger":e}function a(n){return{errs:e.grep(n,function(e){return"error"===e.priority||"danger"===e.priority}),warns:e.grep(n,function(e){return"warning"===e.priority}),infos:e.grep(n,function(e){return"notice"===e.priority||"info"===e.priority}),succs:e.grep(n,function(e){return"success"===e.priority})}}var r,l=this;l.element=n,l.options=e.extend({},e.fn.bsAlerts.defaults,i),e(t).on("add-alerts",function(){var e=Array.prototype.slice.call(arguments,1);l.addAlerts(e)}),e(t).on("clear-alerts",function(){l.clearAlerts()}),e.each(this.options.ids.split(","),function(n,i){var o=i.trim();if(o.length>0){var a="set-alert-id-"+o;e(t).on(a,function(){var e=Array.prototype.slice.call(arguments,1);l.addAlerts(e)})}}),l.clearAlerts=function(){e(this.element).html("")},l.addAlerts=function(e){var n=a([].concat(e));l.addAlertsToContainer(n.errs),l.addAlertsToContainer(n.warns),l.addAlertsToContainer(n.infos),l.addAlertsToContainer(n.succs);var t=parseInt(l.options.fade,10);!isNaN(t)&&t>0&&(clearTimeout(r),r=setTimeout(l.fade,t))},l.fade=function(){e("[data-alerts-container]").fadeOut("slow",function(){e(this).remove()})},l.buildNoticeContainer=function(n){if(n.length>0){var t=o(n[0].priority),i=e("<button/>",{type:"button",class:"close","data-dismiss":"alert","aria-hidden":!0}).html("&times;"),a=e("<ul/>");l.attachLIs(a,n);var r=e("<div/>",{"data-alerts-container":t,class:"alert alert-dismissable alert-"+t});r.append(i);var s=this.options.titles[t];return s&&s.length>0&&r.append(e("<strong/>").html(s)),r.append(a),r}return null},l.addAlertsToContainer=function(n){if(n.length>0){var t=e(this.element),i=o(n[0].priority),a=e("[data-alerts-container='"+i+"']",t);if(a.length>0){var r=a.find("ul");l.attachLIs(r,n)}else a=l.buildNoticeContainer(n),t.append(a)}},l.attachLIs=function(n,t){e.each(t,function(t,i){n.append(e("<li/>").html(i.message))})}},a=e.fn.bsAlerts;e.fn.bsAlerts=function(n){return this.each(function(){var t=e(this),i=t.data("bsAlerts"),a="object"==typeof n&&n;i||t.data("bsAlerts",i=new o(this,a)),"string"==typeof n&&i[n]()})},e.fn.bsAlerts.Constructor=o,e.fn.bsAlerts.defaults={titles:{},ids:"",fade:"0"},e.fn.bsAlerts.noConflict=function(){return e.fn.bsAlerts=a,this},e(t).ready(function(){e('[data-alerts="alerts"]').each(function(){var n=e(this);n.bsAlerts(n.data())})})}(jQuery,window,document),define("jquery.bsAlerts",["jquery"],function(){}),function(e){"use strict";"function"==typeof define&&define.amd?define("spectrum",["jquery"],e):"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jquery")):e(jQuery)}(function(e,n){"use strict";function t(n,t,i,o){for(var a=[],r=0;r<n.length;r++){var l=n[r];if(l){var s=tinycolor(l),c=s.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";c+=tinycolor.equals(t,l)?" sp-thumb-active":"";var d=s.toString(o.preferredFormat||"rgb"),p=g?"background-color:"+s.toRgbString():"filter:"+s.toFilter();a.push('<span title="'+d+'" data-color="'+s.toRgbString()+'" class="'+c+'"><span class="sp-thumb-inner" style="'+p+';"></span></span>')}else{a.push(e("<div />").append(e('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",o.noColorSelectedText)).html())}}return"<div class='sp-cf "+i+"'>"+a.join("")+"</div>"}function i(){for(var e=0;e<h.length;e++)h[e]&&h[e].hide()}function o(n,t){var i=e.extend({},f,n);return i.callbacks={move:c(i.move,t),change:c(i.change,t),show:c(i.show,t),hide:c(i.hide,t),beforeShow:c(i.beforeShow,t)},i}function a(a,l){function c(){if(V.showPaletteOnly&&(V.showPalette=!0),Re.text(V.showPaletteOnly?V.togglePaletteMoreText:V.togglePaletteLessText),V.palette){ue=V.palette.slice(0),fe=e.isArray(ue[0])?ue:[ue],he={};for(var n=0;n<fe.length;n++)for(var t=0;t<fe[n].length;t++){var i=tinycolor(fe[n][t]).toRgbString();he[i]=!0}}ke.toggleClass("sp-flat",U),ke.toggleClass("sp-input-disabled",!V.showInput),ke.toggleClass("sp-alpha-enabled",V.showAlpha),ke.toggleClass("sp-clear-enabled",Ke),ke.toggleClass("sp-buttons-disabled",!V.showButtons),ke.toggleClass("sp-palette-buttons-disabled",!V.togglePaletteOnly),ke.toggleClass("sp-palette-disabled",!V.showPalette),ke.toggleClass("sp-palette-only",V.showPaletteOnly),ke.toggleClass("sp-initial-disabled",!V.showInitial),ke.addClass(V.className).addClass(V.containerClassName),q()}function f(){if(J&&window.localStorage){try{var n=window.localStorage[J].split(",#");n.length>1&&(delete window.localStorage[J],e.each(n,function(e,n){y(n)}))}catch(e){}try{ve=window.localStorage[J].split(";")}catch(e){}}}function y(n){if(G){var t=tinycolor(n).toRgbString();if(!he[t]&&-1===e.inArray(t,ve))for(ve.push(t);ve.length>ge;)ve.shift();if(J&&window.localStorage)try{window.localStorage[J]=ve.join(";")}catch(e){}}}function x(){var e=[];if(V.showPalette)for(var n=0;n<ve.length;n++){var t=tinycolor(ve[n]).toRgbString();he[t]||e.push(ve[n])}return e.reverse().slice(0,V.maxSelectionSize)}function w(){var n=B(),i=e.map(fe,function(e,i){return t(e,n,"sp-palette-row sp-palette-row-"+i,V)});f(),ve&&i.push(t(x(),n,"sp-palette-row sp-palette-row-selection",V)),Pe.html(i.join(""))}function k(){if(V.showInitial){var e=Ve,n=B();Be.html(t([e,n],n,"sp-palette-row-initial",V))}}function C(){(ne<=0||ee<=0||ie<=0)&&q(),Z=!0,ke.addClass(me),be=null,xe.trigger("dragstart.spectrum",[B()])}function S(){Z=!1,ke.removeClass(me),xe.trigger("dragstop.spectrum",[B()])}function T(){var e=Fe.val();if(null!==e&&""!==e||!Ke){var n=tinycolor(e);n.isValid()?(P(n),N(),L()):Fe.addClass("sp-validation-error")}else P(null),N(),L()}function E(){Q?D():_()}function _(){var n=e.Event("beforeShow.spectrum");if(Q)return void q();xe.trigger(n,[B()]),!1===X.beforeShow(B())||n.isDefaultPrevented()||(i(),Q=!0,e(ye).on("keydown.spectrum",A),e(ye).on("click.spectrum",O),e(window).on("resize.spectrum",Y),Ie.addClass("sp-active"),ke.removeClass("sp-hidden"),q(),j(),Ve=B(),k(),X.show(Ve),xe.trigger("show.spectrum",[Ve]))}function A(e){27===e.keyCode&&D()}function O(e){2!=e.button&&(Z||(Ge?L(!0):F(),D()))}function D(){Q&&!U&&(Q=!1,e(ye).off("keydown.spectrum",A),e(ye).off("click.spectrum",O),e(window).off("resize.spectrum",Y),Ie.removeClass("sp-active"),ke.addClass("sp-hidden"),X.hide(B()),xe.trigger("hide.spectrum",[B()]))}function F(){P(Ve,!0),L(!0)}function P(e,n){if(tinycolor.equals(e,B()))return void j();var t,i;!e&&Ke?Je=!0:(Je=!1,t=tinycolor(e),i=t.toHsv(),se=i.h%360/360,ce=i.s,de=i.v,pe=i.a),j(),t&&t.isValid()&&!n&&(Ue=V.preferredFormat||t.getFormat())}function B(e){return e=e||{},Ke&&Je?null:tinycolor.fromRatio({h:se,s:ce,v:de,a:Math.round(1e3*pe)/1e3},{format:e.format||Ue})}function M(){return!Fe.hasClass("sp-validation-error")}function N(){j(),X.move(B()),xe.trigger("move.spectrum",[B()])}function j(){Fe.removeClass("sp-validation-error"),R();var e=tinycolor.fromRatio({h:se,s:1,v:1});Se.css("background-color",e.toHexString());var n=Ue;pe<1&&(0!==pe||"name"!==n)&&("hex"!==n&&"hex3"!==n&&"hex6"!==n&&"name"!==n||(n="rgb"));var t=B({format:n}),i="";if(ze.removeClass("sp-clear-display"),ze.css("background-color","transparent"),!t&&Ke)ze.addClass("sp-clear-display");else{var o=t.toHexString(),a=t.toRgbString();if(g||1===t.alpha?ze.css("background-color",a):(ze.css("background-color","transparent"),ze.css("filter",t.toFilter())),V.showAlpha){var r=t.toRgb();r.a=0;var l=tinycolor(r).toRgbString(),s="linear-gradient(left, "+l+", "+o+")";v?Ae.css("filter",tinycolor(l).toFilter({gradientType:1},o)):(Ae.css("background","-webkit-"+s),Ae.css("background","-moz-"+s),Ae.css("background","-ms-"+s),Ae.css("background","linear-gradient(to right, "+l+", "+o+")"))}i=t.toString(n)}V.showInput&&Fe.val(i),V.showPalette&&w(),k()}function R(){var e=ce,n=de;if(Ke&&Je)De.hide(),_e.hide(),Te.hide();else{De.show(),_e.show(),Te.show();var t=e*ee,i=ne-n*ne;t=Math.max(-te,Math.min(ee-te,t-te)),i=Math.max(-te,Math.min(ne-te,i-te)),Te.css({top:i+"px",left:t+"px"});var o=pe*ae;De.css({left:o-re/2+"px"});var a=se*ie;_e.css({top:a-le+"px"})}}function L(e){var n=B(),t="",i=!tinycolor.equals(n,Ve);n&&(t=n.toString(Ue),y(n)),Le&&xe.val(t),e&&i&&(X.change(n),xe.trigger("change",[n]))}function q(){Q&&(ee=Se.width(),ne=Se.height(),te=Te.height(),oe=Ee.width(),ie=Ee.height(),le=_e.height(),ae=Oe.width(),re=De.width(),U||(ke.css("position","absolute"),V.offset?ke.offset(V.offset):ke.offset(r(ke,He))),R(),V.showPalette&&w(),xe.trigger("reflow.spectrum"))}function $(){xe.show(),He.off("click.spectrum touchstart.spectrum"),ke.remove(),Ie.remove(),h[Xe.id]=null}function I(t,i){return t===n?e.extend({},V):i===n?V[t]:(V[t]=i,"preferredFormat"===t&&(Ue=V.preferredFormat),void c())}function H(){we=!1,xe.attr("disabled",!1),He.removeClass("sp-disabled")}function z(){D(),we=!0,xe.attr("disabled",!0),He.addClass("sp-disabled")}function W(e){V.offset=e,q()}var V=o(l,a),U=V.flat,G=V.showSelectionPalette,J=V.localStorageKey,K=V.theme,X=V.callbacks,Y=p(q,10),Q=!1,Z=!1,ee=0,ne=0,te=0,ie=0,oe=0,ae=0,re=0,le=0,se=0,ce=0,de=0,pe=1,ue=[],fe=[],he={},ve=V.selectionPalette.slice(0),ge=V.maxSelectionSize,me="sp-dragging",be=null,ye=a.ownerDocument,xe=(ye.body,e(a)),we=!1,ke=e(b,ye).addClass(K),Ce=ke.find(".sp-picker-container"),Se=ke.find(".sp-color"),Te=ke.find(".sp-dragger"),Ee=ke.find(".sp-hue"),_e=ke.find(".sp-slider"),Ae=ke.find(".sp-alpha-inner"),Oe=ke.find(".sp-alpha"),De=ke.find(".sp-alpha-handle"),Fe=ke.find(".sp-input"),Pe=ke.find(".sp-palette"),Be=ke.find(".sp-initial"),Me=ke.find(".sp-cancel"),Ne=ke.find(".sp-clear"),je=ke.find(".sp-choose"),Re=ke.find(".sp-palette-toggle"),Le=xe.is("input"),qe=Le&&"color"===xe.attr("type")&&u(),$e=Le&&!U,Ie=$e?e(m).addClass(K).addClass(V.className).addClass(V.replacerClassName):e([]),He=$e?Ie:xe,ze=Ie.find(".sp-preview-inner"),We=V.color||Le&&xe.val(),Ve=!1,Ue=V.preferredFormat,Ge=!V.showButtons||V.clickoutFiresChange,Je=!We,Ke=V.allowEmpty&&!qe;!function(){function n(n){return n.data&&n.data.ignore?(P(e(n.target).closest(".sp-thumb-el").data("color")),N()):(P(e(n.target).closest(".sp-thumb-el").data("color")),N(),V.hideAfterPaletteSelect?(L(!0),D()):L()),!1}if(v&&ke.find("*:not(input)").attr("unselectable","on"),c(),$e&&xe.after(Ie).hide(),Ke||Ne.hide(),U)xe.after(ke).hide();else{var t="parent"===V.appendTo?xe.parent():e(V.appendTo);1!==t.length&&(t=e("body")),t.append(ke)}f(),He.on("click.spectrum touchstart.spectrum",function(n){we||E(),n.stopPropagation(),e(n.target).is("input")||n.preventDefault()}),
(xe.is(":disabled")||!0===V.disabled)&&z(),ke.click(s),Fe.change(T),Fe.on("paste",function(){setTimeout(T,1)}),Fe.keydown(function(e){13==e.keyCode&&T()}),Me.text(V.cancelText),Me.on("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),F(),D()}),Ne.attr("title",V.clearText),Ne.on("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),Je=!0,N(),U&&L(!0)}),je.text(V.chooseText),je.on("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),v&&Fe.is(":focus")&&Fe.trigger("change"),M()&&(L(!0),D())}),Re.text(V.showPaletteOnly?V.togglePaletteMoreText:V.togglePaletteLessText),Re.on("click.spectrum",function(e){e.stopPropagation(),e.preventDefault(),V.showPaletteOnly=!V.showPaletteOnly,V.showPaletteOnly||U||ke.css("left","-="+(Ce.outerWidth(!0)+5)),c()}),d(Oe,function(e,n,t){pe=e/ae,Je=!1,t.shiftKey&&(pe=Math.round(10*pe)/10),N()},C,S),d(Ee,function(e,n){se=parseFloat(n/ie),Je=!1,V.showAlpha||(pe=1),N()},C,S),d(Se,function(e,n,t){if(t.shiftKey){if(!be){var i=ce*ee,o=ne-de*ne,a=Math.abs(e-i)>Math.abs(n-o);be=a?"x":"y"}}else be=null;var r=!be||"x"===be,l=!be||"y"===be;r&&(ce=parseFloat(e/ee)),l&&(de=parseFloat((ne-n)/ne)),Je=!1,V.showAlpha||(pe=1),N()},C,S),We?(P(We),j(),Ue=V.preferredFormat||tinycolor(We).format,y(We)):j(),U&&_();var i=v?"mousedown.spectrum":"click.spectrum touchstart.spectrum";Pe.on(i,".sp-thumb-el",n),Be.on(i,".sp-thumb-el:nth-child(1)",{ignore:!0},n)}();var Xe={show:_,hide:D,toggle:E,reflow:q,option:I,enable:H,disable:z,offset:W,set:function(e){P(e),L()},get:B,destroy:$,container:ke};return Xe.id=h.push(Xe)-1,Xe}function r(n,t){var i=n.outerWidth(),o=n.outerHeight(),a=t.outerHeight(),r=n[0].ownerDocument,l=r.documentElement,s=l.clientWidth+e(r).scrollLeft(),c=l.clientHeight+e(r).scrollTop(),d=t.offset(),p=d.left,u=d.top;return u+=a,p-=Math.min(p,p+i>s&&s>i?Math.abs(p+i-s):0),u-=Math.min(u,u+o>c&&c>o?Math.abs(o+a-0):0),{top:u,bottom:d.bottom,left:p,right:d.right,width:d.width,height:d.height}}function l(){}function s(e){e.stopPropagation()}function c(e,n){var t=Array.prototype.slice,i=t.call(arguments,2);return function(){return e.apply(n,i.concat(t.call(arguments)))}}function d(n,t,i,o){function a(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.returnValue=!1}function r(e){if(d){if(v&&c.documentMode<9&&!e.button)return s();var i=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0],o=i&&i.pageX||e.pageX,r=i&&i.pageY||e.pageY,l=Math.max(0,Math.min(o-p.left,f)),g=Math.max(0,Math.min(r-p.top,u));h&&a(e),t.apply(n,[l,g,e])}}function l(t){(t.which?3==t.which:2==t.button)||d||!1!==i.apply(n,arguments)&&(d=!0,u=e(n).height(),f=e(n).width(),p=e(n).offset(),e(c).on(g),e(c.body).addClass("sp-dragging"),r(t),a(t))}function s(){d&&(e(c).off(g),e(c.body).removeClass("sp-dragging"),setTimeout(function(){o.apply(n,arguments)},0)),d=!1}t=t||function(){},i=i||function(){},o=o||function(){};var c=document,d=!1,p={},u=0,f=0,h="ontouchstart"in window,g={};g.selectstart=a,g.dragstart=a,g["touchmove mousemove"]=r,g["touchend mouseup"]=s,e(n).on("touchstart mousedown",l)}function p(e,n,t){var i;return function(){var o=this,a=arguments,r=function(){i=null,e.apply(o,a)};t&&clearTimeout(i),!t&&i||(i=setTimeout(r,n))}}function u(){return e.fn.spectrum.inputTypeColorSupport()}var f={beforeShow:l,move:l,change:l,show:l,hide:l,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},h=[],v=!!/msie/i.exec(window.navigator.userAgent),g=function(){function e(e,n){return!!~(""+e).indexOf(n)}var n=document.createElement("div"),t=n.style;return t.cssText="background-color:rgba(0,0,0,.5)",e(t.backgroundColor,"rgba")||e(t.backgroundColor,"hsla")}(),m=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),b=function(){var e="";if(v)for(var n=1;n<=6;n++)e+="<div class='sp-"+n+"'></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(n,t){if("string"==typeof n){var i=this,o=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=h[e(this).data("spectrum.id")];if(t){var a=t[n];if(!a)throw new Error("Spectrum: no such method: '"+n+"'");"get"==n?i=t.get():"container"==n?i=t.container:"option"==n?i=t.option.apply(t,o):"destroy"==n?(t.destroy(),e(this).removeData("spectrum.id")):a.apply(t,o)}}),i}return this.spectrum("destroy").each(function(){var t=e.extend({},e(this).data(),n),i=a(this,t);e(this).data("spectrum.id",i.id)})},e.fn.spectrum.load=!0,e.fn.spectrum.loadOpts={},e.fn.spectrum.draggable=d,e.fn.spectrum.defaults=f,e.fn.spectrum.inputTypeColorSupport=function n(){if(void 0===n._cachedResult){var t=e("<input type='color'/>")[0];n._cachedResult="color"===t.type&&""!==t.value}return n._cachedResult},e.spectrum={},e.spectrum.localization={},e.spectrum.palettes={},e.fn.spectrum.processNativeColorInputs=function(){var n=e("input[type=color]");n.length&&!u()&&n.spectrum({preferredFormat:"hex6"})},function(){function e(e){var t={r:0,g:0,b:0},o=1,r=!1,l=!1;return"string"==typeof e&&(e=F(e)),"object"==typeof e&&(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")?(t=n(e.r,e.g,e.b),r=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("v")?(e.s=A(e.s),e.v=A(e.v),t=a(e.h,e.s,e.v),r=!0,l="hsv"):e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("l")&&(e.s=A(e.s),e.l=A(e.l),t=i(e.h,e.s,e.l),r=!0,l="hsl"),e.hasOwnProperty("a")&&(o=e.a)),o=w(o),{ok:r,format:e.format||l,r:R(255,L(t.r,0)),g:R(255,L(t.g,0)),b:R(255,L(t.b,0)),a:o}}function n(e,n,t){return{r:255*k(e,255),g:255*k(n,255),b:255*k(t,255)}}function t(e,n,t){e=k(e,255),n=k(n,255),t=k(t,255);var i,o,a=L(e,n,t),r=R(e,n,t),l=(a+r)/2;if(a==r)i=o=0;else{var s=a-r;switch(o=l>.5?s/(2-a-r):s/(a+r),a){case e:i=(n-t)/s+(n<t?6:0);break;case n:i=(t-e)/s+2;break;case t:i=(e-n)/s+4}i/=6}return{h:i,s:o,l:l}}function i(e,n,t){function i(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*(n-e)*t:t<.5?n:t<2/3?e+(n-e)*(2/3-t)*6:e}var o,a,r;if(e=k(e,360),n=k(n,100),t=k(t,100),0===n)o=a=r=t;else{var l=t<.5?t*(1+n):t+n-t*n,s=2*t-l;o=i(s,l,e+1/3),a=i(s,l,e),r=i(s,l,e-1/3)}return{r:255*o,g:255*a,b:255*r}}function o(e,n,t){e=k(e,255),n=k(n,255),t=k(t,255);var i,o,a=L(e,n,t),r=R(e,n,t),l=a,s=a-r;if(o=0===a?0:s/a,a==r)i=0;else{switch(a){case e:i=(n-t)/s+(n<t?6:0);break;case n:i=(t-e)/s+2;break;case t:i=(e-n)/s+4}i/=6}return{h:i,s:o,v:l}}function a(e,n,t){e=6*k(e,360),n=k(n,100),t=k(t,100);var i=N.floor(e),o=e-i,a=t*(1-n),r=t*(1-o*n),l=t*(1-(1-o)*n),s=i%6;return{r:255*[t,r,a,a,l,t][s],g:255*[l,t,t,r,a,a][s],b:255*[a,a,l,t,t,r][s]}}function r(e,n,t,i){var o=[_(j(e).toString(16)),_(j(n).toString(16)),_(j(t).toString(16))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function l(e,n,t,i){return[_(O(i)),_(j(e).toString(16)),_(j(n).toString(16)),_(j(t).toString(16))].join("")}function s(e,n){n=0===n?0:n||10;var t=$(e).toHsl();return t.s-=n/100,t.s=C(t.s),$(t)}function c(e,n){n=0===n?0:n||10;var t=$(e).toHsl();return t.s+=n/100,t.s=C(t.s),$(t)}function d(e){return $(e).desaturate(100)}function p(e,n){n=0===n?0:n||10;var t=$(e).toHsl();return t.l+=n/100,t.l=C(t.l),$(t)}function u(e,n){n=0===n?0:n||10;var t=$(e).toRgb();return t.r=L(0,R(255,t.r-j(-n/100*255))),t.g=L(0,R(255,t.g-j(-n/100*255))),t.b=L(0,R(255,t.b-j(-n/100*255))),$(t)}function f(e,n){n=0===n?0:n||10;var t=$(e).toHsl();return t.l-=n/100,t.l=C(t.l),$(t)}function h(e,n){var t=$(e).toHsl(),i=(j(t.h)+n)%360;return t.h=i<0?360+i:i,$(t)}function v(e){var n=$(e).toHsl();return n.h=(n.h+180)%360,$(n)}function g(e){var n=$(e).toHsl(),t=n.h;return[$(e),$({h:(t+120)%360,s:n.s,l:n.l}),$({h:(t+240)%360,s:n.s,l:n.l})]}function m(e){var n=$(e).toHsl(),t=n.h;return[$(e),$({h:(t+90)%360,s:n.s,l:n.l}),$({h:(t+180)%360,s:n.s,l:n.l}),$({h:(t+270)%360,s:n.s,l:n.l})]}function b(e){var n=$(e).toHsl(),t=n.h;return[$(e),$({h:(t+72)%360,s:n.s,l:n.l}),$({h:(t+216)%360,s:n.s,l:n.l})]}function y(e,n,t){n=n||6,t=t||30;var i=$(e).toHsl(),o=360/t,a=[$(e)];for(i.h=(i.h-(o*n>>1)+720)%360;--n;)i.h=(i.h+o)%360,a.push($(i));return a}function x(e,n){n=n||6;for(var t=$(e).toHsv(),i=t.h,o=t.s,a=t.v,r=[],l=1/n;n--;)r.push($({h:i,s:o,v:a})),a=(a+l)%1;return r}function w(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function k(e,n){T(e)&&(e="100%");var t=E(e);return e=R(n,L(0,parseFloat(e))),t&&(e=parseInt(e*n,10)/100),N.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function C(e){return R(1,L(0,e))}function S(e){return parseInt(e,16)}function T(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function E(e){return"string"==typeof e&&-1!=e.indexOf("%")}function _(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function O(e){return Math.round(255*parseFloat(e)).toString(16)}function D(e){return S(e)/255}function F(e){e=e.replace(P,"").replace(B,"").toLowerCase();var n=!1;if(I[e])e=I[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=z.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=z.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=z.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=z.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=z.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=z.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=z.hex8.exec(e))?{a:D(t[1]),r:S(t[2]),g:S(t[3]),b:S(t[4]),format:n?"name":"hex8"}:(t=z.hex6.exec(e))?{r:S(t[1]),g:S(t[2]),b:S(t[3]),format:n?"name":"hex"}:!!(t=z.hex3.exec(e))&&{r:S(t[1]+""+t[1]),g:S(t[2]+""+t[2]),b:S(t[3]+""+t[3]),format:n?"name":"hex"}}var P=/^[\s,#]+/,B=/\s+$/,M=0,N=Math,j=N.round,R=N.min,L=N.max,q=N.random,$=function(n,t){if(n=n||"",t=t||{},n instanceof $)return n;if(!(this instanceof $))return new $(n,t);var i=e(n);this._originalInput=n,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=j(1e3*this._a)/1e3,this._format=t.format||i.format,this._gradientType=t.gradientType,this._r<1&&(this._r=j(this._r)),this._g<1&&(this._g=j(this._g)),this._b<1&&(this._b=j(this._b)),this._ok=i.ok,this._tc_id=M++};$.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=w(e),this._roundA=j(1e3*this._a)/1e3,this},toHsv:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=o(this._r,this._g,this._b),n=j(360*e.h),t=j(100*e.s),i=j(100*e.v);return 1==this._a?"hsv("+n+", "+t+"%, "+i+"%)":"hsva("+n+", "+t+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=t(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=t(this._r,this._g,this._b),n=j(360*e.h),i=j(100*e.s),o=j(100*e.l);return 1==this._a?"hsl("+n+", "+i+"%, "+o+"%)":"hsla("+n+", "+i+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return r(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(){return l(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:j(this._r),g:j(this._g),b:j(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+j(this._r)+", "+j(this._g)+", "+j(this._b)+")":"rgba("+j(this._r)+", "+j(this._g)+", "+j(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:j(100*k(this._r,255))+"%",g:j(100*k(this._g,255))+"%",b:j(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+j(100*k(this._r,255))+"%, "+j(100*k(this._g,255))+"%, "+j(100*k(this._b,255))+"%)":"rgba("+j(100*k(this._r,255))+"%, "+j(100*k(this._g,255))+"%, "+j(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(H[r(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var n="#"+l(this._r,this._g,this._b,this._a),t=n,i=this._gradientType?"GradientType = 1, ":"";if(e){t=$(e).toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+t+")"},toString:function(e){var n=!!e;e=e||this._format;var t=!1,i=this._a<1&&this._a>=0;return n||!i||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(e,n){var t=e.apply(null,[this].concat([].slice.call(n)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(p,arguments)},brighten:function(){return this._applyModification(u,arguments)},darken:function(){return this._applyModification(f,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(d,arguments)},spin:function(){return this._applyModification(h,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(b,arguments)},triad:function(){return this._applyCombination(g,arguments)},tetrad:function(){return this._applyCombination(m,arguments)}},$.fromRatio=function(e,n){if("object"==typeof e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]="a"===i?e[i]:A(e[i]));e=t}return $(e,n)},$.equals=function(e,n){return!(!e||!n)&&$(e).toRgbString()==$(n).toRgbString()},$.random=function(){return $.fromRatio({r:q(),g:q(),b:q()})},$.mix=function(e,n,t){t=0===t?0:t||50;var i,o=$(e).toRgb(),a=$(n).toRgb(),r=t/100,l=2*r-1,s=a.a-o.a;i=l*s==-1?l:(l+s)/(1+l*s),i=(i+1)/2;var c=1-i,d={r:a.r*i+o.r*c,g:a.g*i+o.g*c,b:a.b*i+o.b*c,a:a.a*r+o.a*(1-r)};return $(d)},$.readability=function(e,n){var t=$(e),i=$(n),o=t.toRgb(),a=i.toRgb(),r=t.getBrightness(),l=i.getBrightness(),s=Math.max(o.r,a.r)-Math.min(o.r,a.r)+Math.max(o.g,a.g)-Math.min(o.g,a.g)+Math.max(o.b,a.b)-Math.min(o.b,a.b);return{brightness:Math.abs(r-l),color:s}},$.isReadable=function(e,n){var t=$.readability(e,n);return t.brightness>125&&t.color>500},$.mostReadable=function(e,n){for(var t=null,i=0,o=!1,a=0;a<n.length;a++){var r=$.readability(e,n[a]),l=r.brightness>125&&r.color>500,s=r.brightness/125*3+r.color/500;(l&&!o||l&&o&&s>i||!l&&!o&&s>i)&&(o=l,i=s,t=$(n[a]))}return t};var I=$.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"},H=$.hexNames=function(e){var n={};for(var t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}(I),z=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+t),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+t),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+t),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=$}(),e(function(){e.fn.spectrum.load&&e.fn.spectrum.processNativeColorInputs()})}),function(e){"use strict";e(document).on("ready",function(){e(".spectrum-group").on("change","input",function(n,t){var i=e(this),o=i.closest(".spectrum-group"),a=i.val();i.is(".spectrum-source")&&(null!==t&&(a=t.toString()),o.find(".spectrum-input").val(a)),o.find(".spectrum-source").spectrum("set",a)})})}(window.jQuery),define("spectrum-kv",function(){}),define("app/app",["jquery","underscore","backbone","polyglot","collections/components","collections/my-form-components","collections/my-form-styles","views/tab","views/tab-content","views/my-form","views/styles","text!data/components.json","text!data/i18n.json","text!data/init-form.json","text!data/css-rules.json","text!data/css-properties.json","text!templates/app/render.html","helper/pubsub","jquery.fontselect","jquery.flexdatalist","jquery.cookie","jquery.bsAlerts","spectrum","spectrum-kv"],function(e,n,t,i,o,a,r,l,s,c,d,p,u,f,h,v,g,m){return{csrfParam:"",csrfToken:"",initialize:function(){n.templateSettings={evaluate:/\{\{(.+?)\}\}/g,interpolate:/\{\{=(.+?)\}\}/g,escape:/\{\{-(.+?)\}\}/g},window.FormBuilder={data:"",html:""},window.savedModal=new bootstrap.Modal(document.getElementById("saved")),window.GridColumns=5,e("#ef-styles").on("click","#ef-styles-collapse-all",function(n){n.preventDefault(),e("body").find(".collapse").removeClass("show"),new bootstrap.Collapse(".accordion-collapse",{toggle:!1}).hide()}).on("click","#ef-styles-expand-all",function(n){n.preventDefault(),e("body").find(".collapse").addClass("show"),new bootstrap.Collapse(".accordion-collapse",{toggle:!1}).show()}),window.polyglot=new i(JSON.parse(u)),f=JSON.parse(f),p=JSON.parse(p),h=JSON.parse(h),n.each(h,function(e){e.properties=JSON.parse(v)}),window.defaultCssRules=JSON.stringify(h),this.csrfParam=e('meta[name="csrf-param"]').attr("content"),this.csrfToken=e('meta[name="csrf-token"]').attr("content");var t=this;e.when(e.ajax(options.i18nUrl),e.ajax(options.componentsUrl),e.ajax(options.initPoint)).then(function(e,i,o){polyglot.replace(e[0].phrases),p=i[0],f=o[0],n.isUndefined(f.styles)||(h=n.map(h,function(e){var t=n.find(f.styles,function(n){return n.name===e.name});return n.extend(e,t)})),t.render()},function(){})},render:function(){var t=this;new l({id:"fields",title:polyglot.t("tab.fields"),collection:new o(p)}),new l({id:"settings",title:polyglot.t("tab.settings"),isForm:!0,settings:f.settings}),new l({id:"code",title:polyglot.t("tab.code"),content:g}),e("#ef-switcher-side-left").click(function(n){n.preventDefault(),e("#ef-widgets").hide(),window.GridColumns=window.GridColumns+4,e("#ef-main").removeClass().addClass("col-12 col-md-"+window.GridColumns),e("#ef-switcher-main-left").show(),m.trigger("renderForm")}),e("#ef-switcher-main-left").click(function(n){n.preventDefault(),e("#ef-widgets").show(),window.GridColumns=window.GridColumns-4,e("#ef-main").removeClass().addClass("col-12 col-md-"+window.GridColumns),e("#ef-switcher-side-left").show(),e(this).hide(),m.trigger("renderForm")}),e("#ef-switcher-side-right").click(function(n){n.preventDefault(),e("#ef-styles").hide(),window.GridColumns=window.GridColumns+3,e("#ef-main").removeClass().addClass("col-12 col-md-"+window.GridColumns),e("#ef-switcher-main-right").show(),m.trigger("renderForm")}),e("#ef-switcher-main-right").click(function(n){n.preventDefault(),e("#ef-styles").show(),window.GridColumns=window.GridColumns-3,e("#ef-main").removeClass().addClass("col-12 col-md-"+window.GridColumns),e("#ef-switcher-side-right").show(),e(this).hide(),m.trigger("renderForm")}),e(".alert .btn-close").click(function(n){n.preventDefault(),e.cookie("alert-box","closed")}),"closed"!==e.cookie("alert-box")?e(".alert").addClass("in").show():e(".alert").removeClass("in").hide(),e("ul").find("[data-method='post']").click(function(n){n.preventDefault();var i={};i[t.csrfParam]=t.csrfToken,e.ajax({method:"POST",url:e(this).attr("href"),dataType:"json",data:i}).always(function(){location.reload()})});var i=new a;i.add(f.initForm);var s=new c({settings:f.settings,collection:i}),u=new r;u.add(h);var v=new d({id:"design",title:"Design",collection:u});e("#copy-styles").click(function(e){e.preventDefault(),window.localStorage.setItem("clipboard",JSON.stringify(u.toJSON()))}),e("#paste-styles").click(function(n){n.preventDefault();var t=window.localStorage.getItem("clipboard");t&&(e("#loading-styles").show(),v.collection.reset(JSON.parse(t),{silent:!0}),v.renderWidgets().then(function(){e("#loading-styles").hide()}),window.localStorage.removeItem("clipboard"))}),e("#reset-styles").click(function(n){n.preventDefault(),e("#loading-styles").show(),v.collection.reset(JSON.parse(window.defaultCssRules),{silent:!0}),v.renderWidgets().then(function(){e("#loading-styles").hide()})}),m.on("tempDrop",function(){e(window).off("beforeunload").on("beforeunload",function(){return polyglot.t("alert.unsavedChanges")})}),e("#actions").find(".saveForm").click(function(o){o.preventDefault(),e("#actions button").attr("disabled",!0);var a=e("#saveText"),r=a.text();a.text(polyglot.t("form.saving"));var l=e(o.target);options.endPoint=n.isUndefined(l.data("endpoint"))||""===l.data("endpoint")?options.endPoint:l.data("endpoint"),options.afterSave=n.isUndefined(l.data("aftersave"))||""===l.data("aftersave")?options.afterSave:l.data("aftersave"),options.url=n.isUndefined(l.data("url"))||""===l.data("url")?options.url:l.data("url"),e(window).off("beforeunload"),window.FormBuilder.data={settings:s.options.settings,initForm:i.toJSON(),styles:u.toJSON(),height:e("#my-form").find("fieldset").height()};var c={FormBuilder:JSON.stringify(window.FormBuilder)};c[t.csrfParam]=t.csrfToken,e.ajax({method:"POST",url:options.endPoint,dataType:"json",data:c}).done(function(t){if(e("#actions button").removeAttr("disabled"),a.html(r),t.success&&t.id>0)if("redirect"!==options.afterSave||n.isEmpty(options.url))if("open"!==options.afterSave||n.isEmpty(options.url)){if(e("#formId").val(t.id),"create"===t.action){var i=e("#toUpdate"),o=i.attr("href"),l=o.indexOf("?")>=0?"&":"?",s=o+l+"id="+t.id;i.attr("href",s);var c=e("#toPublish"),d=c.attr("href");l=d.indexOf("?")>=0?"&":"?";var p=d+l+"id="+t.id;c.attr("href",p);var u=e("#toSettings"),f=u.attr("href");l=f.indexOf("?")>=0?"&":"?";var h=f+l+"id="+t.id;u.attr("href",h)}e(".popover").remove(),window.savedModal.show()}else if("create"===t.action){options.url=options.url+(options.url.indexOf("?")>=0?"&":"?")+"id="+t.id,window.open(options.url,"_blank");var v=e("#toUpdate").attr("href");v=v+(v.indexOf("?")>=0?"&":"?")+"id="+t.id,window.location.href=v}else window.open(options.url,"_blank");else window.location.href=options.url;else e(document).trigger("add-alerts",[{message:"<strong>"+polyglot.t("alert.warning")+"</strong> "+t.message,priority:"warning"}])}).fail(function(n){e(document).trigger("add-alerts",[{message:"<strong>"+polyglot.t("alert.warning")+"</strong> "+polyglot.t("alert.errorSavingData"),priority:"warning"}])}).always(function(){})}),e("#ef-form-builder").show(),setTimeout(function(){e("#ef-loading").hide()},10)}}}),require.config({baseUrl:options.libUrl,shim:{underscore:{exports:"_"},backbone:{deps:["underscore","jquery"],exports:"Backbone"},bootstrap:{deps:["jquery"]},"jquery.fontselect":{deps:["jquery"]},"jquery.flexdatalist":{deps:["jquery"]},"jquery.cookie":{deps:["jquery"]},"jquery.bsAlerts":{deps:["jquery"]},spectrum:{deps:["jquery"]},"spectrum-kv":{deps:["jquery"]},polyglot:{exports:"Polyglot"},prism:{exports:"Prism"},simplebar:{exports:"SimpleBar"},cssjson:{exports:"CSSJSON"},grapick:{exports:"Grapick"},clipboard:{exports:"ClipboardJS"}},paths:{app:"..",collections:"../collections",data:"../data",models:"../models",helper:"../helper",templates:"../templates",views:"../views"}}),require(["app/app"],function(e){e.initialize()}),define("../main",function(){});