uniform-ui 2.2.2 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/assets/javascripts/uniform/checkbox.js +2 -2
  3. data/lib/assets/javascripts/uniform/component.js +65 -9
  4. data/lib/assets/javascripts/uniform/dom-helpers.js +32 -10
  5. data/lib/assets/javascripts/uniform/dropdown.js +106 -38
  6. data/lib/assets/javascripts/uniform/floating-label.js +3 -3
  7. data/lib/assets/javascripts/uniform/modal.js +21 -14
  8. data/lib/assets/javascripts/uniform/popover.js +186 -0
  9. data/lib/assets/javascripts/uniform/resizer.js +1 -1
  10. data/lib/assets/javascripts/uniform/select.js +51 -24
  11. data/lib/assets/javascripts/uniform/tooltip.js +18 -71
  12. data/lib/assets/javascripts/uniform.es5.js +1 -1
  13. data/lib/assets/javascripts/uniform.jquery.js +28 -0
  14. data/lib/assets/javascripts/uniform.js +3 -1
  15. data/lib/assets/stylesheets/uniform/components/alert.scss +2 -2
  16. data/lib/assets/stylesheets/uniform/components/buttons.scss +31 -15
  17. data/lib/assets/stylesheets/uniform/components/card.scss +3 -3
  18. data/lib/assets/stylesheets/uniform/components/dropdown.scss +23 -22
  19. data/lib/assets/stylesheets/uniform/components/form/checkbox-collection.scss +4 -4
  20. data/lib/assets/stylesheets/uniform/components/form/checkbox.scss +1 -1
  21. data/lib/assets/stylesheets/uniform/components/form/floating-label.scss +2 -1
  22. data/lib/assets/stylesheets/uniform/components/form/input-group.scss +2 -2
  23. data/lib/assets/stylesheets/uniform/components/form/tristate.scss +88 -0
  24. data/lib/assets/stylesheets/uniform/components/form.scss +12 -6
  25. data/lib/assets/stylesheets/uniform/components/grid.scss +21 -0
  26. data/lib/assets/stylesheets/uniform/components/label.scss +9 -7
  27. data/lib/assets/stylesheets/uniform/components/loaders.scss +39 -39
  28. data/lib/assets/stylesheets/uniform/components/nav.scss +8 -4
  29. data/lib/assets/stylesheets/uniform/components/row.scss +18 -10
  30. data/lib/assets/stylesheets/uniform/components/select.scss +42 -5
  31. data/lib/assets/stylesheets/uniform/components/table.scss +43 -9
  32. data/lib/assets/stylesheets/uniform/components/thumb.scss +1 -1
  33. data/lib/assets/stylesheets/uniform/components/tooltip.scss +8 -30
  34. data/lib/assets/stylesheets/uniform/defaults.scss +1 -6
  35. data/lib/assets/stylesheets/uniform/functions.scss +34 -4
  36. data/lib/assets/stylesheets/uniform/helpers/border.scss +10 -1
  37. data/lib/assets/stylesheets/uniform/helpers/colors.scss +3 -2
  38. data/lib/assets/stylesheets/uniform/helpers/position.scss +6 -0
  39. data/lib/assets/stylesheets/uniform/helpers/text.scss +11 -0
  40. data/lib/assets/stylesheets/uniform/helpers.scss +9 -3
  41. data/lib/assets/stylesheets/uniform/variables.scss +8 -6
  42. data/lib/uniform/version.rb +1 -1
  43. data/lib/uniform.rb +11 -3
  44. metadata +5 -4
