diff --git a/.babelrc b/.babelrc index 2e9fb56..ce25571 100644 --- a/.babelrc +++ b/.babelrc @@ -1,13 +1,20 @@ { + "plugins": [ + "transform-object-rest-spread", + "transform-class-properties" + ], "presets": [ - "es2015", + "node6", ["es2015", { + "modules": false + }], "react" ], "env": { "development": { "presets": [ "react-hmre" - ] + ], + "plugins": ["istanbul"] } } } diff --git a/README.md b/README.md index 5414fb2..12c8219 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,15 @@ No more form validations, with valid-me-react you can validate groups of items, # React sample using JSX : ```jsx - import ReactDOM from 'react-dom'; -import {ValidMe,forceValidation} from 'valid-me-react/src/validMeReact'; +import {ValidMe,forceValidation,clearAllValidationErrors,phoneTypesEnum} from 'valid-me-react'; let doHi = () => { let areThereErrors = forceValidation(undefined, undefined, 'hi'); //validate elements belonging to group hi console.log(areThereErrors); + if (!areThereErrors){ + clearAllValidationErrors(); + } } let handleChange = (event) => { console.log(event.target.value); @@ -34,3 +36,12 @@ ReactDOM.render(( ``` *The styles available in the live-sample are on the sample-styles.css file* + +Extra attributes you can pass to the ValidMe element : + +**validmemessage** +**validmefor** +**validmecondition** +**validmenocolor** +**validmeerror** +**validmesuccess** diff --git a/dist/bundle.js b/dist/bundle.js index f687255..bbd906e 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -1,56 +1,38 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}([function(e,t,n){"use strict";n(84)},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(t),!e){var d;if(void 0===t)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,s,u],p=0;d=new Error(t.replace(/%s/g,function(){return l[p++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";var r=n(9),o=r;e.exports=o},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}var o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,a,s=n(e),u=1;u1){for(var g=Array(c),h=0;h1){for(var m=Array(f),b=0;b-1?void 0:a(!1),!d.plugins[n]){t.extractEvents?void 0:a(!1),d.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)?void 0:a(!1)}}}function o(e,t,n){d.eventNameDispatchConfigs.hasOwnProperty(n)?a(!1):void 0,d.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){d.registrationNameModules[e]?a(!1):void 0,d.registrationNameModules[e]=t,d.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(1),s=null,u={},d={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?a(!1):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]?a(!1):void 0,u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return d.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=d.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];d.plugins.length=0;var t=d.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=d.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=d},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=h++,c[e[m]]={}),c[e[m]]}var o,i=n(3),a=n(10),s=n(24),u=n(135),d=n(76),l=n(163),p=n(46),c={},g=!1,h=0,f={topAbort:"abort",topAnimationEnd:l("animationend")||"animationend",topAnimationIteration:l("animationiteration")||"animationiteration",topAnimationStart:l("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:l("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),b=i({},u,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(b.handleTopLevel),b.ReactEventListener=e}},setEnabled:function(e){b.ReactEventListener&&b.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!b.ReactEventListener||!b.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,o=r(n),i=s.registrationNameDependencies[e],u=a.topLevelTypes,d=0;d":">","<":"<",'"':""","'":"'"},i=/[&><"']/g;e.exports=r},function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function o(e,t,n){l.insertTreeBefore(e,t,n)}function i(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):b(e,t,n)}function a(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],u(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var o=t;;){var i=o.nextSibling;if(b(e,o,r),o===n)break;o=i}}function u(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function d(e,t,n){var r=e.parentNode,o=e.nextSibling;o===t?n&&b(r,document.createTextNode(n),o):n?(m(o,n),u(r,o,t)):u(r,e,t)}var l=n(16),p=n(107),c=n(69),g=n(6),h=n(41),f=n(47),m=n(83),b=h(function(e,t,n){e.insertBefore(t,n)}),y={dangerouslyReplaceNodeWithMarkup:p.dangerouslyReplaceNodeWithMarkup,replaceDelimitedText:d,processUpdates:function(e,t){for(var n=0;n=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return!!r&&!!n[r]}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);if("function"==typeof t)return t}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t,n){"use strict";/** - * Checks if an event is supported in the current execution environment. - * - * NOTE: This will not work correctly for non-generic events such as `change`, - * `reset`, `load`, `error`, and `select`. - * - * Borrows from Modernizr. - * - * @param {string} eventNameSuffix Event name, e.g. "click". - * @param {?boolean} capture Check if the capture phase is supported. - * @return {boolean} True if the event is supported. - * @internal - * @license Modernizr 3.0.0pre (Custom Build) | MIT - */ -function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(5);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){"use strict";var r=n(5),o=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=n(41),s=a(function(e,t){e.innerHTML=t});if(r.canUseDOM){var u=document.createElement("div");u.innerHTML=" ",""===u.innerHTML&&(s=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&i.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),u=null}e.exports=s},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?d.escape(e.key):t.toString(36)}function o(e,t,n,i){var c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||a.isValidElement(e))return n(i,e,""===t?l+r(e,0):t),1;var g,h,f=0,m=""===t?l:t+p;if(Array.isArray(e))for(var b=0;b":a.innerHTML="<"+e+">",s[e]=!a.firstChild),s[e]?c[e]:null}var o=n(5),i=n(1),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],d=[1,"","
"],l=[3,"","
"],p=[1,'',""],c={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:d,colgroup:d,tbody:d,tfoot:d,thead:d,td:l,th:l},g=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];g.forEach(function(e){c[e]=p,s[e]=!0}),e.exports=r},function(e,t){"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var a=0;a.")}var a=h[e]||(h[e]={});if(a[o])return null;a[o]=!0;var s={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==p.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function a(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n>",E={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),any:a(),arrayOf:s,element:u(),instanceOf:d,node:g(),objectOf:p,oneOf:l,oneOfType:c,shape:h};e.exports=E},function(e,t,n){"use strict";function r(e){a.enqueueUpdate(e)}function o(e,t){var n=i.get(e);return n?n:null}var i=(n(13),n(38)),a=n(8),s=n(1),u=(n(2),{isMounted:function(e){var t=i.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var i=o(e);return i?(i._pendingCallbacks?i._pendingCallbacks.push(t):i._pendingCallbacks=[t],void r(i)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(t),r(n)}},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e?s(!1):void 0}});e.exports=u},function(e,t){"use strict";e.exports="15.0.2"},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function r(e,t){if(null==t?o(!1):void 0,null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var o=n(1);e.exports=r},function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.exports=n},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.NATIVE?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(71);e.exports=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(5),i=null;e.exports=r},function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e){var t;if(null===e||e===!1)t=s.create(o);else if("object"==typeof e){var n=e;!n||"function"!=typeof n.type&&"string"!=typeof n.type?d(!1):void 0,t="string"==typeof n.type?u.createInternalComponent(n):r(n.type)?new n.type(n):new l(n)}else"string"==typeof e||"number"==typeof e?t=u.createInstanceForText(e):d(!1);return t._mountIndex=0,t._mountImage=null,t}var i=n(3),a=n(114),s=n(65),u=n(70),d=n(1),l=(n(2),function(e){this.construct(e)});i(l.prototype,a.Mixin,{_instantiateReactComponent:o}),e.exports=o},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&r[e.type]||"textarea"===t)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){"use strict";var r=n(5),o=n(30),i=n(47),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){i(e,o(t))})),e.exports=a},function(module,exports,__webpack_require__){(function($){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.ValidMe=exports.phoneTypesEnum=exports.clearAllValidationErrors=exports.forceValidation=void 0;var _createClass=function(){function e(e,t){for(var n=0;n1)validRules.type=ruleArray[0],validRules.rule=ruleArray[1];else{var res=ruleArray[0].split("&");res.length>1?(validRules.type=res[0],validRules.typeTwo=res[1]):validRules.type=ruleArray[0]}if(void 0!=props.validmeoptional&&""==value)return result;if("text"==validRules.type){var regex=new RegExp("^[0-9(\\s)]+$");if(void 0!=validRules.rule&&(""==validRules.rule||"alphanumeric"==validRules.rule))return regex.test(value)?(result.good=!1,result.message=customMessageOrThis(validMeManager.ERROR.OnlyAlphanumeric),result):""!=value?(result.good=!0,result):(result.good=!1,result.message=customMessageOrThis(validMeManager.ERROR.CannotBeEmpty),result)}if(validRules.type.indexOf("length")>=0){var lengths=validRules.rule.split("-"),minLength=0,maxLength=0;if(lengths&&lengths.length>1?(minLength=lengths[0],maxLength=lengths[1]):void 0!=lengths&1==lengths.length&&(maxLength=lengths[0]),""==value&&"lengthOptional"!=validRules.type)return result.message=customMessageOrThis(validMeManager.ERROR.CannotBeEmpty),result.good=!1,result;var regex=new RegExp("^.{"+minLength+","+maxLength+"}$"),condition=regex.test(value);return condition?result.good=!0:(result.message=customMessageOrThis(validMeManager.ERROR.IncorrectSizeOfNumbersPartOne+" "+validRules.rule+" "+validMeManager.ERROR.IncorrectSizeOfNumbersPartTwo),result.good=!1),result}if(validRules.type.indexOf("phoneNumber")>=0){var validatePhoneType=void 0;if(validRules.type.split("-").length>1&&(validatePhoneType=parseInt(validRules.type.split("-")[1])),validRules.rule.includes("emptyok")&&""==value)return result.good=!0,result;try{if(0>value.indexOf("+")){var util=phoneNumberUtil.getInstance(),parsedNumber=util.parse(value,validMeManager.VALIDATION.CountryCode);if(util.isValidNumber(parsedNumber)){var numberType=util.getNumberType(parsedNumber);validatePhoneType&&numberType!=validatePhoneType?(result.good=!1,result.message=customMessageOrThis(validMeManager.ERROR.NoValidPhoneNumber)):result.good=!0}else result.good=!1,result.message=customMessageOrThis(validMeManager.ERROR.NoValidPhoneNumber)}else if(window.intlTelInputUtils.isValidNumber(value)){var _numberType=window.intlTelInputUtils.getNumberType(value);_numberType==phoneTypesEnum.MOBILE||_numberType==phoneTypesEnum.FIXED_LINE||_numberType==phoneTypesEnum.FIXED_LINE_OR_MOBILE||_numberType==phoneTypesEnum.PERSONAL_NUMBER||_numberType==phoneTypesEnum.VOIP||_numberType==phoneTypesEnum.TOLL_FREE?(console.log("validatePhoneType",validatePhoneType," ",_numberType),validatePhoneType&&validatePhoneType!=_numberType?(result.good=!1,result.message=customMessageOrThis(validMeManager.ERROR.NoValidPhoneNumber)):result.good=!0):(result.good=!1,result.message=customMessageOrThis(validMeManager.ERROR.NoValidPhoneNumber))}else result.good=!1,result.message=customMessageOrThis(validMeManager.ERROR.NoValidPhoneNumber)}catch(ex){result.good=!1,result.message=customMessageOrThis(validMeManager.ERROR.NoValidPhoneNumber)}return result}if("numeric"==validRules.type){var part1="^[",part2="]+$",_regex=new RegExp(part1+"0-9"+part2);void 0!=props.validmemessage&&""!=props.validmemessage&&(result.message=props.validmemessage);var condition2=_regex.test(value),condition1=!validRules.rule.includes("$value")||!condition2||eval(validRules.rule.replace("$value",value)),extraValidation=!(void 0==validRules.rule||!_regex.test(validRules.rule));return""!=value&&condition1&&condition2?void 0!=validRules.rule&&""!=validRules.rule?"0"==value?(result.good=!1,result.message=customMessageOrThis(validMeManager.ERROR.ZeroIsNotValid),result):extraValidation&&value.length>validRules.rule?(result.good=!1,result.message=void 0!=props.validmemessage?props.validmemessage:validMeManager.ERROR.IncorrectSizeOfNumbersPartOne+" "+validRules.rule+" "+validMeManager.ERROR.IncorrectSizeOfNumbersPartTwo,result):(result.good=!0,result):(result.good=!0,result):(""==value?result.message=customMessageOrThis(validMeManager.ERROR.CannotBeEmpty):condition1?condition1&&!condition2&&(result.message=customMessageOrThis(validMeManager.ERROR.OnlyNumbersAllowed)):result.message=customMessageOrThis(validMeManager.ERROR.OnlyNumbersAllowed),result.good=!1,result)}if(validRules.type.indexOf("url")>=0){var urlValid=/^(https:\/\/www\.|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/g;return""!=value&&urlValid.test(value)?(result.message="Value "+value+" is a valid https url",result.good=!0,result):""==value&&"urlOptional"==validRules.type?(result.good=!0,result):(""==value?result.message=void 0!=props.validmemessage?props.validmemessage:validMeManager.ERROR.InvalidUrl:result.message=void 0!=props.validmemessage?props.validmemessage:validMeManager.ERROR.InvalidUrl,result.good=!1,result)}if(validRules.type.indexOf("imageUrl")>=0){var _urlValid=new RegExp("^https://(?:[a-z0-9-]+.)+[a-z]{2,6}(?:/[^/#?]+)+.(?:jpg|gif|png|jpeg)$");if(""!=value&&_urlValid.test(value))return result.message=void 0!=props.validmemessage?props.validmemessage:validMeManager.ERROR.InvalidUrl,result.good=!0,result}if("number"==validRules.type){if(void 0!=validRules.rule&&""!=validRules.rule){var _part="^[",_part2="]+$",_regex2=new RegExp(_part+validRules.rule+_part2);return""!=value&&_regex2.test(value)?(result.message="Value "+value+" is a number",result.good=!0,result):(""==value?result.message=void 0!=props.validmemessage?props.validmemessage:validMeManager.ERROR.CannotBeEmpty:result.message=customMessageOrThis(validMeManager.ERROR.OnlyNumbersAllowed),result.good=!1,result)}throw RegExp("You specified a number validation but didnt provide which set of numbers to validate")}if("email"==validRules.type){if(""==value)return result.message=customMessageOrThis(validMeManager.ERROR.CannotBeEmpty),result.good=!1,result;var re=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return re.test(value)?(result.good=!0,result):(result.good=!1,result.message=customMessageOrThis(validMeManager.ERROR.InvalidEmail),result)}if("required"==validRules.type){if(""==value||"No file selected"==value)return result.message=customMessageOrThis(validMeManager.ERROR.IsRequired),result.good=!1,result;if(result.good=!0,void 0==validRules.typeTwo)return result}return"dropdown"==validRules.type?""==value?(result.message=customMessageOrThis(validMeManager.ERROR.SelectionRequired),result.good=!1,result):value==props.defaulttext?(result.message=customMessageOrThis(validMeManager.ERROR.SelectionRequired),result.good=!1,result):(result.good=!0,result):"boolean"==validRules.type?value!=validRules.rule?(void 0!=props.validmemessage&&""!=props.validmemessage?result.message=props.validmemessage:result.message=customMessageOrThis(validMeManager.ERROR.ToggleRequired),result.good=!1,result):(result.good=!0,result):"condition"!=validRules.type&&"condition"!=validRules.typeTwo||!(void 0!==validRules.rule&&null!==validRules.rule&&""!==validRules.rule||props.condition)?result:props.condition()?(result.good=!0,result):(result.message=void 0!=props.validmemessagecondition?props.validmemessagecondition:"",result.good=!1,result)}throw RegExp("You defined the valid-me attribute in an element but didnt define the \n valid-me-for attribute. Some valid values for it are \n text \ntext @ letters \ntext @ alphanumeric \nnumeric\nnumber @ 1-9 \nnumber @ 1-9 \ncondition @ condition expression to be evaluated \nemail \nrequired \n)")};validMeManager.validMeQueue.push(newQueueEventTask);var cb=function cb(){if(null==validMeManager.validMeQueue[_this4.state.index]||void 0==validMeManager.validMeQueue[_this4.state.index])return void console.warn("Invalid element to validate",validMeManager.validMeQueue[_this4.state.index]);_this4.validMeItem=validMeManager.validMeQueue[_this4.state.index].element=element,validMeManager.validMeQueue[_this4.state.index].props=props,validMeManager.validMeQueue[_this4.state.index].index=index,validMeManager.validMeQueue[_this4.state.index].errorActionVisible=!1,validMeManager.validMeQueue[_this4.state.index].group=void 0!=props.group?props.group:"",validMeManager.validMeQueue[_this4.state.index].toggleError=validMeManager.validMeQueue[_this4.state.index].showError=function(){validMeManager.validMeQueue.map(function(e,t){t!=index&&validMeManager.validMeQueue[t].element.parent().find(".error-label").hide(),t==validMeManager.validMeQueue.length-1&&validMeManager.validMeQueue[_this4.state.index].element.parent().find(".error-label").show()})},isDropdown?element.parent(".supa-dropdown").click(validMeManager.validMeQueue[_this4.state.index].showError):element[0].onclick=validMeManager.validMeQueue[_this4.state.index].showError,validMeManager.validMeQueue[_this4.state.index].errorTemplate=props.template||'',validMeManager.validMeQueue[_this4.state.index].errorCheckmarkTemplate='!',validMeManager.validMeQueue[_this4.state.index].isDropdown=isDropdown,void 0==validMeManager.validationTask&&(validMeManager.validationTask=function(validMeTask,showErrorsIfNeeded,triggeredByButton,forceError,errorMessage){if(void 0!=validMeTask.element.attr("validmecondition")&&!showErrorsIfNeeded&&!eval(validMeTask.element.attr("validmecondition"))){var res={message:"DoNotValidate",element:{},good:!0,value:""};return res}var that=_this4,result=validMeTask(validMeTask.element,validMeTask.props,showErrorsIfNeeded),successEvent=props.validmesuccess,errorEvent=props.validmeerror;if(!result.good&&1==showErrorsIfNeeded||1==forceError){var toContinue=!0;if(void 0!=triggeredByButton&&void 0!=validMeTask.props.validmeoptional&&(toContinue=!1),toContinue){if(void 0==validMeTask.props.validmenored&&validMeTask.element.toggleClass("error-border",!0),void 0!=errorMessage&&(result.message=errorMessage),window[errorMessage+validMeTask.index.toString()]=result.message,0==validMeTask.element.parent().find(".error-label").length){""!=result.message&&(validMeTask.element.parent().append(validMeTask.errorTemplate),validMeTask.element.parent().append(validMeTask.errorCheckmarkTemplate));var possibleLabel={};possibleLabel=void 0!=validMeTask.props.validmeselectthirdparent?validMeTask.element.parent().parent().parent().find("label:first"):void 0!=validMeTask.props.validmeselectfourthparent?validMeTask.element.parent().parent().parent().parent().find("label:first"):validMeTask.element.parent().parent().find("label:first"),possibleLabel.length>0&&void 0==validMeTask.props.validmenocolor&&(possibleLabel.toggleClass("error-color",!0),validMeTask.borderErrorAdded=!0)}void 0!=errorEvent&&null!=errorEvent&&errorEvent(),void 0!=validMeTask.element.parent().parent().find(".error-label")&&(void 0!=errorMessage&&(result.message=errorMessage),validMeTask.element.parent().parent().find(".error-label").children().last().text(result.message))}}else 1==showErrorsIfNeeded&&removeErrors(validMeTask,successEvent);return result});var validMeTask={};validMeManager.areThereErrors=function(e,t){var n=!1,r=[];if(e)return n=groupValidation(e,t),0==n&&(r=document.getElementsByClassName("error-checkmark"),n=void 0!=r&&null!=r&&r.length>0),n},validMeManager.executeValidationOnElement=function(e,t){for(var n=0;n1?e.split("&").forEach(function(r,o){return groupValidationLoop(r,t)?(e.toLowerCase().indexOf("mandatory")<0&&disableActionButton(r),n=!0,!1):void enableActionButton(r)}):groupValidationLoop(e,t)?(disableActionButton(e),n=!0):enableActionButton(e),n},removeErrors=function(e,t){e.element.toggleClass("error-border",!1),e.element.parent().find(".error-label").remove(),e.element.parent().find(".error-checkmark").remove();var n={};n=void 0!=e.props.validmeoptional?e.element.parent().find("label:first"):e.element.parent().parent().find("label:first"),n.length>0&&1==e.borderErrorAdded&&(n.toggleClass("error-color",!1),e.borderErrorAdded=!1),void 0!=t&&null!=t&&t()},groupValidationLoop=function(e,t){var n=!1;return window.validMeReact.validMeManager.validMeQueue.forEach(function(r,o){if(r.group.includes(e)&&isVisible(r.element)){var i=window.validMeReact.validMeManager.validationTask(r,t).good;0!=n||i||(n=!0)}}),n},enableActionButton=function(e){$('[data-group*="'+e+'"]').toggleClass("disable",!1)},disableActionButton=function(e){$('[data-group*="'+e+'"]').toggleClass("disable",!0)},forceValidation=exports.forceValidation=function(e,t,n,r){var o=!1,i={};if(window.validMeReact){var a,a,a;!function(){var s=window.validMeReact.validMeManager;if(e){if(void 0!=s.validMeQueue.forEach)for(a=0;a')},goog.appendScriptSrcNode_=function(e){var t=goog.global.document,n=t.createElement("script");n.type="text/javascript",n.src=e,n.defer=!1,n.async=!1,t.head.appendChild(n)},goog.writeScriptTag_=function(e,t){if(goog.inHtmlDocument_()){var n=goog.global.document;if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&"complete"==n.readyState){if(/\bdeps.js$/.test(e))return!1;throw Error('Cannot write "'+e+'" after document load')}if(void 0===t)if(goog.IS_OLD_IE_){goog.oldIeWaiting_=!0;var r=" onreadystatechange='goog.onScriptLoad_(this, "+ ++goog.lastNonModuleScriptIndex_+")' ";n.write('")}else goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING?goog.appendScriptSrcNode_(e):goog.writeScriptSrcNode_(e);else n.write('");return!0}return!1},goog.protectScriptTag_=function(e){return e.replace(/<\/(SCRIPT)/gi,"\\x3c/$1")},goog.needsTranspile_=function(e){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(goog.requiresTranspilation_||(goog.requiresTranspilation_=goog.createRequiresTranspilation_()),e in goog.requiresTranspilation_)return goog.requiresTranspilation_[e];throw Error("Unknown language mode: "+e)},goog.requiresTranspilation_=null,goog.lastNonModuleScriptIndex_=0, -goog.onScriptLoad_=function(e,t){return"complete"==e.readyState&&goog.lastNonModuleScriptIndex_==t&&goog.loadQueuedModules_(),!0},goog.writeScripts_=function(e){function t(e){if(!(e in o.written||e in o.visited)){if(o.visited[e]=!0,e in o.requires)for(var i in o.requires[e])if(!goog.isProvided_(i)){if(!(i in o.nameToPath))throw Error("Undefined nameToPath for "+i);t(o.nameToPath[i])}e in r||(r[e]=!0,n.push(e))}}var n=[],r={},o=goog.dependencies_;t(e);for(var i=0;i>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if(e.clone)return e.clone();t="array"==t?[]:{};for(var n in e)t[n]=goog.cloneObject(e[n]);return t}return e},goog.bindNative_=function(e,t,n){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,n){if(!e)throw Error();if(2Number(t[1]))&&b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}),a("es6-impl",function(){return!0}),a("es7",function(){return b("2 ** 2 == 4")}),a("es8",function(){return b("async () => 1, true")}),c},goog.string={},goog.string.StringBuffer=function(e,t){null!=e&&this.append.apply(this,arguments)},goog.string.StringBuffer.prototype.buffer_="",goog.string.StringBuffer.prototype.set=function(e){this.buffer_=""+e},goog.string.StringBuffer.prototype.append=function(e,t,n){if(this.buffer_+=String(e),null!=t)for(var r=1;r=e||"€"<=e&&"�">=e},goog.string.stripNewlines=function(e){return e.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(e){return e.replace(/(\r\n|\r|\n)/g,"\n")},goog.string.normalizeWhitespace=function(e){return e.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(e){return e.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(e){return e.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},goog.string.trimLeft=function(e){return e.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(e){return e.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=function(e,t){var n=String(e).toLowerCase(),r=String(t).toLowerCase();return n":"
")},goog.string.htmlEscape=function(e,t){if(t)e=e.replace(goog.string.AMP_RE_,"&").replace(goog.string.LT_RE_,"<").replace(goog.string.GT_RE_,">").replace(goog.string.QUOT_RE_,""").replace(goog.string.SINGLE_QUOTE_RE_,"'").replace(goog.string.NULL_RE_,"�"),goog.string.DETECT_DOUBLE_ESCAPING&&(e=e.replace(goog.string.E_RE_,"e"));else{if(!goog.string.ALL_RE_.test(e))return e;-1!=e.indexOf("&")&&(e=e.replace(goog.string.AMP_RE_,"&")),-1!=e.indexOf("<")&&(e=e.replace(goog.string.LT_RE_,"<")),-1!=e.indexOf(">")&&(e=e.replace(goog.string.GT_RE_,">")),-1!=e.indexOf('"')&&(e=e.replace(goog.string.QUOT_RE_,""")),-1!=e.indexOf("'")&&(e=e.replace(goog.string.SINGLE_QUOTE_RE_,"'")),-1!=e.indexOf("\0")&&(e=e.replace(goog.string.NULL_RE_,"�")),goog.string.DETECT_DOUBLE_ESCAPING&&-1!=e.indexOf("e")&&(e=e.replace(goog.string.E_RE_,"e"))}return e},goog.string.AMP_RE_=/&/g,goog.string.LT_RE_=//g,goog.string.QUOT_RE_=/"/g,goog.string.SINGLE_QUOTE_RE_=/'/g,goog.string.NULL_RE_=/\x00/g,goog.string.E_RE_=/e/g,goog.string.ALL_RE_=goog.string.DETECT_DOUBLE_ESCAPING?/[\x00&<>"'e]/:/[\x00&<>"']/,goog.string.unescapeEntities=function(e){return goog.string.contains(e,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(e):goog.string.unescapePureXmlEntities_(e):e},goog.string.unescapeEntitiesWithDocument=function(e,t){return goog.string.contains(e,"&")?goog.string.unescapeEntitiesUsingDom_(e,t):e},goog.string.unescapeEntitiesUsingDom_=function(e,t){var n={"&":"&","<":"<",">":">",""":'"'},r=t?t.createElement("div"):goog.global.document.createElement("div");return e.replace(goog.string.HTML_ENTITY_PATTERN_,function(e,t){var o=n[e];if(o)return o;if("#"==t.charAt(0)){var i=Number("0"+t.substr(1));isNaN(i)||(o=String.fromCharCode(i))}return o||(r.innerHTML=e+" ",o=r.firstChild.nodeValue.slice(0,-1)),n[e]=o})},goog.string.unescapePureXmlEntities_=function(e){return e.replace(/&([^;]+);/g,function(e,t){switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:if("#"==t.charAt(0)){var n=Number("0"+t.substr(1));if(!isNaN(n))return String.fromCharCode(n)}return e}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(e,t){return goog.string.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.preserveSpaces=function(e){return e.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(e,t){for(var n=t.length,r=0;rt&&(e=e.substring(0,t-3)+"..."),n&&(e=goog.string.htmlEscape(e)),e},goog.string.truncateMiddle=function(e,t,n,r){if(n&&(e=goog.string.unescapeEntities(e)),r&&e.length>t){r>t&&(r=t);var o=e.length-r;e=e.substring(0,t-r)+"..."+e.substring(o)}else e.length>t&&(r=Math.floor(t/2),o=e.length-r,e=e.substring(0,r+t%2)+"..."+e.substring(o));return n&&(e=goog.string.htmlEscape(e)),e},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(e){e=String(e);for(var t=['"'],n=0;no?r:goog.string.escapeChar(r))}return t.push('"'),t.join("")},goog.string.escapeString=function(e){for(var t=[],n=0;nt)var n=e;else 256>t?(n="\\x",(16>t||256t&&(n+="0")),n+=t.toString(16).toUpperCase();return goog.string.jsEscapeCache_[e]=n},goog.string.contains=function(e,t){return-1!=e.indexOf(t)},goog.string.caseInsensitiveContains=function(e,t){return goog.string.contains(e.toLowerCase(),t.toLowerCase())},goog.string.countOf=function(e,t){return e&&t?e.split(t).length-1:0},goog.string.removeAt=function(e,t,n){var r=e;return 0<=t&&tt?1:0},goog.string.hashCode=function(e){for(var t=0,n=0;n>>0;return t},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(e){var t=Number(e);return 0==t&&goog.string.isEmptyOrWhitespace(e)?NaN:t},goog.string.isLowerCamelCase=function(e){return/^[a-z]+([A-Z][a-z]*)*$/.test(e)},goog.string.isUpperCamelCase=function(e){return/^([A-Z][a-z]*)+$/.test(e)},goog.string.toCamelCase=function(e){return String(e).replace(/\-([a-z])/g,function(e,t){return t.toUpperCase()})},goog.string.toSelectorCase=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(e,t){var n=goog.isString(t)?goog.string.regExpEscape(t):"\\s";return e.replace(new RegExp("(^"+(n?"|["+n+"]+":"")+")([a-z])","g"),function(e,t,n){return t+n.toUpperCase()})},goog.string.capitalize=function(e){return String(e.charAt(0)).toUpperCase()+String(e.substr(1)).toLowerCase()},goog.string.parseInt=function(e){return isFinite(e)&&(e=String(e)),goog.isString(e)?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN},goog.string.splitLimit=function(e,t,n){e=e.split(t);for(var r=[];0n&&(n=o)}return-1==n?e:e.slice(n+1)},goog.string.editDistance=function(e,t){var n=[],r=[];if(e==t)return 0;if(!e.length||!t.length)return Math.max(e.length,t.length);for(var o=0;on?Math.max(0,e.length+n):n,goog.isString(e))return goog.isString(t)&&1==t.length?e.indexOf(t,n):-1;for(;nn&&(n=Math.max(0,e.length+n)),goog.isString(e))return goog.isString(t)&&1==t.length?e.lastIndexOf(t,n):-1;for(;0<=n;n--)if(n in e&&e[n]===t)return n;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(e,t,n){goog.asserts.assert(null!=e.length),Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,o=goog.isString(e)?e.split(""):e,i=0;it?null:goog.isString(e)?e.charAt(t):e[t]},goog.array.findIndex=function(e,t,n){for(var r=e.length,o=goog.isString(e)?e.split(""):e,i=0;it?null:goog.isString(e)?e.charAt(t):e[t]},goog.array.findIndexRight=function(e,t,n){var r=e.length,o=goog.isString(e)?e.split(""):e;for(--r;0<=r;r--)if(r in o&&t.call(n,o[r],r,e))return r;return-1},goog.array.contains=function(e,t){return 0<=goog.array.indexOf(e,t)},goog.array.isEmpty=function(e){return 0==e.length},goog.array.clear=function(e){if(!goog.isArray(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0},goog.array.insert=function(e,t){goog.array.contains(e,t)||e.push(t)},goog.array.insertAt=function(e,t,n){goog.array.splice(e,n,0,t)},goog.array.insertArrayAt=function(e,t,n){goog.partial(goog.array.splice,e,n,0).apply(null,t)},goog.array.insertBefore=function(e,t,n){ -var r;2==arguments.length||0>(r=goog.array.indexOf(e,n))?e.push(t):goog.array.insertAt(e,t,r)},goog.array.remove=function(e,t){var n,r=goog.array.indexOf(e,t);return(n=0<=r)&&goog.array.removeAt(e,r),n},goog.array.removeLast=function(e,t){var n=goog.array.lastIndexOf(e,t);return 0<=n&&(goog.array.removeAt(e,n),!0)},goog.array.removeAt=function(e,t){return goog.asserts.assert(null!=e.length),1==Array.prototype.splice.call(e,t,1).length},goog.array.removeIf=function(e,t,n){return t=goog.array.findIndex(e,t,n),0<=t&&(goog.array.removeAt(e,t),!0)},goog.array.removeAllIf=function(e,t,n){var r=0;return goog.array.forEachRight(e,function(o,i){t.call(n,o,i,e)&&goog.array.removeAt(e,i)&&r++}),r},goog.array.concat=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(e){var t=e.length;if(0=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,n)},goog.array.removeDuplicates=function(e,t,n){t=t||e;var r=function(e){return goog.isObject(e)?"o"+goog.getUid(e):(typeof e).charAt(0)+e};n=n||r,r={};for(var o=0,i=0;i>1,d=n?t.call(o,e[u],u,e):t(r,e[u]);0t?1:en&&(goog.array.insertAt(e,t,-(n+1)),!0)},goog.array.binaryRemove=function(e,t,n){return t=goog.array.binarySearch(e,t,n),0<=t&&goog.array.removeAt(e,t)},goog.array.bucket=function(e,t,n){for(var r={},o=0;on*(i-o))return[];if(0i;e+=n)r.push(e);return r},goog.array.repeat=function(e,t){for(var n=[],r=0;rt&&Array.prototype.push.apply(e,e.splice(0,-t))),e},goog.array.moveItem=function(e,t,n){goog.asserts.assert(0<=t&&t=t.length?0:this.getNumberType(e)==i18n.phonenumbers.PhoneNumberType.MOBILE&&(e=i18n.phonenumbers.PhoneNumberUtil.getCountryMobileToken(e.getCountryCodeOrDefault()),""!=e)?t[2].length+e.length:t[1].length},i18n.phonenumbers.PhoneNumberUtil.getCountryMobileToken=function(e){return i18n.phonenumbers.PhoneNumberUtil.MOBILE_TOKEN_MAPPINGS_[e]||""},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedRegions=function(){return goog.array.filter(Object.keys(i18n.phonenumbers.metadata.countryToMetadata),function(e){return isNaN(e)})},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedGlobalNetworkCallingCodes=function(){var e=goog.array.filter(Object.keys(i18n.phonenumbers.metadata.countryToMetadata),function(e){return!isNaN(e)});return goog.array.map(e,function(e){return parseInt(e,10)})},i18n.phonenumbers.PhoneNumberUtil.descHasPossibleNumberData_=function(e){return null!=e&&(1!=e.possibleLengthCount()||-1!=e.possibleLengthArray()[0])},i18n.phonenumbers.PhoneNumberUtil.descHasData_=function(e){return null!=e&&(e.hasExampleNumber()||i18n.phonenumbers.PhoneNumberUtil.descHasPossibleNumberData_(e)||e.hasNationalNumberPattern())},i18n.phonenumbers.PhoneNumberUtil.getSupportedTypesForMetadata_=function(e){var t=[];return goog.object.forEach(i18n.phonenumbers.PhoneNumberType,function(n){if(n!=i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE&&n!=i18n.phonenumbers.PhoneNumberType.UNKNOWN){var r=i18n.phonenumbers.PhoneNumberUtil.getNumberDescByType_(e,n);i18n.phonenumbers.PhoneNumberUtil.descHasData_(r)&&t.push(n)}}),t},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedTypesForRegion=function(e){return this.isValidRegionCode_(e)?i18n.phonenumbers.PhoneNumberUtil.getSupportedTypesForMetadata_(this.getMetadataForRegion(e)):[]},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedTypesForNonGeoEntity=function(e){return e=this.getMetadataForNonGeographicalRegion(e),null==e?[]:i18n.phonenumbers.PhoneNumberUtil.getSupportedTypesForMetadata_(e)},i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_=function(e,t,n){for(var r,o,i=new goog.string.StringBuffer,a=e.length,s=0;s=i||(o=o.substring(0,i),o=i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly(o),0!=o.length&&(n=r.clone(),n.clearNationalPrefixFormattingRule(),n=this.formatByPattern(e,i18n.phonenumbers.PhoneNumberFormat.NATIONAL,[n])))}}return r=e.getRawInputOrDefault(),null!=n&&0e?i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT:o[o.length-1]i18n.phonenumbers.PhoneNumberUtil.MAX_INPUT_STRING_LENGTH_)throw Error(i18n.phonenumbers.Error.TOO_LONG);var o=new goog.string.StringBuffer;if(this.buildNationalNumberForParsing_(e,o),!i18n.phonenumbers.PhoneNumberUtil.isViablePhoneNumber(o.toString()))throw Error(i18n.phonenumbers.Error.NOT_A_NUMBER);if(r&&!this.checkRegionForParsing_(o.toString(),t))throw Error(i18n.phonenumbers.Error.INVALID_COUNTRY_CODE);r=new i18n.phonenumbers.PhoneNumber,n&&r.setRawInput(e),e=this.maybeStripExtension(o),0i18n.phonenumbers.PhoneNumberUtil.MAX_LENGTH_FOR_NSN_)throw Error(i18n.phonenumbers.Error.TOO_LONG);return i18n.phonenumbers.PhoneNumberUtil.setItalianLeadingZerosForPhoneNumber_(n,r),r.setNationalNumber(parseInt(n,10)),r},i18n.phonenumbers.PhoneNumberUtil.prototype.buildNationalNumberForParsing_=function(e,t){var n=e.indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_);if(0<=n){var r=n+i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_.length;if(e.charAt(r)==i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN){var o=e.indexOf(";",r);0=i18n.phonenumbers.AsYouTypeFormatter.MIN_LEADING_DIGITS_LENGTH_?(this.getAvailableFormats_(e),e=this.attemptToFormatAccruedDigits_(),00&&t-1 in e)}function u(e,t,n){if(me.isFunction(t))return me.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return me.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Te.test(t))return me.filter(t,e,n);t=me.filter(t,e)}return me.grep(e,function(e){return ue.call(t,e)>-1!==n&&1===e.nodeType})}function d(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){var t={};return me.each(e.match(xe)||[],function(e,n){t[n]=!0}),t}function p(e){return e}function c(e){throw e}function g(e,t,n){var r;try{e&&me.isFunction(r=e.promise)?r.call(e).done(t).fail(n):e&&me.isFunction(r=e.then)?r.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}function h(){re.removeEventListener("DOMContentLoaded",h),n.removeEventListener("load",h),me.ready()}function f(){this.expando=me.expando+f.uid++}function m(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Ve,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ke.test(n)?JSON.parse(n):n)}catch(o){}Ue.set(e,t,n)}else n=void 0;return n}function b(e,t,n,r){var o,i=1,a=20,s=r?function(){return r.cur()}:function(){return me.css(e,t,"")},u=s(),d=n&&n[3]||(me.cssNumber[t]?"":"px"),l=(me.cssNumber[t]||"px"!==d&&+u)&&je.exec(me.css(e,t));if(l&&l[3]!==d){d=d||l[3],n=n||[],l=+u||1;do i=i||".5",l/=i,me.style(e,t,l+d);while(i!==(i=s()/u)&&1!==i&&--a)}return n&&(l=+l||+u||0,o=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=d,r.start=l,r.end=o)),o}function y(e){var t,n=e.ownerDocument,r=e.nodeName,o=qe[r];return o?o:(t=n.body.appendChild(n.createElement(r)),o=me.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),qe[r]=o,o)}function $(e,t){for(var n,r,o=[],i=0,a=e.length;i-1)o&&o.push(i);else if(d=me.contains(i.ownerDocument,i),a=v(p.appendChild(i),"script"),d&&N(a),n)for(l=0;i=a[l++];)Ke.test(i.type||"")&&n.push(i);return p}function C(){return!0}function E(){return!1}function P(){try{return re.activeElement}catch(e){}}function T(e,t,n,r,o,i){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)T(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),o===!1)o=E;else if(!o)return e;return 1===i&&(a=o,o=function(e){return me().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=me.guid++)),e.each(function(){me.event.add(this,t,o,r,n)})}function M(e,t){return me.nodeName(e,"table")&&me.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e:e}function S(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function A(e){var t=it.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function O(e,t){var n,r,o,i,a,s,u,d;if(1===t.nodeType){if(we.hasData(e)&&(i=we.access(e),a=we.set(t,i),d=i.events)){delete a.handle,a.events={};for(o in d)for(n=0,r=d[o].length;n1&&"string"==typeof h&&!he.checkClone&&ot.test(h))return e.each(function(o){var i=e.eq(o);f&&(t[0]=h.call(this,o,i.html())),x(i,t,n,r)});if(c&&(o=_(t,e[0].ownerDocument,!1,e,r),i=o.firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=me.map(v(o,"script"),S),u=s.length;p=0&&nC.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[V]=!0,e}function o(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function i(e,t){for(var n=e.split("|"),r=n.length;r--;)C.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function d(e){return function(t){return"label"in t&&t.disabled===e||"form"in t&&t.disabled===e||"form"in t&&t.disabled===!1&&(t.isDisabled===e||t.isDisabled!==!e&&("label"in t||!Ee(t))!==e)}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function p(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function c(){}function g(e){for(var t=0,n=e.length,r="";t1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var o=0,i=n.length;o-1&&(r[d]=!(a[d]=p))}}else $=b($===a?$.splice(h,$.length):$),i?i(null,a,$,u):Z.apply(a,$)})}function $(e){for(var t,n,r,o=e.length,i=C.relative[e[0].type],a=i||C.relative[" "],s=i?1:0,u=h(function(e){return e===t},a,!0),d=h(function(e){return ee(t,e)>-1},a,!0),l=[function(e,n,r){var o=!i&&(r||n!==A)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,o}];s1&&f(l),s>1&&g(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s0,i=e.length>0,a=function(r,a,s,u,d){var l,p,c,g=0,h="0",f=r&&[],m=[],y=A,$=r||i&&C.find.TAG("*",d),v=j+=null==y?1:Math.random()||.1,N=$.length;for(d&&(A=a===I||a||d);h!==N&&null!=(l=$[h]);h++){if(i&&l){for(p=0,a||l.ownerDocument===I||(x(l),s=!F);c=e[p++];)if(c(l,a||I,s)){u.push(l);break}d&&(j=v)}o&&((l=!c&&l)&&g--,r&&f.push(l))}if(g+=h,o&&h!==g){for(p=0;c=n[p++];)c(f,m,a,s);if(r){if(g>0)for(;h--;)f[h]||m[h]||(m[h]=X.call(u));m=b(m)}Z.apply(u,m),d&&!r&&m.length>0&&g+n.length>1&&t.uniqueSort(u)}return d&&(j=v,A=y),f};return o?r(a):a}var N,_,C,E,P,T,M,S,A,O,R,x,I,D,F,L,w,U,k,V="sizzle"+1*new Date,B=e.document,j=0,G=0,H=n(),W=n(),q=n(),Y=function(e,t){return e===t&&(R=!0),0},z={}.hasOwnProperty,K=[],X=K.pop,Q=K.push,Z=K.push,J=K.slice,ee=function(e,t){for(var n=0,r=e.length;n+~]|"+ne+")"+ne+"*"),le=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),pe=new RegExp(ie),ce=new RegExp("^"+re+"$"),ge={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ie),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,fe=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,$e=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),ve=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,_e=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ce=function(){x()},Ee=h(function(e){return e.disabled===!0},{dir:"parentNode",next:"legend"});try{Z.apply(K=J.call(B.childNodes),B.childNodes),K[B.childNodes.length].nodeType}catch(Pe){Z={apply:K.length?function(e,t){Q.apply(e,J.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}_=t.support={},P=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},x=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==I&&9===r.nodeType&&r.documentElement?(I=r,D=I.documentElement,F=!P(I),B!==I&&(n=I.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),_.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),_.getElementsByTagName=o(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),_.getElementsByClassName=me.test(I.getElementsByClassName),_.getById=o(function(e){return D.appendChild(e).id=V,!I.getElementsByName||!I.getElementsByName(V).length}),_.getById?(C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&F){var n=t.getElementById(e);return n?[n]:[]}},C.filter.ID=function(e){var t=e.replace($e,ve);return function(e){return e.getAttribute("id")===t}}):(delete C.find.ID,C.filter.ID=function(e){var t=e.replace($e,ve);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),C.find.TAG=_.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):_.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},C.find.CLASS=_.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&F)return t.getElementsByClassName(e)},w=[],L=[],(_.qsa=me.test(I.querySelectorAll))&&(o(function(e){D.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||L.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+V+"-]").length||L.push("~="),e.querySelectorAll(":checked").length||L.push(":checked"),e.querySelectorAll("a#"+V+"+*").length||L.push(".#.+[+~]")}),o(function(e){e.innerHTML="";var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&L.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&L.push(":enabled",":disabled"),D.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&L.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),L.push(",.*:")})),(_.matchesSelector=me.test(U=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&o(function(e){_.disconnectedMatch=U.call(e,"*"),U.call(e,"[s!='']:x"),w.push("!=",ie)}),L=L.length&&new RegExp(L.join("|")),w=w.length&&new RegExp(w.join("|")),t=me.test(D.compareDocumentPosition),k=t||me.test(D.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Y=t?function(e,t){if(e===t)return R=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!_.sortDetached&&t.compareDocumentPosition(e)===n?e===I||e.ownerDocument===B&&k(B,e)?-1:t===I||t.ownerDocument===B&&k(B,t)?1:O?ee(O,e)-ee(O,t):0:4&n?-1:1)}:function(e,t){if(e===t)return R=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,s=[e],u=[t];if(!o||!i)return e===I?-1:t===I?1:o?-1:i?1:O?ee(O,e)-ee(O,t):0;if(o===i)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===B?-1:u[r]===B?1:0},I):I},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==I&&x(e),n=n.replace(le,"='$1']"),_.matchesSelector&&F&&!q[n+" "]&&(!w||!w.test(n))&&(!L||!L.test(n)))try{var r=U.call(e,n);if(r||_.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(o){}return t(n,I,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==I&&x(e),k(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==I&&x(e);var n=C.attrHandle[t.toLowerCase()],r=n&&z.call(C.attrHandle,t.toLowerCase())?n(e,t,!F):void 0;return void 0!==r?r:_.attributes||!F?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(Ne,_e)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,o=0;if(R=!_.detectDuplicates,O=!_.sortStable&&e.slice(0),e.sort(Y),R){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return O=null,e},E=t.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=E(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=E(t);return n},C=t.selectors={cacheLength:50,createPseudo:r,match:ge,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($e,ve),e[3]=(e[3]||e[4]||e[5]||"").replace($e,ve),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ge.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pe.test(n)&&(t=T(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace($e,ve).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=H[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&H(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(o){var i=t.attr(o,e);return null==i?"!="===n:!n||(i+="","="===n?i===r:"!="===n?i!==r:"^="===n?r&&0===i.indexOf(r):"*="===n?r&&i.indexOf(r)>-1:"$="===n?r&&i.slice(-r.length)===r:"~="===n?(" "+i.replace(ae," ")+" ").indexOf(r)>-1:"|="===n&&(i===r||i.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var d,l,p,c,g,h,f=i!==a?"nextSibling":"previousSibling",m=t.parentNode,b=s&&t.nodeName.toLowerCase(),y=!u&&!s,$=!1;if(m){if(i){for(;f;){for(c=t;c=c[f];)if(s?c.nodeName.toLowerCase()===b:1===c.nodeType)return!1;h=f="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(c=m,p=c[V]||(c[V]={}),l=p[c.uniqueID]||(p[c.uniqueID]={}),d=l[e]||[],g=d[0]===j&&d[1],$=g&&d[2],c=g&&m.childNodes[g];c=++g&&c&&c[f]||($=g=0)||h.pop();)if(1===c.nodeType&&++$&&c===t){l[e]=[j,g,$];break}}else if(y&&(c=t,p=c[V]||(c[V]={}),l=p[c.uniqueID]||(p[c.uniqueID]={}),d=l[e]||[],g=d[0]===j&&d[1],$=g),$===!1)for(;(c=++g&&c&&c[f]||($=g=0)||h.pop())&&((s?c.nodeName.toLowerCase()!==b:1!==c.nodeType)||!++$||(y&&(p=c[V]||(c[V]={}),l=p[c.uniqueID]||(p[c.uniqueID]={}),l[e]=[j,$]),c!==t)););return $-=o,$===r||$%r===0&&$/r>=0}}},PSEUDO:function(e,n){var o,i=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return i[V]?i(n):i.length>1?(o=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,o=i(e,n),a=o.length;a--;)r=ee(e,o[a]),e[r]=!(t[r]=o[a])}):function(e){return i(e,0,o)}):i}},pseudos:{not:r(function(e){var t=[],n=[],o=M(e.replace(se,"$1"));return o[V]?r(function(e,t,n,r){for(var i,a=o(e,null,r,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace($e,ve),function(t){return(t.textContent||t.innerText||E(t)).indexOf(e)>-1}}),lang:r(function(e){return ce.test(e||"")||t.error("unsupported lang: "+e),e=e.replace($e,ve).toLowerCase(),function(t){var n;do if(n=F?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===D},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:d(!1),disabled:d(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return fe.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r2&&"ID"===(a=i[0]).type&&_.getById&&9===t.nodeType&&F&&C.relative[i[1].type]){if(t=(C.find.ID(a.matches[0].replace($e,ve),t)||[])[0],!t)return n;d&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=ge.needsContext.test(e)?0:i.length;o--&&(a=i[o],!C.relative[s=a.type]);)if((u=C.find[s])&&(r=u(a.matches[0].replace($e,ve),ye.test(i[0].type)&&p(t.parentNode)||t))){if(i.splice(o,1),e=r.length&&g(i),!e)return Z.apply(n,r),n;break}}return(d||M(e,l))(r,t,!F,n,!t||ye.test(e)&&p(t.parentNode)||t),n},_.sortStable=V.split("").sort(Y).join("")===V,_.detectDuplicates=!!R,x(),_.sortDetached=o(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),o(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||i("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),_.attributes&&o(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||i("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||i(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(n);me.find=Ne,me.expr=Ne.selectors,me.expr[":"]=me.expr.pseudos,me.uniqueSort=me.unique=Ne.uniqueSort,me.text=Ne.getText,me.isXMLDoc=Ne.isXML,me.contains=Ne.contains,me.escapeSelector=Ne.escape;var _e=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&me(e).is(n))break;r.push(e)}return r},Ce=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Ee=me.expr.match.needsContext,Pe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Te=/^.[^:#\[\.,]*$/;me.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?me.find.matchesSelector(r,e)?[r]:[]:me.find.matches(e,me.grep(t,function(e){return 1===e.nodeType}))},me.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(me(e).filter(function(){for(t=0;t1?me.uniqueSort(n):n},filter:function(e){return this.pushStack(u(this,e||[],!1))},not:function(e){return this.pushStack(u(this,e||[],!0))},is:function(e){return!!u(this,"string"==typeof e&&Ee.test(e)?me(e):e||[],!1).length}});var Me,Se=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ae=me.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||Me,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Se.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof me?t[0]:t,me.merge(this,me.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:re,!0)),Pe.test(r[1])&&me.isPlainObject(t))for(r in t)me.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return o=re.getElementById(r[2]),o&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):me.isFunction(e)?void 0!==n.ready?n.ready(e):e(me):me.makeArray(e,this)};Ae.prototype=me.fn,Me=me(re);var Oe=/^(?:parents|prev(?:Until|All))/,Re={children:!0,contents:!0,next:!0,prev:!0};me.fn.extend({has:function(e){var t=me(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&me.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?me.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?ue.call(me(e),this[0]):ue.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(me.uniqueSort(me.merge(this.get(),me(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),me.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return _e(e,"parentNode")},parentsUntil:function(e,t,n){return _e(e,"parentNode",n)},next:function(e){return d(e,"nextSibling")},prev:function(e){return d(e,"previousSibling")},nextAll:function(e){return _e(e,"nextSibling")},prevAll:function(e){return _e(e,"previousSibling")},nextUntil:function(e,t,n){return _e(e,"nextSibling",n)},prevUntil:function(e,t,n){return _e(e,"previousSibling",n)},siblings:function(e){return Ce((e.parentNode||{}).firstChild,e)},children:function(e){return Ce(e.firstChild)},contents:function(e){return e.contentDocument||me.merge([],e.childNodes)}},function(e,t){me.fn[e]=function(n,r){var o=me.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=me.filter(r,o)),this.length>1&&(Re[e]||me.uniqueSort(o),Oe.test(e)&&o.reverse()),this.pushStack(o)}});var xe=/\S+/g;me.Callbacks=function(e){e="string"==typeof e?l(e):me.extend({},e);var t,n,r,o,i=[],a=[],s=-1,u=function(){for(o=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?me.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},me.extend({Deferred:function(e){var t=[["notify","progress",me.Callbacks("memory"),me.Callbacks("memory"),2],["resolve","done",me.Callbacks("once memory"),me.Callbacks("once memory"),0,"resolved"],["reject","fail",me.Callbacks("once memory"),me.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},"catch":function(e){return o.then(null,e)},pipe:function(){var e=arguments;return me.Deferred(function(n){me.each(t,function(t,r){var o=me.isFunction(e[r[4]])&&e[r[4]];i[r[1]](function(){var e=o&&o.apply(this,arguments);e&&me.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(e,r,o){function i(e,t,r,o){return function(){var s=this,u=arguments,d=function(){var n,d;if(!(e=a&&(r!==c&&(s=void 0,u=[n]),t.rejectWith(s,u))}};e?l():(me.Deferred.getStackHook&&(l.stackTrace=me.Deferred.getStackHook()),n.setTimeout(l))}}var a=0;return me.Deferred(function(n){t[0][3].add(i(0,n,me.isFunction(o)?o:p,n.notifyWith)),t[1][3].add(i(0,n,me.isFunction(e)?e:p)),t[2][3].add(i(0,n,me.isFunction(r)?r:c))}).promise()},promise:function(e){return null!=e?me.extend(e,o):o}},i={};return me.each(t,function(e,n){var a=n[2],s=n[5];o[n[1]]=a.add,s&&a.add(function(){r=s},t[3-e][2].disable,t[0][2].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith}),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=ie.call(arguments),i=me.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?ie.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(g(e,i.done(a(n)).resolve,i.reject),"pending"===i.state()||me.isFunction(o[n]&&o[n].then)))return i.then();for(;n--;)g(o[n],a(n),i.reject);return i.promise()}});var Ie=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;me.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&Ie.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},me.readyException=function(e){n.setTimeout(function(){throw e})};var De=me.Deferred();me.fn.ready=function(e){return De.then(e)["catch"](function(e){me.readyException(e)}),this},me.extend({isReady:!1,readyWait:1,holdReady:function(e){e?me.readyWait++:me.ready(!0)},ready:function(e){(e===!0?--me.readyWait:me.isReady)||(me.isReady=!0,e!==!0&&--me.readyWait>0||De.resolveWith(re,[me]))}}),me.ready.then=De.then,"complete"===re.readyState||"loading"!==re.readyState&&!re.documentElement.doScroll?n.setTimeout(me.ready):(re.addEventListener("DOMContentLoaded",h),n.addEventListener("load",h));var Fe=function(e,t,n,r,o,i,a){var s=0,u=e.length,d=null==n;if("object"===me.type(n)){o=!0;for(s in n)Fe(e,t,s,n[s],!0,i,a)}else if(void 0!==r&&(o=!0,me.isFunction(r)||(a=!0),d&&(a?(t.call(e,r),t=null):(d=t,t=function(e,t,n){return d.call(me(e),n)})),t))for(;s1,null,!0)},removeData:function(e){return this.each(function(){Ue.remove(this,e)})}}),me.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=we.get(e,t),n&&(!r||me.isArray(n)?r=we.access(e,t,me.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=me.queue(e,t),r=n.length,o=n.shift(),i=me._queueHooks(e,t),a=function(){me.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,a,i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return we.get(e,n)||we.access(e,n,{empty:me.Callbacks("once memory").add(function(){we.remove(e,[t+"queue",n])})})}}),me.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]+)/i,Ke=/^$|\/(?:java|ecma)script/i,Xe={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Xe.optgroup=Xe.option,Xe.tbody=Xe.tfoot=Xe.colgroup=Xe.caption=Xe.thead,Xe.th=Xe.td;var Qe=/<|&#?\w+;/;!function(){var e=re.createDocumentFragment(),t=e.appendChild(re.createElement("div")),n=re.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),he.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",he.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue; -}();var Ze=re.documentElement,Je=/^key/,et=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tt=/^([^.]*)(?:\.(.+)|)/;me.event={global:{},add:function(e,t,n,r,o){var i,a,s,u,d,l,p,c,g,h,f,m=we.get(e);if(m)for(n.handler&&(i=n,n=i.handler,o=i.selector),o&&me.find.matchesSelector(Ze,o),n.guid||(n.guid=me.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(t){return"undefined"!=typeof me&&me.event.triggered!==t.type?me.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(xe)||[""],d=t.length;d--;)s=tt.exec(t[d])||[],g=f=s[1],h=(s[2]||"").split(".").sort(),g&&(p=me.event.special[g]||{},g=(o?p.delegateType:p.bindType)||g,p=me.event.special[g]||{},l=me.extend({type:g,origType:f,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&me.expr.match.needsContext.test(o),namespace:h.join(".")},i),(c=u[g])||(c=u[g]=[],c.delegateCount=0,p.setup&&p.setup.call(e,r,h,a)!==!1||e.addEventListener&&e.addEventListener(g,a)),p.add&&(p.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),o?c.splice(c.delegateCount++,0,l):c.push(l),me.event.global[g]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,d,l,p,c,g,h,f,m=we.hasData(e)&&we.get(e);if(m&&(u=m.events)){for(t=(t||"").match(xe)||[""],d=t.length;d--;)if(s=tt.exec(t[d])||[],g=f=s[1],h=(s[2]||"").split(".").sort(),g){for(p=me.event.special[g]||{},g=(r?p.delegateType:p.bindType)||g,c=u[g]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=c.length;i--;)l=c[i],!o&&f!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(c.splice(i,1),l.selector&&c.delegateCount--,p.remove&&p.remove.call(e,l));a&&!c.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||me.removeEvent(e,g,m.handle),delete u[g])}else for(g in u)me.event.remove(e,g+t[d],n,r,!0);me.isEmptyObject(u)&&we.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=me.event.fix(e),u=new Array(arguments.length),d=(we.get(this,"events")||{})[s.type]||[],l=me.event.special[s.type]||{};for(u[0]=s,t=1;t-1:me.find(o,this,null,[u]).length),r[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return s\x20\t\r\n\f]*)[^>]*)\/>/gi,rt=/\s*$/g;me.extend({htmlPrefilter:function(e){return e.replace(nt,"<$1>")},clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),u=me.contains(e.ownerDocument,e);if(!(he.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||me.isXMLDoc(e)))for(a=v(s),i=v(e),r=0,o=i.length;r0&&N(a,!u&&v(e,"script")),s},cleanData:function(e){for(var t,n,r,o=me.event.special,i=0;void 0!==(n=e[i]);i++)if(Le(n)){if(t=n[we.expando]){if(t.events)for(r in t.events)o[r]?me.event.remove(n,r):me.removeEvent(n,r,t.handle);n[we.expando]=void 0}n[Ue.expando]&&(n[Ue.expando]=void 0)}}}),me.fn.extend({detach:function(e){return I(this,e,!0)},remove:function(e){return I(this,e)},text:function(e){return Fe(this,function(e){return void 0===e?me.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return x(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=M(this,e);t.appendChild(e)}})},prepend:function(){return x(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=M(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(me.cleanData(v(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return me.clone(this,e,t)})},html:function(e){return Fe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!rt.test(e)&&!Xe[(ze.exec(e)||["",""])[1].toLowerCase()]){e=me.htmlPrefilter(e);try{for(;n1)}}),me.Tween=V,V.prototype={constructor:V,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||me.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(me.cssNumber[n]?"":"px")},cur:function(){var e=V.propHooks[this.prop];return e&&e.get?e.get(this):V.propHooks._default.get(this)},run:function(e){var t,n=V.propHooks[this.prop];return this.options.duration?this.pos=t=me.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):V.propHooks._default.set(this),this}},V.prototype.init.prototype=V.prototype,V.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=me.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){me.fx.step[e.prop]?me.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[me.cssProps[e.prop]]&&!me.cssHooks[e.prop]?e.elem[e.prop]=e.now:me.style(e.elem,e.prop,e.now+e.unit)}}},V.propHooks.scrollTop=V.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},me.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},me.fx=V.prototype.init,me.fx.step={};var ft,mt,bt=/^(?:toggle|show|hide)$/,yt=/queueHooks$/;me.Animation=me.extend(Y,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return b(n.elem,e,je.exec(t),n),n}]},tweener:function(e,t){me.isFunction(e)?(t=e,e=["*"]):e=e.match(xe);for(var n,r=0,o=e.length;r1)},removeAttr:function(e){return this.each(function(){me.removeAttr(this,e)})}}),me.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return"undefined"==typeof e.getAttribute?me.prop(e,t,n):(1===i&&me.isXMLDoc(e)||(o=me.attrHooks[t.toLowerCase()]||(me.expr.match.bool.test(t)?$t:void 0)),void 0!==n?null===n?void me.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:(r=me.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!he.radioValue&&"radio"===t&&me.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(xe);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),$t={set:function(e,t,n){return t===!1?me.removeAttr(e,n):e.setAttribute(n,n),n}},me.each(me.expr.match.bool.source.match(/\w+/g),function(e,t){var n=vt[t]||me.find.attr;vt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=vt[a],vt[a]=o,o=null!=n(e,t,r)?a:null,vt[a]=i),o}});var Nt=/^(?:input|select|textarea|button)$/i,_t=/^(?:a|area)$/i;me.fn.extend({prop:function(e,t){return Fe(this,me.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[me.propFix[e]||e]})}}),me.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&me.isXMLDoc(e)||(t=me.propFix[t]||t,o=me.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=me.find.attr(e,"tabindex");return t?parseInt(t,10):Nt.test(e.nodeName)||_t.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),he.optSelected||(me.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),me.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){me.propFix[this.toLowerCase()]=this});var Ct=/[\t\r\n\f]/g;me.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,u=0;if(me.isFunction(e))return this.each(function(t){me(this).addClass(e.call(this,t,z(this)))});if("string"==typeof e&&e)for(t=e.match(xe)||[];n=this[u++];)if(o=z(n),r=1===n.nodeType&&(" "+o+" ").replace(Ct," ")){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");s=me.trim(r),o!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,u=0;if(me.isFunction(e))return this.each(function(t){me(this).removeClass(e.call(this,t,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(xe)||[];n=this[u++];)if(o=z(n),r=1===n.nodeType&&(" "+o+" ").replace(Ct," ")){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");s=me.trim(r),o!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):me.isFunction(e)?this.each(function(n){me(this).toggleClass(e.call(this,n,z(this),t),t)}):this.each(function(){var t,r,o,i;if("string"===n)for(r=0,o=me(this),i=e.match(xe)||[];t=i[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||(t=z(this),t&&we.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":we.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+z(n)+" ").replace(Ct," ").indexOf(t)>-1)return!0;return!1}});var Et=/\r/g,Pt=/[\x20\t\r\n\f]+/g;me.fn.extend({val:function(e){var t,n,r,o=this[0];{if(arguments.length)return r=me.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=r?e.call(this,n,me(this).val()):e,null==o?o="":"number"==typeof o?o+="":me.isArray(o)&&(o=me.map(o,function(e){return null==e?"":e+""})),t=me.valHooks[this.type]||me.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))});if(o)return t=me.valHooks[o.type]||me.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(Et,""):null==n?"":n)}}}),me.extend({valHooks:{option:{get:function(e){var t=me.find.attr(e,"value");return null!=t?t:me.trim(me.text(e)).replace(Pt," ")}},select:{get:function(e){for(var t,n,r=e.options,o=e.selectedIndex,i="select-one"===e.type,a=i?null:[],s=i?o+1:r.length,u=o<0?s:i?o:0;u-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),me.each(["radio","checkbox"],function(){me.valHooks[this]={set:function(e,t){if(me.isArray(t))return e.checked=me.inArray(me(e).val(),t)>-1}},he.checkOn||(me.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Tt=/^(?:focusinfocus|focusoutblur)$/;me.extend(me.event,{trigger:function(e,t,r,o){var i,a,s,u,d,l,p,c=[r||re],g=pe.call(e,"type")?e.type:e,h=pe.call(e,"namespace")?e.namespace.split("."):[];if(a=s=r=r||re,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(g+me.event.triggered)&&(g.indexOf(".")>-1&&(h=g.split("."),g=h.shift(),h.sort()),d=g.indexOf(":")<0&&"on"+g,e=e[me.expando]?e:new me.Event(g,"object"==typeof e&&e),e.isTrigger=o?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:me.makeArray(t,[e]),p=me.event.special[g]||{},o||!p.trigger||p.trigger.apply(r,t)!==!1)){if(!o&&!p.noBubble&&!me.isWindow(r)){for(u=p.delegateType||g,Tt.test(u+g)||(a=a.parentNode);a;a=a.parentNode)c.push(a),s=a;s===(r.ownerDocument||re)&&c.push(s.defaultView||s.parentWindow||n)}for(i=0;(a=c[i++])&&!e.isPropagationStopped();)e.type=i>1?u:p.bindType||g,l=(we.get(a,"events")||{})[e.type]&&we.get(a,"handle"),l&&l.apply(a,t),l=d&&a[d],l&&l.apply&&Le(a)&&(e.result=l.apply(a,t),e.result===!1&&e.preventDefault());return e.type=g,o||e.isDefaultPrevented()||p._default&&p._default.apply(c.pop(),t)!==!1||!Le(r)||d&&me.isFunction(r[g])&&!me.isWindow(r)&&(s=r[d],s&&(r[d]=null),me.event.triggered=g,r[g](),me.event.triggered=void 0,s&&(r[d]=s)),e.result}},simulate:function(e,t,n){var r=me.extend(new me.Event,n,{type:e,isSimulated:!0});me.event.trigger(r,null,t)}}),me.fn.extend({trigger:function(e,t){return this.each(function(){me.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return me.event.trigger(e,t,n,!0)}}),me.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){me.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),me.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),he.focusin="onfocusin"in n,he.focusin||me.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){me.event.simulate(t,e.target,me.event.fix(e))};me.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=we.access(r,t);o||r.addEventListener(e,n,!0),we.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=we.access(r,t)-1;o?we.access(r,t,o):(r.removeEventListener(e,n,!0),we.remove(r,t))}}});var Mt=n.location,St=me.now(),At=/\?/;me.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(r){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||me.error("Invalid XML: "+e),t};var Ot=/\[\]$/,Rt=/\r?\n/g,xt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;me.param=function(e,t){var n,r=[],o=function(e,t){var n=me.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(me.isArray(e)||e.jquery&&!me.isPlainObject(e))me.each(e,function(){o(this.name,this.value)});else for(n in e)K(n,e[n],t,o);return r.join("&")},me.fn.extend({serialize:function(){return me.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=me.prop(this,"elements");return e?me.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!me(this).is(":disabled")&&It.test(this.nodeName)&&!xt.test(e)&&(this.checked||!Ye.test(e))}).map(function(e,t){var n=me(this).val();return null==n?null:me.isArray(n)?me.map(n,function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}}):{name:t.name,value:n.replace(Rt,"\r\n")}}).get()}});var Dt=/%20/g,Ft=/#.*$/,Lt=/([?&])_=[^&]*/,wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ut=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kt=/^(?:GET|HEAD)$/,Vt=/^\/\//,Bt={},jt={},Gt="*/".concat("*"),Ht=re.createElement("a");Ht.href=Mt.href,me.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mt.href,type:"GET",isLocal:Ut.test(Mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":me.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Z(Z(e,me.ajaxSettings),t):Z(me.ajaxSettings,e)},ajaxPrefilter:X(Bt),ajaxTransport:X(jt),ajax:function(e,t){function r(e,t,r,s){var d,c,g,v,N,_=t;l||(l=!0,u&&n.clearTimeout(u),o=void 0,a=s||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,r&&(v=J(h,C,r)),v=ee(h,v,C,d),d?(h.ifModified&&(N=C.getResponseHeader("Last-Modified"),N&&(me.lastModified[i]=N),N=C.getResponseHeader("etag"),N&&(me.etag[i]=N)),204===e||"HEAD"===h.type?_="nocontent":304===e?_="notmodified":(_=v.state,c=v.data,g=v.error,d=!g)):(g=_,!e&&_||(_="error",e<0&&(e=0))),C.status=e,C.statusText=(t||_)+"",d?b.resolveWith(f,[c,_,C]):b.rejectWith(f,[C,_,g]),C.statusCode($),$=void 0,p&&m.trigger(d?"ajaxSuccess":"ajaxError",[C,h,d?c:g]),y.fireWith(f,[C,_]),p&&(m.trigger("ajaxComplete",[C,h]),--me.active||me.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var o,i,a,s,u,d,l,p,c,g,h=me.ajaxSetup({},t),f=h.context||h,m=h.context&&(f.nodeType||f.jquery)?me(f):me.event,b=me.Deferred(),y=me.Callbacks("once memory"),$=h.statusCode||{},v={},N={},_="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(l){if(!s)for(s={};t=wt.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return null==l&&(e=N[e.toLowerCase()]=N[e.toLowerCase()]||e,v[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)C.always(e[C.status]);else for(t in e)$[t]=[$[t],e[t]];return this},abort:function(e){var t=e||_;return o&&o.abort(t),r(0,t),this}};if(b.promise(C),h.url=((e||h.url||Mt.href)+"").replace(Vt,Mt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(xe)||[""],null==h.crossDomain){d=re.createElement("a");try{d.href=h.url,d.href=d.href,h.crossDomain=Ht.protocol+"//"+Ht.host!=d.protocol+"//"+d.host}catch(E){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=me.param(h.data,h.traditional)),Q(Bt,h,t,C),l)return C;p=me.event&&h.global,p&&0===me.active++&&me.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!kt.test(h.type),i=h.url.replace(Ft,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Dt,"+")):(g=h.url.slice(i.length),h.data&&(i+=(At.test(i)?"&":"?")+h.data,delete h.data),h.cache===!1&&(i=i.replace(Lt,""),g=(At.test(i)?"&":"?")+"_="+St++ +g),h.url=i+g),h.ifModified&&(me.lastModified[i]&&C.setRequestHeader("If-Modified-Since",me.lastModified[i]),me.etag[i]&&C.setRequestHeader("If-None-Match",me.etag[i])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Gt+"; q=0.01":""):h.accepts["*"]);for(c in h.headers)C.setRequestHeader(c,h.headers[c]);if(h.beforeSend&&(h.beforeSend.call(f,C,h)===!1||l))return C.abort();if(_="abort",y.add(h.complete),C.done(h.success),C.fail(h.error),o=Q(jt,h,t,C)){if(C.readyState=1,p&&m.trigger("ajaxSend",[C,h]),l)return C;h.async&&h.timeout>0&&(u=n.setTimeout(function(){C.abort("timeout")},h.timeout));try{l=!1,o.send(v,r)}catch(E){if(l)throw E;r(-1,E)}}else r(-1,"No Transport");return C},getJSON:function(e,t,n){return me.get(e,t,n,"json")},getScript:function(e,t){return me.get(e,void 0,t,"script")}}),me.each(["get","post"],function(e,t){me[t]=function(e,n,r,o){return me.isFunction(n)&&(o=o||r,r=n,n=void 0),me.ajax(me.extend({url:e,type:t,dataType:o,data:n,success:r},me.isPlainObject(e)&&e))}}),me._evalUrl=function(e){return me.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},me.fn.extend({wrapAll:function(e){var t;return this[0]&&(me.isFunction(e)&&(e=e.call(this[0])),t=me(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return me.isFunction(e)?this.each(function(t){me(this).wrapInner(e.call(this,t))}):this.each(function(){var t=me(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=me.isFunction(e);return this.each(function(n){me(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){me(this).replaceWith(this.childNodes)}),this}}),me.expr.pseudos.hidden=function(e){return!me.expr.pseudos.visible(e)},me.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},me.ajaxSettings.xhr=function(){ -try{return new n.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},qt=me.ajaxSettings.xhr();he.cors=!!qt&&"withCredentials"in qt,he.ajax=qt=!!qt,me.ajaxTransport(function(e){var t,r;if(he.cors||qt&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(a in o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Wt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(u){if(t)throw u}},abort:function(){t&&t()}}}),me.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),me.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return me.globalEval(e),e}}}),me.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),me.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,o){t=me("