text: !function(){"use strict";function t(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&null!=n?t.attachEvent("on"+e,function(e){e.preventDefault=function(){e.returnValue=!1},e.stopPropagation=function(){e.cancelBubble=!0},n.call(t,e)}):void 0}function e(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent&&null!=n?t.detachEvent("on"+e,n):void 0}function n(t){return t.replace(/^\s+|\s+$/g,"")}function u(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")}function r(t,e){u(t,e)||(t.className=""===t.className?e:t.className+" "+e)}function i(t,e){t.className=n((" "+t.className+" ").replace(" "+e+" "," "))}function o(t,e,n){if(t)for(var u=0;u<t.length;u++)e.call(n,t[u],u,t)}function a(t){var e={};return o(t.attributes,function(t){t.specified&&"type"!==t.name&&"id"!==t.name&&(e[t.name]=t.value)}),null==e.value&&""!==t.value&&(e.value=t.value),e}function c(t,e){for(var n in e)t.setAttribute(n,e[n])}function l(t){return"textarea"===t.type?t.type:t.getAttribute("type")||"input"!==t.tagName.toLowerCase()?t.getAttribute("type"):"text"}function f(t){return document.getElementsByTagName(t)}function d(t){t.preventDefault()}function s(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}function p(t,e){if(t.createTextRange){var n=t.createTextRange();n.move("character",e),n.select()}else t.selectionStart&&(t.focus(),t.setSelectionRange(e,e))}function v(t){return"placeholder"in t&&t.placeholder||t.attributes.placeholder&&t.attributes.placeholder.nodeValue}function b(t){return Boolean(v(t))}function m(t,e){for(var n=0;n<t.length;n++)if(null!=t[n]&&e(t[n]))return!0;return!1}function h(t){return"placeholder"in document.createElement(t)&&!Le}function y(){return h("input")}function g(){return h("textarea")}function A(){return y()||g()}function x(){try{return document.activeElement}catch(t){}}function E(t){return s(ke,t)}function w(t){return s(Ne,t)}function k(){var t=/MSIE 9/i;return t.test(window.navigator.userAgent)}function N(t,e){if(k())return!1;try{var n=t.type;return t.type=e,t.type=n,!0}catch(u){return!1}}function L(t){return b(t)&&E(l(t))}function S(t){return"false"===t.getAttribute("data-placeholder-watch")}function T(t){return"input"===t.getAttribute("data-placeholder-mode")}function B(t){return"true"===t.getAttribute("data-placeholder-has-events")}function j(t){return"true"===t.getAttribute("data-placeholder-active")}function O(t){return"true"===t.getAttribute("data-placeholder-submit")}function I(t){return"true"===t.getAttribute("data-placeholder-clone")}function D(t){return null!=t.getAttribute("data-placeholder-value")}function q(t){return"password"===t.getAttribute("data-placeholder-type")}function z(t){t.setAttribute("data-placeholder-submit","true")}function C(t){t.setAttribute("data-placeholder-clone","true")}function P(t){t.setAttribute("data-placeholder-active","true")}function R(t){t.setAttribute("data-placeholder-has-events","true")}function M(t,e){t.setAttribute("data-placeholder-value",e)}function V(t,e){t.setAttribute("data-placeholder-element-value",e)}function F(t){return t.getAttribute("data-placeholder-element-value")}function W(t){return t.getAttribute("data-placeholder-value")}function G(t){return t.getAttribute("data-placeholder-maxlength")}function H(t){t.setAttribute("data-placeholder-maxlength",t.maxLength)}function J(t){return t.getAttribute("data-placeholder-type")}function K(t,e){t.setAttribute("data-placeholder-type",e)}function Q(t){t.removeAttribute("data-placeholder-maxlength")}function U(t){t.removeAttribute("data-placeholder-active")}function X(t){t.removeAttribute("data-placeholder-submit")}function Y(t){var e=["value","element-value","has-events","active","maxlength","type"];o(e,function(e){t.removeAttribute("data-placeholder-"+e)})}function Z(){return Se}function _(){return Te}function tt(t){var e=t.form;return"string"==typeof e&&(e=document.getElementById(e)),e}function et(t){var e=document.getElementsByTagName("form");o(e,t)}function nt(t,e){var n=t.getElementsByTagName("input"),u=t.getElementsByTagName("textarea");o(n,e),o(u,e)}function ut(t){o(Se,function(e){t(e)}),o(Te,function(e){t(e)})}function rt(){y()||(Se=f("input")),g()||(Te=f("textarea"))}function it(t,e){var n=t.id;""!==n&&(t.removeAttribute("id"),e.id=n)}function ot(t,e){e.value=t.value,t.value=""}function at(t,e){t.style.display="none",e.style.display="block"}function ct(t,e){it(t,e),ot(t,e),at(t,e)}function lt(t){return null!=t&&1===t.nodeType&&I(t)}function ft(t){return t.previousSibling}function dt(t){return t.nextSibling}function st(t){return lt(ft(t))}function pt(t){var e=document.createElement("input");return c(e,a(t)),e.type="text",e.removeAttribute("name"),e.style.display="none",C(e),e}function vt(t){var e=pt(t);t.parentNode.insertBefore(e,t)}function bt(t){var e=ft(t);ct(e,t),t.style.display="",e.parentNode.removeChild(e)}function mt(t){return"password"===t.type&&!N(t,"text")}function ht(t){mt(t)&&vt(t)}function yt(t){st(t)&&bt(t)}function gt(){return Be}function At(){return je}function xt(){return Oe}function Et(){return m(Ie,S)}function wt(){return m(Ie,T)}function kt(){je=!0}function Nt(){je=!1}function Lt(){Oe=!0}function St(){Oe=!1}function Tt(){Be=!1}function Bt(){Be=!0}function jt(t){return t.attributes.maxLength&&t.attributes.maxLength.specified}function Ot(t){var e=G(t);e&&(t.setAttribute("maxLength",e),Q(t))}function It(t){jt(t)&&(H(t),t.removeAttribute("maxLength"))}function $t(t){var e=W(t);if(""===t.value&&null!=e){if("password"===t.type)if(st(t)){var n=ft(t);ct(t,n),t=n}else t.type="text";t.value=e,P(t),r(t,"placeholder"),It(t)}}function Dt(t,e){t.value=e?t.value.replace(W(t),""):"",U(t),i(t,"placeholder"),Ot(t)}function qt(t){if(q(t))if(lt(t)){var e=dt(t);ct(t,e),t=e,t.focus()}else t.type="password";Dt(t,!0)}function zt(t){return j(t)&&t.value===W(t)}function Ct(t){zt(t)&&qt(t)}function Pt(t){L(t)&&$t(t)}function Rt(t){return!At()&&zt(t)}function Mt(t){return function(){Rt(t)?p(t,0):zt(t)&&(qt(t),""===t.value&&p(t,0))}}function Vt(t){return function(){zt(t)||$t(t)}}function Ft(t){return function(){nt(t,Ct),setTimeout(function(){nt(t,Pt)},10)}}function Wt(t){return function(e){return De=t.value,zt(t)&&w(e.keyCode)?(d(e),!1):void 0}}function Gt(t){return function(){null!=De&&De!==t.value&&qt(t),""===t.value&&(t.blur(),p(t,0))}}function Ht(t){return function(){t===x()&&zt(t)&&p(t,0)}}function Jt(e,n){$e[n]=qe[n](e),t(e,n,$e[n])}function Kt(t,n){e(t,n,$e[n]),delete $e[n]}function Qt(t){Jt(t,"blur"),st(t)&&(t=ft(t)),Jt(t,"focus"),At()||o(ze,function(e){Jt(t,e)})}function Ut(){return"keydown"in $e&&"keyup"in $e&&"click"in $e}function Xt(t){Kt(t,"blur"),st(t)&&(t=ft(t)),Kt(t,"focus"),Ut()&&o(ze,function(e){Kt(t,e)})}function Yt(t){Jt(t,"submit")}function Zt(t){Kt(t,"submit")}function _t(t){zt(t)&&Dt(t,!1)}function te(){ut(_t)}function ee(t){null==t||O(t)||(Yt(t),z(t))}function ne(){t(window,"beforeunload",te)}function ue(t){B(t)&&Xt(t)}function re(t){O(t)&&(Zt(t),X(t))}function ie(t){if(!t)return!1;for(var e=0;e<t.length;e++)if(L(t[e]))return!0;return!1}function oe(){var t=ie(Z());return t===!1&&(t=ie(_())),t}function ae(t,e){M(t,e),K(t,l(t)),V(t,t.value),R(t),ht(t),ee(tt(t)),Qt(t)}function ce(t){null!=F(t)&&(t.value=F(t))}function le(t,e){null!=t&&(e&&(t.removeAttribute("placeholder"),ce(e)),ce(t),ue(t),Y(t),yt(t),i(t,"placeholder"))}function fe(t){return E(l(t))&&!B(t)}function de(t,e){return D(t)&&W(t)!==e}function se(t,e){return j(t)&&""!==t.value&&t.value!==e}function pe(t){return""!==t.value||t===x()}function ve(t){return I(t)&&null!=dt(t)}function be(t){var e=ve(t)?dt(t):t;return l(e)!==J(t)}function me(t){if(be(t)){var e=t.getAttribute("type"),n=J(t);("text"!==e||"password"!==n)&&(ve(t)&&(t=dt(t),t.setAttribute("type",n)),le(t))}}function he(t){if(t){var e=v(t),n=void 0;if(st(t)&&(n=ft(t)),!e||n&&!v(n))return void(B(t)&&le(t,n));if(me(t),fe(t))ae(t,e);else{if(n&&t.disabled!==n.disabled&&("block"===n.style.display&&(t.disabled=n.disabled),"block"===t.style.display&&(n.disabled=t.disabled)),de(t,e)){M(t,e),t.value=e;var u=dt(t);u&&1===u.nodeType&&(u.setAttribute("placeholder",e),M(u,e))}W(t)!==t.value&&V(t,t.value),se(t,e)&&qt(t)}pe(t)||$t(t)}}function ye(){ut(he)}function ge(){wt()?Nt():kt(),oe()?Bt():Tt(),A()||ye()}function Ae(){A()||(clearInterval(Pe),ge(),Et()?St():(Lt(),Pe=setInterval(ge,Ce.defaultLoopDuration)))}function xe(){Tt(),clearInterval(Pe),et(re),ut(le)}function Ee(){A()||($.fn.val=function(t){var e=He.apply(this,arguments),n=this.eq(0).data("placeholder-value");return void 0===t&&this.eq(0).data("placeholder-active")&&e===String(n)?"":e},$.fn.prop=function(t,e){return void 0===e&&this.eq(0).data("placeholder-active")&&"value"===t?"":Je.apply(this,arguments)})}var we={};we["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};var ke=["text","search","url","tel","email","password","number","textarea"],Ne=[27,33,34,35,36,37,38,39,40,8,46],Le="[object OperaMini]"===Object.prototype.toString.call(window.operamini),Se=[],Te=[],Be=!1,je=!0,Oe=!1,Ie=[document.documentElement,document.body],$e={},De=void 0,qe={keydown:Wt,keyup:Gt,click:Ht,blur:Vt,focus:Mt,submit:Ft},ze=["keydown","keyup","click"],Ce={defaultLoopDuration:100},Pe=null;rt(),ne(),Ae(),Object.freeze||(Object.freeze=function(t){return t});var Re=gt,Me=Ae,Ve=xe,Fe=At,We=xt,Ge=Object.freeze({settings:Ce,hasElementsThatNeedPlaceholder:ie,setupPlaceholders:ye,init:Ae,isEnabled:Re,enable:Me,disable:Ve,isFocusEnabled:Fe,isWatchingEnabled:We});"function"==typeof define&&define.amd?define("placekeeper",[],function(){return Ge}):"object"===("undefined"==typeof exports?"undefined":we["typeof"](exports))?module.exports=Ge:window.placekeeper=Ge;var He=$.fn.val,Je=$.fn.prop;Ee()}();