@@ -1 +1 @@
1
- !function(){"use strict";function t(t,e){return t(e={exports:{}},e.exports),e.exports}var v=t(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),y=t(function(t){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)}),m=(y.version,function(n,o,t){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(n),void 0===o)return n;switch(t){case 1:return function(t){return n.call(o,t)};case 2:return function(t,e){return n.call(o,t,e)};case 3:return function(t,e,i){return n.call(o,t,e,i)}}return function(){return n.apply(o,arguments)}}),h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},r=function(t){if(!h(t))throw TypeError(t+" is not an object!");return t},c=function(t){try{return!!t()}catch(t){return!0}},n=!c(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),e=v.document,i=h(e)&&h(e.createElement),o=function(t){return i?e.createElement(t):{}},s=!n&&!c(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}),l=function(t,e){if(!h(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!h(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!h(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!h(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},a=Object.defineProperty,u={f:n?Object.defineProperty:function(t,e,i){if(r(t),e=l(e,!0),r(i),s)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},S=n?function(t,e,i){return u.f(t,e,_(1,i))}:function(t,e,i){return t[e]=i,t},d={}.hasOwnProperty,b=function(t,e){return d.call(t,e)},g="prototype",w=function(t,e,i){var n,o,s,r=t&w.F,l=t&w.G,h=t&w.S,c=t&w.P,a=t&w.B,u=t&w.W,d=l?y:y[e]||(y[e]={}),p=d[g],f=l?v:h?v[e]:(v[e]||{})[g];for(n in l&&(i=e),i)(o=!r&&f&&void 0!==f[n])&&b(d,n)||(s=o?f[n]:i[n],d[n]=l&&"function"!=typeof f[n]?i[n]:a&&o?m(s,v):u&&f[n]==s?function(n){var t=function(t,e,i){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,e)}return new n(t,e,i)}return n.apply(this,arguments)};return t[g]=n[g],t}(s):c&&"function"==typeof s?m(Function.call,s):s,c&&((d.virtual||(d.virtual={}))[n]=s,t&w.R&&p&&!p[n]&&S(p,n,s)))};w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128;var p,L=w,f={}.toString,k=function(t){return f.call(t).slice(8,-1)},E=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==k(t)?t.split(""):Object(t)},x=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},O=function(t){return E(x(t))},C=Math.ceil,z=Math.floor,T=function(t){return isNaN(t=+t)?0:(0<t?z:C)(t)},j=Math.min,M=Math.max,P=Math.min,N=t(function(t){var e="__core-js_shared__",i=v[e]||(v[e]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:y.version,mode:"pure",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),A=0,H=Math.random(),W=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++A+H).toString(36))},q=N("keys"),F=function(t){return q[t]||(q[t]=W(t))},I=(p=!1,function(t,e,i){var n,o,s,r,l=O(t),h=0<(n=l.length)?j(T(n),9007199254740991):0,c=(s=h,(o=T(o=i))<0?M(o+s,0):P(o,s));if(p&&e!=e){for(;c<h;)if((r=l[c++])!=r)return!0}else for(;c<h;c++)if((p||c in l)&&l[c]===e)return p||c||0;return!p&&-1}),B=F("IE_PROTO"),D=function(t,e){var i,n=O(t),o=0,s=[];for(i in n)i!=B&&b(n,i)&&s.push(i);for(;e.length>o;)b(n,i=e[o++])&&(~I(s,i)||s.push(i));return s},R="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),G=Object.keys||function(t){return D(t,R)},Y={f:Object.getOwnPropertySymbols},V={f:{}.propertyIsEnumerable},K=function(t){return Object(x(t))},J=Object.assign,Q=!J||c(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=J({},t)[i]||Object.keys(J({},e)).join("")!=n})?function(t,e){for(var i=K(t),n=arguments.length,o=1,s=Y.f,r=V.f;o<n;)for(var l,h=E(arguments[o++]),c=s?G(h).concat(s(h)):G(h),a=c.length,u=0;u<a;)r.call(h,l=c[u++])&&(i[l]=h[l]);return i}:J;L(L.S+L.F,"Object",{assign:Q});var U=y.Object.assign,X=function(t,e){var i=(y.Object||{})[t]||Object[t],n={};n[t]=e(i),L(L.S+L.F*c(function(){i(1)}),"Object",n)};X("keys",function(){return function(t){return G(K(t))}});var Z=y.Object.keys;var tt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};L(L.S+L.F*!n,"Object",{defineProperty:u.f});var et=y.Object,it=function(t,e,i){return et.defineProperty(t,e,i)};function nt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),it(t,n.key,n)}}var ot=function(t,e,i){return e&&nt(t.prototype,e),i&&nt(t,i),t},st=S,rt=n?Object.defineProperties:function(t,e){r(t);for(var i,n=G(e),o=n.length,s=0;s<o;)u.f(t,i=n[s++],e[i]);return t},lt=v.document,ht=lt&&lt.documentElement,ct=F("IE_PROTO"),at=function(){},ut="prototype",dt=function(){var t,e=o("iframe"),i=R.length;for(e.style.display="none",ht.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),dt=t.F;i--;)delete dt[ut][R[i]];return dt()},pt=Object.create||function(t,e){var i;return null!==t?(at[ut]=r(t),i=new at,at[ut]=null,i[ct]=t):i=dt(),void 0===e?i:rt(i,e)},ft=t(function(t){var e=N("wks"),i=v.Symbol,n="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=n&&i[t]||(n?i:W)("Symbol."+t))}).store=e}),vt=u.f,yt=ft("toStringTag"),mt=function(t,e,i){t&&!b(t=i?t:t.prototype,yt)&&vt(t,yt,{configurable:!0,value:e})},bt={};S(bt,ft("iterator"),function(){return this});var gt,wt=F("IE_PROTO"),kt=Object.prototype,_t=Object.getPrototypeOf||function(t){return t=K(t),b(t,wt)?t[wt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?kt:null},St=ft("iterator"),Lt=!([].keys&&"next"in[].keys()),Et="values",xt=function(t,e,i,n,o,s,r){var l,h,c;h=e,c=n,(l=i).prototype=pt(bt,{next:_(1,c)}),mt(l,h+" Iterator");var a,u,d,p=function(t){if(!Lt&&t in m)return m[t];switch(t){case"keys":case Et:return function(){return new i(this,t)}}return function(){return new i(this,t)}},f=e+" Iterator",v=o==Et,y=!1,m=t.prototype,b=m[St]||m["@@iterator"]||o&&m[o],g=b||p(o),w=o?v?p("entries"):g:void 0,k="Array"==e&&m.entries||b;if(k&&(d=_t(k.call(new t)))!==Object.prototype&&d.next&&mt(d,f,!0),v&&b&&b.name!==Et&&(y=!0,g=function(){return b.call(this)}),r&&(Lt||y||!m[St])&&S(m,St,g),o)if(a={values:v?g:p(Et),keys:s?g:p("keys"),entries:w},r)for(u in a)u in m||st(m,u,a[u]);else L(L.P+L.F*(Lt||y),e,a);return a},Ot=(gt=!0,function(t,e){var i,n,o=String(x(t)),s=T(e),r=o.length;return s<0||r<=s?gt?"":void 0:(i=o.charCodeAt(s))<55296||56319<i||s+1===r||(n=o.charCodeAt(s+1))<56320||57343<n?gt?o.charAt(s):i:gt?o.slice(s,s+2):n-56320+(i-55296<<10)+65536});xt(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=Ot(e,i),this._i+=t.length,{value:t,done:!1})});for(var Ct=function(t,e){return{value:e,done:!!t}},zt=(xt(Array,"Array",function(t,e){this._t=O(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,Ct(1)):Ct(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])},"values"),ft("toStringTag")),Tt="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),jt=0;jt<Tt.length;jt++){var Mt=Tt[jt],Pt=v[Mt],Nt=Pt&&Pt.prototype;Nt&&!Nt[zt]&&S(Nt,zt,Mt)}var At={f:ft},Ht=At.f("iterator"),Wt=t(function(t){var i=W("meta"),e=u.f,n=0,o=Object.isExtensible||function(){return!0},s=!c(function(){return o(Object.preventExtensions({}))}),r=function(t){e(t,i,{value:{i:"O"+ ++n,w:{}}})},l=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!h(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!b(t,i)){if(!o(t))return"F";if(!e)return"E";r(t)}return t[i].i},getWeak:function(t,e){if(!b(t,i)){if(!o(t))return!0;if(!e)return!1;r(t)}return t[i].w},onFreeze:function(t){return s&&l.NEED&&o(t)&&!b(t,i)&&r(t),t}}}),qt=(Wt.KEY,Wt.NEED,Wt.fastKey,Wt.getWeak,Wt.onFreeze,u.f),Ft=function(t){var e=y.Symbol||(y.Symbol={});"_"==t.charAt(0)||t in e||qt(e,t,{value:At.f(t)})},It=Array.isArray||function(t){return"Array"==k(t)},$t=R.concat("length","prototype"),Bt={f:Object.getOwnPropertyNames||function(t){return D(t,$t)}},Dt=Bt.f,Rt={}.toString,Gt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Yt={f:function(t){return Gt&&"[object Window]"==Rt.call(t)?function(t){try{return Dt(t)}catch(t){return Gt.slice()}}(t):Dt(O(t))}},Vt=Object.getOwnPropertyDescriptor,Kt={f:n?Vt:function(t,e){if(t=O(t),e=l(e,!0),s)try{return Vt(t,e)}catch(t){}if(b(t,e))return _(!V.f.call(t,e),t[e])}},Jt=Wt.KEY,Qt=Kt.f,Ut=u.f,Xt=Yt.f,Zt=v.Symbol,te=v.JSON,ee=te&&te.stringify,ie="prototype",ne=ft("_hidden"),oe=ft("toPrimitive"),se={}.propertyIsEnumerable,re=N("symbol-registry"),le=N("symbols"),he=N("op-symbols"),ce=Object[ie],ae="function"==typeof Zt,ue=v.QObject,de=!ue||!ue[ie]||!ue[ie].findChild,pe=n&&c(function(){return 7!=pt(Ut({},"a",{get:function(){return Ut(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=Qt(ce,e);n&&delete ce[e],Ut(t,e,i),n&&t!==ce&&Ut(ce,e,n)}:Ut,fe=function(t){var e=le[t]=pt(Zt[ie]);return e._k=t,e},ve=ae&&"symbol"==typeof Zt.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Zt},ye=function(t,e,i){return t===ce&&ye(he,e,i),r(t),e=l(e,!0),r(i),b(le,e)?(i.enumerable?(b(t,ne)&&t[ne][e]&&(t[ne][e]=!1),i=pt(i,{enumerable:_(0,!1)})):(b(t,ne)||Ut(t,ne,_(1,{})),t[ne][e]=!0),pe(t,e,i)):Ut(t,e,i)},me=function(t,e){r(t);for(var i,n=function(t){var e=G(t),i=Y.f;if(i)for(var n,o=i(t),s=V.f,r=0;o.length>r;)s.call(t,n=o[r++])&&e.push(n);return e}(e=O(e)),o=0,s=n.length;o<s;)ye(t,i=n[o++],e[i]);return t},be=function(t){var e=se.call(this,t=l(t,!0));return!(this===ce&&b(le,t)&&!b(he,t))&&(!(e||!b(this,t)||!b(le,t)||b(this,ne)&&this[ne][t])||e)},ge=function(t,e){if(t=O(t),e=l(e,!0),t!==ce||!b(le,e)||b(he,e)){var i=Qt(t,e);return!i||!b(le,e)||b(t,ne)&&t[ne][e]||(i.enumerable=!0),i}},we=function(t){for(var e,i=Xt(O(t)),n=[],o=0;i.length>o;)b(le,e=i[o++])||e==ne||e==Jt||n.push(e);return n},ke=function(t){for(var e,i=t===ce,n=Xt(i?he:O(t)),o=[],s=0;n.length>s;)!b(le,e=n[s++])||i&&!b(ce,e)||o.push(le[e]);return o};ae||(st((Zt=function(){if(this instanceof Zt)throw TypeError("Symbol is not a constructor!");var e=W(0<arguments.length?arguments[0]:void 0),i=function(t){this===ce&&i.call(he,t),b(this,ne)&&b(this[ne],e)&&(this[ne][e]=!1),pe(this,e,_(1,t))};return n&&de&&pe(ce,e,{configurable:!0,set:i}),fe(e)})[ie],"toString",function(){return this._k}),Kt.f=ge,u.f=ye,Bt.f=Yt.f=we,V.f=be,Y.f=ke,At.f=function(t){return fe(ft(t))}),L(L.G+L.W+L.F*!ae,{Symbol:Zt});for(var _e="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Se=0;_e.length>Se;)ft(_e[Se++]);for(var Le=G(ft.store),Ee=0;Le.length>Ee;)Ft(Le[Ee++]);L(L.S+L.F*!ae,"Symbol",{for:function(t){return b(re,t+="")?re[t]:re[t]=Zt(t)},keyFor:function(t){if(!ve(t))throw TypeError(t+" is not a symbol!");for(var e in re)if(re[e]===t)return e},useSetter:function(){de=!0},useSimple:function(){de=!1}}),L(L.S+L.F*!ae,"Object",{create:function(t,e){return void 0===e?pt(t):me(pt(t),e)},defineProperty:ye,defineProperties:me,getOwnPropertyDescriptor:ge,getOwnPropertyNames:we,getOwnPropertySymbols:ke}),te&&L(L.S+L.F*(!ae||c(function(){var t=Zt();return"[null]"!=ee([t])||"{}"!=ee({a:t})||"{}"!=ee(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(i=e=n[1],(h(e)||void 0!==t)&&!ve(t))return It(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!ve(e))return e}),n[1]=e,ee.apply(te,n)}}),Zt[ie][oe]||S(Zt[ie],oe,Zt[ie].valueOf),mt(Zt,"Symbol"),mt(Math,"Math",!0),mt(v.JSON,"JSON",!0),Ft("asyncIterator"),Ft("observable");var xe=y.Symbol,Oe=t(function(e){function i(t){return(i="function"==typeof xe&&"symbol"==typeof Ht?function(t){return typeof t}:function(t){return t&&"function"==typeof xe&&t.constructor===xe&&t!==xe.prototype?"symbol":typeof t})(t)}function n(t){return"function"==typeof xe&&"symbol"===i(Ht)?e.exports=n=function(t){return i(t)}:e.exports=n=function(t){return t&&"function"==typeof xe&&t.constructor===xe&&t!==xe.prototype?"symbol":i(t)},n(t)}e.exports=n});var Ce=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var ze=function(t,e){return!e||"object"!==Oe(e)&&"function"!=typeof e?Ce(t):e};X("getPrototypeOf",function(){return function(t){return _t(K(t))}});var Te=y.Object.getPrototypeOf,je=function(t,e){if(r(t),!h(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},Me={set:Object.setPrototypeOf||("__proto__"in{}?function(t,i,n){try{(n=m(Function.call,Kt.f(Object.prototype,"__proto__").set,2))(t,[]),i=!(t instanceof Array)}catch(t){i=!0}return function(t,e){return je(t,e),i?t.__proto__=e:n(t,e),t}}({},!1):void 0),check:je};L(L.S,"Object",{setPrototypeOf:Me.set});var Pe=y.Object.setPrototypeOf,Ne=t(function(e){function i(t){return e.exports=i=Pe?Te:function(t){return t.__proto__||Te(t)},i(t)}e.exports=i});L(L.S,"Object",{create:pt});var Ae=y.Object,He=function(t,e){return Ae.create(t,e)},We=t(function(i){function n(t,e){return i.exports=n=Pe||function(t,e){return t.__proto__=e,t},n(t,e)}i.exports=n});var qe=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=He(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&We(t,e)},Fe=function(){function e(t){tt(this,e),t=t||{},this.eventListeners=new Array,this.el=t.el||document.createElement("div"),this.$el=$(this.el),this.on=function(t,e){this.eventListeners.push({type:t,handler:e})},this.trigger=function(t){for(var e=0;e<this.eventListeners.length;e++)"*"!=this.eventListeners[e].type&&"all"!=this.eventListeners[e].type&&t!=this.eventListeners[e].type||this.eventListeners[e].handler(t,this)},this.initialize(t)}return ot(e,[{key:"pick",value:function(e,t){var i={};return t.forEach(function(t){void 0!==e[t]&&(i[t]=e[t])}),i}},{key:"extend",value:function(t,e){}},{key:"initialize",value:function(){}}]),e}();function Ie(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function $e(e,t){e.classList?Ge(t.split(" "),function(t){e.classList.add(t)}):e.className+=" "+t}function Be(t,e){var i=function(t){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")};NodeList.prototype.isPrototypeOf(t)?Ge(t,i):i(t)}function De(t,e,i){if(t.classList)t.classList.toggle(e,i);else{var n=t.className.split(" "),o=n.indexOf(e);!1===i||!0!==i&&0<=o?n.splice(o,1):n.push(e),t.className=n.join(" ")}}function Re(t,e){var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!1),t.dispatchEvent(i)}function Ge(t,e){for(var i=0;i<t.length;i++)e(t[i],i)}function Ye(t,e){return getComputedStyle(t)[e]}function Ve(t){t.parentNode.removeChild(t)}function Ke(t){var e=document.createElement("div");return e.innerHTML=t,e.children[0]}function Je(t,e){var i=[];return Ge(t,function(t){e(t)&&i.push(t)}),i}function Qe(t,i,n){t.addEventListener(i,function t(e){return console.log("fn",i,t),e.target.removeEventListener(e.type,t),n(e)})}function Ue(t){var e=t.getBoundingClientRect();return{top:e.top+window.scrollY,left:e.left+window.scrollX}}var Xe=function(t){function e(){return tt(this,e),ze(this,Ne(e).apply(this,arguments))}return qe(e,Fe),ot(e,[{key:"initialize",value:function(t){t=t||{},this.options={align:"center",trigger:"click",show_arrow:!0,hide_sm:!1,square:!1},U(this.options,this.pick(t,Z(this.options))),this.content=t.content,(this.el.dropdown=this).el.addEventListener(this.options.trigger,this.toggle.bind(this)),this.el.addEventListener("mousedown",function(){this.mousedown=!0}.bind(this)),this.el.addEventListener("mouseup",function(){this.mousedown=!1}.bind(this)),this.el.addEventListener("focus",function(){this.mousedown||this.show()}.bind(this)),document.addEventListener("focus",this.outsideClick.bind(this)),document.addEventListener(this.options.trigger,this.outsideClick.bind(this)),document.addEventListener("keyup",this.keyup.bind(this)),window.addEventListener("resize",this.resize.bind(this))}},{key:"render",value:function(){if(this.dropdown=document.createElement("div"),$e(this.dropdown,"uniformDropdown-dropdown"),$e(this.dropdown,"absolute"),this.dropdown.style.minWidth=this.$el.outerWidth(),this.dropdown.innerHTML=this.content.innerHTML?this.content.innerHTML:this.content,this.options.show_arrow){$e(this.dropdown,"has-pointer");var t=document.createElement("div");$e(t,"uniformDropdown-pointer"),this.dropdown.appendChild(t)}return De(this.dropdown,"square",this.options.square),this.dropdown.style.display="none",document.body.appendChild(this.dropdown),Be(this.dropdown.querySelectorAll(".hidden"),"hidden"),this}},{key:"resize",value:function(){if(this.dropdown){var t=Ue(this.el);this.dropdown.style.top=t.top+this.el.offsetHeight+"px","center"==this.options.align?this.dropdown.style.left=t.left+this.el.offsetWidth/2-this.dropdown.offsetWidth/2+"px":"right"==this.options.align?this.dropdown.style.right=window.innerWidth-(t.left+this.el.offsetWidth)+"px":this.dropdown.style.left=t.left+"px",this.dropdown.style.left&&this.dropdown.style.left+this.dropdown.offsetWidth>window.innerWidth&&(this.dropdown.style.left=window.innerWidth-this.dropdown.offsetWidth+"px")}}},{key:"remove",value:function(){this.el.parentNode.removeChild(this.el),this.el.removeEventListener(this.options.trigger),window.removeEventListener("resize",this.resize.bind(this)),document.removeEventListener(this.options.trigger,this.outsideClick.bind(this)),document.removeEventListener("keyup",this.keyup.bind(this))}},{key:"toggle",value:function(t){Ie(this.el,"active")&&"click"==t.type?this.hide():this.show()}},{key:"show",value:function(){this.options.hide_sm&&window.innerWidth<720||(this.dropdown||this.render(),this.dropdown.style.display="block",$e(this.el,"active"),this.resize(),this.overlay=document.createElement("div"),$e(this.overlay,"uniformOverlay"),document.body.appendChild(this.overlay),window.innerWidth<720&&(this.lastScrollPosition=window.scrollY,$e(document.body,"uniformModal-hideBody")),this.overlay.addEventListener("click",this.hide.bind(this)),this.trigger("shown"))}},{key:"hide",value:function(){this.dropdown&&(this.dropdown.style.display="none",Be(this.el,"active"),this.overlay&&this.overlay.parentNode.removeChild(this.overlay),window.innerWidth<720&&(Be(document.body,"uniformModal-hideBody"),window.scrollTo(0,this.lastScrollPosition)),this.trigger("hidden"))}},{key:"outsideClick",value:function(t){this.dropdown&&null!==this.dropdown.offsetParent&&t.target!==this.el&&t.target!==this.overlay&&(this.el.contains(t.target)||this.dropdown.contains(t.target)||this.hide())}},{key:"keyup",value:function(t){27==t.which&&this.hide()}}]),e}(),Ze=function(t){function e(){return tt(this,e),ze(this,Ne(e).apply(this,arguments))}return qe(e,Fe),ot(e,[{key:"initialize",value:function(t){this.el.addEventListener("change",this.change.bind(this))}},{key:"render",value:function(){var t=Ie(this.el,"uniformRadio")?"uniformRadio":"uniformCheckbox";return this.checkbox=document.createElement("div"),$e(this.checkbox,"".concat(t,"-indicator")),this.el.className&&""!=this.el.className.replace(t,"")&&$e(this.checkbox,this.el.className.replace(t,"")),De(this.checkbox,"checked",this.el.checked),this.el.parentNode.insertBefore(this.checkbox,this.el.nextSibling),this.checkbox.addEventListener("click",this.click.bind(this)),this}},{key:"click",value:function(t){this.el.disabled||(this.el.checked=!this.el.checked,Re(this.el,"change"),t.preventDefault())}},{key:"change",value:function(){De(this.checkbox,"checked",this.el.checked)}}]),e}(),ti=function(t){function e(){return tt(this,e),ze(this,Ne(e).apply(this,arguments))}return qe(e,Fe),ot(e,[{key:"initialize",value:function(t){this.options={},this.options.klass=t.klass||!1,this.content=t.content,$e(this.el,"uniformModal"),document.addEventListener("keyup",this.keyup.bind(this)),this.el.addEventListener("click",this.checkCloseButton.bind(this))}},{key:"keyup",value:function(t){27==t.which&&this.close()}},{key:"render",value:function(){var t="function"==typeof this.content?this.content():this.content;this.highest_z_index=0,this.overlay=document.createElement("div"),$e(this.overlay,"uniformModal-overlay"),this.blur=document.createElement("div"),$e(this.blur,"uniformModal-blur"),this.original_scroll=window.scrollY,this.blur.style.top=0-this.original_scroll+"px",0<document.body.querySelectorAll(".uniformModal").length&&(this.highest_z_index=Math.max(Array.prototype.map.call(document.body.querySelectorAll(".uniformModal"),function(t){return parseInt(Ye(t,"zIndex"))})),this.el.style.zIndex=this.highest_z_index+2),this.el.appendChild(this.overlay);for(var e=document.body.children,i=e.length,n=0;n<i;n++)this.blur.appendChild(e[0]);$e(document.body,"uniformModal-active"),document.body.appendChild(this.blur),document.body.appendChild(this.el);var o=document.createElement("div");$e(o,"uniformModal-container"),o.innerHTML=t.innerHTML?t.innerHTML:t;var s=document.createElement("div");return $e(s,"uniformModal-close"),o.appendChild(s),this.el.style.top=window.scrollY,this.overlay.addEventListener("click",this.close.bind(this)),this.el.appendChild(o),this.options.klass&&$e(o,this.options.klass),t.innerHTML&&Re(t,"rendered"),this.trigger("rendered"),this}},{key:"checkCloseButton",value:function(t){Ie(t.target,"uniformModal-close")&&this.close()}},{key:"close",value:function(){Be(document.querySelectorAll("uniformModal-active"),"uniformModal-active");for(var t=this.blur.children,e=t.length,i=0;i<e;i++)document.body.appendChild(t[0]);this.blur.parentNode.removeChild(this.blur),window.scrollTo(0,this.original_scroll),this.trigger("closed"),this.remove()}},{key:"remove",value:function(){this.overlay.parentNode.removeChild(this.overlay),this.el.parentNode.removeChild(this.el),this.el.removeEventListener("click",this.checkCloseButton.bind(this)),this.overlay.removeEventListener("click",this.close.bind(this)),document.removeEventListener("keyup",this.keyup.bind(this))}}]),e}(),ei='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1em" height="1em" viewBox="0 0 32 32">\n<path d="M28.998 8.531l-2.134-2.134c-0.394-0.393-1.030-0.393-1.423 0l-12.795 12.795-6.086-6.13c-0.393-0.393-1.029-0.393-1.423 0l-2.134 2.134c-0.393 0.394-0.393 1.030 0 1.423l8.924 8.984c0.393 0.393 1.030 0.393 1.423 0l15.648-15.649c0.393-0.392 0.393-1.030 0-1.423z"></path>\n</svg>\n'.trim(),ii='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1em" height="1em" viewBox="0 0 20 20">\n<path d="M13.418 7.601c0.271-0.268 0.709-0.268 0.979 0s0.271 0.701 0 0.969l-3.907 3.83c-0.271 0.268-0.709 0.268-0.979 0l-3.908-3.83c-0.27-0.268-0.27-0.701 0-0.969s0.708-0.268 0.979 0l3.418 3.14 3.418-3.14z"></path>\n</svg>\n'.trim(),ni=function(t){function e(){return tt(this,e),ze(this,Ne(e).apply(this,arguments))}return qe(e,Fe),ot(e,[{key:"initialize",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.options={label:!1,class:"",showAll:function(t){Be(t.querySelectorAll("button.hide"),"hide");var e=t.querySelector(".uniformSelect-show-all");return e.parentNode.removeChild(e),!1},limit:8},U(this.options,this.pick(t,Z(this.options))),this.el.addEventListener("change",this.updateSelect.bind(this)),this.el.addEventListener("close",this.hideOptions.bind(this)),this.el.addEventListener("revealed",this.resize.bind(this)),this.el.uniformSelect=this,window.addEventListener("resize",this.resize.bind(this)),window.addEventListener("scroll",this.updatePosition.bind(this)),document.addEventListener("click",this.outsideClick.bind(this)),document.addEventListener("keyup",this.keyup.bind(this)),this.activeIcon=document.createElement("span"),$e(this.activeIcon,"uniformSelect-option-icon"),this.activeIcon.innerHTML=ei}},{key:"outsideClick",value:function(t){this.showing&&t.target!==this.select_options&&(this.container.contains(t.target)||this.select_options.contains(t.target)||this.hideOptions())}},{key:"keyup",value:function(t){27===t.which&&this.hideOptions()}},{key:"render",value:function(){this.container=document.createElement("div"),$e(this.container,"uniformSelect-container"),this.edit_button=Ke("<button type='button' class='uniformSelect-edit uniformInput outline block ".concat(this.options.class,'\'><span class="text-js"></span><span class="uniformSelect-edit-icon">').concat(ii,"</span></button>")),this.container.appendChild(this.edit_button),this.el.name&&$e(this.container,this.name.toLowerCase().replace(/[^a-z0-9\-_]+/g,"-")),this.el.style.display="none",this.el.insertAdjacentElement("beforebegin",this.container),this.updateSelect(),this.resize(),this.edit_button.addEventListener("click",this.showOptions.bind(this))}},{key:"resize",value:function(){for(var t=[],e=this.edit_button.children.length,i=0;i<e;i++)t.push(this.edit_button.children[0]),this.edit_button.children[0].parentNode.removeChild(this.edit_button.children[0]);this.edit_button.innerHTML="",this.edit_button.style.width="auto",this.edit_button.style.width=this.container.offsetWidth+"px",Ge(t,function(t){this.edit_button.appendChild(t)}.bind(this)),void 0!==this.select_options&&(window.innerWidth<720||(this.select_options.style.position="absolute",this.select_options.style.top=Ue(this.container).top+this.container.offsetHeight+"px",this.select_options.style.left=Ue(this.container).left+1+"px",this.select_options.style.minWidth=this.container.offsetWidth-1+"px"))}},{key:"renderOptions",value:function(){this.select_options=Ke("<div class='uniformSelect-options'>"),this.options.label&&this.select_options.append('<div class="uniformSelect-label hide show-sm margin-bottom text-bold">'.concat(this.options.label,"</div>")),this.el.name&&$e(this.select_options,this.el.name.toLowerCase().replace(/[^a-z0-9\-_]+/g,"-")),this.select_options.style.fontSize=Ye(this.el,"font-size"),this.select_options.style.display="none",document.body.appendChild(this.select_options),Ge(this.el.querySelectorAll("option"),function(t,e){var i=Ke("<button type='button' class='uniformSelect-option block outline text-left'>");i.option=t,i.textContent=t.textContent,i.value=t.value,""==i.textContent&&i.innerHTML("<span class='text-italic text-muted'>None</span>"),t.selected?($e(i,"active"),i.append(this.activeIcon.cloneNode(!0))):this.options.limit&&e>this.options.limit&&$e(i,"hide"),this.select_options.append(i),i.addEventListener("click",this.selectOption.bind(this))}.bind(this));var t=Ke('<div class="uniformSelect-options-actions"></div>');if(this.options.limit&&this.el.querySelectorAll("option").length>this.options.limit){var e=Ke("<button type='button' class='uniformSelect-show-all outline blue' style='display: block; border: none'>Show All</button>");e.addEventListener("click",function(t){Re(this.el,"show_all"),this.options.showAll&&this.options.showAll(this.select_options),t.preventDefault(),t.stopPropagation()}.bind(this)),t.appendChild(e)}if(this.el.multiple){var i=Ke("<button type='button' class='uniformSelect-done block outline blue'>Done</button>");i.addEventListener("click",this.hideOptions.bind(this)),t.appendChild(i)}""!==t.innerHTML&&this.select_options.appendChild(t),Re(this.el,"rendered")}},{key:"hideOptions",value:function(){void 0!==this.select_options&&(this.showing=!1,this.select_options.style.display="none",Be(this.select_options,"fixed"),Be(this.edit_button,"active"),Be(document.body,"uniformModal-hideBody"),this.lastScrollPosition&&window.innerWidth<720&&window.scrollTo(0,this.lastScrollPosition),Re(this.el,"hidden:options"))}},{key:"showOptions",value:function(){if(this.showing)return this.hideOptions(),!1;this.showing=!0,this.select_options||this.renderOptions(),this.resize(),this.select_options.style.display="block",$e(this.edit_button,"active"),this.lastScrollPosition=window.scrollY,this.updatePosition(),$e(document.body,"uniformModal-hideBody")}},{key:"selectOption",value:function(t){this.el.multiple||(Ge(Je(this.el.querySelectorAll("option"),function(t){return t.selected}),function(t){t.selected=!1}),Ge(this.select_options.querySelectorAll(".uniformSelect-option.active .uniformSelect-option-icon"),Ve),Be(this.select_options.querySelectorAll(".uniformSelect-option.active"),"active")),De(t.currentTarget,"active"),t.currentTarget.option.selected=Ie(t.currentTarget,"active"),Ie(t.currentTarget,"active")?t.currentTarget.append(this.activeIcon.cloneNode(!0)):Ge(t.currentTarget.querySelectorAll(".uniformSelect-option-icon"),Ve),Re(this.el,"change")}},{key:"updateSelect",value:function(){this.el.multiple||this.hideOptions();var t=function(t,e){for(var i=[],n=0;n<t.length;n++)i.push(e(t[n],n));return i}(Je(this.el.querySelectorAll("option"),function(t){return t.selected}),function(t){return t.textContent}).join(", ");""==t&&(t="&nbsp;"),this.edit_button.querySelector(".text-js").innerHTML=t}},{key:"updatePosition",value:function(){if(this.select_options){var t=Je(function(t){var e=[];for(t=t.parentElement;t;)e.push(t),t=t.parentElement;return e}(this.container),function(t){return"fixed"==Ye(t,"position")});Ie(this.select_options,"fixed")?0==t.length&&(this.select_options.style.position="absolute",this.select_options.style.top=Ue(this.container).top+this.container.offsetHeight+"px",Be(this.select_options,"fixed")):0<t.length&&(720<window.innerWidth&&(this.lastScrollPosition=!1),this.select_options.style.position="fixed",this.select_options.style.top=Ue(this.container).top+this.container.offsetHeight+"px",this.select_options.style.left=Ue(this.container).left+"px",$e(this.select_options,"fixed"))}}}]),e}(),oi=function(t){function e(){return tt(this,e),ze(this,Ne(e).apply(this,arguments))}return qe(e,Fe),ot(e,[{key:"initialize",value:function(){this.label=this.el.querySelector("label"),this.input=this.el.querySelector("#"+this.label.getAttribute("for")),this.startingHeight,this.input.addEventListener("focus",this.activate.bind(this)),this.input.addEventListener("blur",this.deactivate.bind(this)),this.input.addEventListener("revealed",this.render.bind(this))}},{key:"render",value:function(){if(null!==this.input.offsetParent&&!Ie(this.el,"enabled")){var t,e=parseInt(Ye(this.input,"paddingBottom"));this.startingHeight=this.input.offsetHeight,$e(this.el,"enabled"),$e(this.el,"inactive"),this.input.style.paddingTop=e+e/2+"px",this.input.style.paddingBottom=e-e/2-2+"px",this.label.style.position="absolute",this.label.style.top=0,this.label.style.left=this.label.offsetLeft,this.label.style.paddingLeft=Ye(this.input,"paddingLeft"),this.label.style.height=this.startingHeight,this.label.style.lineHeight=this.startingHeight+"px",t=this.input,document.activeElement===t&&this.activate(),void 0!==this.input.value&&""!=this.input.value&&this.activate()}}},{key:"activate",value:function(t){void 0!==t&&$e(this.el,"active"),Ie(this.el,"float")||($e(this.el,"float"),Be(this.el,"inactive"),this.label.style.lineHeight=this.startingHeight/2+"px")}},{key:"deactivate",value:function(t){void 0!==t&&Be(this.el,"active"),""==this.input.value&&(Be(this.el,"float"),$e(this.el,"inactive"),this.label.style.lineHeight=this.startingHeight+"px")}}]),e}(),si=function(t){function e(){return tt(this,e),ze(this,Ne(e).apply(this,arguments))}return qe(e,Fe),ot(e,[{key:"initialize",value:function(){window.addEventListener("resize",this.resize.bind(this)),Re(window,"resize")}},{key:"resize",value:function(){var t=this.el.offsetWidth;720<t&&!Ie(this.el,"md-size")?($e(this.el,"md-size"),Re(window,"resized-md")):t<720&&Ie(this.el,"md-size")&&Be(this.el,"md-size"),1080<t&&!this.el.hasClass("lg-size")?($e(this.el,"lg-size"),Re(window,"resized-lg")):t<1080&&Ie(this.el,"lg-size")&&Be(this.el,"lg-size"),1440<t&&!Ie(this.el,"xl-size")?($e(this.el,"xl-size"),Re(window,"resized-xl")):t<1440&&Ie(this.el,"xl-size")&&Be(this.el,"xl-size"),t<720&&!Ie(this.el,"sm-size")?($e(this.el,"sm-size"),Re(window,"resized-sm")):720<t&&Ie(this.el,"sm-size")&&Be(this.el,"sm-size")}}]),e}(),ri=function(t){function e(){return tt(this,e),ze(this,Ne(e).apply(this,arguments))}return qe(e,Fe),ot(e,[{key:"initialize",value:function(t){t=t||{},this.options={align:"top"},U(this.options,this.pick(t,Z(this.options))),this.enabled=!0,this.message=t.message,(t.el.tooltip=this).el.addEventListener("mouseenter",this.show.bind(this)),this.el.addEventListener("mouseleave",this.hide.bind(this))}},{key:"render",value:function(){return this.popup=Ke('<div class="uniformTooltip-popup">'+this.message+"</div>"),this.popup.insertBefore(Ke("<div class='uniformTooltip-pointer'></div>"),this.popup.firstChild),this.el.appendChild(this.popup),100<this.message.length?this.popup.style.minWidth="200px":this.popup.style.whiteSpace="nowrap",this.popup.offsetWidth+Ue(this.popup).left>window.innerWidth&&(this.popup.style.left=window.innerWidth-this.popup.offsetWidth-Ue(this.popup).left+"px"),this.popup.style.display="block",("bottom"==this.options.align||Ue(this.popup).top<0)&&$e(this.popup,"-align-bottom"),this.popup.style.display="none",this}},{key:"remove",value:function(){this.el.parentNode.removeChild(this.el)}},{key:"show",value:function(){if(this.popup||this.render(),this.enabled){if(this.hiding)return this.show_after_hide=!0;if(!this.showing&&!this.shown){this.popup.style.display="block",this.showing=!0,this.hidden=!1;var t=function(t){this.trigger("shown"),this.showing=!1,this.shown=!0,this.hide_after_show&&this.hide(),this.hide_after_show=!1}.bind(this);Qe(this.popup,"transitionend",t),Qe(this.popup,"msTransitionEnd",t),Qe(this.popup,"oTransitionEnd",t),Ue(this.popup).left<0&&(this.popup.style.left="0"),$e(this.el,"active"),setTimeout(function(){$e(this.popup,"-reveal")}.bind(this),1)}}}},{key:"hide",value:function(){if(this.showing)return this.hide_after_show=!0;if(!this.hiding&&!this.hidden){this.hiding=!0,this.shown=!1;var t=function(t){this.trigger("hidden"),Be(this.el,"active"),this.popup.style.display="none",this.hiding=!1,this.hidden=!0,this.show_after_hide&&this.show(),this.show_after_hide=!1}.bind(this);Qe(this.popup,"transitionend",t),Qe(this.popup,"msTransitionEnd",t),Qe(this.popup,"oTransitionEnd",t),Be(this.popup,"-reveal")}}},{key:"disable",value:function(){this.enabled=!1}},{key:"enabled",value:function(){this.enabled=!0}}]),e}();$&&($.fn.uniformDropdown=function(){return this.each(function(){var i=$(this),t={el:this};void 0!==i.data("dropdown-align")&&(t.align=i.data("dropdown-align")),void 0!==i.data("dropdown-trigger")&&(t.trigger=i.data("dropdown-trigger")),void 0!==i.data("dropdown-show_arrow")&&(t.show_arrow=i.data("dropdown-show_arrow")),void 0!==i.data("dropdown-square")&&(t.square=i.data("dropdown-square")),void 0!==i.data("dropdown-hide_sm")&&(t.hide_sm=i.data("dropdown-hide_sm")),void 0!==i.data("dropdown-content")&&(t.content="<div class='pad'>".concat(i.data("dropdown-content"),"</div>")),void 0!==i.data("dropdown-target")&&(t.content=$(i.data("dropdown-target"))[0]);var e=new Xe(t);e.on("*",function(t,e){i.trigger("dropdown-"+t,e)}),e.render()})},$.fn.uniformCheckbox=function(){return this.each(function(){$(this);new Ze({el:this}).render()})},$.fn.uniformRadio=$.fn.uniformCheckbox,$.fn.uniformFloatingLabel=function(){return this.each(function(){new oi({el:this}).render()})},$.fn.uniformModal=function(){return this.click(function(){var i=$(this),t={klass:i.data("modal-klass"),content:i.data("modal-content")};if(i.data("modal-target")){var e=$(i.data("modal-target")).clone();e.removeClass("hidden"),t.content=e[0]}new ti(t).render().on("*",function(t,e){i.trigger("modal-"+t,e)})})},$.fn.uniformResizer=function(){return this.each(function(){new si({el:this})})},$.fn.uniformSelect=function(){return this.each(function(){var t={el:this};U(t,$(this).data()),new ni(t).render()})},$.fn.uniformTooltip=function(){return this.each(function(){var i=$(this),t=new ri({message:i.data("tooltip-message"),el:this});t.on("*",function(t,e){i.trigger("tooltip-"+t,e)}),t.render()})})}();
1
+ !function(){"use strict";function t(t,e){return t(e={exports:{}},e.exports),e.exports}var v=t(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),y=t(function(t){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)}),m=(y.version,function(i,o,t){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(i),void 0===o)return i;switch(t){case 1:return function(t){return i.call(o,t)};case 2:return function(t,e){return i.call(o,t,e)};case 3:return function(t,e,n){return i.call(o,t,e,n)}}return function(){return i.apply(o,arguments)}}),c=function(t){return"object"==typeof t?null!==t:"function"==typeof t},s=function(t){if(!c(t))throw TypeError(t+" is not an object!");return t},a=function(t){try{return!!t()}catch(t){return!0}},i=!a(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),e=v.document,n=c(e)&&c(e.createElement),o=function(t){return n?e.createElement(t):{}},r=!i&&!a(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}),l=function(t,e){if(!c(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!c(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!c(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!c(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},u=Object.defineProperty,h={f:i?Object.defineProperty:function(t,e,n){if(s(t),e=l(e,!0),s(n),r)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},x=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},S=i?function(t,e,n){return h.f(t,e,x(1,n))}:function(t,e,n){return t[e]=n,t},f={}.hasOwnProperty,g=function(t,e){return f.call(t,e)},b="prototype",w=function(t,e,n){var i,o,r,s=t&w.F,l=t&w.G,c=t&w.S,a=t&w.P,u=t&w.B,h=t&w.W,f=l?y:y[e]||(y[e]={}),d=f[b],p=l?v:c?v[e]:(v[e]||{})[b];for(i in l&&(n=e),n)(o=!s&&p&&void 0!==p[i])&&g(f,i)||(r=o?p[i]:n[i],f[i]=l&&"function"!=typeof p[i]?n[i]:u&&o?m(r,v):h&&p[i]==r?function(i){var t=function(t,e,n){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(t);case 2:return new i(t,e)}return new i(t,e,n)}return i.apply(this,arguments)};return t[b]=i[b],t}(r):a&&"function"==typeof r?m(Function.call,r):r,a&&((f.virtual||(f.virtual={}))[i]=r,t&w.R&&d&&!d[i]&&S(d,i,r)))};w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128;var d,_=w,p={}.toString,k=function(t){return p.call(t).slice(8,-1)},O=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==k(t)?t.split(""):Object(t)},T=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},E=function(t){return O(T(t))},P=Math.ceil,j=Math.floor,L=function(t){return isNaN(t=+t)?0:(0<t?j:P)(t)},C=Math.min,z=Math.max,M=Math.min,A=t(function(t){var e="__core-js_shared__",n=v[e]||(v[e]={});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:y.version,mode:"pure",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),N=0,H=Math.random(),I=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++N+H).toString(36))},F=A("keys"),q=function(t){return F[t]||(F[t]=I(t))},W=(d=!1,function(t,e,n){var i,o,r,s,l=E(t),c=0<(i=l.length)?C(L(i),9007199254740991):0,a=(r=c,(o=L(o=n))<0?z(o+r,0):M(o,r));if(d&&e!=e){for(;a<c;)if((s=l[a++])!=s)return!0}else for(;a<c;a++)if((d||a in l)&&l[a]===e)return d||a||0;return!d&&-1}),R=q("IE_PROTO"),D=function(t,e){var n,i=E(t),o=0,r=[];for(n in i)n!=R&&g(i,n)&&r.push(n);for(;e.length>o;)g(i,n=e[o++])&&(~W(r,n)||r.push(n));return r},B="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),G=Object.keys||function(t){return D(t,B)},Y={f:Object.getOwnPropertySymbols},V={f:{}.propertyIsEnumerable},K=function(t){return Object(T(t))},J=Object.assign,U=!J||a(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=J({},t)[n]||Object.keys(J({},e)).join("")!=i})?function(t,e){for(var n=K(t),i=arguments.length,o=1,r=Y.f,s=V.f;o<i;)for(var l,c=O(arguments[o++]),a=r?G(c).concat(r(c)):G(c),u=a.length,h=0;h<u;)s.call(c,l=a[h++])&&(n[l]=c[l]);return n}:J;_(_.S+_.F,"Object",{assign:U});var X=y.Object.assign,Q="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",Z="["+Q+"]",tt=RegExp("^"+Z+Z+"*"),et=RegExp(Z+Z+"*$"),nt=function(t,e,n){var i={},o=a(function(){return!!Q[t]()||"​…"!="​…"[t]()}),r=i[t]=o?e(it):Q[t];n&&(i[n]=r),_(_.P+_.F*o,"String",i)},it=nt.trim=function(t,e){return t=String(T(t)),1&e&&(t=t.replace(tt,"")),2&e&&(t=t.replace(et,"")),t},ot=nt,rt=v.parseInt,st=ot.trim,lt=/^[-+]?0[xX]/,ct=8!==rt(Q+"08")||22!==rt(Q+"0x16")?function(t,e){var n=st(String(t),3);return rt(n,e>>>0||(lt.test(n)?16:10))}:rt;_(_.G+_.F*(parseInt!=ct),{parseInt:ct});var at=y.parseInt,ut=Array.isArray||function(t){return"Array"==k(t)};_(_.S,"Array",{isArray:ut});var ht=y.Array.isArray;var ft=function(t){if(ht(t))return t},dt=function(t,e){return{value:e,done:!!t}},pt={},vt=S,yt=i?Object.defineProperties:function(t,e){s(t);for(var n,i=G(e),o=i.length,r=0;r<o;)h.f(t,n=i[r++],e[n]);return t},mt=v.document,gt=mt&&mt.documentElement,bt=q("IE_PROTO"),wt=function(){},kt="prototype",xt=function(){var t,e=o("iframe"),n=B.length;for(e.style.display="none",gt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),xt=t.F;n--;)delete xt[kt][B[n]];return xt()},St=Object.create||function(t,e){var n;return null!==t?(wt[kt]=s(t),n=new wt,wt[kt]=null,n[bt]=t):n=xt(),void 0===e?n:yt(n,e)},_t=t(function(t){var e=A("wks"),n=v.Symbol,i="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=i&&n[t]||(i?n:I)("Symbol."+t))}).store=e}),Ot=h.f,Tt=_t("toStringTag"),Et=function(t,e,n){t&&!g(t=n?t:t.prototype,Tt)&&Ot(t,Tt,{configurable:!0,value:e})},Pt={};S(Pt,_t("iterator"),function(){return this});var jt=q("IE_PROTO"),Lt=Object.prototype,Ct=Object.getPrototypeOf||function(t){return t=K(t),g(t,jt)?t[jt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Lt:null},zt=_t("iterator"),Mt=!([].keys&&"next"in[].keys()),At="values",Nt=function(){return this},Ht=function(t,e,n,i,o,r,s){var l,c,a;c=e,a=i,(l=n).prototype=St(Pt,{next:x(1,a)}),Et(l,c+" Iterator");var u,h,f,d=function(t){if(!Mt&&t in m)return m[t];switch(t){case"keys":case At:return function(){return new n(this,t)}}return function(){return new n(this,t)}},p=e+" Iterator",v=o==At,y=!1,m=t.prototype,g=m[zt]||m["@@iterator"]||o&&m[o],b=g||d(o),w=o?v?d("entries"):b:void 0,k="Array"==e&&m.entries||g;if(k&&(f=Ct(k.call(new t)))!==Object.prototype&&f.next&&Et(f,p,!0),v&&g&&g.name!==At&&(y=!0,b=function(){return g.call(this)}),s&&(Mt||y||!m[zt])&&S(m,zt,b),pt[e]=b,pt[p]=Nt,o)if(u={values:v?b:d(At),keys:r?b:d("keys"),entries:w},s)for(h in u)h in m||vt(m,h,u[h]);else _(_.P+_.F*(Mt||y),e,u);return u};Ht(Array,"Array",function(t,e){this._t=E(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,dt(1)):dt(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values");pt.Arguments=pt.Array;for(var It=_t("toStringTag"),Ft="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),qt=0;qt<Ft.length;qt++){var $t=Ft[qt],Wt=v[$t],Rt=Wt&&Wt.prototype;Rt&&!Rt[It]&&S(Rt,It,$t),pt[$t]=pt.Array}var Dt,Bt=(Dt=!0,function(t,e){var n,i,o=String(T(t)),r=L(e),s=o.length;return r<0||s<=r?Dt?"":void 0:(n=o.charCodeAt(r))<55296||56319<n||r+1===s||(i=o.charCodeAt(r+1))<56320||57343<i?Dt?o.charAt(r):n:Dt?o.slice(r,r+2):i-56320+(n-55296<<10)+65536});Ht(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=Bt(e,n),this._i+=t.length,{value:t,done:!1})});var Gt=_t("toStringTag"),Yt="Arguments"==k(function(){return arguments}()),Vt=_t("iterator"),Kt=y.getIteratorMethod=function(t){if(null!=t)return t[Vt]||t["@@iterator"]||pt[(e=t,void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(n=Object(e),Gt))?i:Yt?k(n):"Object"==(o=k(n))&&"function"==typeof n.callee?"Arguments":o)];var e,n,i,o},Jt=y.getIterator=function(t){var e=Kt(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return s(e.call(t))};var Ut=function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,l=Jt(t);!(i=(s=l.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==l.return||l.return()}finally{if(o)throw r}}return n};var Xt=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var Qt=function(t,e){return ft(t)||Ut(t,e)||Xt()},Zt=function(t,e){var n=(y.Object||{})[t]||Object[t],i={};i[t]=e(n),_(_.S+_.F*a(function(){n(1)}),"Object",i)};Zt("keys",function(){return function(t){return G(K(t))}});var te=y.Object.keys;var ee=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};_(_.S+_.F*!i,"Object",{defineProperty:h.f});var ne=y.Object,ie=function(t,e,n){return ne.defineProperty(t,e,n)};function oe(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),ie(t,i.key,i)}}var re=function(t,e,n){return e&&oe(t.prototype,e),n&&oe(t,n),t},se={f:_t},le=se.f("iterator"),ce=t(function(t){var n=I("meta"),e=h.f,i=0,o=Object.isExtensible||function(){return!0},r=!a(function(){return o(Object.preventExtensions({}))}),s=function(t){e(t,n,{value:{i:"O"+ ++i,w:{}}})},l=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!c(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!g(t,n)){if(!o(t))return"F";if(!e)return"E";s(t)}return t[n].i},getWeak:function(t,e){if(!g(t,n)){if(!o(t))return!0;if(!e)return!1;s(t)}return t[n].w},onFreeze:function(t){return r&&l.NEED&&o(t)&&!g(t,n)&&s(t),t}}}),ae=(ce.KEY,ce.NEED,ce.fastKey,ce.getWeak,ce.onFreeze,h.f),ue=function(t){var e=y.Symbol||(y.Symbol={});"_"==t.charAt(0)||t in e||ae(e,t,{value:se.f(t)})},he=B.concat("length","prototype"),fe={f:Object.getOwnPropertyNames||function(t){return D(t,he)}},de=fe.f,pe={}.toString,ve="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ye={f:function(t){return ve&&"[object Window]"==pe.call(t)?function(t){try{return de(t)}catch(t){return ve.slice()}}(t):de(E(t))}},me=Object.getOwnPropertyDescriptor,ge={f:i?me:function(t,e){if(t=E(t),e=l(e,!0),r)try{return me(t,e)}catch(t){}if(g(t,e))return x(!V.f.call(t,e),t[e])}},be=ce.KEY,we=ge.f,ke=h.f,xe=ye.f,Se=v.Symbol,_e=v.JSON,Oe=_e&&_e.stringify,Te="prototype",Ee=_t("_hidden"),Pe=_t("toPrimitive"),je={}.propertyIsEnumerable,Le=A("symbol-registry"),Ce=A("symbols"),ze=A("op-symbols"),Me=Object[Te],Ae="function"==typeof Se,Ne=v.QObject,He=!Ne||!Ne[Te]||!Ne[Te].findChild,Ie=i&&a(function(){return 7!=St(ke({},"a",{get:function(){return ke(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=we(Me,e);i&&delete Me[e],ke(t,e,n),i&&t!==Me&&ke(Me,e,i)}:ke,Fe=function(t){var e=Ce[t]=St(Se[Te]);return e._k=t,e},qe=Ae&&"symbol"==typeof Se.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Se},$e=function(t,e,n){return t===Me&&$e(ze,e,n),s(t),e=l(e,!0),s(n),g(Ce,e)?(n.enumerable?(g(t,Ee)&&t[Ee][e]&&(t[Ee][e]=!1),n=St(n,{enumerable:x(0,!1)})):(g(t,Ee)||ke(t,Ee,x(1,{})),t[Ee][e]=!0),Ie(t,e,n)):ke(t,e,n)},We=function(t,e){s(t);for(var n,i=function(t){var e=G(t),n=Y.f;if(n)for(var i,o=n(t),r=V.f,s=0;o.length>s;)r.call(t,i=o[s++])&&e.push(i);return e}(e=E(e)),o=0,r=i.length;o<r;)$e(t,n=i[o++],e[n]);return t},Re=function(t){var e=je.call(this,t=l(t,!0));return!(this===Me&&g(Ce,t)&&!g(ze,t))&&(!(e||!g(this,t)||!g(Ce,t)||g(this,Ee)&&this[Ee][t])||e)},De=function(t,e){if(t=E(t),e=l(e,!0),t!==Me||!g(Ce,e)||g(ze,e)){var n=we(t,e);return!n||!g(Ce,e)||g(t,Ee)&&t[Ee][e]||(n.enumerable=!0),n}},Be=function(t){for(var e,n=xe(E(t)),i=[],o=0;n.length>o;)g(Ce,e=n[o++])||e==Ee||e==be||i.push(e);return i},Ge=function(t){for(var e,n=t===Me,i=xe(n?ze:E(t)),o=[],r=0;i.length>r;)!g(Ce,e=i[r++])||n&&!g(Me,e)||o.push(Ce[e]);return o};Ae||(vt((Se=function(){if(this instanceof Se)throw TypeError("Symbol is not a constructor!");var e=I(0<arguments.length?arguments[0]:void 0),n=function(t){this===Me&&n.call(ze,t),g(this,Ee)&&g(this[Ee],e)&&(this[Ee][e]=!1),Ie(this,e,x(1,t))};return i&&He&&Ie(Me,e,{configurable:!0,set:n}),Fe(e)})[Te],"toString",function(){return this._k}),ge.f=De,h.f=$e,fe.f=ye.f=Be,V.f=Re,Y.f=Ge,se.f=function(t){return Fe(_t(t))}),_(_.G+_.W+_.F*!Ae,{Symbol:Se});for(var Ye="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ve=0;Ye.length>Ve;)_t(Ye[Ve++]);for(var Ke=G(_t.store),Je=0;Ke.length>Je;)ue(Ke[Je++]);_(_.S+_.F*!Ae,"Symbol",{for:function(t){return g(Le,t+="")?Le[t]:Le[t]=Se(t)},keyFor:function(t){if(!qe(t))throw TypeError(t+" is not a symbol!");for(var e in Le)if(Le[e]===t)return e},useSetter:function(){He=!0},useSimple:function(){He=!1}}),_(_.S+_.F*!Ae,"Object",{create:function(t,e){return void 0===e?St(t):We(St(t),e)},defineProperty:$e,defineProperties:We,getOwnPropertyDescriptor:De,getOwnPropertyNames:Be,getOwnPropertySymbols:Ge}),_e&&_(_.S+_.F*(!Ae||a(function(){var t=Se();return"[null]"!=Oe([t])||"{}"!=Oe({a:t})||"{}"!=Oe(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e=i[1],(c(e)||void 0!==t)&&!qe(t))return ut(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!qe(e))return e}),i[1]=e,Oe.apply(_e,i)}}),Se[Te][Pe]||S(Se[Te],Pe,Se[Te].valueOf),Et(Se,"Symbol"),Et(Math,"Math",!0),Et(v.JSON,"JSON",!0),ue("asyncIterator"),ue("observable");var Ue=y.Symbol,Xe=t(function(e){function n(t){return(n="function"==typeof Ue&&"symbol"==typeof le?function(t){return typeof t}:function(t){return t&&"function"==typeof Ue&&t.constructor===Ue&&t!==Ue.prototype?"symbol":typeof t})(t)}function i(t){return"function"==typeof Ue&&"symbol"===n(le)?e.exports=i=function(t){return n(t)}:e.exports=i=function(t){return t&&"function"==typeof Ue&&t.constructor===Ue&&t!==Ue.prototype?"symbol":n(t)},i(t)}e.exports=i});var Qe=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var Ze=function(t,e){return!e||"object"!==Xe(e)&&"function"!=typeof e?Qe(t):e};Zt("getPrototypeOf",function(){return function(t){return Ct(K(t))}});var tn=y.Object.getPrototypeOf,en=function(t,e){if(s(t),!c(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},nn={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{(i=m(Function.call,ge.f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return en(t,e),n?t.__proto__=e:i(t,e),t}}({},!1):void 0),check:en};_(_.S,"Object",{setPrototypeOf:nn.set});var on=y.Object.setPrototypeOf,rn=t(function(e){function n(t){return e.exports=n=on?tn:function(t){return t.__proto__||tn(t)},n(t)}e.exports=n});_(_.S,"Object",{create:St});var sn=y.Object,ln=function(t,e){return sn.create(t,e)},cn=t(function(n){function i(t,e){return n.exports=i=on||function(t,e){return t.__proto__=e,t},i(t,e)}n.exports=i});var an=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=ln(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cn(t,e)};function un(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function hn(e,t){e.classList?vn(t.split(" "),function(t){e.classList.add(t)}):e.className+=" "+t}function fn(t,n){var e=function(e){e.classList?n.split(" ").forEach(function(t){return e.classList.remove(t)}):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," ")};NodeList.prototype.isPrototypeOf(t)?vn(t,e):e(t)}function dn(t,e,n){if(t.classList)t.classList.toggle(e,n);else{var i=t.className.split(" "),o=i.indexOf(e);!1===n||!0!==n&&0<=o?i.splice(o,1):i.push(e),t.className=i.join(" ")}}function pn(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!1),t.dispatchEvent(n)}function vn(t,e){for(var n=0;n<t.length;n++)e(t[n],n)}function yn(t,e){return getComputedStyle(t)[e]}function mn(t){t.parentNode.removeChild(t)}function gn(t){var e=document.createElement("div");return e.innerHTML=t,e.children[0]}function bn(t,e){var n=[];return vn(t,function(t){e(t)&&n.push(t)}),n}function wn(t){var e=t.getBoundingClientRect();return{top:e.top+window.scrollY,left:e.left+window.scrollX}}function kn(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=at(n.marginTop)+at(n.marginBottom)}function xn(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=at(n.marginLeft)+at(n.marginRight)}var Sn=function(){function e(t){ee(this,e),t=t||{},this.eventListens=new Array,this.eventListeners=new Array,this.el=t.el||document.createElement("div"),this.cid=function(t){window.idCounter||(window.idCounter=0);var e=++window.idCounter+"";return t?t+e:e}("c"),this.on=function(t,e){this.eventListeners.push({type:t,handler:e})},this.off=function(e,t){this.eventListeners&&(this.eventListeners=this.eventListeners.filter(function(t){return!(t.type==e&&t.handler)}))}.bind(this),this.trigger=function(e){this.eventListeners&&this.eventListeners.forEach(function(t){"*"!=t.type&&"all"!=t.type&&e!=t.type||t.handler(e,this)})},this.initialize(t)}return re(e,[{key:"pick",value:function(e,t){var n={};return t.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n}},{key:"listenTo",value:function(t,e,n,i,o){"string"!=typeof n&&(o=i,i=n,n=!1),o||(o=this);var r=[t,e,function(t){if(!n||un(t.target,n.replace(".","")))return i.bind(o).apply(void 0,arguments)}.bind(o)];this.eventListens.push(r),t.addEventListener(e,r[2])}},{key:"listenToOnce",value:function(n,i,o,r){r||(r=this);var t=function t(e){return n.removeEventListener(i,t),o.apply(r,arguments)},e=[n,i,t];this.eventListens.push(e),n.addEventListener(i,t)}},{key:"remove",value:function(){this.trigger("removed"),this.eventListens&&this.eventListens.forEach(function(t){t[0].removeEventListener(t[1],t[2])}),delete this.eventListens,delete this.eventListeners,this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el),delete this.el}},{key:"initialize",value:function(){}}]),e}(),_n=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return an(e,Sn),re(e,[{key:"initialize",value:function(t){t=t||{},this.options={align:"center bottom",trigger:"click",show_arrow:!0,hide_sm:!1,square:!1,container:document.body,offset:{}},this.options.container=this.options.container||document.body,X(this.options,this.pick(t,te(this.options))),this.content=t.content,this.dropdown=document.createElement("div"),(this.el.dropdown=this).listenTo(this.el,this.options.trigger,this.toggle),this.listenTo(this.el,"mousedown",function(){this.mousedown=!0}),this.listenTo(this.el,"mouseup",function(){this.mousedown=!1}),this.listenTo(this.el,"focus",function(){this.mousedown||this.show()}),this.listenTo(document,"focus",this.outsideClick),this.listenTo(document,this.options.trigger,this.outsideClick),this.listenTo(document,"keyup",this.keyup),this.listenTo(window,"resize",this.resize)}},{key:"render",value:function(){if(hn(this.dropdown,"uniformDropdown-dropdown"),hn(this.dropdown,"absolute"),this.dropdown.style.minWidth=xn(this.el),this.dropdown.innerHTML=this.content.innerHTML?this.content.innerHTML:this.content,this.options.show_arrow){hn(this.dropdown,"has-pointer");var t=document.createElement("div");hn(t,"uniformDropdown-pointer"),this.dropdown.appendChild(t)}return dn(this.dropdown,"square",this.options.square),this.dropdown.style.display="none",this.options.container.appendChild(this.dropdown),fn(this.dropdown.querySelectorAll(".hidden"),"hidden"),this}},{key:"resize",value:function(){this.setPosition();var t=this.options.align.split(" "),e=!1;wn(this.dropdown).top+kn(this.dropdown)>Math.max(document.body.offsetHeight,window.innerHeight)&&(t[1]="top",e=!0),wn(this.dropdown).top<0&&(t[1]="bottom",e=!0),wn(this.dropdown).left<0&&(t[0]="right",e=!0),wn(this.dropdown).left+xn(this.dropdown)>document.body.offsetWidth&&(t[0]="left",e=!0),e&&this.setPosition(t.join(" "))}},{key:"setPosition",value:function(t){var e=(t=t||this.options.align).split(" "),n=Qt(e,2),i=n[0],o=n[1];i=i||"bottom",o=o||"bottom";var r=wn(this.el),s=this.options.container;"static"==getComputedStyle(s).position&&(s=s.offsetParent),s||(s=document.body);var l=wn(s);r={top:r.top-l.top,left:r.left-l.left};var c={};"left"==i?c.right=xn(s)-r.left:"center"==i?c.left=r.left+xn(this.el)/2-xn(this.dropdown)/2:"right"==i?c.left=r.left+xn(this.el):i.includes("%")?c.left=r.left+xn(this.el)*at(i)/100:i.includes("px")&&(c.left=r.left+xn(this.el)+at(i)),"top"==o?c.top=r.top-kn(this.dropdown):"center"==o?c.top=r.top+kn(this.el)/2-kn(this.dropdown)/2:"bottom"==o?c.top=r.top+kn(this.el):o.includes("%")?c.top=r.top+kn(this.el)*at(o)/100:o.includes("px")&&(c.top=r.top+kn(this.el)+at(o)),this.options.offset.left&&(c.left+=at(this.options.offset.left)),this.options.offset.top&&(c.top+=at(this.options.offset.top)),this.options.offset.left&&(c.right-=at(this.options.offset.left)),this.dropdown.style.left="auto",this.dropdown.style.right="auto",fn(this.dropdown,"popover-left popover-right popover-center popover-top popover-bottom"),hn(this.dropdown,"popover-"+o),hn(this.dropdown,"popover-"+i),te(c).forEach(function(t){this.dropdown.style[t]=c[t]+"px"},this)}},{key:"remove",value:function(){Sn.prototype.remove.apply(this,arguments),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown),delete this.dropdown}},{key:"toggle",value:function(t){un(this.el,"active")&&"click"==t.type?this.hide():this.show()}},{key:"show",value:function(t){t||(t={}),this.options.hide_sm&&window.innerWidth<720||(this.dropdown||this.render(),this.dropdown.style.display="block",hn(this.el,"active"),this.resize(),this.overlay=document.createElement("div"),hn(this.overlay,"uniformOverlay"),document.body.appendChild(this.overlay),window.innerWidth<720&&(this.lastScrollPosition=window.scrollY,hn(document.body,"uniformModal-hideBody")),this.listenTo(this.overlay,"click",this.hide),t.silent||this.trigger("shown"))}},{key:"hide",value:function(t){t||(t={}),this.dropdown&&un(this.el,"active")&&(this.dropdown.style.display="none",fn(this.el,"active"),this.overlay&&this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay),window.innerWidth<720&&(fn(document.body,"uniformModal-hideBody"),window.scrollTo(0,this.lastScrollPosition)),t.silent||this.trigger("hidden"))}},{key:"outsideClick",value:function(t){this.dropdown&&null!==this.dropdown.offsetParent&&t.target!==this.el&&t.target!==this.overlay&&(this.el.contains(t.target)||this.dropdown.contains(t.target)||this.hide())}},{key:"keyup",value:function(t){27==t.which&&this.hide()}}]),e}(),Sn,"Dropdown"),On=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return an(e,Sn),re(e,[{key:"initialize",value:function(t){this.listenTo(this.el,"change",this.change)}},{key:"render",value:function(){var t=un(this.el,"uniformRadio")?"uniformRadio":"uniformCheckbox";return this.checkbox=document.createElement("div"),hn(this.checkbox,"".concat(t,"-indicator")),this.el.className&&""!=this.el.className.replace(t,"")&&hn(this.checkbox,this.el.className.replace(t,"")),dn(this.checkbox,"checked",this.el.checked),this.el.parentNode.insertBefore(this.checkbox,this.el.nextSibling),this.listenTo(this.checkbox,"click",this.click),this}},{key:"click",value:function(t){this.el.disabled||(this.el.checked=!this.el.checked,pn(this.el,"change"),t.preventDefault())}},{key:"change",value:function(){dn(this.checkbox,"checked",this.el.checked)}}]),e}(),Sn,"Checkbox"),Tn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return an(e,Sn),re(e,[{key:"initialize",value:function(t){this.options={},this.options.klass=t.klass||!1,this.content=t.content,hn(this.el,"uniformModal"),this.listenTo(document,"keyup",this.keyup),this.listenTo(this.el,"click",this.checkCloseButton)}},{key:"keyup",value:function(t){27==t.which&&this.close()}},{key:"render",value:function(){var t="function"==typeof this.content?this.content():this.content;this.highest_z_index=0,this.overlay=document.createElement("div"),hn(this.overlay,"uniformModal-overlay"),this.blur=document.createElement("div"),hn(this.blur,"uniformModal-blur"),this.original_scroll=window.scrollY,this.blur.style.top=0-this.original_scroll+"px",0<document.body.querySelectorAll(".uniformModal").length&&(this.highest_z_index=Math.max(Array.prototype.map.call(document.body.querySelectorAll(".uniformModal"),function(t){return at(yn(t,"zIndex"))})),this.el.style.zIndex=this.highest_z_index+2),this.el.appendChild(this.overlay);for(var e=document.body.children,n=e.length,i=0;i<n;i++)this.blur.appendChild(e[0]);hn(document.body,"uniformModal-active"),document.body.appendChild(this.blur),document.body.appendChild(this.el);var o=document.createElement("div");hn(o,"uniformModal-container"),t instanceof Node?o.appendChild(t):o.innerHTML=t;var r=document.createElement("div");return hn(r,"uniformModal-close"),o.appendChild(r),this.el.style.top=window.scrollY,this.listenTo(this.overlay,"click",this.close),this.el.appendChild(o),this.options.klass&&hn(o,this.options.klass),t.innerHTML&&pn(t,"rendered"),this.trigger("rendered"),this}},{key:"checkCloseButton",value:function(t){un(t.target,"uniformModal-close")&&this.close()}},{key:"close",value:function(){fn(document.querySelectorAll("uniformModal-active"),"uniformModal-active");for(var t=this.blur.children,e=t.length,n=0;n<e;n++)document.body.appendChild(t[0]);this.blur.parentNode&&this.blur.parentNode.removeChild(this.blur),window.scrollTo(0,this.original_scroll),this.trigger("closed"),this.remove()}},{key:"remove",value:function(){Sn.prototype.remove.apply(this,arguments),this.overlay&&this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay),delete this.overlay}}]),e}(),Sn,"Modal"),En='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1em" height="1em" viewBox="0 0 32 32">\n<path d="M28.998 8.531l-2.134-2.134c-0.394-0.393-1.030-0.393-1.423 0l-12.795 12.795-6.086-6.13c-0.393-0.393-1.029-0.393-1.423 0l-2.134 2.134c-0.393 0.394-0.393 1.030 0 1.423l8.924 8.984c0.393 0.393 1.030 0.393 1.423 0l15.648-15.649c0.393-0.392 0.393-1.030 0-1.423z"></path>\n</svg>\n'.trim(),Pn='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1em" height="1em" viewBox="0 0 20 20">\n<path d="M13.418 7.601c0.271-0.268 0.709-0.268 0.979 0s0.271 0.701 0 0.969l-3.907 3.83c-0.271 0.268-0.709 0.268-0.979 0l-3.908-3.83c-0.27-0.268-0.27-0.701 0-0.969s0.708-0.268 0.979 0l3.418 3.14 3.418-3.14z"></path>\n</svg>\n'.trim(),jn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return an(e,Sn),re(e,[{key:"initialize",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.options={label:!1,class:"",showAll:function(t){fn(t.querySelectorAll("button.hide"),"hide");var e=t.querySelector(".uniformSelect-show-all");return e.parentNode.removeChild(e),!1},limit:8,container:document.body},X(this.options,this.pick(t,te(this.options))),this.listenTo(this.el,"change",this.updateSelect),this.listenTo(this.el,"close",this.hideOptions),this.listenTo(this.el,"revealed",this.resize),(this.el.uniformSelect=this).listenTo(window,"resize",this.resize),this.listenTo(window,"scroll",this.updatePosition),this.listenTo(document,"click",this.outsideClick),this.listenTo(document,"keyup",this.keyup),this.activeIcon=document.createElement("span"),hn(this.activeIcon,"uniformSelect-option-icon"),this.activeIcon.innerHTML=En}},{key:"outsideClick",value:function(t){this.showing&&t.target!==this.select_options&&(this.container.contains(t.target)||this.select_options.contains(t.target)||this.hideOptions())}},{key:"keyup",value:function(t){27===t.which&&this.hideOptions()}},{key:"render",value:function(){this.container=document.createElement("div"),hn(this.container,"uniformSelect-container"),this.edit_button=gn("<button type='button' class='uniformSelect-edit uniformInput outline block ".concat(this.options.class,'\'><span class="text-js"></span><span class="uniformSelect-edit-icon">').concat(Pn,"</span></button>")),this.container.appendChild(this.edit_button),this.el.name&&hn(this.container,this.el.name.toLowerCase().replace(/[^a-z0-9\-_]+/g,"-")),this.el.style.display="none",this.el.insertAdjacentElement("beforebegin",this.container),this.updateSelect(),this.resize(),this.listenTo(this.edit_button,"click",this.showOptions),this.listenTo(this.edit_button,"click",".uniformSelect-remove",this.removeSelection)}},{key:"resize",value:function(){for(var t=[],e=this.edit_button.children.length,n=0;n<e;n++)t.push(this.edit_button.children[0]),this.edit_button.children[0].parentNode.removeChild(this.edit_button.children[0]);this.edit_button.innerHTML="",this.edit_button.style.width="auto",this.edit_button.style.maxWidth="100%",this.edit_button.style.minWidth=this.container.offsetWidth+"px",vn(t,function(t){this.edit_button.appendChild(t)}.bind(this)),void 0!==this.select_options&&(window.innerWidth<720||(this.select_options.style.position="absolute",this.select_options.style.top=wn(this.container).top+this.container.offsetHeight+"px",this.select_options.style.left=wn(this.container).left+1+"px",this.select_options.style.minWidth=this.container.offsetWidth-1+"px"))}},{key:"renderOptions",value:function(){this.select_options=gn("<div class='uniformSelect-options'>"),this.options.label&&this.select_options.append('<div class="uniformSelect-label hide show-sm margin-bottom text-bold">'.concat(this.options.label,"</div>")),this.el.name&&hn(this.select_options,this.el.name.toLowerCase().replace(/[^a-z0-9\-_]+/g,"-")),this.select_options.style.fontSize=yn(this.el,"font-size"),this.select_options.style.display="none",this.options.container.appendChild(this.select_options),vn(this.el.querySelectorAll("option"),function(t,e){var n=gn("<button type='button' class='uniformSelect-option block outline text-left'>");n.option=t,n.textContent=t.textContent,n.value=t.value,""==n.textContent&&(n.innerHTML="<span class='text-italic text-muted'>None</span>"),t.selected?(hn(n,"active"),n.append(this.activeIcon.cloneNode(!0))):this.options.limit&&e>this.options.limit&&hn(n,"hide"),this.select_options.append(n),this.listenTo(n,"click",this.selectOption)}.bind(this));var t=gn('<div class="uniformSelect-options-actions"></div>');if(this.options.limit&&this.el.querySelectorAll("option").length>this.options.limit){var e=gn("<button type='button' class='uniformSelect-show-all outline blue' style='display: block; border: none'>Show All</button>");this.listenTo(e,"click",function(t){pn(this.el,"show_all"),this.options.showAll&&this.options.showAll(this.select_options),t.preventDefault(),t.stopPropagation()}),t.appendChild(e)}if(this.el.multiple){var n=gn("<button type='button' class='uniformSelect-done block outline blue'>Done</button>");this.listenTo(n,"click",this.hideOptions),t.appendChild(n)}""!==t.innerHTML&&this.select_options.appendChild(t),pn(this.el,"rendered")}},{key:"hideOptions",value:function(){void 0!==this.select_options&&(this.showing=!1,this.select_options.style.display="none",fn(this.select_options,"fixed"),fn(this.edit_button,"active"),fn(document.body,"uniformModal-hideBody"),this.lastScrollPosition&&window.innerWidth<720&&window.scrollTo(0,this.lastScrollPosition),pn(this.el,"hidden:options"))}},{key:"showOptions",value:function(){if(this.showing)return this.hideOptions(),!1;this.showing=!0,this.select_options||this.renderOptions(),this.resize(),this.select_options.style.display="block",hn(this.edit_button,"active"),this.lastScrollPosition=window.scrollY,this.updatePosition(),hn(document.body,"uniformModal-hideBody"),this.options.container==document.body&&fn(document.body,"uniformModal-hideBody")}},{key:"selectOption",value:function(t){this.el.multiple||(vn(bn(this.el.querySelectorAll("option"),function(t){return t.selected}),function(t){t.selected=!1}),vn(this.select_options.querySelectorAll(".uniformSelect-option.active .uniformSelect-option-icon"),mn),fn(this.select_options.querySelectorAll(".uniformSelect-option.active"),"active")),dn(t.currentTarget,"active"),t.currentTarget.option.selected=un(t.currentTarget,"active"),this.updateOptions(),pn(this.el,"change")}},{key:"updateSelect",value:function(){this.el.multiple||this.hideOptions();var t=function(t,e){for(var n=[],i=0;i<t.length;i++)n.push(e(t[i],i));return n}(bn(this.el.querySelectorAll("option"),function(t){return t.selected}),function(t){return this.el.multiple?'<span class="uniformSelect-selection">'.concat(t.textContent,'<span class="uniformSelect-remove"></span></span>'):t.textContent}.bind(this)).join(" ");""==t&&(t="&nbsp;"),this.edit_button.querySelector(".text-js").innerHTML=t}},{key:"updateOptions",value:function(){vn(this.select_options.querySelectorAll("button"),function(t){t.option&&(dn(t,"active",t.option.selected),un(t,"active")?t.append(this.activeIcon.cloneNode(!0)):vn(t.querySelectorAll(".uniformSelect-option-icon"),mn))}.bind(this))}},{key:"updatePosition",value:function(){if(this.select_options){var t=bn(function(t){var e=[];for(t=t.parentElement;t;)e.push(t),t=t.parentElement;return e}(this.container),function(t){return"fixed"==yn(t,"position")});un(this.select_options,"fixed")?0==t.length&&(this.select_options.style.position="absolute",this.select_options.style.top=wn(this.container).top+this.container.offsetHeight+"px",fn(this.select_options,"fixed")):0<t.length&&(720<window.innerWidth&&(this.lastScrollPosition=!1),this.select_options.style.position="fixed",this.select_options.style.top=wn(this.container).top+this.container.offsetHeight+"px",this.select_options.style.left=wn(this.container).left+"px",hn(this.select_options,"fixed"))}}},{key:"removeSelection",value:function(e){e.preventDefault();var t=bn(this.el.querySelectorAll("option"),function(t){return t.innerText.trim()==e.target.parentNode.innerText.trim()})[0];t&&(t.selected=!1,this.updatePosition(),pn(this.el,"change"))}}]),e}(),Sn,"Select"),Ln=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return an(e,Sn),re(e,[{key:"initialize",value:function(){this.label=this.el.querySelector("label"),this.input=this.el.querySelector("#"+this.label.getAttribute("for")),this.startingHeight,this.listenTo(this.input,"focus",this.activate),this.listenTo(this.input,"blur",this.deactivate),this.listenTo(this.input,"revealed",this.render)}},{key:"render",value:function(){if(null!==this.input.offsetParent&&!un(this.el,"enabled")){var t,e=at(yn(this.input,"paddingBottom"));this.startingHeight=this.input.offsetHeight,hn(this.el,"enabled"),hn(this.el,"inactive"),this.input.style.paddingTop=e+e/2+"px",this.input.style.paddingBottom=e-e/2-2+"px",this.label.style.position="absolute",this.label.style.top=0,this.label.style.left=this.label.offsetLeft,this.label.style.paddingLeft=yn(this.input,"paddingLeft"),this.label.style.height=this.startingHeight,this.label.style.lineHeight=this.startingHeight+"px",t=this.input,document.activeElement===t&&this.activate(),void 0!==this.input.value&&""!=this.input.value&&this.activate()}}},{key:"activate",value:function(t){void 0!==t&&hn(this.el,"active"),un(this.el,"float")||(hn(this.el,"float"),fn(this.el,"inactive"),this.label.style.lineHeight=this.startingHeight/2+"px")}},{key:"deactivate",value:function(t){void 0!==t&&fn(this.el,"active"),""==this.input.value&&(fn(this.el,"float"),hn(this.el,"inactive"),this.label.style.lineHeight=this.startingHeight+"px")}}]),e}(),Sn,"FloatingLabel"),Cn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return an(e,Sn),re(e,[{key:"initialize",value:function(){this.listenTo(window,"resize",this.resize),pn(window,"resize")}},{key:"resize",value:function(){var t=this.el.offsetWidth;720<t&&!un(this.el,"md-size")?(hn(this.el,"md-size"),pn(window,"resized-md")):t<720&&un(this.el,"md-size")&&fn(this.el,"md-size"),1080<t&&!un(this.el,"lg-size")?(hn(this.el,"lg-size"),pn(window,"resized-lg")):t<1080&&un(this.el,"lg-size")&&fn(this.el,"lg-size"),1440<t&&!un(this.el,"xl-size")?(hn(this.el,"xl-size"),pn(window,"resized-xl")):t<1440&&un(this.el,"xl-size")&&fn(this.el,"xl-size"),t<720&&!un(this.el,"sm-size")?(hn(this.el,"sm-size"),pn(window,"resized-sm")):720<t&&un(this.el,"sm-size")&&fn(this.el,"sm-size")}}]),e}(),Sn,"Resizer"),zn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return an(e,Sn),re(e,[{key:"initialize",value:function(t){var e=this;this.showing=!1,t=t||{},this.options={zIndex:2,container:document.body,align:"center bottom",anchor:document.body,content:"needs content",offset:{left:0,top:0}},X(this.options,this.pick(t,te(this.options))),this.listenTo(document,"click",this.checkFocus),this.listenTo(document,"focusin",this.checkFocus),this.listenTo(document,"keyup",this.checkEscape),this.listenTo(window,"resize",function(){e.resize.bind(e)()}),"string"==typeof this.options.container&&(this.options.container=function(t,e){if(t.closest)return t.closest(e);for(;t;){if(Element.prototype.matches?t.matches(e):t.msMatchesSelector(e))return t;t=t.parentElement}}(this.options.anchor,this.options.container),this.options.container=this.options.container||document.body)}},{key:"render",value:function(){return this.showing=!0,this.el.style.position="absolute",this.el.style.zIndex=this.options.zIndex,this.options.content instanceof Node?this.el.appendChild(this.options.content):this.el.innerHTML=this.options.content,this.options.container.appendChild(this.el),this.resize(),this.trigger("shown"),this}},{key:"resize",value:function(){this.setPosition();var t=this.options.align.split(" ");wn(this.el).top+kn(this.el)>Math.max(document.body.offsetHeight,window.innerHeight)&&(t[1]="top"),wn(this.el).top<0&&(t[1]="bottom"),wn(this.el).left<0&&(t[0]="right"),wn(this.el).left+xn(this.el)>document.body.offsetWidth&&(t[0]="left")}},{key:"setPosition",value:function(t){var e=(t=t||this.options.align).split(" "),n=Qt(e,2),i=n[0],o=n[1];i=i||"bottom";var r=wn(this.options.anchor),s=this.options.container;"static"==getComputedStyle(s).position&&(s=s.offsetParent),s||(s=document.body);var l=wn(s);r={top:r.top-l.top,left:r.left-l.left};var c={};if("left"==i?c.right=xn(s)-r.left:"center"==i?c.left=r.left+xn(this.options.anchor)/2-xn(this.el)/2:"right"==i?c.left=r.left+xn(this.options.anchor):i.includes("%")?c.left=r.left+xn(this.options.anchor)*at(i)/100:i.includes("px")&&(c.left=r.left+xn(this.options.anchor)+at(i)),"top"==o){var a=kn(s);s==document.body&&(a=Math.max(a,document.documentElement.scrollHeight)),c.bottom=a-r.top}else"center"==o?c.top=r.top+kn(this.options.anchor)/2-kn(this.el)/2:"bottom"==o?c.top=r.top+kn(this.options.anchor):o.includes("%")?c.top=r.top+kn(this.options.anchor)*at(o)/100:o.includes("px")&&(c.top=r.top+kn(this.options.anchor)+at(o));this.options.offset.left&&(c.left+=at(this.options.offset.left)),this.options.offset.left&&(c.right-=at(this.options.offset.left)),this.options.offset.top&&(c.top+=at(this.options.offset.top)),this.options.offset.top&&(c.bottom-=at(this.options.offset.top)),this.el.style.left="auto",this.el.style.right="auto",this.el.style.top="auto",this.el.style.bottom="auto",fn(this.el,"popover-left popover-right popover-center popover-top popover-bottom"),hn(this.el,"popover-"+o),hn(this.el,"popover-"+i),te(c).forEach(function(t){this.el.style[t]=c[t]+"px"},this)}},{key:"checkFocus",value:function(t){t.defaultPrevented||this.showing&&t.target!==this.el&&t.target!=this.options.anchor&&(this.el.contains(t.target)||this.options.anchor.contains(t.target)||this.hide())}},{key:"checkEscape",value:function(t){27==t.which&&this.hide()}},{key:"isHidden",value:function(){return!this.showing}},{key:"hide",value:function(t){t=t||{},this.showing&&(this.el.style.display="none",!(this.showing=!1)!==t.silent&&this.trigger("hidden"))}},{key:"show",value:function(){this.showing||(this.el.style.display="block",this.showing=!0,this.trigger("shown"))}},{key:"toggle",value:function(t){(t=t||this.showing)?this.hide():this.show()}}]),e}(),Sn,"Popover"),Mn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return an(e,Sn),re(e,[{key:"initialize",value:function(t){t=t||{},this.options={align:"top",container:document.body},X(this.options,this.pick(t,te(this.options))),this.enabled=!0,this.message=t.message,(t.el.tooltip=this).listenTo(this.el,"mouseenter",this.show),this.listenTo(this.el,"mouseleave",this.hide)}},{key:"render",value:function(){return this}},{key:"show",value:function(){this.enabled&&(this.popup=new zn({content:"<div class=\"uniformTooltip-popup\">\n <div class='uniformTooltip-pointer'></div>\n ".concat(this.message,"\n </div>"),anchor:this.el,align:"top"==this.options.align?"center top":"center 100%",offset:{top:-7},container:this.options.container}).render())}},{key:"hide",value:function(){this.popup.remove()}},{key:"disable",value:function(){this.enabled=!1}},{key:"enabled",value:function(){this.enabled=!0}}]),e}(),Sn,"Tooltip"),An=Object.freeze({Dropdown:_n,Checkbox:On,Modal:Tn,Select:jn,FloatingLabel:Ln,Resizer:Cn,Tooltip:Mn,Popover:zn});window.Uniform=An,$&&($.fn.uniformDropdown=function(){return this.each(function(){var n=$(this),t={el:this};void 0!==n.data("dropdown-align")&&(t.align=n.data("dropdown-align")),void 0!==n.data("dropdown-trigger")&&(t.trigger=n.data("dropdown-trigger")),void 0!==n.data("dropdown-show_arrow")&&(t.show_arrow=n.data("dropdown-show_arrow")),void 0!==n.data("dropdown-square")&&(t.square=n.data("dropdown-square")),void 0!==n.data("dropdown-hide_sm")&&(t.hide_sm=n.data("dropdown-hide_sm")),void 0!==n.data("dropdown-content")&&(t.content="<div class='pad'>".concat(n.data("dropdown-content"),"</div>")),void 0!==n.data("dropdown-target")&&(t.content=$(n.data("dropdown-target"))[0]);var e=new _n(t);e.on("*",function(t,e){n.trigger("dropdown-"+t,e)}),e.render()})},$.fn.uniformCheckbox=function(){return this.each(function(){$(this);new On({el:this}).render()})},$.fn.uniformRadio=$.fn.uniformCheckbox,$.fn.uniformFloatingLabel=function(){return this.each(function(){new Ln({el:this}).render()})},$.fn.uniformModal=function(){return this.click(function(){var n=$(this),t={klass:n.data("modal-klass"),content:n.data("modal-content")};if(n.data("modal-target")){var e=$(n.data("modal-target")).clone();e.removeClass("hidden"),t.content=e[0]}new Tn(t).render().on("*",function(t,e){n.trigger("modal-"+t,e)})})},$.fn.uniformResizer=function(){return this.each(function(){new Cn({el:this})})},$.fn.uniformSelect=function(){return this.each(function(){var t={el:this};X(t,$(this).data()),new jn(t).render()})},$.fn.uniformTooltip=function(){return this.each(function(){var n=$(this),t=new Mn({message:n.data("tooltip-message"),container:n.data("tooltip-container"),el:this});t.on("*",function(t,e){n.trigger("tooltip-"+t,e)}),t.render()})},$.fn.uniformTristate=function(){return this.each(function(){var i=$(this);function e(t){if(0==t.length)i.addClass("-null"),$(i.find("input")[1]).prop("checked",!0);else{var e=t.index(),n=0==e?"-true":1==e?"-null":"-false";i.removeClass("-true -null -false"),i.addClass(n)}}i.on("change","input",function(t){e($(t.currentTarget))}),e(i.find("input:checked")),i.on("blur","input",function(t){i.removeClass("-focus")}),i.on("focus","input",function(t){i.addClass("-focus")})})})}();
@@ -1,5 +1,6 @@
1
1
  import * as Uniform from 'uniform';
