File "redux-vendors.min.js"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/kapee-extensions/inc/admin/redux-core/assets/js/redux-vendors.min.js
File size: 18.86 KB
MIME-type: text/html
Charset: utf-8
function collapse(e){var t,e=e.target,n=e.parentNode.getElementsByClassName("collapsible");n.length&&("none"===(n=n[0]).style.display?(t=n.parentNode.getElementsByClassName("ellipsis")[0],n.parentNode.removeChild(t),n.style.display=""):(n.style.display="none",(t=document.createElement("span")).className="ellipsis",t.innerHTML=" … ",n.parentNode.insertBefore(t,n)),e.innerHTML="-"===e.innerHTML?"+":"-")}function addCollapser(e){var t;"LI"===e.nodeName&&((t=document.createElement("div")).className="collapser",t.innerHTML="-",t.addEventListener("click",collapse,!1),e.insertBefore(t,e.firstChild))}function jsonView(e,t){if(this.debug=!1,-1!==e.indexOf("#"))this.idType="id",this.id=e.replace("#","");else{if(-1===e.indexOf("."))return void(this.debug&&console.log("Can't find that element"));this.idType="class",this.id=e.replace(".","")}if(this.data=document.getElementById(this.id).innerHTML,-1!==t.indexOf("#"))this.targetType="id",this.target=t.replace("#","");else{if(-1===e.indexOf("."))return void(this.debug&&console.log("Can't find the target element"));this.targetType="class",this.target=t.replace(".","")}/^\<pre.*\>(.*)\<\/pre\>$/.test(this.data)&&(this.debug&&console.log("JSONView: data is wrapped in <pre>...</pre>, stripping HTML..."),this.data=this.data.replace(/<(?:.|\s)*?>/g,""));var e=/^[\s\u200B\uFEFF]*([\w$\[\]\.]+)[\s\u200B\uFEFF]*\([\s\u200B\uFEFF]*([\[{][\s\S]*[\]}])[\s\u200B\uFEFF]*\);?[\s\u200B\uFEFF]*$/,t=/^\s*([\[\{].*[\}\]])\s*$/.test(this.data),n=e.test(this.data);if(this.debug&&console.log("JSONView: is_json="+t+" is_jsonp="+n),t||n){function a(){}this.debug&&console.log("JSONView: sexytime!"),a.prototype={htmlEncode:function(e){return null!=e?e.toString().replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"):""},decorateWithSpan:function(e,t){return'<span class="'+t+'">'+this.htmlEncode(e)+"</span>"},valueToHTML:function(e){var t=typeof e,n="";return null===e?n+=this.decorateWithSpan("null","null"):e&&e.constructor===Array?n+=this.arrayToHTML(e):"object"==t?n+=this.objectToHTML(e):"number"==t?n+=this.decorateWithSpan(e,"num"):"string"==t?/^(http|https):\/\/[^\s]+$/.test(e)?n+='<a href="'+e+'">'+this.htmlEncode(e)+"</a>":n+=this.decorateWithSpan('"'+e+'"',"string"):"boolean"==t&&(n+=this.decorateWithSpan(e,"bool")),n},arrayToHTML:function(e){var t,n='[<ul class="array collapsible">',a=!1;for(t in e)a=!0,n=(n+="<li>")+this.valueToHTML(e[t])+"</li>";return n+="</ul>]",n=a?n:"[ ]"},objectToHTML:function(e){var t,n='{<ul class="obj collapsible">',a=!1;for(t in e)a=!0,n=(n=(n+="<li>")+'<span class="prop">'+this.htmlEncode(t)+"</span>: ")+this.valueToHTML(e[t])+"</li>";return n+="</ul>}",n=a?n:"{ }"},jsonToHTML:function(e,t,n){var a="";return t?a=a+'<div class="callback">'+t+' (</div><div id="json">':a+='<div id="json">',a=a+this.valueToHTML(e)+"</div>",t&&(a+='<div class="callback">)</div>'),this.toHTML(a,n)},errorPage:function(e,t,n){var a='<div id="error">Error parsing JSON: '+e.message+"</div>",a=(a+="<h1>"+e.stack+":</h1>")+('<div id="json">'+this.htmlEncode(t)+"</div>");return this.toHTML(a,n+" - Error")},toHTML:function(e){return e}},this.jsonFormatter=new a;var t="",n="",r="",e=e.exec(this.data),n=e&&3===e.length?(this.debug&&console.log("THIS IS JSONp"),r=e[1],e[2]):(this.debug&&console.log("Vanilla JSON"),this.data);this.debug&&console.log(n);try{var i=JSON.parse(n);if(!i)throw"There was no object!";t=this.jsonFormatter.jsonToHTML(i,r)}catch(e){this.debug&&console.log(e),t=this.jsonFormatter.errorPage(e,this.data)}for(var o,e="<style type=\"text/css\">.jsonViewOutput .prop{font-weight:700;}.jsonViewOutput .null{color:red;}.jsonViewOutput .string{color:green;}.jsonViewOutput .collapser{position:absolute;left:-1em;cursor:pointer;}.jsonViewOutput li{position:relative;}.jsonViewOutput li:after{content:',';}.jsonViewOutput li:last-child:after{content:'';}.jsonViewOutput #error{-moz-border-radius:8px;border:1px solid #970000;background-color:#F7E8E8;margin:.5em;padding:.5em;}.jsonViewOutput .errormessage{font-family:monospace;}.jsonViewOutput #json{font-family:monospace;font-size:1.1em;}.jsonViewOutput ul{list-style:none;margin:0 0 0 2em;padding:0;}.jsonViewOutput h1{font-size:1.2em;}.jsonViewOutput .callback + #json{padding-left:1em;}.jsonViewOutput .callback{font-family:monospace;color:#A52A2A;}.jsonViewOutput .bool,.jsonViewOutput .num{color:blue;}</style>",l=(void 0!==this.targetType&&(this.idType=this.targetType,this.id=this.target),"class"===this.idType?(o=document.getElementsByClassName(this.id))&&(o.className+=o.className?" jsonViewOutput":"jsonViewOutput",o.innerHTML=e+t):"id"===this.idType&&((o=document.getElementById(this.id))&&(o.className+=o.className?" jsonViewOutput":"jsonViewOutput",o.innerHTML=e+t),o.innerHTML=e+t),document.getElementsByClassName("collapsible")),s=l.length,u=0;u<s;u++)addCollapser(l[u].parentNode)}}!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(p){var n=/\+/g;function d(e){return h.raw?e:encodeURIComponent(e)}function f(e,t){e=h.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(n," ")),h.json?JSON.parse(e):e}catch(e){}}(e);return"function"==typeof t?t(e):e}var h=p.cookie=function(e,t,n){var a,r;if(1<arguments.length&&"function"!=typeof t)return"number"==typeof(n=p.extend({},h.defaults,n)).expires&&(a=n.expires,(r=n.expires=new Date).setMilliseconds(r.getMilliseconds()+864e5*a)),document.cookie=[d(e),"=",(r=t,d(h.json?JSON.stringify(r):String(r))),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("");for(var i=e?void 0:{},o=document.cookie?document.cookie.split("; "):[],l=0,s=o.length;l<s;l++){var u=o[l].split("="),c=(c=u.shift(),h.raw?c:decodeURIComponent(c)),u=u.join("=");if(e===c){i=f(u,t);break}e||void 0===(u=f(u))||(i[c]=u)}return i};h.defaults={},p.removeCookie=function(e,t){return p.cookie(e,"",p.extend({},t,{expires:-1})),!p.cookie(e)}}),function(r){r.fn.alphanum=function(e){return c(this,v,h(e)),this},r.fn.alpha=function(e){var t=h("alpha");return c(this,v,h(e,t)),this},r.fn.numeric=function(a){return c(this,w,m(a)),this.on("blur",function(){var e,t,n;e=this,t=a,n=parseFloat(r(e).val()),e=r(e),(isNaN(n)||(f(t.min)&&n<t.min&&e.val(""),f(t.max)&&n>t.max))&&e.val("")}),this};var e,t,a={allow:"",disallow:"",allowSpace:!0,allowNumeric:!0,allowUpper:!0,allowLower:!0,allowCaseless:!0,allowLatin:!0,allowOtherCharSets:!0,maxLength:NaN},n={allowPlus:!1,allowMinus:!0,allowThouSep:!0,allowDecSep:!0,allowLeadingSpaces:!1,maxDigits:NaN,maxDecimalPlaces:NaN,maxPreDecimalPlaces:NaN,max:NaN,min:NaN},i={alpha:{allowNumeric:!1},upper:{allowNumeric:!1,allowUpper:!0,allowLower:!1,allowCaseless:!0},lower:{allowNumeric:!1,allowUpper:!1,allowLower:!0,allowCaseless:!0}},o={integer:{allowPlus:!1,allowMinus:!0,allowThouSep:!1,allowDecSep:!1},positiveInteger:{allowPlus:!1,allowMinus:!1,allowThouSep:!1,allowDecSep:!1}},l=(e="!@#$%^&*()+=[]\\';,/{}|\":<>?~`.-_",(e+=" ")+"¬€£¦"),s=",",u=".",p=function(){var e,t="0123456789".split(""),n={},a=0;for(a=0;a<t.length;a++)e=t[a],n[e]=!0;return n}(),d=(t=(e="abcdefghijklmnopqrstuvwxyz").toUpperCase(),new T(e+t));function c(e,l,s){e.each(function(){var o=r(this);o.on("keyup change paste",function(e){var i="";e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.getData&&(i=e.originalEvent.clipboardData.getData("text/plain")),setTimeout(function(){var e=o,t=l,n=s,a=i,r=e.val();""==r&&0<a.length&&(r=a),a=t(r,n),r!=a&&(t=e.alphanum_caret(),e.val(a),r.length==a.length+1?e.alphanum_caret(t-1):e.alphanum_caret(t))},0)}),o.on("keypress",function(e){var t,n,a,r=e.charCode||e.which;!(32<=(t=r))&&10!=t&&13!=t||e.ctrlKey||e.metaKey||(t=String.fromCharCode(r),a=(r=o.selection()).start,r=r.end,a=(n=o.val()).substring(0,a)+t+n.substring(r),l(a,s)!=a&&e.preventDefault())})})}function f(e){return!isNaN(e)}function h(e,t){var n={},e="string"==typeof e?i[e]:void 0===e?{}:e;return r.extend(n,t=void 0===t?a:t,e),void 0===n.blacklist&&(n.blacklistSet=function(e,t){t=new T(l+t),e=new T(e);return t.subtract(e)}(n.allow,n.disallow)),n}function m(e){var t={},e="string"==typeof e?o[e]:void 0===e?{}:e;return r.extend(t,n,e),t}function g(e,t,n){if(p[t])return!function(e,t){t=t.maxDigits;return""!=t&&!isNaN(t)&&(e=y(e),t<=e)}(e,n)&&!(function(e,t){t=t.maxPreDecimalPlaces;return!(""==t||isNaN(t)||0<=e.indexOf(u))&&(e=y(e),t<=e)}(e,n)||(r=e,""!=(i=(i=n).maxDecimalPlaces)&&!isNaN(i)&&-1!=(a=r.indexOf(u))&&(r=y(r.substring(a)),i<=r))||(a=e+t,(i=n).max&&!(i.max<0)&&parseFloat(a)>i.max)||(r=e+t,(i=n).min&&!(0<i.min)&&parseFloat(r)<i.min));var a,r,i,o;if(n.allowPlus&&"+"==t&&""==e)return 1;if(n.allowMinus&&"-"==t&&""==e)return 1;if(t==s&&n.allowThouSep&&0!=(r=e).length&&!(0<=r.indexOf(u)||!((i=r.indexOf(s))<0)&&(o=r.lastIndexOf(s),r.length-o-1<3||0<y(r.substring(i))%3)))return 1;if(t==u){if(0<=e.indexOf(u))return;if(n.allowDecSep)return 1}}function y(e){return(e+="").replace(/[^0-9]/g,"").length}function v(e,t){if("string"!=typeof e)return e;for(var n,a,r,i,o=e.split(""),l=[],s=0,s=0;s<o.length;s++){var u=o[s],c=l.join("");c=c,n=u,i=r=void 0,(a=t).maxLength&&c.length>=a.maxLength||!(0<=a.allow.indexOf(n)||a.allowSpace&&" "==n)&&(a.blacklistSet.contains(n)||!a.allowNumeric&&p[n]||!a.allowUpper&&(r=(c=n).toUpperCase(),i=c.toLowerCase(),c==r)&&r!=i||!a.allowLower&&(r=(c=n).toUpperCase(),i=c.toLowerCase(),c==i)&&r!=i||!a.allowCaseless&&(c=n).toUpperCase()==c.toLowerCase()||!a.allowLatin&&d.contains(n)||!a.allowOtherCharSets&&!p[n]&&!d.contains(n))||l.push(u)}return l.join("")}function w(e,t){if("string"!=typeof e)return e;for(var n=e.split(""),a=[],r=0,r=0;r<n.length;r++){var i=n[r];g(a.join(""),i,t)&&a.push(i)}return a.join("")}function T(e){this.map="string"==typeof e?function(e){var t,n={},a=e.split(""),r=0;for(r=0;r<a.length;r++)t=a[r],n[t]=!0;return n}(e):{}}T.prototype.add=function(e){var t,n=this.clone();for(t in e.map)n.map[t]=!0;return n},T.prototype.subtract=function(e){var t,n=this.clone();for(t in e.map)delete n.map[t];return n},T.prototype.contains=function(e){return!!this.map[e]},T.prototype.clone=function(){var e,t=new T;for(e in this.map)t.map[e]=!0;return t},r.fn.alphanum.backdoorAlphaNum=function(e,t){return v(e,h(t))},r.fn.alphanum.backdoorNumeric=function(e,t){return w(e,m(t))},r.fn.alphanum.setNumericSeparators=function(e){1==e.thousandsSeparator.length&&1==e.decimalSeparator.length&&(s=e.thousandsSeparator,u=e.decimalSeparator)}}(jQuery),function(r){function i(e,t){var n;e.createTextRange?((n=e.createTextRange()).move("character",t),n.select()):null!=e.selectionStart&&(e.trigger("focus"),e.setSelectionRange(t,t))}r.fn.alphanum_caret=function(n,a){if(void 0!==n)return this.queue(function(e){var t;isNaN(n)?(t=r(this).val().indexOf(n),!0===a?t+=n.length:void 0!==a&&(t+=a),i(this,t)):i(this,n),e()});var e=this.get(0);if("selection"in document){var t=e.createTextRange();try{t.setEndPoint("EndToStart",document.selection.createRange())}catch(e){return 0}return t.text.length}return null!=e.selectionStart?e.selectionStart:void 0}}(jQuery),function(p){function d(e){return e?e.ownerDocument.defaultView||e.ownerDocument.parentWindow:window}function f(e,t){var n,a,r=p.Range.current(e).clone(),e=p.Range(e).select(e);return r.overlaps(e)?(r.compare("START_TO_START",e)<1?(n=0,r.move("START_TO_START",e)):((a=e.clone()).move("END_TO_START",r),n=a.toString().length),{start:n,end:0<=r.compare("END_TO_END",e)?e.toString().length:n+r.toString().length}):null}var o=function(e,t,n,a){"number"==typeof n[0]&&n[0]<t&&(n[0]={el:a,count:n[0]-e}),"number"==typeof n[1]&&n[1]<=t&&(n[1]={el:a,count:n[1]-e})},h=function(e,t,n){var a,r;n=n||0;for(var i=0;e[i];i++)3===(a=e[i]).nodeType||4===a.nodeType?(r=n,n+=a.nodeValue.length,o(r,n,t,a)):8!==a.nodeType&&(n=h(a.childNodes,t,n));return n};p.fn.selection=function(l,s){if(void 0!==l)return this.each(function(){var e,t,n,a,r,i,o;t=l,n=s,o=d(e=this),e.setSelectionRange?void 0===n?(e.trigger("focus"),e.setSelectionRange(t,t)):(e.select(),e.selectionStart=t,e.selectionEnd=n):e.createTextRange?((r=e.createTextRange()).moveStart("character",t),r.moveEnd("character",(n=n||t)-e.value.length),r.select()):o.getSelection?(r=o.document,a=o.getSelection(),i=r.createRange(),h([e],r=[t,void 0!==n?n:t]),i.setStart(r[0].el,r[0].count),i.setEnd(r[1].el,r[1].count),a.removeAllRanges(),a.addRange(i)):o.document.body.createTextRange&&((i=document.body.createTextRange()).moveToElementText(e),i.collapse(),i.moveStart("character",t),i.moveEnd("character",void 0!==n?n:t),i.select())});var e,t,n,a,r,i,o,u=this[0],c=d(u);if(void 0!==u.selectionStart)return document.activeElement&&document.activeElement!==u&&u.selectionStart===u.selectionEnd&&0===u.selectionStart?{start:u.value.length,end:u.value.length}:{start:u.selectionStart,end:u.selectionEnd};if(c.getSelection)return f(u);try{return"input"===u.nodeName.toLowerCase()?(e=d(u).document.selection.createRange(),(t=u.createTextRange()).setEndPoint("EndToStart",e),{start:n=t.text.length,end:n+e.text.length}):((a=f(u))&&(i=(r=p.Range.current().clone()).clone().collapse().range,o=r.clone().collapse(!1).range,i.moveStart("character",-1),o.moveStart("character",-1),0!==a.startPos&&""===i.text&&(a.startPos+=2),0!==a.endPos)&&""===o.text&&(a.endPos+=2),a)}catch(e){return{start:u.value.length,end:u.value.length}}},p.fn.selection.getCharElement=h}(jQuery),function(o){o.fn.serializeForm=function(){var r,i,e,t;return!(this.length<1)&&(i=r={},t=function(){if(!this.disabled){var e=this.name.replace(/\[([^\]]+)?\]/g,",$1").split(","),t=e.length-1,n=o(this);if(e[0]){for(var a=0;a<t;a++)i=i[e[a]]=i[e[a]]||(""===e[a+1]||"0"===e[a+1]?[]:{});void 0!==i.length?i.push(n.val()):i[e[t]]=n.val(),i=r}}},this.filter(e=':input[type!="checkbox"][type!="radio"], input:checked').each(t),this.find(e).each(t),r)}}(jQuery),function(e){var t;"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?(t=require("jquery"),module.exports=e(t)):e(window.jQuery||window.Zepto||window.$)}(function(u){"use strict";var l=/\r?\n/g,n=/^(?:submit|button|image|reset|file)$/i,a=/^(?:input|select|textarea|keygen)/i,s=/^(?:checkbox|radio)$/i,o=(u.fn.serializeJSON=function(e){var i=u.serializeJSON,o=i.setupOpts(e),l=u.extend({},o.defaultTypes,o.customTypes),e=i.serializeArray(this,o),s={};return u.each(e,function(e,t){var n,a=t.name,r=u(t.el).attr("data-value-type");r||o.disableColonTypes||(a=(n=i.splitType(t.name))[0],r=n[1]),"skip"!==r&&(r=r||o.defaultType,(n=i.applyTypeFunc(t.name,t.value,r,t.el,l))||!i.shouldSkipFalsy(t.name,a,r,t.el,o))&&(r=i.splitInputNameIntoKeysArray(a),i.deepSet(s,r,n,o))}),s},u.serializeJSON={defaultOptions:{},defaultBaseOptions:{checkboxUncheckedValue:void 0,useIntKeysAsArrayIndex:!1,skipFalsyValuesForTypes:[],skipFalsyValuesForFields:[],disableColonTypes:!1,customTypes:{},defaultTypes:{string:function(e){return String(e)},number:function(e){return Number(e)},boolean:function(e){return-1===["false","null","undefined","","0"].indexOf(e)},null:function(e){return-1===["false","null","undefined","","0"].indexOf(e)?e:null},array:function(e){return JSON.parse(e)},object:function(e){return JSON.parse(e)},skip:null},defaultType:"string"},setupOpts:function(e){var t,n=u.serializeJSON,a=["checkboxUncheckedValue","useIntKeysAsArrayIndex","skipFalsyValuesForTypes","skipFalsyValuesForFields","disableColonTypes","customTypes","defaultTypes","defaultType"];for(t in e=null==e?{}:e)if(-1===a.indexOf(t))throw new Error("serializeJSON ERROR: invalid option '"+t+"'. Please use one of "+a.join(", "));return u.extend({},n.defaultBaseOptions,n.defaultOptions,e)},serializeArray:function(e,i){var o,t;return null==i&&(i={}),o=u.serializeJSON,e.map(function(){return(t=u.prop(this,"elements"))?u.makeArray(t):this}).filter(function(){var e=u(this),t=this.type;return this.name&&!e.is(":disabled")&&a.test(this.nodeName)&&!n.test(t)&&(this.checked||!s.test(t)||null!=o.getCheckboxUncheckedValue(e,i))}).map(function(e,t){var n=u(this),a=n.val(),r=this.type;return null==a?null:(s.test(r)&&!this.checked&&(a=o.getCheckboxUncheckedValue(n,i)),f(a)?u.map(a,function(e){return{name:t.name,value:e.replace(l,"\r\n"),el:t}}):{name:t.name,value:a.replace(l,"\r\n"),el:t})}).get()},getCheckboxUncheckedValue:function(e,t){e=e.attr("data-unchecked-value");return e=null==e?t.checkboxUncheckedValue:e},applyTypeFunc:function(e,t,n,a,r){var i=r[n];if(i)return i(t,a);throw new Error("serializeJSON ERROR: Invalid type "+n+" found in input name '"+e+"', please use one of "+o(r).join(", "))},splitType:function(e){var t,n=e.split(":");return 1<n.length?(t=n.pop(),[n.join(":"),t]):[e,""]},shouldSkipFalsy:function(e,t,n,a,r){var a=u(a).attr("data-skip-falsy");return null!=a?"false"!==a:!(!(a=r.skipFalsyValuesForFields)||-1===a.indexOf(t)&&-1===a.indexOf(e))||!(!(t=r.skipFalsyValuesForTypes)||-1===t.indexOf(n))},splitInputNameIntoKeysArray:function(e){e=e.split("[");return""===(e=u.map(e,function(e){return e.replace(/\]/g,"")}))[0]&&e.shift(),e},deepSet:function(e,t,n,a){null==a&&(a={});var r=u.serializeJSON;if(p(e))throw new Error("ArgumentError: param 'o' expected to be an object or array, found undefined");if(!t||0===t.length)throw new Error("ArgumentError: param 'keys' expected to be an array with least one element");var i,o,l,s=t[0];1===t.length?""===s?e.push(n):e[s]=n:(i=t[1],t=t.slice(1),""===s&&(l=e[o=e.length-1],s=c(l)&&p(r.deepGet(l,t))?o:1+o),""===i||a.useIntKeysAsArrayIndex&&d(i)?!p(e[s])&&f(e[s])||(e[s]=[]):!p(e[s])&&c(e[s])||(e[s]={}),r.deepSet(e[s],t,n,a))},deepGet:function(e,t){var n,a=u.serializeJSON;return p(e)||p(t)||0===t.length||!c(e)&&!f(e)?e:""!==(n=t[0])?1===t.length?e[n]:(t=t.slice(1),a.deepGet(e[n],t)):void 0}},function(e){if(Object.keys)return Object.keys(e);var t,n=[];for(t in e)n.push(t);return n}),c=function(e){return e===Object(e)},p=function(e){return void 0===e},d=function(e){return/^[0-9]+$/.test(String(e))},f=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(e.jQuery)}(this,function(n){"use strict";n.fn.typeWatch=function(e){var i=n.extend({wait:750,callback:function(){},highlight:!0,captureLength:2,allowSubmit:!1,inputTypes:["TEXT","TEXTAREA","PASSWORD","TEL","SEARCH","URL","EMAIL","DATETIME","DATE","MONTH","WEEK","TIME","DATETIME-LOCAL","NUMBER","RANGE","DIV"]},e);function t(e){var r,n=(e.type||e.nodeName).toUpperCase();0<=jQuery.inArray(n,i.inputTypes)&&(r={timer:null,text:"DIV"===n?jQuery(e).html():jQuery(e).val(),cb:i.callback,el:e,type:n,wait:i.wait},i.highlight&&"DIV"!==n&&jQuery(e).on("focus",function(){this.trigger("select")}),jQuery(e).on("keydown paste cut input",function(e){var t=r.wait,a=!1;void 0!==e.keyCode&&13==e.keyCode&&"TEXTAREA"!==n&&"DIV"!==n&&(t=1,a=!0);clearTimeout(r.timer),r.timer=setTimeout(function(){var e,t,n;t=a,((n="DIV"===(e=r).type?jQuery(e.el).html():jQuery(e.el).val()).length>=i.captureLength&&n!=e.text||t&&(n.length>=i.captureLength||i.allowSubmit)||0==n.length&&e.text)&&(e.text=n,e.cb.call(e.el,n))},t)}))}return this.each(function(){t(this)})}});