text: !function(n){"function"==typeof define&&define.amd?define(["jquery","underscore"],n):"object"==typeof exports?n(require("jquery")):n(jQuery)}(function(l,t){function e(n,e){if(0<=n.indexOf(e))return 1;for(var t=0;t<a.length;t++){var o=a[t];if(e>=o[0]&&e<=o[1])return 1}}function n(n){!isNaN(n.val())&&0!=n.val().length||n.val(0);var e=n.attr("min");null!=e&&n.val()<Number(e)&&n.val(e);e=n.attr("max");null!=e&&n.val()>Number(e)&&n.val(e)}var a,o;a=[[48,57],[96,105]],o=[8,9,13,37,39,46,189],l.fn.decimal=function(){l(this).on("keydown",function(n){e(o.concat([190]),n.keyCode)||n.preventDefault()}).on("change",function(){n(l(this))})},l.fn.integer=function(){l(this).on("keydown",function(n){e(o,n.keyCode)||n.preventDefault()}).on("change",function(){n(l(this))})},l.fn.bindDragMove=function(e,t,o,n){var a=l(this),i=0,r={x:0,y:0},u={x:0,y:0},c=!1;function s(n){var e;n.stopPropagation(),i?(e=(new Date).getTime())-i!=0&&(u={x:Math.abs(n.touches[0].clientX-r.x)/(e-i),y:Math.abs(n.touches[0].clientY-r.y)/(e-i)},i=e):i=(new Date).getTime(),r={x:n.touches[0].clientX,y:n.touches[0].clientY},t(n,r,u,a)}a.on("mousedown",function(n){0==n.button&&(n.stopPropagation(),c=!0,e(n,{x:n.pageX,y:n.pageY},a),l(document).on("mousemove",function(n){var e;0==n.button&&(n.stopPropagation(),i=i?(e=(new Date).getTime(),u={x:Math.abs(n.pageX-r.x)/(e-i),y:Math.abs(n.pageY-r.y)/(e-i)},e):(new Date).getTime(),r={x:n.pageX,y:n.pageY},t(n,r,u,a))}))}),l(document).on("mouseup",function(n){0==n.button&&(l(document).unbind("mousemove"),o(n,{x:n.pageX,y:n.pageY},u))}),a.on("touchstart",function(n){n.stopPropagation(),c=!0,e(n,{x:n.originalEvent.changedTouches[0].clientX,y:n.originalEvent.changedTouches[0].clientY},a),document.body.addEventListener("touchmove",s,{passive:!1})}),l("body").on("touchend",function(n){document.body.removeEventListener("touchmove",s),i=0,c&&(c=!1,o(n,{x:n.originalEvent.changedTouches[0].clientX,y:n.originalEvent.changedTouches[0].clientY},u))})},l.fn.bindMouseWheel=function(e){var n=l(this),t=!1;document.body.addEventListener("mousewheel",function(n){t&&n.preventDefault()},{passive:!1}),n.on("mouseover",function(n){t=!0}),n.on("mouseout",function(n){t=!1}),n.on("mousewheel",function(n){e(n,n.originalEvent.wheelDelta)})},l.pageLoading=function(n){n=l.extend(!0,{},{class:"secondary"},n=n||{});var e=l(t.template(`
              <div class="p-page-loading page-loading">
                  <button class="btn btn-<%=cfg.class%>" type="button" disabled>
                      <span class="spinner-border spinner-border-sm"></span>
                      <span class="visually-hidden">Loading...</span>
                  </button>
              </div>
          `)({cfg:n}));return l("body").append(e),{stop:function(){e.remove()}}},l.remToPixels=function(n){return n*parseFloat(getComputedStyle(document.documentElement).fontSize)},l.uuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var e=16*Math.random()|0;return("x"==n?e:3&e|8).toString(16)})},l.queryString={parse:function(n){var e="",t=(n=n||window.location.href).indexOf("?");0<=t?e=n.substring(t+1):0<n.indexOf("&")&&(e=n);for(var o={},a=e.split("&"),i=0;i<a.length;i++){var r=a[i].split("=");o[r[0]]=decodeURIComponent(r[1])}return o},stringify:function(n){var e,t="";for(e in n)0<t.length&&(t+="&"),t+=e+"="+n[e];return t}},l.uri=function(e){var n;if(e){e=decodeURIComponent(e);try{n=new URL(e)}catch(n){return e}}else e=decodeURIComponent(window.location.href),n=window.location;return e.split(n.host)[1]};var r="prac:";function u(n,e){return e?r+e+":"+n:r+n}l.localStorage={put:function(n,e,t){localStorage.setItem(u(n,t),e)},get:function(n,e){return localStorage.getItem(u(n,e))},all:function(n){var e={},t=r;for(n&&(t+=n+":"),i=0;i<localStorage.length;i++){var o=localStorage.key(i);0==o.indexOf(t)&&(e[o]=localStorage.getItem(o))}return e}}});
  //# sourceMappingURL=jquery.prac.common.js.map