-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathform-min.js
10 lines (9 loc) · 108 KB
/
form-min.js
1
2
3
4
5
6
7
8
9
10
/**
* form-js - v4.2.1.
* https://github.com/mkay581/form-js.git
* Copyright 2016 Mark Kennedy. Licensed MIT.
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Form=e()}}(function(){var e;return function t(e,n,i){function r(s,a){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};e[s][0].call(c.exports,function(t){var n=e[s][1][t];return r(n?n:t)},c,c.exports,t,e,n,i)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(e,t,n){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.map"),t.exports=e("../modules/_core").Map},{"../modules/_core":12,"../modules/es6.map":73,"../modules/es6.object.to-string":74,"../modules/es6.string.iterator":75,"../modules/web.dom.iterable":77}],2:[function(e,t,n){e("../modules/es6.symbol"),e("../modules/es6.object.to-string"),t.exports=e("../modules/_core").Symbol},{"../modules/_core":12,"../modules/es6.object.to-string":74,"../modules/es6.symbol":76}],3:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],4:[function(e,t,n){var i=e("./_wks")("unscopables"),r=Array.prototype;void 0==r[i]&&e("./_hide")(r,i,{}),t.exports=function(e){r[i][e]=!0}},{"./_hide":24,"./_wks":70}],5:[function(e,t,n){t.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},{}],6:[function(e,t,n){var i=e("./_is-object");t.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":31}],7:[function(e,t,n){var i=e("./_to-iobject"),r=e("./_to-length"),o=e("./_to-index");t.exports=function(e){return function(t,n,s){var a,u=i(t),l=r(u.length),c=o(s,l);if(e&&n!=n){for(;l>c;)if(a=u[c++],a!=a)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},{"./_to-index":61,"./_to-iobject":63,"./_to-length":64}],8:[function(e,t,n){var i=e("./_cof"),r=e("./_wks")("toStringTag"),o="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};t.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),r))?n:o?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},{"./_cof":9,"./_wks":70}],9:[function(e,t,n){var i={}.toString;t.exports=function(e){return i.call(e).slice(8,-1)}},{}],10:[function(e,t,n){"use strict";var i=e("./_object-dp").f,r=e("./_object-create"),o=(e("./_hide"),e("./_redefine-all")),s=e("./_ctx"),a=e("./_an-instance"),u=e("./_defined"),l=e("./_for-of"),c=e("./_iter-define"),f=e("./_iter-step"),h=e("./_set-species"),d=e("./_descriptors"),p=e("./_meta").fastKey,v=d?"_s":"size",_=function(e,t){var n,i=p(t);if("F"!==i)return e._i[i];for(n=e._f;n;n=n.n)if(n.k==t)return n};t.exports={getConstructor:function(e,t,n,c){var f=e(function(e,i){a(e,f,t,"_i"),e._i=r(null),e._f=void 0,e._l=void 0,e[v]=0,void 0!=i&&l(i,n,e[c],e)});return o(f.prototype,{clear:function(){for(var e=this,t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[v]=0},"delete":function(e){var t=this,n=_(t,e);if(n){var i=n.n,r=n.p;delete t._i[n.i],n.r=!0,r&&(r.n=i),i&&(i.p=r),t._f==n&&(t._f=i),t._l==n&&(t._l=r),t[v]--}return!!n},forEach:function(e){a(this,f,"forEach");for(var t,n=s(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!_(this,e)}}),d&&i(f.prototype,"size",{get:function(){return u(this[v])}}),f},def:function(e,t,n){var i,r,o=_(e,t);return o?o.v=n:(e._l=o={i:r=p(t,!0),k:t,v:n,p:i=e._l,n:void 0,r:!1},e._f||(e._f=o),i&&(i.n=o),e[v]++,"F"!==r&&(e._i[r]=o)),e},getEntry:_,setStrong:function(e,t,n){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?f(0,n.k):"values"==t?f(0,n.v):f(0,[n.k,n.v]):(e._t=void 0,f(1))},n?"entries":"values",!n,!0),h(t)}}},{"./_an-instance":5,"./_ctx":13,"./_defined":14,"./_descriptors":15,"./_for-of":21,"./_hide":24,"./_iter-define":34,"./_iter-step":36,"./_meta":40,"./_object-create":41,"./_object-dp":42,"./_redefine-all":53,"./_set-species":56}],11:[function(e,t,n){"use strict";var i=e("./_global"),r=e("./_export"),o=e("./_redefine"),s=e("./_redefine-all"),a=e("./_meta"),u=e("./_for-of"),l=e("./_an-instance"),c=e("./_is-object"),f=e("./_fails"),h=e("./_iter-detect"),d=e("./_set-to-string-tag"),p=e("./_inherit-if-required");t.exports=function(e,t,n,v,_,g){var y=i[e],b=y,m=_?"set":"add",E=b&&b.prototype,k={},C=function(e){var t=E[e];o(E,e,"delete"==e?function(e){return g&&!c(e)?!1:t.call(this,0===e?0:e)}:"has"==e?function(e){return g&&!c(e)?!1:t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(g||E.forEach&&!f(function(){(new b).entries().next()}))){var w=new b,O=w[m](g?{}:-0,1)!=w,j=f(function(){w.has(1)}),x=h(function(e){new b(e)}),I=!g&&f(function(){for(var e=new b,t=5;t--;)e[m](t,t);return!e.has(-0)});x||(b=t(function(t,n){l(t,b,e);var i=p(new y,t,b);return void 0!=n&&u(n,_,i[m],i),i}),b.prototype=E,E.constructor=b),(j||I)&&(C("delete"),C("has"),_&&C("get")),(I||O)&&C(m),g&&E.clear&&delete E.clear}else b=v.getConstructor(t,e,_,m),s(b.prototype,n),a.NEED=!0;return d(b,e),k[e]=b,r(r.G+r.W+r.F*(b!=y),k),g||v.setStrong(b,e,_),b}},{"./_an-instance":5,"./_export":19,"./_fails":20,"./_for-of":21,"./_global":22,"./_inherit-if-required":27,"./_is-object":31,"./_iter-detect":35,"./_meta":40,"./_redefine":54,"./_redefine-all":53,"./_set-to-string-tag":57}],12:[function(e,t,n){var i=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=i)},{}],13:[function(e,t,n){var i=e("./_a-function");t.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":3}],14:[function(e,t,n){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],15:[function(e,t,n){t.exports=!e("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":20}],16:[function(e,t,n){var i=e("./_is-object"),r=e("./_global").document,o=i(r)&&i(r.createElement);t.exports=function(e){return o?r.createElement(e):{}}},{"./_global":22,"./_is-object":31}],17:[function(e,t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],18:[function(e,t,n){var i=e("./_object-keys"),r=e("./_object-gops"),o=e("./_object-pie");t.exports=function(e){var t=i(e),n=r.f;if(n)for(var s,a=n(e),u=o.f,l=0;a.length>l;)u.call(e,s=a[l++])&&t.push(s);return t}},{"./_object-gops":47,"./_object-keys":50,"./_object-pie":51}],19:[function(e,t,n){var i=e("./_global"),r=e("./_core"),o=e("./_hide"),s=e("./_redefine"),a=e("./_ctx"),u="prototype",l=function(e,t,n){var c,f,h,d,p=e&l.F,v=e&l.G,_=e&l.S,g=e&l.P,y=e&l.B,b=v?i:_?i[t]||(i[t]={}):(i[t]||{})[u],m=v?r:r[t]||(r[t]={}),E=m[u]||(m[u]={});v&&(n=t);for(c in n)f=!p&&b&&void 0!==b[c],h=(f?b:n)[c],d=y&&f?a(h,i):g&&"function"==typeof h?a(Function.call,h):h,b&&s(b,c,h,e&l.U),m[c]!=h&&o(m,c,d),g&&E[c]!=h&&(E[c]=h)};i.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},{"./_core":12,"./_ctx":13,"./_global":22,"./_hide":24,"./_redefine":54}],20:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],21:[function(e,t,n){var i=e("./_ctx"),r=e("./_iter-call"),o=e("./_is-array-iter"),s=e("./_an-object"),a=e("./_to-length"),u=e("./core.get-iterator-method"),l={},c={},n=t.exports=function(e,t,n,f,h){var d,p,v,_,g=h?function(){return e}:u(e),y=i(n,f,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(d=a(e.length);d>b;b++)if(_=t?y(s(p=e[b])[0],p[1]):y(e[b]),_===l||_===c)return _}else for(v=g.call(e);!(p=v.next()).done;)if(_=r(v,y,p.value,t),_===l||_===c)return _};n.BREAK=l,n.RETURN=c},{"./_an-object":6,"./_ctx":13,"./_is-array-iter":29,"./_iter-call":32,"./_to-length":64,"./core.get-iterator-method":71}],22:[function(e,t,n){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},{}],23:[function(e,t,n){var i={}.hasOwnProperty;t.exports=function(e,t){return i.call(e,t)}},{}],24:[function(e,t,n){var i=e("./_object-dp"),r=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":15,"./_object-dp":42,"./_property-desc":52}],25:[function(e,t,n){t.exports=e("./_global").document&&document.documentElement},{"./_global":22}],26:[function(e,t,n){t.exports=!e("./_descriptors")&&!e("./_fails")(function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":15,"./_dom-create":16,"./_fails":20}],27:[function(e,t,n){var i=e("./_is-object"),r=e("./_set-proto").set;t.exports=function(e,t,n){var o,s=t.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&i(o)&&r&&r(e,o),e}},{"./_is-object":31,"./_set-proto":55}],28:[function(e,t,n){var i=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},{"./_cof":9}],29:[function(e,t,n){var i=e("./_iterators"),r=e("./_wks")("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||o[r]===e)}},{"./_iterators":37,"./_wks":70}],30:[function(e,t,n){var i=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==i(e)}},{"./_cof":9}],31:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],32:[function(e,t,n){var i=e("./_an-object");t.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(o){var s=e["return"];throw void 0!==s&&i(s.call(e)),o}}},{"./_an-object":6}],33:[function(e,t,n){"use strict";var i=e("./_object-create"),r=e("./_property-desc"),o=e("./_set-to-string-tag"),s={};e("./_hide")(s,e("./_wks")("iterator"),function(){return this}),t.exports=function(e,t,n){e.prototype=i(s,{next:r(1,n)}),o(e,t+" Iterator")}},{"./_hide":24,"./_object-create":41,"./_property-desc":52,"./_set-to-string-tag":57,"./_wks":70}],34:[function(e,t,n){"use strict";var i=e("./_library"),r=e("./_export"),o=e("./_redefine"),s=e("./_hide"),a=e("./_has"),u=e("./_iterators"),l=e("./_iter-create"),c=e("./_set-to-string-tag"),f=e("./_object-gpo"),h=e("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",_="values",g=function(){return this};t.exports=function(e,t,n,y,b,m,E){l(n,t,y);var k,C,w,O=function(e){if(!d&&e in F)return F[e];switch(e){case v:return function(){return new n(this,e)};case _:return function(){return new n(this,e)}}return function(){return new n(this,e)}},j=t+" Iterator",x=b==_,I=!1,F=e.prototype,L=F[h]||F[p]||b&&F[b],S=L||O(b),A=b?x?O("entries"):S:void 0,U="Array"==t?F.entries||L:L;if(U&&(w=f(U.call(new e)),w!==Object.prototype&&(c(w,j,!0),i||a(w,h)||s(w,h,g))),x&&L&&L.name!==_&&(I=!0,S=function(){return L.call(this)}),i&&!E||!d&&!I&&F[h]||s(F,h,S),u[t]=S,u[j]=g,b)if(k={values:x?S:O(_),keys:m?S:O(v),entries:A},E)for(C in k)C in F||o(F,C,k[C]);else r(r.P+r.F*(d||I),t,k);return k}},{"./_export":19,"./_has":23,"./_hide":24,"./_iter-create":33,"./_iterators":37,"./_library":39,"./_object-gpo":48,"./_redefine":54,"./_set-to-string-tag":57,"./_wks":70}],35:[function(e,t,n){var i=e("./_wks")("iterator"),r=!1;try{var o=[7][i]();o["return"]=function(){r=!0},Array.from(o,function(){throw 2})}catch(s){}t.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o=[7],s=o[i]();s.next=function(){return{done:n=!0}},o[i]=function(){return s},e(o)}catch(a){}return n}},{"./_wks":70}],36:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],37:[function(e,t,n){t.exports={}},{}],38:[function(e,t,n){var i=e("./_object-keys"),r=e("./_to-iobject");t.exports=function(e,t){for(var n,o=r(e),s=i(o),a=s.length,u=0;a>u;)if(o[n=s[u++]]===t)return n}},{"./_object-keys":50,"./_to-iobject":63}],39:[function(e,t,n){t.exports=!1},{}],40:[function(e,t,n){var i=e("./_uid")("meta"),r=e("./_is-object"),o=e("./_has"),s=e("./_object-dp").f,a=0,u=Object.isExtensible||function(){return!0},l=!e("./_fails")(function(){return u(Object.preventExtensions({}))}),c=function(e){s(e,i,{value:{i:"O"+ ++a,w:{}}})},f=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[i].i},h=function(e,t){if(!o(e,i)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[i].w},d=function(e){return l&&p.NEED&&u(e)&&!o(e,i)&&c(e),e},p=t.exports={KEY:i,NEED:!1,fastKey:f,getWeak:h,onFreeze:d}},{"./_fails":20,"./_has":23,"./_is-object":31,"./_object-dp":42,"./_uid":67}],41:[function(e,t,n){var i=e("./_an-object"),r=e("./_object-dps"),o=e("./_enum-bug-keys"),s=e("./_shared-key")("IE_PROTO"),a=function(){},u="prototype",l=function(){var t,n=e("./_dom-create")("iframe"),i=o.length,r=">";for(n.style.display="none",e("./_html").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object</script"+r),t.close(),l=t.F;i--;)delete l[u][o[i]];return l()};t.exports=Object.create||function(e,t){var n;return null!==e?(a[u]=i(e),n=new a,a[u]=null,n[s]=e):n=l(),void 0===t?n:r(n,t)}},{"./_an-object":6,"./_dom-create":16,"./_enum-bug-keys":17,"./_html":25,"./_object-dps":43,"./_shared-key":58}],42:[function(e,t,n){var i=e("./_an-object"),r=e("./_ie8-dom-define"),o=e("./_to-primitive"),s=Object.defineProperty;n.f=e("./_descriptors")?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},{"./_an-object":6,"./_descriptors":15,"./_ie8-dom-define":26,"./_to-primitive":66}],43:[function(e,t,n){var i=e("./_object-dp"),r=e("./_an-object"),o=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){r(e);for(var n,s=o(t),a=s.length,u=0;a>u;)i.f(e,n=s[u++],t[n]);return e}},{"./_an-object":6,"./_descriptors":15,"./_object-dp":42,"./_object-keys":50}],44:[function(e,t,n){var i=e("./_object-pie"),r=e("./_property-desc"),o=e("./_to-iobject"),s=e("./_to-primitive"),a=e("./_has"),u=e("./_ie8-dom-define"),l=Object.getOwnPropertyDescriptor;n.f=e("./_descriptors")?l:function(e,t){if(e=o(e),t=s(t,!0),u)try{return l(e,t)}catch(n){}return a(e,t)?r(!i.f.call(e,t),e[t]):void 0}},{"./_descriptors":15,"./_has":23,"./_ie8-dom-define":26,"./_object-pie":51,"./_property-desc":52,"./_to-iobject":63,"./_to-primitive":66}],45:[function(e,t,n){var i=e("./_to-iobject"),r=e("./_object-gopn").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return r(e)}catch(t){return s.slice()}};t.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):r(i(e))}},{"./_object-gopn":46,"./_to-iobject":63}],46:[function(e,t,n){var i=e("./_object-keys-internal"),r=e("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},{"./_enum-bug-keys":17,"./_object-keys-internal":49}],47:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],48:[function(e,t,n){var i=e("./_has"),r=e("./_to-object"),o=e("./_shared-key")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},{"./_has":23,"./_shared-key":58,"./_to-object":65}],49:[function(e,t,n){var i=e("./_has"),r=e("./_to-iobject"),o=e("./_array-includes")(!1),s=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var n,a=r(e),u=0,l=[];for(n in a)n!=s&&i(a,n)&&l.push(n);for(;t.length>u;)i(a,n=t[u++])&&(~o(l,n)||l.push(n));return l}},{"./_array-includes":7,"./_has":23,"./_shared-key":58,"./_to-iobject":63}],50:[function(e,t,n){var i=e("./_object-keys-internal"),r=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return i(e,r)}},{"./_enum-bug-keys":17,"./_object-keys-internal":49}],51:[function(e,t,n){n.f={}.propertyIsEnumerable},{}],52:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],53:[function(e,t,n){var i=e("./_redefine");t.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},{"./_redefine":54}],54:[function(e,t,n){var i=e("./_global"),r=e("./_hide"),o=e("./_has"),s=e("./_uid")("src"),a="toString",u=Function[a],l=(""+u).split(a);e("./_core").inspectSource=function(e){return u.call(e)},(t.exports=function(e,t,n,a){var u="function"==typeof n;u&&(o(n,"name")||r(n,"name",t)),e[t]!==n&&(u&&(o(n,s)||r(n,s,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[s]||u.call(this)})},{"./_core":12,"./_global":22,"./_has":23,"./_hide":24,"./_uid":67}],55:[function(e,t,n){var i=e("./_is-object"),r=e("./_an-object"),o=function(e,t){if(r(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{i=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2),i(t,[]),n=!(t instanceof Array)}catch(r){n=!0}return function(e,t){return o(e,t),n?e.__proto__=t:i(e,t),e}}({},!1):void 0),check:o}},{"./_an-object":6,"./_ctx":13,"./_is-object":31,"./_object-gopd":44}],56:[function(e,t,n){"use strict";var i=e("./_global"),r=e("./_object-dp"),o=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t=i[e];o&&t&&!t[s]&&r.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_descriptors":15,"./_global":22,"./_object-dp":42,"./_wks":70}],57:[function(e,t,n){var i=e("./_object-dp").f,r=e("./_has"),o=e("./_wks")("toStringTag");t.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},{"./_has":23,"./_object-dp":42,"./_wks":70}],58:[function(e,t,n){var i=e("./_shared")("keys"),r=e("./_uid");t.exports=function(e){return i[e]||(i[e]=r(e))}},{"./_shared":59,"./_uid":67}],59:[function(e,t,n){var i=e("./_global"),r="__core-js_shared__",o=i[r]||(i[r]={});t.exports=function(e){return o[e]||(o[e]={})}},{"./_global":22}],60:[function(e,t,n){var i=e("./_to-integer"),r=e("./_defined");t.exports=function(e){return function(t,n){var o,s,a=String(r(t)),u=i(n),l=a.length;return 0>u||u>=l?e?"":void 0:(o=a.charCodeAt(u),55296>o||o>56319||u+1===l||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):o:e?a.slice(u,u+2):(o-55296<<10)+(s-56320)+65536)}}},{"./_defined":14,"./_to-integer":62}],61:[function(e,t,n){var i=e("./_to-integer"),r=Math.max,o=Math.min;t.exports=function(e,t){return e=i(e),0>e?r(e+t,0):o(e,t)}},{"./_to-integer":62}],62:[function(e,t,n){var i=Math.ceil,r=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?r:i)(e)}},{}],63:[function(e,t,n){var i=e("./_iobject"),r=e("./_defined");t.exports=function(e){return i(r(e))}},{"./_defined":14,"./_iobject":28}],64:[function(e,t,n){var i=e("./_to-integer"),r=Math.min;t.exports=function(e){return e>0?r(i(e),9007199254740991):0}},{"./_to-integer":62}],65:[function(e,t,n){var i=e("./_defined");t.exports=function(e){return Object(i(e))}},{"./_defined":14}],66:[function(e,t,n){var i=e("./_is-object");t.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":31}],67:[function(e,t,n){var i=0,r=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+r).toString(36))}},{}],68:[function(e,t,n){var i=e("./_global"),r=e("./_core"),o=e("./_library"),s=e("./_wks-ext"),a=e("./_object-dp").f;t.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},{"./_core":12,"./_global":22,"./_library":39,"./_object-dp":42,"./_wks-ext":69}],69:[function(e,t,n){n.f=e("./_wks")},{"./_wks":70}],70:[function(e,t,n){var i=e("./_shared")("wks"),r=e("./_uid"),o=e("./_global").Symbol,s="function"==typeof o,a=t.exports=function(e){return i[e]||(i[e]=s&&o[e]||(s?o:r)("Symbol."+e))};a.store=i},{"./_global":22,"./_shared":59,"./_uid":67}],71:[function(e,t,n){var i=e("./_classof"),r=e("./_wks")("iterator"),o=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){return void 0!=e?e[r]||e["@@iterator"]||o[i(e)]:void 0}},{"./_classof":8,"./_core":12,"./_iterators":37,"./_wks":70}],72:[function(e,t,n){"use strict";var i=e("./_add-to-unscopables"),r=e("./_iter-step"),o=e("./_iterators"),s=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},{"./_add-to-unscopables":4,"./_iter-define":34,"./_iter-step":36,"./_iterators":37,"./_to-iobject":63}],73:[function(e,t,n){"use strict";var i=e("./_collection-strong");t.exports=e("./_collection")("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=i.getEntry(this,e);return t&&t.v},set:function(e,t){return i.def(this,0===e?0:e,t)}},i,!0)},{"./_collection":11,"./_collection-strong":10}],74:[function(e,t,n){"use strict";var i=e("./_classof"),r={};r[e("./_wks")("toStringTag")]="z",r+""!="[object z]"&&e("./_redefine")(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},{"./_classof":8,"./_redefine":54,"./_wks":70}],75:[function(e,t,n){"use strict";var i=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},{"./_iter-define":34,"./_string-at":60}],76:[function(e,t,n){"use strict";var i=e("./_global"),r=e("./_has"),o=e("./_descriptors"),s=e("./_export"),a=e("./_redefine"),u=e("./_meta").KEY,l=e("./_fails"),c=e("./_shared"),f=e("./_set-to-string-tag"),h=e("./_uid"),d=e("./_wks"),p=e("./_wks-ext"),v=e("./_wks-define"),_=e("./_keyof"),g=e("./_enum-keys"),y=e("./_is-array"),b=e("./_an-object"),m=e("./_to-iobject"),E=e("./_to-primitive"),k=e("./_property-desc"),C=e("./_object-create"),w=e("./_object-gopn-ext"),O=e("./_object-gopd"),j=e("./_object-dp"),x=e("./_object-keys"),I=O.f,F=j.f,L=w.f,S=i.Symbol,A=i.JSON,U=A&&A.stringify,P="prototype",V=d("_hidden"),T=d("toPrimitive"),M={}.propertyIsEnumerable,D=c("symbol-registry"),B=c("symbols"),N=c("op-symbols"),K=Object[P],R="function"==typeof S,q=i.QObject,H=!q||!q[P]||!q[P].findChild,W=o&&l(function(){return 7!=C(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=I(K,t);i&&delete K[t],F(e,t,n),i&&e!==K&&F(K,t,i)}:F,G=function(e){var t=B[e]=C(S[P]);return t._k=e,t},z=R&&"symbol"==typeof S.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof S},Q=function(e,t,n){return e===K&&Q(N,t,n),b(e),t=E(t,!0),b(n),r(B,t)?(n.enumerable?(r(e,V)&&e[V][t]&&(e[V][t]=!1),n=C(n,{enumerable:k(0,!1)})):(r(e,V)||F(e,V,k(1,{})),e[V][t]=!0),W(e,t,n)):F(e,t,n)},J=function(e,t){b(e);for(var n,i=g(t=m(t)),r=0,o=i.length;o>r;)Q(e,n=i[r++],t[n]);return e},Z=function(e,t){return void 0===t?C(e):J(C(e),t)},$=function(e){var t=M.call(this,e=E(e,!0));return this===K&&r(B,e)&&!r(N,e)?!1:t||!r(this,e)||!r(B,e)||r(this,V)&&this[V][e]?t:!0},Y=function(e,t){if(e=m(e),t=E(t,!0),e!==K||!r(B,t)||r(N,t)){var n=I(e,t);return!n||!r(B,t)||r(e,V)&&e[V][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=L(m(e)),i=[],o=0;n.length>o;)r(B,t=n[o++])||t==V||t==u||i.push(t);return i},ee=function(e){for(var t,n=e===K,i=L(n?N:m(e)),o=[],s=0;i.length>s;)r(B,t=i[s++])&&(n?r(K,t):!0)&&o.push(B[t]);return o};R||(S=function(){if(this instanceof S)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===K&&t.call(N,n),r(this,V)&&r(this[V],e)&&(this[V][e]=!1),W(this,e,k(1,n))};return o&&H&&W(K,e,{configurable:!0,set:t}),G(e)},a(S[P],"toString",function(){return this._k}),O.f=Y,j.f=Q,e("./_object-gopn").f=w.f=X,e("./_object-pie").f=$,e("./_object-gops").f=ee,o&&!e("./_library")&&a(K,"propertyIsEnumerable",$,!0),p.f=function(e){return G(d(e))}),s(s.G+s.W+s.F*!R,{Symbol:S});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var te=x(d.store),ne=0;te.length>ne;)v(te[ne++]);s(s.S+s.F*!R,"Symbol",{"for":function(e){return r(D,e+="")?D[e]:D[e]=S(e)},keyFor:function(e){if(z(e))return _(D,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){H=!0},useSimple:function(){H=!1}}),s(s.S+s.F*!R,"Object",{create:Z,defineProperty:Q,defineProperties:J,getOwnPropertyDescriptor:Y,getOwnPropertyNames:X,getOwnPropertySymbols:ee}),A&&s(s.S+s.F*(!R||l(function(){var e=S();return"[null]"!=U([e])||"{}"!=U({a:e})||"{}"!=U(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!z(e)){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);return t=i[1],"function"==typeof t&&(n=t),!n&&y(t)||(t=function(e,t){return n&&(t=n.call(this,e,t)),z(t)?void 0:t}),i[1]=t,U.apply(A,i)}}}),S[P][T]||e("./_hide")(S[P],T,S[P].valueOf),f(S,"Symbol"),f(Math,"Math",!0),f(i.JSON,"JSON",!0)},{"./_an-object":6,"./_descriptors":15,"./_enum-keys":18,"./_export":19,"./_fails":20,"./_global":22,"./_has":23,"./_hide":24,"./_is-array":30,"./_keyof":38,"./_library":39,"./_meta":40,"./_object-create":41,"./_object-dp":42,"./_object-gopd":44,"./_object-gopn":46,"./_object-gopn-ext":45,"./_object-gops":47,"./_object-keys":50,"./_object-pie":51,"./_property-desc":52,"./_redefine":54,"./_set-to-string-tag":57,"./_shared":59,"./_to-iobject":63,"./_to-primitive":66,"./_uid":67,"./_wks":70,"./_wks-define":68,"./_wks-ext":69}],77:[function(e,t,n){for(var i=e("./es6.array.iterator"),r=e("./_redefine"),o=e("./_global"),s=e("./_hide"),a=e("./_iterators"),u=e("./_wks"),l=u("iterator"),c=u("toStringTag"),f=a.Array,h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],d=0;5>d;d++){var p,v=h[d],_=o[v],g=_&&_.prototype;if(g){g[l]||s(g,l,f),g[c]||s(g,c,v),a[v]=f;for(p in i)g[p]||r(g,p,i[p],!0)}}},{"./_global":22,"./_hide":24,"./_iterators":37,"./_redefine":54,"./_wks":70,"./es6.array.iterator":72}],78:[function(e,t,n){"use strict";var i=e("listen-js"),r=function(){this.initialize()};r.prototype={initialize:function(){i.createTarget(this),this._getOrientationChangeListener=function(){var e=this;return function(){e._onOrientationChange.bind(e)}},window.addEventListener("orientationchange",this._getOrientationChangeListener())},_onOrientationChange:function(){var e;e=window.innerHeight<=window.innerWidth?"landscape":"portrait",this.dispatchEvent("orientationchange",{orientation:e})},getUserAgent:function(){return window.navigator.userAgent},isBrowser:function(e){var t,n=e,i=this.getUserAgent();return e?(Array.isArray(e)&&(n=e.join("|")),n.indexOf("safari")>-1?(t=new RegExp("chrome","i"),!t.test(i)):(t=new RegExp(n,"i"),t.test(i))):!0},isMobile:function(){return this.isBrowser(["Android","webOS","iPhone","iPad","iPod","BlackBerry","IEMobile","Opera Mini"])},isOS:function(e){var t=e;Array.isArray(e)&&(t=e.join("|"));var n=new RegExp(t,"i");return n.test(this.getUserAgent())},destroy:function(){window.removeEventListener("orientationchange",this._getOrientationChangeListener()),i.destroyTarget(this)}},t.exports=new r},{"listen-js":79}],79:[function(e,t,n){"use strict";var i={createTarget:function(e){this._targets=this._targets||[];var t=this._getTargetMap(e);t.target||(e.addEventListener=this._getEventMethod(e,"_addEvent").bind(this),e.removeEventListener=this._getEventMethod(e,"_removeEvent").bind(this),e.dispatchEvent=this._getEventMethod(e,"_dispatchEvent").bind(this),t.target=e,this._targets.push(t))},_getTargetMap:function(e){return this._targets.filter(function(t){return t.target===e})[0]||{}},_addEvent:function(e,t,n,i,r){"boolean"!=typeof i&&(r=i,i=null),i=i||!1;var o=this.getNested(this._getTargetMap(e),t);o||(o=this.setNested(this._getTargetMap(e),t,[]));var s={listener:n,context:r,useCapture:i};-1===o.indexOf(s)&&o.push(s)},_getEventMethod:function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);n.unshift(e),this[t].apply(this,n)}.bind(this)},_removeEvent:function(e,t,n){var i=this.getNested(this._getTargetMap(e),t,[]);i.forEach(function(e,t){e.listener===n&&i.splice(t,1)})},_dispatchEvent:function(e,t,n){var i,r=this._getTargetMap(e)||{};r[t]&&r[t].forEach(function(r){i=this._createEvent(t,n),r.listener.call(r.context||e,i)}.bind(this))},_createEvent:function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n},extend:function(e){var t,n,i=e;for(n=1;n<arguments.length;n++){t=arguments[n];for(var r in t)t.hasOwnProperty(r)&&(i[r]=t[r])}return i},getNested:function(e,t,n){for(var i=t.split("."),r=e,o=0;o<i.length;o++){if(!r[i[o]]){r=n;break}r=r[i[o]]}return r},setNested:function(e,t,n){for(var i=t.split("."),r=e,o=0;o<i.length;o++){var s=o===i.length-1;s?r[i[o]]=n:(r[i[o]]=r[i[o]]||{},r=r[i[o]])}return n},destroyTarget:function(e){var t=this._getTargetMap(e),n=this._targets.indexOf(t);n>-1&&this._targets.splice(n,1)}};t.exports=i},{}],80:[function(e,t,n){(function(e){!function(e){"use strict";function i(){function e(e){t=e}if("function"!=typeof Object.observe||"function"!=typeof Array.observe)return!1;var t=[],n={},i=[];return Object.observe(n,e),Array.observe(i,e),n.id=1,n.id=2,delete n.id,i.push(1,2),i.length=0,Object.deliverChangeRecords(e),5!==t.length?!1:"add"!=t[0].type||"update"!=t[1].type||"delete"!=t[2].type||"splice"!=t[3].type||"splice"!=t[4].type?!1:(Object.unobserve(n,e),Array.unobserve(i,e),!0)}function r(){if("undefined"!=typeof chrome&&chrome.app&&chrome.app.runtime)return!1;if("undefined"!=typeof navigator&&navigator.getDeviceStorage)return!1;try{var e=new Function("","return true;");return e()}catch(t){return!1}}function o(e){return+e===e>>>0&&""!==e}function s(e){return+e}function a(e){return e===Object(e)}function u(e,t){return e===t?0!==e||1/e===1/t:W(e)&&W(t)?!0:e!==e&&t!==t}function l(e){if(void 0===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:case 48:return e;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return t>=97&&122>=t||t>=65&&90>=t?"ident":t>=49&&57>=t?"number":"else"}function c(){}function f(e){function t(){if(!(h>=e.length)){var t=e[h+1];return"inSingleQuote"==d&&"'"==t||"inDoubleQuote"==d&&'"'==t?(h++,i=t,p.append(),!0):void 0}}for(var n,i,r,o,s,a,u,f=[],h=-1,d="beforePath",p={push:function(){void 0!==r&&(f.push(r),r=void 0)},append:function(){void 0===r?r=i:r+=i}};d;)if(h++,n=e[h],"\\"!=n||!t(d)){if(o=l(n),u=Z[d],s=u[o]||u["else"]||"error","error"==s)return;if(d=s[0],a=p[s[1]]||c,i=void 0===s[2]?n:s[2],a(),"afterPath"===d)return f}}function h(e){return J.test(e)}function d(e,t){if(t!==$)throw Error("Use Path.get to retrieve path objects");for(var n=0;n<e.length;n++)this.push(String(e[n]));
H&&this.length&&(this.getValueFrom=this.compiledGetValueFromFn())}function p(e){if(e instanceof d)return e;if(null!=e&&0!=e.length||(e=""),"string"!=typeof e){if(o(e.length))return new d(e,$);e=String(e)}var t=Y[e];if(t)return t;var n=f(e);if(!n)return X;var t=new d(n,$);return Y[e]=t,t}function v(e){return o(e)?"["+e+"]":'["'+e.replace(/"/g,'\\"')+'"]'}function _(t){for(var n=0;te>n&&t.check_();)n++;return R&&(e.dirtyCheckCycleCount=n),n>0}function g(e){for(var t in e)return!1;return!0}function y(e){return g(e.added)&&g(e.removed)&&g(e.changed)}function b(e,t){var n={},i={},r={};for(var o in t){var s=e[o];void 0!==s&&s===t[o]||(o in e?s!==t[o]&&(r[o]=s):i[o]=void 0)}for(var o in e)o in t||(n[o]=e[o]);return Array.isArray(e)&&e.length!==t.length&&(r.length=e.length),{added:n,removed:i,changed:r}}function m(){if(!ne.length)return!1;for(var e=0;e<ne.length;e++)ne[e]();return ne.length=0,!0}function E(){function e(e){t&&t.state_===ae&&!i&&t.check_(e)}var t,n,i=!1,r=!0;return{open:function(n){if(t)throw Error("ObservedObject in use");r||Object.deliverChangeRecords(e),t=n,r=!1},observe:function(t,i){n=t,i?Array.observe(n,e):Object.observe(n,e)},deliver:function(t){i=t,Object.deliverChangeRecords(e),i=!1},close:function(){t=void 0,Object.unobserve(n,e),re.push(this)}}}function k(e,t,n){var i=re.pop()||E();return i.open(e),i.observe(t,n),i}function C(){function e(t,o){t&&(t===i&&(r[o]=!0),a.indexOf(t)<0&&(a.push(t),Object.observe(t,n)),e(Object.getPrototypeOf(t),o))}function t(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.object!==i||r[n.name]||"setPrototype"===n.type)return!1}return!0}function n(n){if(!t(n)){for(var i,r=0;r<s.length;r++)i=s[r],i.state_==ae&&i.iterateObjects_(e);for(var r=0;r<s.length;r++)i=s[r],i.state_==ae&&i.check_()}}var i,r,o=0,s=[],a=[],u={objects:a,get rootObject(){return i},set rootObject(e){i=e,r={}},open:function(t,n){s.push(t),o++,t.iterateObjects_(e)},close:function(e){if(o--,!(o>0)){for(var t=0;t<a.length;t++)Object.unobserve(a[t],n),O.unobservedCount++;s.length=0,a.length=0,i=void 0,r=void 0,oe.push(this),ee===this&&(ee=null)}}};return u}function w(e,t){return ee&&ee.rootObject===t||(ee=oe.pop()||C(),ee.rootObject=t),ee.open(e,t),ee}function O(){this.state_=se,this.callback_=void 0,this.target_=void 0,this.directObserver_=void 0,this.value_=void 0,this.id_=ce++}function j(e){O._allObserversCount++,he&&fe.push(e)}function x(e){O._allObserversCount--}function I(e){O.call(this),this.value_=e,this.oldObject_=void 0}function F(e){if(!Array.isArray(e))throw Error("Provided object is not an Array");I.call(this,e)}function L(e,t){O.call(this),this.object_=e,this.path_=p(t),this.directObserver_=void 0}function S(e){O.call(this),this.reportChangesOnOpen_=e,this.value_=[],this.directObserver_=void 0,this.observed_=[]}function A(e){return e}function U(e,t,n,i){this.callback_=void 0,this.target_=void 0,this.value_=void 0,this.observable_=e,this.getValueFn_=t||A,this.setValueFn_=n||A,this.dontPassThroughSet_=i}function P(e,t,n){for(var i={},r={},o=0;o<t.length;o++){var s=t[o];ve[s.type]?(s.name in n||(n[s.name]=s.oldValue),"update"!=s.type&&("add"!=s.type?s.name in i?(delete i[s.name],delete n[s.name]):r[s.name]=!0:s.name in r?delete r[s.name]:i[s.name]=!0)):(console.error("Unknown changeRecord type: "+s.type),console.error(s))}for(var a in i)i[a]=e[a];for(var a in r)r[a]=void 0;var u={};for(var a in n)if(!(a in i||a in r)){var l=e[a];n[a]!==l&&(u[a]=l)}return{added:i,removed:r,changed:u}}function V(e,t,n){return{index:e,removed:t,addedCount:n}}function T(){}function M(e,t,n,i,r,o){return me.calcSplices(e,t,n,i,r,o)}function D(e,t,n,i){return n>t||e>i?-1:t==n||i==e?0:n>e?i>t?t-n:i-n:t>i?i-e:t-e}function B(e,t,n,i){for(var r=V(t,n,i),o=!1,s=0,a=0;a<e.length;a++){var u=e[a];if(u.index+=s,!o){var l=D(r.index,r.index+r.removed.length,u.index,u.index+u.addedCount);if(l>=0){e.splice(a,1),a--,s-=u.addedCount-u.removed.length,r.addedCount+=u.addedCount-l;var c=r.removed.length+u.removed.length-l;if(r.addedCount||c){var n=u.removed;if(r.index<u.index){var f=r.removed.slice(0,u.index-r.index);Array.prototype.push.apply(f,n),n=f}if(r.index+r.removed.length>u.index+u.addedCount){var h=r.removed.slice(u.index+u.addedCount-r.index);Array.prototype.push.apply(n,h)}r.removed=n,u.index<r.index&&(r.index=u.index)}else o=!0}else if(r.index<u.index){o=!0,e.splice(a,0,r),a++;var d=r.addedCount-r.removed.length;u.index+=d,s+=d}}}o||e.push(r)}function N(e,t){for(var n=[],i=0;i<t.length;i++){var r=t[i];switch(r.type){case"splice":B(n,r.index,r.removed.slice(),r.addedCount);break;case"add":case"update":case"delete":if(!o(r.name))continue;var a=s(r.name);if(0>a)continue;B(n,a,[r.oldValue],1);break;default:console.error("Unexpected record type: "+JSON.stringify(r))}}return n}function K(e,t){var n=[];return N(e,t).forEach(function(t){return 1==t.addedCount&&1==t.removed.length?void(t.removed[0]!==e[t.index]&&n.push(t)):void(n=n.concat(M(e,t.index,t.index+t.addedCount,t.removed,0,t.removed.length)))}),n}var R=e.testingExposeCycleCount,q=i(),H=r(),W=e.Number.isNaN||function(t){return"number"==typeof t&&e.isNaN(t)},G="__proto__"in{}?function(e){return e}:function(e){var t=e.__proto__;if(!t)return e;var n=Object.create(t);return Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}),n},z="[$_a-zA-Z]",Q="[$_a-zA-Z0-9]",J=new RegExp("^"+z+"+"+Q+"*$"),Z={beforePath:{ws:["beforePath"],ident:["inIdent","append"],"[":["beforeElement"],eof:["afterPath"]},inPath:{ws:["inPath"],".":["beforeIdent"],"[":["beforeElement"],eof:["afterPath"]},beforeIdent:{ws:["beforeIdent"],ident:["inIdent","append"]},inIdent:{ident:["inIdent","append"],0:["inIdent","append"],number:["inIdent","append"],ws:["inPath","push"],".":["beforeIdent","push"],"[":["beforeElement","push"],eof:["afterPath","push"]},beforeElement:{ws:["beforeElement"],0:["afterZero","append"],number:["inIndex","append"],"'":["inSingleQuote","append",""],'"':["inDoubleQuote","append",""]},afterZero:{ws:["afterElement","push"],"]":["inPath","push"]},inIndex:{0:["inIndex","append"],number:["inIndex","append"],ws:["afterElement"],"]":["inPath","push"]},inSingleQuote:{"'":["afterElement"],eof:["error"],"else":["inSingleQuote","append"]},inDoubleQuote:{'"':["afterElement"],eof:["error"],"else":["inDoubleQuote","append"]},afterElement:{ws:["afterElement"],"]":["inPath","push"]}},$={},Y={};d.get=p,d.prototype=G({__proto__:[],valid:!0,toString:function(){for(var e="",t=0;t<this.length;t++){var n=this[t];e+=h(n)?t?"."+n:n:v(n)}return e},getValueFrom:function(e,t){for(var n=0;n<this.length;n++){if(null==e)return;e=e[this[n]]}return e},iterateObjects:function(e,t){for(var n=0;n<this.length;n++){if(n&&(e=e[this[n-1]]),!a(e))return;t(e,this[n])}},compiledGetValueFromFn:function(){var e="",t="obj";e+="if (obj != null";for(var n,i=0;i<this.length-1;i++)n=this[i],t+=h(n)?"."+n:v(n),e+=" &&\n "+t+" != null";e+=")\n";var n=this[i];return t+=h(n)?"."+n:v(n),e+=" return "+t+";\nelse\n return undefined;",new Function("obj",e)},setValueFrom:function(e,t){if(!this.length)return!1;for(var n=0;n<this.length-1;n++){if(!a(e))return!1;e=e[this[n]]}return a(e)?(e[this[n]]=t,!0):!1}});var X=new d("",$);X.valid=!1,X.getValueFrom=X.setValueFrom=function(){};var ee,te=1e3,ne=[],ie=q?function(){return function(e){return Promise.resolve().then(e)}}():function(){return function(e){ne.push(e)}}(),re=[],oe=[],se=0,ae=1,ue=2,le=3,ce=1;O.prototype={open:function(e,t){if(this.state_!=se)throw Error("Observer has already been opened.");return j(this),this.callback_=e,this.target_=t,this.connect_(),this.state_=ae,this.value_},close:function(){this.state_==ae&&(x(this),this.disconnect_(),this.value_=void 0,this.callback_=void 0,this.target_=void 0,this.state_=ue)},deliver:function(){this.state_==ae&&_(this)},report_:function(e){try{this.callback_.apply(this.target_,e)}catch(t){O._errorThrownDuringCallback=!0,console.error("Exception caught during observer callback: "+(t.stack||t))}},discardChanges:function(){return this.check_(void 0,!0),this.value_}};var fe,he=!q;O._allObserversCount=0,he&&(fe=[]);var de=!1;e.Platform=e.Platform||{},e.Platform.performMicrotaskCheckpoint=function(){if(!de&&he){de=!0;var t,n,i=0;do{i++,n=fe,fe=[],t=!1;for(var r=0;r<n.length;r++){var o=n[r];o.state_==ae&&(o.check_()&&(t=!0),fe.push(o))}m()&&(t=!0)}while(te>i&&t);R&&(e.dirtyCheckCycleCount=i),de=!1}},he&&(e.Platform.clearObservers=function(){fe=[]}),I.prototype=G({__proto__:O.prototype,arrayObserve:!1,connect_:function(e,t){q?this.directObserver_=k(this,this.value_,this.arrayObserve):this.oldObject_=this.copyObject(this.value_)},copyObject:function(e){var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=e[n];return Array.isArray(e)&&(t.length=e.length),t},check_:function(e,t){var n,i;if(q){if(!e)return!1;i={},n=P(this.value_,e,i)}else i=this.oldObject_,n=b(this.value_,this.oldObject_);return y(n)?!1:(q||(this.oldObject_=this.copyObject(this.value_)),this.report_([n.added||{},n.removed||{},n.changed||{},function(e){return i[e]}]),!0)},disconnect_:function(){q?(this.directObserver_.close(),this.directObserver_=void 0):this.oldObject_=void 0},deliver:function(){this.state_==ae&&(q?this.directObserver_.deliver(!1):_(this))},discardChanges:function(){return this.directObserver_?this.directObserver_.deliver(!0):this.oldObject_=this.copyObject(this.value_),this.value_}}),F.prototype=G({__proto__:I.prototype,arrayObserve:!0,copyObject:function(e){return e.slice()},check_:function(e){var t;if(q){if(!e)return!1;t=K(this.value_,e)}else t=M(this.value_,0,this.value_.length,this.oldObject_,0,this.oldObject_.length);return t&&t.length?(q||(this.oldObject_=this.copyObject(this.value_)),this.report_([t]),!0):!1}}),F.applySplices=function(e,t,n){n.forEach(function(n){for(var i=[n.index,n.removed.length],r=n.index;r<n.index+n.addedCount;)i.push(t[r]),r++;Array.prototype.splice.apply(e,i)})},L.prototype=G({__proto__:O.prototype,get path(){return this.path_},connect_:function(){q&&(this.directObserver_=w(this,this.object_)),this.check_(void 0,!0)},disconnect_:function(){this.value_=void 0,this.directObserver_&&(this.directObserver_.close(this),this.directObserver_=void 0)},iterateObjects_:function(e){this.path_.iterateObjects(this.object_,e)},check_:function(e,t){var n=this.value_;return this.value_=this.path_.getValueFrom(this.object_),t||u(this.value_,n)?!1:(this.report_([this.value_,n,this]),!0)},setValue:function(e){this.path_&&this.path_.setValueFrom(this.object_,e)}});var pe={};S.prototype=G({__proto__:O.prototype,connect_:function(){if(q){for(var e,t=!1,n=0;n<this.observed_.length;n+=2)if(e=this.observed_[n],e!==pe){t=!0;break}t&&(this.directObserver_=w(this,e))}this.check_(void 0,!this.reportChangesOnOpen_)},disconnect_:function(){for(var e=0;e<this.observed_.length;e+=2)this.observed_[e]===pe&&this.observed_[e+1].close();this.observed_.length=0,this.value_.length=0,this.directObserver_&&(this.directObserver_.close(this),this.directObserver_=void 0)},addPath:function(e,t){if(this.state_!=se&&this.state_!=le)throw Error("Cannot add paths once started.");var t=p(t);if(this.observed_.push(e,t),this.reportChangesOnOpen_){var n=this.observed_.length/2-1;this.value_[n]=t.getValueFrom(e)}},addObserver:function(e){if(this.state_!=se&&this.state_!=le)throw Error("Cannot add observers once started.");if(this.observed_.push(pe,e),this.reportChangesOnOpen_){var t=this.observed_.length/2-1;this.value_[t]=e.open(this.deliver,this)}},startReset:function(){if(this.state_!=ae)throw Error("Can only reset while open");this.state_=le,this.disconnect_()},finishReset:function(){if(this.state_!=le)throw Error("Can only finishReset after startReset");return this.state_=ae,this.connect_(),this.value_},iterateObjects_:function(e){for(var t,n=0;n<this.observed_.length;n+=2)t=this.observed_[n],t!==pe&&this.observed_[n+1].iterateObjects(t,e)},check_:function(e,t){for(var n,i=0;i<this.observed_.length;i+=2){var r,o=this.observed_[i],s=this.observed_[i+1];if(o===pe){var a=s;r=this.state_===se?a.open(this.deliver,this):a.discardChanges()}else r=s.getValueFrom(o);t?this.value_[i/2]=r:u(r,this.value_[i/2])||(n=n||[],n[i/2]=this.value_[i/2],this.value_[i/2]=r)}return n?(this.report_([this.value_,n,this.observed_]),!0):!1}}),U.prototype={open:function(e,t){return this.callback_=e,this.target_=t,this.value_=this.getValueFn_(this.observable_.open(this.observedCallback_,this)),this.value_},observedCallback_:function(e){if(e=this.getValueFn_(e),!u(e,this.value_)){var t=this.value_;this.value_=e,this.callback_.call(this.target_,this.value_,t)}},discardChanges:function(){return this.value_=this.getValueFn_(this.observable_.discardChanges()),this.value_},deliver:function(){return this.observable_.deliver()},setValue:function(e){return e=this.setValueFn_(e),!this.dontPassThroughSet_&&this.observable_.setValue?this.observable_.setValue(e):void 0},close:function(){this.observable_&&this.observable_.close(),this.callback_=void 0,this.target_=void 0,this.observable_=void 0,this.value_=void 0,this.getValueFn_=void 0,this.setValueFn_=void 0}};var ve={add:!0,update:!0,"delete":!0},_e=0,ge=1,ye=2,be=3;T.prototype={calcEditDistances:function(e,t,n,i,r,o){for(var s=o-r+1,a=n-t+1,u=new Array(s),l=0;s>l;l++)u[l]=new Array(a),u[l][0]=l;for(var c=0;a>c;c++)u[0][c]=c;for(var l=1;s>l;l++)for(var c=1;a>c;c++)if(this.equals(e[t+c-1],i[r+l-1]))u[l][c]=u[l-1][c-1];else{var f=u[l-1][c]+1,h=u[l][c-1]+1;u[l][c]=h>f?f:h}return u},spliceOperationsFromEditDistances:function(e){for(var t=e.length-1,n=e[0].length-1,i=e[t][n],r=[];t>0||n>0;)if(0!=t)if(0!=n){var o,s=e[t-1][n-1],a=e[t-1][n],u=e[t][n-1];o=u>a?s>a?a:s:s>u?u:s,o==s?(s==i?r.push(_e):(r.push(ge),i=s),t--,n--):o==a?(r.push(be),t--,i=a):(r.push(ye),n--,i=u)}else r.push(be),t--;else r.push(ye),n--;return r.reverse(),r},calcSplices:function(e,t,n,i,r,o){var s=0,a=0,u=Math.min(n-t,o-r);if(0==t&&0==r&&(s=this.sharedPrefix(e,i,u)),n==e.length&&o==i.length&&(a=this.sharedSuffix(e,i,u-s)),t+=s,r+=s,n-=a,o-=a,n-t==0&&o-r==0)return[];if(t==n){for(var l=V(t,[],0);o>r;)l.removed.push(i[r++]);return[l]}if(r==o)return[V(t,[],n-t)];for(var c=this.spliceOperationsFromEditDistances(this.calcEditDistances(e,t,n,i,r,o)),l=void 0,f=[],h=t,d=r,p=0;p<c.length;p++)switch(c[p]){case _e:l&&(f.push(l),l=void 0),h++,d++;break;case ge:l||(l=V(h,[],0)),l.addedCount++,h++,l.removed.push(i[d]),d++;break;case ye:l||(l=V(h,[],0)),l.addedCount++,h++;break;case be:l||(l=V(h,[],0)),l.removed.push(i[d]),d++}return l&&f.push(l),f},sharedPrefix:function(e,t,n){for(var i=0;n>i;i++)if(!this.equals(e[i],t[i]))return i;return n},sharedSuffix:function(e,t,n){for(var i=e.length,r=t.length,o=0;n>o&&this.equals(e[--i],t[--r]);)o++;return o},calculateSplices:function(e,t){return this.calcSplices(e,0,e.length,t,0,t.length)},equals:function(e,t){return e===t}};var me=new T,Ee=e;"undefined"!=typeof n&&("undefined"!=typeof t&&t.exports&&(Ee=n=t.exports),Ee=n),Ee.Observer=O,Ee.Observer.runEOM_=ie,Ee.Observer.observerSentinel_=pe,Ee.Observer.hasObjectObserve=q,Ee.ArrayObserver=F,Ee.ArrayObserver.calculateSplices=function(e,t){return me.calculateSplices(e,t)},Ee.ArraySplice=T,Ee.ObjectObserver=I,Ee.PathObserver=L,Ee.CompoundObserver=S,Ee.Path=d,Ee.ObserverTransform=U}("undefined"!=typeof e&&e&&"undefined"!=typeof t&&t?e:this||window)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],81:[function(t,n,i){(function(){function t(e){function t(t,n,i,r,o,s){for(;o>=0&&s>o;o+=e){var a=r?r[o]:o;i=n(i,t[a],a,t)}return i}return function(n,i,r,o){i=k(i,o,4);var s=!F(n)&&E.keys(n),a=(s||n).length,u=e>0?0:a-1;return arguments.length<3&&(r=n[s?s[u]:u],u+=e),t(n,i,r,s,u,a)}}function r(e){return function(t,n,i){n=C(n,i);for(var r=I(t),o=e>0?0:r-1;o>=0&&r>o;o+=e)if(n(t[o],o,t))return o;return-1}}function o(e,t,n){return function(i,r,o){var s=0,a=I(i);if("number"==typeof o)e>0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return o=n(i,r),i[o]===r?o:-1;if(r!==r)return o=t(d.call(i,s,a),E.isNaN),o>=0?o+s:-1;for(o=e>0?s:a-1;o>=0&&a>o;o+=e)if(i[o]===r)return o;return-1}}function s(e,t){var n=P.length,i=e.constructor,r=E.isFunction(i)&&i.prototype||c,o="constructor";for(E.has(e,o)&&!E.contains(t,o)&&t.push(o);n--;)o=P[n],o in e&&e[o]!==r[o]&&!E.contains(t,o)&&t.push(o)}var a=this,u=a._,l=Array.prototype,c=Object.prototype,f=Function.prototype,h=l.push,d=l.slice,p=c.toString,v=c.hasOwnProperty,_=Array.isArray,g=Object.keys,y=f.bind,b=Object.create,m=function(){},E=function(e){return e instanceof E?e:this instanceof E?void(this._wrapped=e):new E(e)};"undefined"!=typeof i?("undefined"!=typeof n&&n.exports&&(i=n.exports=E),i._=E):a._=E,E.VERSION="1.8.3";var k=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)};case 4:return function(n,i,r,o){return e.call(t,n,i,r,o)}}return function(){return e.apply(t,arguments)}},C=function(e,t,n){return null==e?E.identity:E.isFunction(e)?k(e,t,n):E.isObject(e)?E.matcher(e):E.property(e)};E.iteratee=function(e,t){return C(e,t,1/0)};var w=function(e,t){return function(n){var i=arguments.length;if(2>i||null==n)return n;for(var r=1;i>r;r++)for(var o=arguments[r],s=e(o),a=s.length,u=0;a>u;u++){var l=s[u];t&&void 0!==n[l]||(n[l]=o[l])}return n}},O=function(e){if(!E.isObject(e))return{};if(b)return b(e);m.prototype=e;var t=new m;return m.prototype=null,t},j=function(e){return function(t){return null==t?void 0:t[e]}},x=Math.pow(2,53)-1,I=j("length"),F=function(e){var t=I(e);return"number"==typeof t&&t>=0&&x>=t};E.each=E.forEach=function(e,t,n){t=k(t,n);var i,r;if(F(e))for(i=0,r=e.length;r>i;i++)t(e[i],i,e);else{var o=E.keys(e);for(i=0,r=o.length;r>i;i++)t(e[o[i]],o[i],e)}return e},E.map=E.collect=function(e,t,n){t=C(t,n);for(var i=!F(e)&&E.keys(e),r=(i||e).length,o=Array(r),s=0;r>s;s++){var a=i?i[s]:s;o[s]=t(e[a],a,e)}return o},E.reduce=E.foldl=E.inject=t(1),E.reduceRight=E.foldr=t(-1),E.find=E.detect=function(e,t,n){var i;return i=F(e)?E.findIndex(e,t,n):E.findKey(e,t,n),void 0!==i&&-1!==i?e[i]:void 0},E.filter=E.select=function(e,t,n){var i=[];return t=C(t,n),E.each(e,function(e,n,r){t(e,n,r)&&i.push(e)}),i},E.reject=function(e,t,n){return E.filter(e,E.negate(C(t)),n)},E.every=E.all=function(e,t,n){t=C(t,n);for(var i=!F(e)&&E.keys(e),r=(i||e).length,o=0;r>o;o++){var s=i?i[o]:o;if(!t(e[s],s,e))return!1}return!0},E.some=E.any=function(e,t,n){t=C(t,n);for(var i=!F(e)&&E.keys(e),r=(i||e).length,o=0;r>o;o++){var s=i?i[o]:o;if(t(e[s],s,e))return!0}return!1},E.contains=E.includes=E.include=function(e,t,n,i){return F(e)||(e=E.values(e)),("number"!=typeof n||i)&&(n=0),E.indexOf(e,t,n)>=0},E.invoke=function(e,t){var n=d.call(arguments,2),i=E.isFunction(t);return E.map(e,function(e){var r=i?t:e[t];return null==r?r:r.apply(e,n)})},E.pluck=function(e,t){return E.map(e,E.property(t))},E.where=function(e,t){return E.filter(e,E.matcher(t))},E.findWhere=function(e,t){return E.find(e,E.matcher(t))},E.max=function(e,t,n){var i,r,o=-(1/0),s=-(1/0);if(null==t&&null!=e){e=F(e)?e:E.values(e);for(var a=0,u=e.length;u>a;a++)i=e[a],i>o&&(o=i)}else t=C(t,n),E.each(e,function(e,n,i){r=t(e,n,i),(r>s||r===-(1/0)&&o===-(1/0))&&(o=e,s=r)});return o},E.min=function(e,t,n){var i,r,o=1/0,s=1/0;if(null==t&&null!=e){e=F(e)?e:E.values(e);for(var a=0,u=e.length;u>a;a++)i=e[a],o>i&&(o=i)}else t=C(t,n),E.each(e,function(e,n,i){r=t(e,n,i),(s>r||r===1/0&&o===1/0)&&(o=e,s=r)});return o},E.shuffle=function(e){for(var t,n=F(e)?e:E.values(e),i=n.length,r=Array(i),o=0;i>o;o++)t=E.random(0,o),t!==o&&(r[o]=r[t]),r[t]=n[o];return r},E.sample=function(e,t,n){return null==t||n?(F(e)||(e=E.values(e)),e[E.random(e.length-1)]):E.shuffle(e).slice(0,Math.max(0,t))},E.sortBy=function(e,t,n){return t=C(t,n),E.pluck(E.map(e,function(e,n,i){return{value:e,index:n,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(i>n||void 0===i)return-1}return e.index-t.index}),"value")};var L=function(e){return function(t,n,i){var r={};return n=C(n,i),E.each(t,function(i,o){var s=n(i,o,t);e(r,i,s)}),r}};E.groupBy=L(function(e,t,n){E.has(e,n)?e[n].push(t):e[n]=[t]}),E.indexBy=L(function(e,t,n){e[n]=t}),E.countBy=L(function(e,t,n){E.has(e,n)?e[n]++:e[n]=1}),E.toArray=function(e){return e?E.isArray(e)?d.call(e):F(e)?E.map(e,E.identity):E.values(e):[]},E.size=function(e){return null==e?0:F(e)?e.length:E.keys(e).length},E.partition=function(e,t,n){t=C(t,n);var i=[],r=[];return E.each(e,function(e,n,o){(t(e,n,o)?i:r).push(e)}),[i,r]},E.first=E.head=E.take=function(e,t,n){return null!=e?null==t||n?e[0]:E.initial(e,e.length-t):void 0},E.initial=function(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},E.last=function(e,t,n){return null!=e?null==t||n?e[e.length-1]:E.rest(e,Math.max(0,e.length-t)):void 0},E.rest=E.tail=E.drop=function(e,t,n){return d.call(e,null==t||n?1:t)},E.compact=function(e){return E.filter(e,E.identity)};var S=function(e,t,n,i){for(var r=[],o=0,s=i||0,a=I(e);a>s;s++){var u=e[s];if(F(u)&&(E.isArray(u)||E.isArguments(u))){t||(u=S(u,t,n));var l=0,c=u.length;for(r.length+=c;c>l;)r[o++]=u[l++]}else n||(r[o++]=u)}return r};E.flatten=function(e,t){return S(e,t,!1)},E.without=function(e){return E.difference(e,d.call(arguments,1))},E.uniq=E.unique=function(e,t,n,i){E.isBoolean(t)||(i=n,n=t,t=!1),null!=n&&(n=C(n,i));for(var r=[],o=[],s=0,a=I(e);a>s;s++){var u=e[s],l=n?n(u,s,e):u;t?(s&&o===l||r.push(u),o=l):n?E.contains(o,l)||(o.push(l),r.push(u)):E.contains(r,u)||r.push(u)}return r},E.union=function(){return E.uniq(S(arguments,!0,!0))},E.intersection=function(e){for(var t=[],n=arguments.length,i=0,r=I(e);r>i;i++){var o=e[i];if(!E.contains(t,o)){for(var s=1;n>s&&E.contains(arguments[s],o);s++);s===n&&t.push(o)}}return t},E.difference=function(e){var t=S(arguments,!0,!0,1);return E.filter(e,function(e){return!E.contains(t,e)})},E.zip=function(){return E.unzip(arguments)},E.unzip=function(e){for(var t=e&&E.max(e,I).length||0,n=Array(t),i=0;t>i;i++)n[i]=E.pluck(e,i);return n},E.object=function(e,t){for(var n={},i=0,r=I(e);r>i;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},E.findIndex=r(1),E.findLastIndex=r(-1),E.sortedIndex=function(e,t,n,i){n=C(n,i,1);for(var r=n(t),o=0,s=I(e);s>o;){var a=Math.floor((o+s)/2);n(e[a])<r?o=a+1:s=a}return o},E.indexOf=o(1,E.findIndex,E.sortedIndex),E.lastIndexOf=o(-1,E.findLastIndex),E.range=function(e,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;i>o;o++,e+=n)r[o]=e;return r};var A=function(e,t,n,i,r){if(!(i instanceof t))return e.apply(n,r);var o=O(e.prototype),s=e.apply(o,r);return E.isObject(s)?s:o};E.bind=function(e,t){if(y&&e.bind===y)return y.apply(e,d.call(arguments,1));if(!E.isFunction(e))throw new TypeError("Bind must be called on a function");var n=d.call(arguments,2),i=function(){return A(e,i,t,this,n.concat(d.call(arguments)))};return i},E.partial=function(e){var t=d.call(arguments,1),n=function(){for(var i=0,r=t.length,o=Array(r),s=0;r>s;s++)o[s]=t[s]===E?arguments[i++]:t[s];for(;i<arguments.length;)o.push(arguments[i++]);return A(e,n,this,this,o)};return n},E.bindAll=function(e){var t,n,i=arguments.length;if(1>=i)throw new Error("bindAll must be passed function names");for(t=1;i>t;t++)n=arguments[t],e[n]=E.bind(e[n],e);return e},E.memoize=function(e,t){var n=function(i){var r=n.cache,o=""+(t?t.apply(this,arguments):i);return E.has(r,o)||(r[o]=e.apply(this,arguments)),r[o]};return n.cache={},n},E.delay=function(e,t){var n=d.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},E.defer=E.partial(E.delay,E,1),E.throttle=function(e,t,n){var i,r,o,s=null,a=0;n||(n={});var u=function(){a=n.leading===!1?0:E.now(),s=null,o=e.apply(i,r),s||(i=r=null)};return function(){var l=E.now();a||n.leading!==!1||(a=l);var c=t-(l-a);return i=this,r=arguments,0>=c||c>t?(s&&(clearTimeout(s),s=null),a=l,o=e.apply(i,r),s||(i=r=null)):s||n.trailing===!1||(s=setTimeout(u,c)),o}},E.debounce=function(e,t,n){var i,r,o,s,a,u=function(){var l=E.now()-s;t>l&&l>=0?i=setTimeout(u,t-l):(i=null,n||(a=e.apply(o,r),i||(o=r=null)))};return function(){o=this,r=arguments,s=E.now();var l=n&&!i;return i||(i=setTimeout(u,t)),l&&(a=e.apply(o,r),o=r=null),a}},E.wrap=function(e,t){return E.partial(t,e)},E.negate=function(e){return function(){return!e.apply(this,arguments)}},E.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}},E.after=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}},E.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=null),n}},E.once=E.partial(E.before,2);var U=!{toString:null}.propertyIsEnumerable("toString"),P=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];E.keys=function(e){if(!E.isObject(e))return[];if(g)return g(e);var t=[];for(var n in e)E.has(e,n)&&t.push(n);return U&&s(e,t),t},E.allKeys=function(e){if(!E.isObject(e))return[];var t=[];for(var n in e)t.push(n);return U&&s(e,t),t},E.values=function(e){for(var t=E.keys(e),n=t.length,i=Array(n),r=0;n>r;r++)i[r]=e[t[r]];return i},E.mapObject=function(e,t,n){t=C(t,n);for(var i,r=E.keys(e),o=r.length,s={},a=0;o>a;a++)i=r[a],s[i]=t(e[i],i,e);return s},E.pairs=function(e){for(var t=E.keys(e),n=t.length,i=Array(n),r=0;n>r;r++)i[r]=[t[r],e[t[r]]];return i},E.invert=function(e){for(var t={},n=E.keys(e),i=0,r=n.length;r>i;i++)t[e[n[i]]]=n[i];return t},E.functions=E.methods=function(e){var t=[];for(var n in e)E.isFunction(e[n])&&t.push(n);return t.sort()},E.extend=w(E.allKeys),E.extendOwn=E.assign=w(E.keys),E.findKey=function(e,t,n){t=C(t,n);for(var i,r=E.keys(e),o=0,s=r.length;s>o;o++)if(i=r[o],t(e[i],i,e))return i},E.pick=function(e,t,n){var i,r,o={},s=e;if(null==s)return o;E.isFunction(t)?(r=E.allKeys(s),i=k(t,n)):(r=S(arguments,!1,!1,1),i=function(e,t,n){return t in n},s=Object(s));for(var a=0,u=r.length;u>a;a++){var l=r[a],c=s[l];i(c,l,s)&&(o[l]=c)}return o},E.omit=function(e,t,n){if(E.isFunction(t))t=E.negate(t);else{var i=E.map(S(arguments,!1,!1,1),String);t=function(e,t){return!E.contains(i,t)}}return E.pick(e,t,n)},E.defaults=w(E.allKeys,!0),E.create=function(e,t){var n=O(e);return t&&E.extendOwn(n,t),n},E.clone=function(e){return E.isObject(e)?E.isArray(e)?e.slice():E.extend({},e):e},E.tap=function(e,t){return t(e),e},E.isMatch=function(e,t){var n=E.keys(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;i>o;o++){var s=n[o];if(t[s]!==r[s]||!(s in r))return!1}return!0};var V=function(e,t,n,i){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;e instanceof E&&(e=e._wrapped),t instanceof E&&(t=t._wrapped);var r=p.call(e);if(r!==p.call(t))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}var o="[object Array]"===r;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,a=t.constructor;if(s!==a&&!(E.isFunction(s)&&s instanceof s&&E.isFunction(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],i=i||[];for(var u=n.length;u--;)if(n[u]===e)return i[u]===t;if(n.push(e),i.push(t),o){if(u=e.length,u!==t.length)return!1;for(;u--;)if(!V(e[u],t[u],n,i))return!1}else{var l,c=E.keys(e);if(u=c.length,E.keys(t).length!==u)return!1;for(;u--;)if(l=c[u],!E.has(t,l)||!V(e[l],t[l],n,i))return!1}return n.pop(),i.pop(),!0};E.isEqual=function(e,t){return V(e,t)},E.isEmpty=function(e){return null==e?!0:F(e)&&(E.isArray(e)||E.isString(e)||E.isArguments(e))?0===e.length:0===E.keys(e).length},E.isElement=function(e){return!(!e||1!==e.nodeType)},E.isArray=_||function(e){return"[object Array]"===p.call(e)},E.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},E.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){E["is"+e]=function(t){return p.call(t)==="[object "+e+"]"}}),E.isArguments(arguments)||(E.isArguments=function(e){return E.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(E.isFunction=function(e){return"function"==typeof e||!1}),E.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},E.isNaN=function(e){return E.isNumber(e)&&e!==+e},E.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"===p.call(e)},E.isNull=function(e){return null===e},E.isUndefined=function(e){return void 0===e},E.has=function(e,t){return null!=e&&v.call(e,t)},E.noConflict=function(){return a._=u,this},E.identity=function(e){return e},E.constant=function(e){return function(){return e}},E.noop=function(){},E.property=j,E.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},E.matcher=E.matches=function(e){return e=E.extendOwn({},e),function(t){return E.isMatch(t,e)}},E.times=function(e,t,n){var i=Array(Math.max(0,e));t=k(t,n,1);for(var r=0;e>r;r++)i[r]=t(r);return i},E.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},E.now=Date.now||function(){return(new Date).getTime()};var T={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},M=E.invert(T),D=function(e){var t=function(t){return e[t]},n="(?:"+E.keys(e).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(r,t):e}};E.escape=D(T),E.unescape=D(M),E.result=function(e,t,n){var i=null==e?void 0:e[t];return void 0===i&&(i=n),E.isFunction(i)?i.call(e):i};var B=0;E.uniqueId=function(e){var t=++B+"";return e?e+t:t},E.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var N=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},R=/\\|'|\r|\n|\u2028|\u2029/g,q=function(e){return"\\"+K[e]};E.template=function(e,t,n){!t&&n&&(t=n),t=E.defaults({},t,E.templateSettings);var i=RegExp([(t.escape||N).source,(t.interpolate||N).source,(t.evaluate||N).source].join("|")+"|$","g"),r=0,o="__p+='";e.replace(i,function(t,n,i,s,a){return o+=e.slice(r,a).replace(R,q),r=a+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),t}),o+="';\n",t.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(t.variable||"obj","_",o)}catch(a){throw a.source=o,a}var u=function(e){return s.call(this,e,E)},l=t.variable||"obj";return u.source="function("+l+"){\n"+o+"}",u},E.chain=function(e){var t=E(e);return t._chain=!0,t};var H=function(e,t){return e._chain?E(t).chain():t};E.mixin=function(e){E.each(E.functions(e),function(t){var n=E[t]=e[t];E.prototype[t]=function(){var e=[this._wrapped];return h.apply(e,arguments),H(this,n.apply(E,e))}})},E.mixin(E),E.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=l[e];E.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],H(this,n)}}),E.each(["concat","join","slice"],function(e){var t=l[e];E.prototype[e]=function(){return H(this,t.apply(this._wrapped,arguments))}}),E.prototype.value=function(){return this._wrapped},E.prototype.valueOf=E.prototype.toJSON=E.prototype.value,E.prototype.toString=function(){return""+this._wrapped},"function"==typeof e&&e.amd&&e("underscore",[],function(){return E})}).call(this)},{}],82:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function p(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:p(r,t,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=e("underscore"),c=i(l),f=e("./form-element"),h=i(f),d=function(e){function t(e){r(this,t),e=c["default"].extend({el:null,onChecked:null,onUnchecked:null,containerClass:"ui-checkbox",inputClass:"ui-checkbox-input",checkedClass:"ui-checkbox-checked",disabledClass:"ui-checkbox-disabled",value:null},e);var n=o(this,Object.getPrototypeOf(t).call(this,e));return"input"!==e.el.tagName.toLowerCase()&&console.warn("checkbox error: element passed in instantiation was not an input element"),n.el=e.el,n.options=e,n.setup(),n}return s(t,e),a(t,[{key:"setup",value:function(){var e=this.getFormElement();e.classList.add(this.options.inputClass),this._container=this._buildUIElement(this.el),this.isInitChecked=this.options.value||e.checked,this.isInitChecked&&this.check(),this.isInitDisabled=e.disabled,this.isInitDisabled&&this._container.classList.add(this.options.disabledClass),this.addEventListener(this.getUIElement(),"click","_onUIElementClick",this,!0),this.addEventListener(e,"click","_onFormElementClick",this)}},{key:"_onFormElementClick",value:function(e){e.target!==e.currentTarget||e.target.disabled||(this.getUIElement().classList.contains(this.options.checkedClass)?this.uncheck():this.check())}},{key:"_onUIElementClick",value:function(e){var t=this.getFormElement();!t.disabled&&e.target===e.currentTarget&&e.target.classList.contains(this.options.containerClass)&&(e.preventDefault(),this.getUIElement().classList.contains(this.options.checkedClass)?this.uncheck():this.check())}},{key:"_buildUIElement",value:function(e){var t=e.parentNode,n=document.createElement("div");return n.classList.add(this.options.containerClass),t.replaceChild(n,e),n.appendChild(e),n}},{key:"check",value:function(){var e=this.getFormElement(),t=this.getUIElement();e.checked||(e.checked=!0),t.classList.add(this.options.checkedClass);var n=this.getValue();this.options.onChecked&&this.options.onChecked(n,e,t),this.options.onChange&&this.options.onChange(!0,e,t)}},{key:"uncheck",value:function(){var e=this.getFormElement(),t=this.getUIElement();e.checked&&(e.checked=!1),t.classList.remove(this.options.checkedClass),this.options.onUnchecked&&this.options.onUnchecked("",e,t),this.options.onChange&&this.options.onChange(!1,e,t)}},{key:"enable",value:function(){this.getFormElement().disabled=!1,this.getUIElement().classList.remove(this.options.disabledClass)}},{key:"disable",value:function(){this.getFormElement().disabled=!0,this.getUIElement().classList.add(this.options.disabledClass)}},{key:"getFormElement",value:function(){return this.el}},{key:"getUIElement",value:function(){return this._container}},{key:"getElementKey",value:function(){return"checkbox"}},{key:"clear",value:function(){this.uncheck()}},{key:"getValue",value:function(){var e=this.getFormElement();return e.checked?e.value:""}},{key:"setValue",value:function(e){this.getFormElement().value=e}},{key:"destroy",value:function(){var e=this.getUIElement(),n=this.getFormElement();this.removeEventListener(e,"click","_onUIElementClick",this,!0),this.removeEventListener(n,"click","_onFormElementClick",this),e.parentNode.replaceChild(n,e),this.isInitChecked&&(n.checked=!0),this.isInitDisabled&&(n.disabled=!0),u(Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h["default"]);t.exports=d},{"./form-element":86,underscore:81}],83:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=e("underscore"),l=i(u),c=e("./form-element-group"),f=i(c),h=function(e){function t(e){r(this,t),e=l["default"].extend({inputs:[],onChange:null,containerClass:"ui-checkbox",inputClass:"ui-checkbox-input",selectedClass:"ui-checkbox-selected",disabledClass:"ui-checkbox-disabled",value:null},e);var n=o(this,Object.getPrototypeOf(t).call(this,e));return n.options=e,n}return s(t,e),a(t,[{key:"_onFormElementClick",value:function(e,t){t.classList.contains(this.options.selectedClass)?(t.classList.remove(this.options.selectedClass),e.checked=!1):(t.classList.add(this.options.selectedClass),e.checked=!0),this.triggerChange(e,t)}},{key:"_onUIElementClick",value:function(e,t){t.classList.contains(this.options.selectedClass)?(e.checked=!1,t.classList.remove(this.options.selectedClass)):(e.checked=!0,t.classList.add(this.options.selectedClass)),this.triggerChange(e,t)}},{key:"select",value:function(e){var t=this.getFormElement(e),n=this.getUIElement(e);t.checked||(t.checked=!0,n.classList.add(this.options.selectedClass),this.triggerChange(t,n))}},{key:"getElementKey",value:function(){return"checkboxes"}}]),t}(f["default"]);t.exports=h},{"./form-element-group":85,underscore:81}],84:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function _(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:_(r,t,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=e("underscore"),c=i(l),f=e("./form-element"),h=i(f),d=e("device-manager"),p=i(d),v=function(e){function t(e){r(this,t),e=c["default"].extend({el:null,onChange:null,autoSetup:!0,onFocus:null,onBlur:null,customWrapperClass:"dropdown-wrapper",containerClass:"dropdown-container",optionsContainerClass:"dropdown-option-container",optionsContainerActiveClass:"dropdown-option-container-active",optionsClass:"dropdown-option",optionsHighlightedClass:"dropdown-option-highlighted",optionsSelectedClass:"dropdown-option-selected",selectedValueContainerClass:"dropdown-value-container",selectedValueContainerActiveClass:"dropdown-value-container-active",disabledClass:"dropdown-disabled"},e);var n=o(this,Object.getPrototypeOf(t).call(this,e));return n.options=e,n._keyMap={38:"up",40:"down",27:"esc",32:"space"},n.options.autoSetup&&n.setup(),n}return s(t,e),a(t,[{key:"setup",value:function(){var e=this.options.el,t=e.querySelectorAll("option[selected]")[0];this.addEventListener(e,"change","_onSelectChange",this),this._wrapperEl=this._buildWrapperEl(e),this._uiEl=this._buildUIElement(),this._wrapperEl.appendChild(this._uiEl),this._bindUIElementEvents(),t&&this._setUISelectedValue(t.value),this.getFormElement().disabled&&this.disable()}},{key:"_buildWrapperEl",value:function(e){var t=e.parentNode,n=document.createElement("div");return n.classList.add(this.options.customWrapperClass),t.replaceChild(n,e),n.appendChild(e),n}},{key:"_buildUIElement",value:function(){var e=this.options,t=e.el,n=document.createElement("div");return this._origTabIndex=t.tabIndex,n.classList.add(this.options.containerClass),n.innerHTML=this._buildSelectedValueHtml()+this._buildOptionsHtml(),p["default"].isMobile()||(n.tabIndex=this._origTabIndex||0,t.tabIndex=-1),n}},{key:"_setUISelectedValue",value:function(e){var t=this.getUIElement().getElementsByClassName(this.options.optionsContainerClass)[0],n=t.getElementsByClassName(this.options.optionsSelectedClass)[0],i=t.querySelectorAll("."+this.options.optionsClass+'[data-value="'+e+'"]')[0],r=this.options.optionsSelectedClass,o=this.getUIElement().getElementsByClassName(this.options.selectedValueContainerClass)[0],s=i?i.textContent:"";o.setAttribute("data-value",e),o.innerHTML=s,n&&n.classList.remove(r),i&&i.classList.add(r)}},{key:"onKeyStrokeUIElement",value:function(e){var t=this.options,n=this.options.optionsHighlightedClass,i=this.getUIElement(),r=i.getElementsByClassName(t.optionsContainerClass)[0],o=r.getElementsByClassName(t.optionsSelectedClass)[0],s=r.getElementsByClassName(n)[0]||o,a=this._keyMap[e.keyCode];if(!a)return!1;if("up"!==a&&"down"!==a||this.isOptionsContainerActive())if("up"===a)this._onKeyStrokeUp(s);else if("down"===a)this._onKeyStrokeDown(s);else{if(!this.isOptionsContainerActive())return!1;"esc"===a?this.hideOptionsContainer():"space"===a&&(this.setValue(s.dataset.value),this.hideOptionsContainer())}else this.showOptionsContainer()}},{key:"_onKeyStrokeUp",value:function(e){var t=this.options.optionsHighlightedClass,n=e.previousSibling;e.classList.remove(t),n||(n=this.getUIElement().getElementsByClassName(this.options.optionsContainerClass)[0].lastChild),n.classList.add(t)}},{key:"_onKeyStrokeDown",value:function(e){var t=this.options.optionsHighlightedClass,n=e.nextSibling;e.classList.remove(t),n||(n=this.getUIElement().getElementsByClassName(this.options.optionsContainerClass)[0].firstChild),n.classList.add(t)}},{key:"_onFocusFormElement",value:function(e){this.options.onFocus&&this.options.onFocus(e)}},{key:"_onBlurFormElement",value:function(e){this.options.onBlur&&this.options.onBlur(e)}},{key:"_onFocusUIElement",value:function(e){p["default"].isMobile()||(this.addEventListener(window,"keydown","_onWindowKeyup",this,!1),this.addEventListener(window,"keyup","_onWindowKeyup",this,!1),this.addEventListener(this.getUIElement(),"keyup","onKeyStrokeUIElement",this)),this.options.onFocus&&this.options.onFocus(e)}},{key:"_onWindowKeyup",value:function(e){this._keyMap[e.keyCode]&&e.preventDefault()}},{key:"_onBlurUIElement",value:function(e){p["default"].isMobile()||(this.removeEventListener(this.getUIElement(),"keyup","onKeyStrokeUIElement",this),this.removeEventListener(window,"keydown","_onWindowKeyup",this,!1),this.removeEventListener(window,"keyup","_onWindowKeyup",this,!1)),this.options.onBlur&&this.options.onBlur(e)}},{key:"_onMouseEnterUIElement",value:function(e){e.currentTarget.classList.add(this.options.optionsHighlightedClass)}},{key:"_onMouseLeaveUIElement",value:function(e){e.currentTarget.classList.remove(this.options.optionsHighlightedClass)}},{key:"_bindUIElementEvents",value:function(){var e=this.getUIElement(),t=e.getElementsByClassName(this.options.selectedValueContainerClass)[0],n=this.getFormElement();this.addEventListener(e,"focus","_onFocusUIElement",this),this.addEventListener(e,"blur","_onBlurUIElement",this),this.addEventListener(n,"focus","_onFocusFormElement",this),this.addEventListener(n,"blur","_onBlurFormElement",this),this.addEventListener(t,"click","_onClickUIValueContainer",this)}},{key:"_unbindUIElementEvents",value:function(){var e=this.getUIElement(),t=e.getElementsByClassName(this.options.selectedValueContainerClass)[0],n=this.getFormElement();this.removeEventListener(e,"focus","_onFocusUIElement",this),this.removeEventListener(e,"blur","_onBlurUIElement",this),this.removeEventListener(n,"focus","_onFocusFormElement",this),this.removeEventListener(n,"blur","_onBlurFormElement",this),this.removeEventListener(t,"click","_onClickUIValueContainer",this)}},{key:"bindUIOptionEvents",value:function(){var e,t=this.getUIElement().getElementsByClassName(this.options.optionsClass),n=t.length;for(e=0;n>e;e++){var i=t[e];this.addEventListener(i,"click","_onClickUIOption",this),this.addEventListener(i,"mouseenter","_onMouseEnterUIElement",this),this.addEventListener(i,"mouseleave","_onMouseLeaveUIElement",this)}}},{key:"unbindUIOptionEvents",value:function(){var e,t=this.getUIElement().getElementsByClassName(this.options.optionsClass),n=t.length;for(e=0;n>e;e++){var i=t[e];this.removeEventListener(i,"click","_onClickUIOption",this),this.removeEventListener(i,"mouseenter","_onMouseEnterUIElement",this),this.removeEventListener(i,"mouseleave","_onMouseLeaveUIElement",this)}}},{key:"_onClickUIValueContainer",value:function(){return this.getFormElement().disabled?!1:void(this.isOptionsContainerActive()?this.hideOptionsContainer():this.showOptionsContainer())}},{key:"showOptionsContainer",value:function(){var e=this.getUIElement(),t=this.options,n=this.getUIOptionByDataValue(this.getValue())||e.getElementsByClassName(t.optionsClass)[0];e.classList.add(t.optionsContainerActiveClass),this.bindUIOptionEvents(),n&&n.classList.add(this.options.optionsSelectedClass),this.addEventListener(document.body,"click","onClickDocument",this)}},{key:"hideOptionsContainer",value:function(){p["default"].isBrowser("safari")&&this.redrawOptionsContainer(),this.getUIElement().classList.remove(this.options.optionsContainerActiveClass),this.unbindUIOptionEvents(),this.removeEventListener(document.body,"click","onClickDocument",this)}},{key:"redrawOptionsContainer",value:function(){var e=this.getUIElement().getElementsByClassName(this.options.optionsContainerClass)[0],t=e.style.overflow;e.style.overflow="hidden",e.offsetHeight,t?e.style.overflow=t:e.style.removeProperty("overflow")}},{key:"isOptionsContainerActive",value:function(){return this.getUIElement().classList.contains(this.options.optionsContainerActiveClass)}},{key:"onClickDocument",value:function(e){var t=this.getClosestAncestorElementByClassName(e.target,this.options.containerClass);t&&t===this.getUIElement()||this.hideOptionsContainer()}},{key:"_onClickUIOption",value:function(e){var t=e.currentTarget,n=t.dataset.value;this.getValue()!==n&&(this.setValue(n),this._setUISelectedValue(n)),this.hideOptionsContainer()}},{key:"_buildSelectedValueHtml",value:function(){return'<div class="'+this.options.selectedValueContainerClass+'" data-value=""></div>'}},{key:"_buildOptionsHtml",value:function(){var e,t,n=this.options,i=document.createElement("div"),r='<div class="'+n.optionsContainerClass+'">',o=n.el.getElementsByTagName("option"),s=o.length,a="";for(i.classList.add(n.optionsContainerClass),e=0;s>e;e++)t=o[e],a=t.hasAttribute("selected")?n.optionsSelectedClass:"",r+='<div class="'+n.optionsClass+" "+a+'" data-value="'+t.value+'">'+t.textContent+"</div>";return r+="</div>"}},{key:"_onSelectChange",value:function(e){var t=this.getValue();this._setUISelectedValue(t),this.options.onChange&&this.options.onChange(t,this.getFormElement(),this.getUIElement(),e)}},{key:"getUIElement",value:function(){return this._uiEl}},{key:"getOptionByDataValue",value:function(e){return this.options.el.querySelectorAll('option[value="'+e+'"]')[0]}},{key:"getUIOptionByDataValue",value:function(e){return this.getUIElement().querySelectorAll("."+this.options.optionsClass+'[data-value="'+e+'"]')[0]}},{key:"getOptionByDisplayValue",value:function(e){var t,n,i=this.options.el.querySelectorAll("option"),r=i.length;for(t=0;r>t&&(n=i[t],n.textContent!==e);t++);return n}},{key:"setValue",value:function(e){var t=this.getOptionByDataValue(this.getValue()),n=this.getOptionByDataValue(e),i=document.createEvent("HTMLEvents"),r=this.getFormElement();i.initEvent("change",!1,!0),t&&t.removeAttribute("selected"),n?(n.setAttribute("selected","selected"),r.value=e,r.dispatchEvent(i)):console.warn("Form Dropdown Error: Cannot call setValue(), dropdown has no option element with a value attribute of "+e+"."),this._setUISelectedValue(e)}},{key:"updateOptions",value:function(e,t){var n,i=this.getUIElement().getElementsByClassName(this.options.optionsContainerClass)[0],r=document.createDocumentFragment();t=t||{},t.replace&&this.clearOptions(),this._updateFormOptionElements(e),e.forEach(function(e){n=document.createElement("div"),n.setAttribute("data-value",e.dataValue),n.classList.add(this.options.optionsClass),n.innerHTML=e.displayValue,r.appendChild(n)}.bind(this)),i.appendChild(r)}},{key:"clearOptions",value:function(){var e=this.getUIElement().getElementsByClassName(this.options.optionsContainerClass)[0],t=this.getFormElement();t.innerHTML="",e.innerHTML=""}},{key:"_updateFormOptionElements",value:function(e,t){var n,i=this.getFormElement(),r=document.createDocumentFragment();e.forEach(function(e){n=document.createElement("option"),n.setAttribute("value",e.dataValue),n.innerHTML=e.displayValue,r.appendChild(n)}),t&&(i.innerHTML=""),i.appendChild(r)}},{key:"disable",value:function(){this.getUIElement().classList.add(this.options.disabledClass),this.getFormElement().disabled=!0}},{key:"enable",value:function(){this.getUIElement().classList.remove(this.options.disabledClass),this.getFormElement().disabled=!1}},{key:"clear",value:function(){var e=this.getOptionByDataValue("");e&&this.setValue("")}},{key:"getDisplayValue",value:function(){return this.getOptionByDataValue(this.getValue()).textContent}},{key:"destroy",value:function(){var e=this.options.el;this.unbindUIOptionEvents(),this._unbindUIElementEvents(),this.removeEventListener(e,"change","_onSelectChange",this),e.style.display=this._origDisplayValue,e.tabIndex=this._origTabIndex,this._wrapperEl.parentNode.replaceChild(e,this._wrapperEl),u(Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h["default"]);t.exports=v},{"./form-element":86,"device-manager":78,underscore:81}],85:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function p(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:p(r,t,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=e("underscore"),c=i(l),f=e("./form-element"),h=i(f),d=function(e){function t(e){r(this,t),e=c["default"].extend({inputs:[],onChange:null,containerClass:"ui-form-element",inputClass:"ui-form-element-input",selectedClass:"ui-form-element-selected",disabledClass:"ui-form-element-disabled",value:null},e);var n=o(this,Object.getPrototypeOf(t).call(this,e));return n._container=n.options.container,!n.options.inputs.length&&n._container&&(n.options.inputs=n._container.querySelectorAll("input")),n.options.inputs.length?n.setup():console.error("could not build "+n.getElementKey()+": no form element input elements were passed"),n}return s(t,e),a(t,[{key:"setup",value:function(){this._formElements=this._setupFormElements(this.options.inputs),this._UIElements=this._buildUIElements(this._formElements),this._setupEvents()}},{key:"_setupFormElements",value:function(e){var t=this.options.value,n=[];return e=Array.prototype.slice.call(e),"string"==typeof t?n.push(t):t&&t.length&&(n=Array.prototype.slice.call(t)),e.forEach(function(e){-1!==n.indexOf(e.value)&&(e.checked=!0),e.classList.add(this.options.inputClass)}.bind(this)),e}},{key:"_setupEvents",value:function(){this.triggerAll(function(e,t){this.addEventListener(e,"click","_onFormElementClickEventListener",this),this.addEventListener(t,"click","_onUIElementClickEventListener",this,!0)}.bind(this))}},{key:"getFormElementGroup",value:function(){return this._formElements||[]}},{key:"getUIElements",value:function(){return this._UIElements||[]}},{key:"triggerAll",value:function(e){var t,n=this.getFormElementGroup(),i=this.getUIElements();for(t=0;t<n.length;t++)e(n[t],i[t],t)}},{key:"_onFormElementClickEventListener",value:function(e){var t=e.target,n=t.parentElement;e.target===e.currentTarget&&this._onFormElementClick(t,n)}},{key:"_onFormElementClick",value:function(e,t){}},{key:"_onUIElementClickEventListener",value:function(e){var t,n;e.target===e.currentTarget&&e.target.classList.contains(this.options.containerClass)&&(e.preventDefault(),n=e.target,t=e.target.getElementsByClassName(this.options.inputClass)[0],this._onUIElementClick(t,n))}},{key:"_onUIElementClick",value:function(e,t){}},{key:"_buildUIElements",value:function(e){var t,n,i,r=e.length,o=[];for(t=0;r>t;t++)n=e[t],i=this._buildContainerEl(n),n.checked&&i.classList.add(this.options.selectedClass),n.disabled&&i.classList.add(this.options.disabledClass),o.push(i);return o}},{key:"_buildContainerEl",value:function(e){var t=e.parentNode,n=document.createElement("div");return n.classList.add(this.options.containerClass),t.replaceChild(n,e),n.appendChild(e),n}},{key:"triggerChange",value:function(e,t){this.options.onChange&&this.options.onChange(e.value,e,t)}},{key:"select",value:function(e){var t=this.getFormElement(e),n=this.getUIElement(e);t.checked||(t.checked=!0,n.classList.add(this.options.selectedClass),this.triggerChange(t,n))}},{key:"deselect",value:function(e){var t=this.getFormElement(e),n=this.getUIElement(e);n.classList.remove(this.options.selectedClass),t.checked&&(t.checked=!1,this.triggerChange(t,n))}},{key:"getValue",value:function(){var e=[];return this.getFormElementGroup().forEach(function(t){t.checked&&e.push(t.value)},this),e}},{key:"setValue",value:function(e){this.getFormElementGroup().forEach(function(t,n){t.value===e||-1!==e.indexOf(t.value)?this.select(n):this.deselect(n)},this)}},{key:"getFormElement",value:function(e){return this.getFormElementGroup()[e||0]}},{key:"getUIElement",value:function(e){return this.getUIElements()[e||0]}},{key:"clear",value:function(){this.triggerAll(function(e,t,n){this.deselect(n)}.bind(this))}},{key:"enable",value:function(){this.triggerAll(function(e,t){e.disabled=!1,t.classList.remove(this.options.disabledClass)}.bind(this))}},{key:"disable",value:function(){this.triggerAll(function(e,t){e.disabled=!0,t.classList.add(this.options.disabledClass)}.bind(this))}},{key:"getElementKey",value:function(){return"FormElementGroup"}},{key:"destroy",value:function(){this.triggerAll(function(e,t){t.parentNode.replaceChild(e,t),this.removeEventListener(e,"click","_onFormElementClickEventListener",this),this.removeEventListener(t,"click","_onUIElementClickEventListener",this,!0)}.bind(this)),u(Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h["default"]);t.exports=d},{"./form-element":86,underscore:81}],86:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(u){r=!0,o=u}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();e("core-js/es6/symbol");var a=e("core-js/es6/map"),u=i(a),l=function(e,t){for(var n,i=e.parentNode||e;i&&"string"==typeof i.className&&(n=t(i),void 0===n||n);)i=i.parentNode},c=function(){function e(t){r(this,e),this.options=t||{},this._eventListeners=new u["default"]}return s(e,[{key:"getFormElement",value:function(){return this.options.el}},{key:"getUIElement",value:function(){return this.getFormElement()}},{key:"getFormElements",value:function(){return[this.getFormElement()]}},{key:"getValue",value:function(){return this.getFormElement().value}},{key:"setValue",value:function(e){var t=this.getFormElements()[0];t&&(t.value=e)}},{key:"clear",value:function(){}},{key:"getUIElements",value:function(){return[this.getUIElement()]}},{key:"enable",value:function(){this.getFormElement().disabled=!1}},{key:"disable",value:function(){this.getFormElement().disabled=!0}},{key:"addEventListener",value:function(e,t,n,i,r){i=i||this;var o=i[n].bind(i);e.addEventListener(t,o,r),this._eventListeners.set(o,{name:t,el:e,method:n,context:i})}},{key:"getClosestAncestorElementByClassName",value:function(e,t){var n=null;return l(e,function(e){return e.classList.contains(t)?(n=e,!1):void 0}),n}},{key:"removeEventListener",value:function(e,t,n,i,r){var s=!0,a=!1,u=void 0;try{for(var l,c=this._eventListeners[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){var f=o(l.value,2),h=f[0],d=f[1];if(d.el===e&&d.name===t&&d.context===i&&d.method===n){e.removeEventListener(t,h,r),this._eventListeners["delete"](h);break}}}catch(p){a=!0,u=p}finally{try{!s&&c["return"]&&c["return"]()}finally{if(a)throw u}}}},{key:"destroy",value:function(){var e=this;this._eventListeners.forEach(function(t){e.removeEventListener(t.el,t.name,t.method,t.context)}),this._eventListeners.clear()}}],[{key:"getElementKey",value:function(){return"element"}}]),e}();t.exports=c},{"core-js/es6/map":1,"core-js/es6/symbol":2}],87:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=e("underscore"),a=i(s),u=e("./dropdown"),l=i(u),c=e("./input-field"),f=i(c),h=e("./checkbox"),d=i(h),p=e("./checkboxes"),v=i(p),_=e("./form-element"),g=i(_),y=e("./form-element-group"),b=i(y),m=e("./radios"),E=i(m),k=e("./text-area"),C=i(k),w=e("./submit-button"),O=i(w),j=e("observe-js"),x=i(j),I=function(){function e(t){r(this,e),t=a["default"].extend({el:null,onValueChange:null,onGetOptions:null,dropdownClass:null,checkboxClass:null,inputFieldClass:null,textAreaClass:null,radioClass:null,onSubmit:null,submitButtonClass:null,submitButtonDisabledClass:null,onSubmitButtonClick:null,data:null,legacyDataPollTime:125},t),this.options=t,this.formEls=this.options.el.elements,this._formInstances=[],this._moduleCount=0,this.subModules={},this._onSubmitEventListener=this.onSubmit.bind(this),this.options.el.addEventListener("submit",this._onSubmitEventListener,!0)}return o(e,[{key:"_setupDataMapping",value:function(e){var t={};return e&&(t=e,Object.observe||(this._legacyDataPollTimer=window.setInterval(function(){Platform.performMicrotaskCheckpoint()},this.options.legacyDataPollTime)),this._observer=new x["default"].ObjectObserver(t),this._observer.open(function(e,t,n){var i=a["default"].extend(e,t,n);Object.keys(i).forEach(function(e){this.getInstanceByName(e).setValue(i[e])}.bind(this))}.bind(this))),t}},{key:"_getSelectorMap",value:function(){return{dropdown:{option:this.options.dropdownClass,selector:"select",tag:"select"},checkbox:{option:this.options.checkboxClass,tag:"input",types:["checkbox"]},input:{option:this.options.inputFieldClass,tag:"input",types:["password","email","number","text","date","datetime","month","search","range","time","week","tel","color","datetime-local"]},radio:{option:this.options.radioClass,tag:"input",types:["radio"]},textarea:{option:this.options.textAreaClass,tag:"textarea"}}}},{key:"onSubmit",value:function(e){var t=this.getCurrentValues();this.options.onSubmitButtonClick&&this.options.onSubmitButtonClick(e,t),this.options.onSubmit&&this.options.onSubmit(e,t)}},{key:"setup",value:function(){var e=this.options.el.getElementsByClassName(this.options.submitButtonClass)[0];this._setupInstances(this._getInstanceEls("dropdown"),l["default"]),this._setupInstances(this._getInstanceEls("checkbox"),d["default"]),this._setupInstances(this._getInstanceEls("input"),f["default"]),this._setupInstances(this._getInstanceEls("textarea"),C["default"]);var t=this._getInstanceEls("radio");a["default"].each(this.mapElementsByAttribute(t,"name"),function(e){this._setupInstance(e,E["default"],{},"inputs")},this),e&&(this.subModules.submitButton=new O["default"]({el:e,disabledClass:this.options.submitButtonDisabledClass,onClick:this.onSubmit.bind(this)})),this._setupDataMapping(this.options.data)}},{key:"_getInstanceEls",value:function(e){var t=this.options.el,n=[],i=this._getSelectorMap();return i=i[e]||{},i.option?n=t.getElementsByClassName(i.option):i.types?i.types.forEach(function(e){(this.mapElementsByAttribute(this.formEls,"type")[e]||[]).forEach(function(e){n.push(e)})},this):i.tag&&(n=t.getElementsByTagName(i.tag)),n}},{key:"_setupInstances",value:function(e,t,n,i){var r,o=e.length;if(o)for(r=0;o>r;r++)this._setupInstance(e[r],t,n,i)}},{key:"_setupInstance",value:function(e,t,n,i){i=i||"el";var r=this.options,o=this._buildOptions(e,n);o[i]=e,e=e.length?Array.prototype.slice.call(e):[e];var s=e[0].name;r.data&&"function"!=typeof r.data[s]&&r.data.hasOwnProperty(s)&&(o.value=o.value||r.data[s]),this._moduleCount++;var a=this.subModules["fe"+this._moduleCount]=new t(o);this._formInstances.push(a)}},{key:"mapElementsByAttribute",value:function(e,t){var n,i,r={},o=e.length;if(o)for(n=0;o>n;n++)i=e[n],r[i[t]]?r[i[t]].push(i):r[i[t]]=[i];return r}},{key:"getInstanceByName",value:function(e){var t,n;for(t=0;t<this._formInstances.length&&(n=this._formInstances[t],n.getFormElement().name!==e);t++);return n}},{key:"_buildOptions",value:function(e,t){return t=t||{},this.options.onGetOptions&&(t=a["default"].extend({},t,this.options.onGetOptions(e))),t.onChange=function(e,t,n){this._onValueChange(e,t,n)}.bind(this),t}},{key:"_onValueChange",value:function(e,t,n){var i=t.name,r=this.options.data||{},o=r[i];"function"==typeof o?o(e):r.hasOwnProperty(i)&&(r[i]=e),this.options.onValueChange&&this.options.onValueChange(e,t,n),this.options.onChange&&this.options.onChange(e,t,n)}},{key:"disable",value:function(){var e,t=this.formEls,n=this.getSubmitButtonInstance();for(this.setPropertyAll("disabled",!0),e=0;e<t.length;e++)t[e].classList.add("disabled");n&&n.disable()}},{key:"enable",value:function(){var e,t=this.formEls,n=this.getSubmitButtonInstance();for(this.setPropertyAll("disabled",!1),e=0;e<t.length;e++)t[e].classList.remove("disabled");
n&&n.disable()}},{key:"setPropertyAll",value:function(e,t){var n,i=this.formEls;for(n=0;n<i.length;n++)i[n][e]=t}},{key:"triggerMethodAll",value:function(e,t){var n,i,r=Array.prototype.slice.call(arguments,1);for(n=0;n<this._formInstances.length;n++)i=this._formInstances[n],i[e].apply(i,r)}},{key:"clear",value:function(){this.triggerMethodAll("clear")}},{key:"getCurrentValues",value:function(){var e,t,n,i=[],r=this.options.el.querySelectorAll("[name]"),o=r.length;for(e=0;o>e;e++)t=r[e],t.name&&(n={name:t.name,value:t.value,required:t.required,disabled:t.disabled,formElement:t},i.push(n));return i}},{key:"getSubmitButtonInstance",value:function(){return this.subModules.submitButton}},{key:"destroy",value:function(){this.options.el.removeEventListener("submit",this._onSubmitEventListener,!0),window.clearInterval(this._legacyDataPollTimer),this._observer&&this._observer.close();for(var e in this.subModules)this.subModules.hasOwnProperty(e)&&this.subModules[e]&&this.subModules[e].destroy()}}]),e}();I.Checkbox=d["default"],I.Checkboxes=v["default"],I.Dropdown=l["default"],I.FormElement=g["default"],I.FormElementGroup=b["default"],I.InputField=f["default"],I.Radios=E["default"],I.SubmitButton=O["default"],I.TextArea=C["default"],t.exports=I},{"./checkbox":82,"./checkboxes":83,"./dropdown":84,"./form-element":86,"./form-element-group":85,"./input-field":88,"./radios":89,"./submit-button":90,"./text-area":91,"observe-js":80,underscore:81}],88:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function p(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:p(r,t,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=e("underscore"),c=i(l),f=e("./form-element"),h=i(f),d=function(e){function t(e){r(this,t),e=c["default"].extend({el:null,onChange:null,onKeyDownChange:null,containerClass:"ui-input-text",inputClass:"ui-input-text-input",disabledClass:"ui-input-text-disabled",activeClass:"ui-input-text-active",value:null},e);var n=o(this,Object.getPrototypeOf(t).call(this,e));return n.options=e,n.setup(),n}return s(t,e),a(t,[{key:"setup",value:function(){var e=this.options.el,t=this.options.value||e.value;e.classList.add(this.options.inputClass),this._container=this._buildUIElement(e),this._inputEl=this._container.getElementsByClassName(this.options.inputClass)[0],e.value!==t&&(e.value=t),this.origInputValue=t,this.isInitDisabled=e.disabled,this.isInitDisabled&&this._container.classList.add(this.options.disabledClass),this._bindEvents()}},{key:"_bindEvents",value:function(){var e=this.getFormElement();this.addEventListener(e,"focus","_onInputFocus",this),this.addEventListener(e,"blur","_onInputBlur",this),this.addEventListener(e,"change","_onInputValueChange",this),this.addEventListener(e,"keydown","_onInputKeyDown",this)}},{key:"_unbindEvents",value:function(){var e=this.getFormElement();this.removeEventListener(e,"focus","_onInputFocus",this),this.removeEventListener(e,"blur","_onInputBlur",this),this.removeEventListener(e,"change","_onInputValueChange",this),this.removeEventListener(e,"keydown","_onInputKeyDown",this)}},{key:"_onInputKeyDown",value:function(e){this.keyDownTimeoutId&&clearTimeout(this.keyDownTimeoutId),this.keyDownTimeoutId=setTimeout(this._triggerKeyDownChange.bind(this,e),1)}},{key:"_triggerKeyDownChange",value:function(e){var t=this.getFormElement();this.options.onKeyDownChange&&this.options.onKeyDownChange(t.value,t,this.getUIElement(),e)}},{key:"setValue",value:function(e){var t=this.getFormElement(),n=t.value;e!==n&&(t.value=e,this._triggerChange())}},{key:"getValue",value:function(){return this.getFormElement().value}},{key:"_buildUIElement",value:function(e){var t=e.parentNode,n=document.createElement("div");return n.classList.add(this.options.containerClass),t.replaceChild(n,e),n.appendChild(e),n}},{key:"_onInputFocus",value:function(){this.getUIElement().classList.add(this.options.activeClass)}},{key:"_onInputBlur",value:function(){this.getUIElement().classList.remove(this.options.activeClass)}},{key:"_triggerChange",value:function(e){var t=[this.getValue(),this.getFormElement(),this.getUIElement()];e&&t.push(e),this.options.onChange&&this.options.onChange.apply(this,t)}},{key:"_onInputValueChange",value:function(e){this._triggerChange(e)}},{key:"getFormElement",value:function(){return this._inputEl}},{key:"getUIElement",value:function(){return this._container}},{key:"enable",value:function(){this.getFormElement().removeAttribute("disabled"),this.getUIElement().classList.remove(this.options.disabledClass)}},{key:"disable",value:function(){this.getFormElement().setAttribute("disabled","true"),this.getUIElement().classList.add(this.options.disabledClass)}},{key:"clear",value:function(){this.setValue("")}},{key:"getElementKey",value:function(){return"inputText"}},{key:"destroy",value:function(){var e=this.getUIElement(),n=this.getFormElement();this._unbindEvents(),e.parentNode.replaceChild(n,e),this.isInitDisabled&&n.setAttribute("disabled","true"),this.setValue(this.origInputValue),u(Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h["default"]);t.exports=d},{"./form-element":86,underscore:81}],89:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=e("underscore"),l=i(u),c=e("./form-element-group"),f=i(c),h=function(e){function t(e){r(this,t),e=l["default"].extend({inputs:[],onChange:null,containerClass:"ui-radio",inputClass:"ui-radio-input",selectedClass:"ui-radio-selected",disabledClass:"ui-radio-disabled",value:null},e);var n=o(this,Object.getPrototypeOf(t).call(this,e));return n.options=e,n}return s(t,e),a(t,[{key:"_onFormElementClick",value:function(e,t){var n=this;this._lastRadioClicked!==e&&(this.triggerAll(function(e,t){e.checked?t.classList.add(n.options.selectedClass):t.classList.remove(n.options.selectedClass)}),this._lastRadioClicked=e,this.triggerChange(e,t))}},{key:"_onUIElementClick",value:function(e,t){var n=this;this._lastRadioClicked!==e&&(this.triggerAll(function(t,i){t!==e?(i.classList.remove(n.options.selectedClass),t.checked=!1):(i.classList.add(n.options.selectedClass),t.checked=!0)}),this._lastRadioClicked=e,this.triggerChange(e,t))}},{key:"select",value:function(e){var t=this.getFormElement(e),n=this.getUIElement(e);t.checked||(t.checked=!0,n.classList.add(this.options.selectedClass),this.triggerChange(t,n)),this.triggerAll(function(e,t,n){e.checked||this.deselect(n)}.bind(this))}},{key:"getElementKey",value:function(){return"radios"}}]),t}(f["default"]);t.exports=h},{"./form-element-group":85,underscore:81}],90:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=e("underscore"),a=i(s),u=function(){function e(t){r(this,e),t=a["default"].extend({el:null,disabledClass:"disabled",onClick:null},t),this.options=t,this._onClickEventListener=this.onClick.bind(this),this.options.el.addEventListener("click",this._onClickEventListener)}return o(e,[{key:"onClick",value:function(e){this.options.onClick&&this.options.onClick(e)}},{key:"getSubmitButton",value:function(){return this.options.el}},{key:"enable",value:function(){var e=this.getSubmitButton();e.disabled=!1,e.classList.remove(this.options.disabledClass)}},{key:"disable",value:function(){var e=this.getSubmitButton();e.disabled=!0,e.classList.add(this.options.disabledClass)}},{key:"destroy",value:function(){this.options.el.removeEventListener("click",this._onClickEventListener)}}]),e}();t.exports=u},{underscore:81}],91:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function p(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:p(r,t,n)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(n)},l=e("underscore"),c=i(l),f=e("./form-element"),h=i(f),d=function(e){function t(e){r(this,t),e=c["default"].extend({el:null,onChange:null,onKeyDownChange:null,containerClass:"ui-textarea",inputClass:"ui-textarea-input",disabledClass:"ui-textarea-disabled",activeClass:"ui-textarea-active",value:null},e);var n=o(this,Object.getPrototypeOf(t).call(this,e));return n.options=e,n.setup(),n}return s(t,e),a(t,[{key:"setup",value:function(){var e=this.options.el,t=this.options.value||e.value;e.classList.add(this.options.inputClass),this._container=this._buildUIElement(e),e.value!==t&&(e.value=t),this.origValue=t,this.origDisabled=e.disabled,this.origDisabled&&this._container.classList.add(this.options.disabledClass),this._bindEvents()}},{key:"_bindEvents",value:function(){var e=this.getFormElement();this.addEventListener(e,"focus","_onInputFocus",this),this.addEventListener(e,"blur","_onInputBlur",this),this.addEventListener(e,"change","_onInputValueChange",this),this.addEventListener(e,"keydown","_onInputKeyDown",this)}},{key:"_unbindEvents",value:function(){var e=this.getFormElement();this.removeEventListener(e,"focus","_onInputFocus",this),this.removeEventListener(e,"blur","_onInputBlur",this),this.removeEventListener(e,"change","_onInputValueChange",this),this.removeEventListener(e,"keydown","_onInputKeyDown",this)}},{key:"_onInputKeyDown",value:function(e){this.keyDownTimeoutId&&clearTimeout(this.keyDownTimeoutId),this.keyDownTimeoutId=setTimeout(this._triggerKeyDownChange.bind(this,e),1)}},{key:"_triggerKeyDownChange",value:function(e){this.options.onKeyDownChange&&this.options.onKeyDownChange(this.getFormElement(),this.getUIElement(),e)}},{key:"setValue",value:function(e){var t=this.getFormElement(),n=t.value;e!==n&&(t.value=e,this._triggerChange())}},{key:"getValue",value:function(){return this.getFormElement().value}},{key:"_buildUIElement",value:function(e){var t=e.parentNode,n=document.createElement("div");return n.classList.add(this.options.containerClass),t.replaceChild(n,e),n.appendChild(e),n}},{key:"_onInputFocus",value:function(){this.getUIElement().classList.add(this.options.activeClass)}},{key:"_onInputBlur",value:function(){this.getUIElement().classList.remove(this.options.activeClass)}},{key:"_triggerChange",value:function(e){var t=[this.getValue(),this.getFormElement(),this.getUIElement()];e&&t.push(e),this.options.onChange&&this.options.onChange.apply(this,t)}},{key:"_onInputValueChange",value:function(e){this._triggerChange(e)}},{key:"getFormElement",value:function(){return this.options.el}},{key:"getUIElement",value:function(){return this._container}},{key:"enable",value:function(){this.getFormElement().removeAttribute("disabled"),this.getUIElement().classList.remove(this.options.disabledClass)}},{key:"disable",value:function(){this.getFormElement().setAttribute("disabled","true"),this.getUIElement().classList.add(this.options.disabledClass)}},{key:"clear",value:function(){this.setValue("")}},{key:"getElementKey",value:function(){return"textArea"}},{key:"destroy",value:function(){var e=this.getUIElement(),n=this.getFormElement();this._unbindEvents(),e.parentNode.replaceChild(n,e),this.origDisabled&&n.setAttribute("disabled","true"),this.setValue(this.origValue),u(Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}(h["default"]);t.exports=d},{"./form-element":86,underscore:81}]},{},[87])(87)});