2
2
 
3
+ window.Uniform = Uniform;
3
4
  if($) {
4
5
  /*
5
6
  Dropdown
@@ -112,6 +113,7 @@ if($) {
112
113
  var el = $(this);
113
114
  var tooltip = new Uniform.Tooltip({
114
115
  message: el.data('tooltip-message'),
116
+ container: el.data('tooltip-container'),
115
117
  el: this
116
118
  });
117
119
  tooltip.on('*', function (event_type, tooltip) {
@@ -121,4 +123,30 @@ if($) {
121
123
  });
122
124
  };
123
125
 
126
+ $.fn.uniformTristate = function () {
127
+ return this.each(function(){
128
+ var el = $(this);
129
+ function updateTristateStatus(checked_input){
130
+ if (checked_input.length == 0) {
131
+ el.addClass('-null');
132
+ $(el.find('input')[1]).prop('checked', true);
133
+ } else {
134
+ var index = checked_input.index();
135
+ var klass = index == 0 ? "-true" : (index == 1 ? "-null" : "-false");
136
+ el.removeClass('-true -null -false');
137
+ el.addClass(klass);
138
+ }
139
+ }
140
+ el.on('change', 'input', function (e) {
141
+ updateTristateStatus($(e.currentTarget));
142
+ });
143
+ updateTristateStatus(el.find('input:checked'));
144
+ el.on('blur', 'input', function (e) {
145
+ el.removeClass('-focus');
146
+ });
147
+ el.on('focus', 'input', function (e) {
148
+ el.addClass('-focus');
149
+ });
150
+ });
151
+ }
124
152
  }
@@ -5,6 +5,7 @@ import Select from 'uniform/select';
5
5
  import FloatingLabel from 'uniform/floating-label';
6
6
  import Resizer from 'uniform/resizer';
7
7
  import Tooltip from 'uniform/tooltip';
8
+ import Popover from 'uniform/popover';
8
9
 
9
10
  export {
10
11
  Dropdown,
@@ -13,7 +14,8 @@ export {
13
14
  Select,
14
15
  FloatingLabel,
15
16
  Resizer,
16
- Tooltip
17
+ Tooltip,
18
+ Popover
17
19
  };
18
20
 
19
21
 
@@ -1,9 +1,9 @@
1
1
  .uniformAlert{
2
2
  border-radius: 0.2em;
3
- border: 1px solid color('gray');
3
+ border: 1px solid color('gray-darker');
4
4
  background: white;
5
5
  position:relative;
6
- color: color('gray');
6
+ color: color('gray-darker');
7
7
 
8
8
  p:last-of-type{
9
9
  margin-bottom: 0 !important;
@@ -16,18 +16,18 @@
16
16
  position:relative; // for adding loaders to buttons which have position:absolute
17
17
  transition: all 0.2s;
18
18
 
19
- color:color('gray');
19
+ color:color('gray-darkest');
20
20
  background-color: white;
21
21
  background-image: linear-gradient(white 33%, darken(white, 7));
22
22
  border-radius: 0.25em;
23
- border:1px solid lighten(color('gray'), 40);
23
+ border:1px solid lighten(color('gray-darkest'), 40);
24
24
 
25
25
  &.input-height{
26
26
  line-height: 1.4;
27
27
  }
28
28
 
29
29
  &:visited{
30
- color:color('gray');
30
+ color:color('gray-darkest');
31
31
  }
32
32
 
33
33
  &:hover,
@@ -60,7 +60,7 @@
60
60
  border-color: transparent;
61
61
  }
62
62
  &.-outline{
63
- border-color: color('gray');
63
+ border-color: color('gray-darkest');
64
64
  background:none !important;
65
65
  text-shadow:none !important;
66
66
  &.-dashed{
@@ -90,7 +90,7 @@
90
90
  }
91
91
  &.-outline{
92
92
  color: color('red');
93
- border-color: lighten(color('gray'), 30);
93
+ border-color: lighten(color('gray-darkest'), 30);
94
94
  }
95
95
  }
96
96
 
@@ -100,6 +100,14 @@
100
100
  display:block;
101
101
  width:100%;
102
102
  }
103
+
104
+ &.-raw{
105
+ background: none;
106
+ border: none;
107
+ text-shadow: none;
108
+ font-weight: normal;
109
+ box-shadow: none;
110
+ }
103
111
 
104
112
 
105
113
  //----------------------------------------------------------------
@@ -152,10 +160,10 @@
152
160
  }
153
161
 
154
162
  &.-gray{
155
- color: lighten(color('gray'), 20);
163
+ color: color('gray-darker');
156
164
  &.-outline{
157
- color: lighten(color('gray'), 20);
158
- border-color: lighten(color('gray'), 30);
165
+ color: color('gray-darker');
166
+ border-color: color('gray-dark');
159
167
  }
160
168
  }
161
169
 
@@ -175,15 +183,15 @@
175
183
  &:disabled:hover,
176
184
  &.disabled:hover{
177
185
  cursor: not-allowed;
178
- color:lighten(color('gray'), 40);
186
+ color: color('gray');
179
187
  background-image:none !important;
180
- background-color: darken(color('background'), 10);
181
- border-color: lighten(color('gray'), 40);
188
+ background-color: color('gray-light');
189
+ border-color: color('gray');
182
190
  text-shadow: none;
183
191
  &.disabled-dark{
184
- background-color: color('gray-dark');
185
- color: lighten(color('gray-dark'), 30);
186
- border-color: darken(color('gray-dark'), 5);
192
+ background-color: color('gray-darker');
193
+ color: color('gray-darkest');
194
+ border-color: color('gray-darkest');
187
195
  opacity: 0.75;
188
196
  }
189
197
  }
@@ -197,7 +205,10 @@ a.uniformButton{
197
205
 
198
206
  .uniformButtonGroup {
199
207
  font-size: 0;
200
- a{
208
+ a, button{
209
+ outline: none;
210
+ appearance: none;
211
+ cursor: pointer;
201
212
  font-size: 1rem;
202
213
  position:relative;
203
214
  z-index: 1;
@@ -215,5 +226,10 @@ a.uniformButton{
215
226
  border-color: darken(color('green'), 3);
216
227
  color: white;
217
228
  }
229
+ &:disabled{
230
+ background: color('background');
231
+ color: color('gray-light');
232
+ cursor: not-allowed;
233
+ }
218
234
  }
219
235
  }
@@ -2,7 +2,7 @@
2
2
  background: white;
3
3
  border-width: 1px;
4
4
  border-style: solid;
5
- border-color: color('gray-light');
5
+ border-color: color('gray');
6
6
  border-radius: 0.25em;
7
7
  margin-bottom: 1em;
8
8
 
@@ -28,10 +28,10 @@
28
28
  clear: both;
29
29
  }
30
30
  .uniformCard-header{
31
- border-bottom: 1px solid color('gray-light');
31
+ border-bottom: 1px solid color('gray');
32
32
  }
33
33
  .uniformCard-footer{
34
- border-top: 1px solid color('gray-light');
34
+ border-top: 1px solid color('gray');
35
35
  }
36
36
 
37
37
  .uniformCard-collapse{
@@ -25,28 +25,6 @@
25
25
  &.square{
26
26
  border-radius: 0;
27
27
  }
28
- .uniformDropdown-pointer{
29
- @include size-rule('md'){
30
- position:absolute;
31
- bottom: 100%;
32
- left: 50%;
33
- margin-left: -1em;
34
- width: 2em;
35
- height: 2em;
36
- overflow: hidden;
37
- &:after{
38
- content: "";
39
- position: absolute;
40
- width: 100%;
41
- height: 100%;
42
- background: white;
43
- transform: rotate(-45deg);
44
- top: 85%;
45
- left: 0;
46
- box-shadow: 0 1px 3px 2px rgba(black, 0.2);
47
- }
48
- }
49
- }
50
28
  &.has-pointer{
51
29
  @include size-rule('md'){
52
30
  margin-top:1em;
@@ -54,6 +32,29 @@
54
32
  }
55
33
  }
56
34
 
35
+ .uniformDropdown-pointer{
36
+ @include size-rule('md'){
37
+ position:absolute;
38
+ bottom: 100%;
39
+ left: 50%;
40
+ margin-left: -1em;
41
+ width: 2em;
42
+ height: 2em;
43
+ overflow: hidden;
44
+ &:after{
45
+ content: "";
46
+ position: absolute;
47
+ width: 100%;
48
+ height: 100%;
49
+ background: white;
50
+ transform: rotate(-45deg);
51
+ top: 85%;
52
+ left: 0;
53
+ box-shadow: 0 1px 3px 2px rgba(black, 0.2);
54
+ }
55
+ }
56
+ }
57
+
57
58
  @include size-rule('sm'){
58
59
  .uniformOverlay{
59
60
  position: fixed;
@@ -21,9 +21,9 @@
21
21
  flex: 1 1 auto;
22
22
  text-align: center;
23
23
  border-radius: 0.25em;
24
- border: 1px solid color('gray-light');
24
+ border: 1px solid color('gray');
25
25
  &.active{
26
- background: color('gray-light');
26
+ background: color('gray');
27
27
  box-shadow: inset 0 -1px 0 0 color('blue');
28
28
  }
29
29
  &:last-of-type{
@@ -36,10 +36,10 @@
36
36
  padding: 0.5em;
37
37
  line-height: 1.3;
38
38
  border-radius: 0.25em;
39
- border: 1px solid color('gray-light');
39
+ border: 1px solid color('gray');
40
40
  cursor: pointer;
41
41
  &.active{
42
- background: color('gray-light');
42
+ background: color('gray');
43
43
  }
44
44
  }
45
45
  }
@@ -32,7 +32,7 @@
32
32
  }
33
33
  .uniformCheckbox-indicator{
34
34
  &::before{
35
- background-image: url("data:image/svg+xml; utf8,#{icon-check(#FFFFFF)}");
35
+ background-image: icon-check(#FFFFFF);
36
36
  background-position: center center;
37
37
  background-repeat: no-repeat;
38
38
  background-size: 80%;
@@ -1,7 +1,7 @@
1
1
  .uniformFloatingLabel{
2
2
  display: flex;
3
3
  align-items: center;
4
- border: 1px solid lighten(color('gray'), 40);
4
+ border: 1px solid color('gray');
5
5
  position:relative;
6
6
  background:white;
7
7
  &>*{
@@ -33,6 +33,7 @@
33
33
 
34
34
  &.enabled{
35
35
  label{
36
+ white-space: nowrap;
36
37
  transition: font-size 0.1s, line-height 0.1s, opacity 0.1s;
37
38
  }
38
39
  }
@@ -1,6 +1,6 @@
1
1
  .uniformInputGroup{
2
2
  background: white;
3
- border: 1px solid lighten(color('gray'), 40);
3
+ border: 1px solid color('gray');
4
4
  display: flex;
5
5
  align-items: center;
6
6
  transition: box-shadow 0.1s ease-in;
@@ -42,7 +42,7 @@
42
42
  overflow:hidden;
43
43
  }
44
44
  .label{
45
- color: lighten(color('gray'), 20);
45
+ color: color('gray-dark');
46
46
  }
47
47
  @include size-rule('sm'){
48
48
  input{