Version Description
Give version 1.8 is a major update. Please make sure you make a backup of your database before updating.
Download this release
Release Info
Developer | dlocc |
Plugin | Give – Donation Plugin and Fundraising Platform |
Version | 2.4.4 |
Comparing to | |
See all releases |
Code changes from version 2.4.3 to 2.4.4
- assets/dist/js/admin-shortcode-button.js +1 -1
- assets/dist/js/admin-shortcodes.js +2 -2
- assets/dist/js/admin.js +9 -17
- assets/dist/js/babel-polyfill.js +1 -1
- assets/dist/js/give.js +6 -6
- assets/dist/js/gutenberg.js +1 -1
- assets/dist/js/plugin-deactivation-survey.js +2 -2
- give.php +2 -2
- includes/admin/class-admin-settings.php +2 -2
- includes/admin/emails/abstract-email-notification.php +70 -60
- includes/admin/emails/class-email-notifications.php +2 -2
- includes/class-give-donate-form.php +1 -1
- includes/class-give-scripts.php +2 -2
- includes/emails/class-give-email-tags.php +1 -1
- includes/libraries/tcpdf/CHANGELOG.TXT +14 -2
- includes/libraries/tcpdf/composer.json +1 -1
- includes/libraries/tcpdf/include/sRGB.icc +0 -0
- includes/libraries/tcpdf/include/tcpdf_fonts.php +10 -6
- includes/libraries/tcpdf/include/tcpdf_images.php +2 -6
- includes/libraries/tcpdf/include/tcpdf_static.php +47 -37
- includes/libraries/tcpdf/tcpdf.php +142 -117
- languages/give.pot +7 -7
- readme.txt +8 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
assets/dist/js/admin-shortcode-button.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=333)}({333:function(e,t,n){e.exports=n(334)},334:function(e,t,n){}});
|
assets/dist/js/admin-shortcodes.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=
|
2 |
/*!
|
3 |
* Give Admin Shortcodes JS
|
4 |
*
|
@@ -10,4 +10,4 @@
|
|
10 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
11 |
* @since: 1.3.0
|
12 |
*/
|
13 |
-
var n,o;jQuery(function(e){
|
1 |
+
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=335)}({335:function(e,t){
|
2 |
/*!
|
3 |
* Give Admin Shortcodes JS
|
4 |
*
|
10 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
11 |
* @since: 1.3.0
|
12 |
*/
|
13 |
+
var n,o;jQuery(function(e){var t=e(this);window.render_continue_button_title_field=function(){var t=e(".mce-txt",".mce-give-display-style").text();-1!==e.inArray(t,["- Select -","All Fields"])?e(".mce-give-continue-button-title").closest(".mce-container").hide():e(".mce-give-continue-button-title").closest(".mce-container").show()},window.scForm={open:function(t){var o,i,r,c,s,a=tinymce.get(t);a&&(o={action:"give_shortcode",shortcode:n},e.post(ajaxurl,o,function(t){if(t.body){if(0===t.body.length)return window.send_to_editor("["+t.shortcode+"]"),void scForm.destroy();e.each(t.body,function(e,n){"display_style"===n.name&&(t.body[e].onselect=function(){render_continue_button_title_field()})});var o={title:t.title,body:t.body,classes:"sc-popup",minWidth:320,buttons:[{text:t.ok,classes:"primary sc-primary",onclick:function(){for(var e in s=a.windowManager.getWindows()[0],r=scShortcodes[n],c=!0,r)if(r.hasOwnProperty(e)&&void 0!==(i=s.find("#"+e)[0])&&""===i.state.data.value){c=!1,new Give.modal.GiveErrorAlert({modalContent:{desc:r[e],cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render();break}c&&s.submit()}},{text:t.close,onclick:"close"}],onsubmit:function(e){var n="";for(var o in e.data)e.data.hasOwnProperty(o)&&""!==e.data[o]&&(n+=" "+o+'="'+e.data[o]+'"');window.send_to_editor("["+t.shortcode+n+"]")},onclose:function(){scForm.destroy()},onopen:function(){var t=e(".mce-sc-popup");t.css({width:t.width(),height:t.height(),overflow:"auto"}),render_continue_button_title_field()}};t.ok.constructor===Array&&(o.buttons[0].text=t.ok[0],o.buttons[0].onclick="close",delete o.buttons[1]),a.windowManager.open(o)}else console.error("Bad AJAX response!")}))},destroy:function(){var t=e("#scTemp");t.length&&(tinymce.get("scTemp").remove(),t.remove())}};var i=function(){void 0!==o&&o.removeClass("active").parent().find(".sc-menu").hide()};t.on("click",function(t){e(t.target).closest(".sc-wrap").length||i()}),t.on("click",".sc-button",function(t){t.preventDefault(),(o=e(this)).hasClass("active")?i():o.addClass("active").parent().find(".sc-menu").show()}),t.on("click",".sc-shortcode",function(t){t.preventDefault(),(n=e(this).attr("data-shortcode"))?(tinymce.get(window.wpActiveEditor)?tinymce.execCommand("Give_Shortcode"):(e("#scTemp").length||(e("body").append('<textarea id="scTemp" style="display: none;" />'),tinymce.init({mode:"exact",elements:"scTemp",plugins:["give_shortcode","wplink"]})),setTimeout(function(){tinymce.execCommand("Give_Shortcode")},200)),setTimeout(function(){i()},100)):console.warn("That is not a valid shortcode link.")})})}});
|
assets/dist/js/admin.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
!function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=
|
2 |
/*!
|
3 |
* clipboard.js v2.0.4
|
4 |
* https://zenorocha.github.io/clipboard.js
|
5 |
*
|
6 |
* Licensed MIT © Zeno Rocha
|
7 |
*/
|
8 |
-
var n;n=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=l(i(1)),r=l(i(3)),s=l(i(4));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.resolveOptions(i),n.listenClick(e),n}return function(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)}(t,r.default),o(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===n(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,s.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return d("action",e)}},{key:"defaultTarget",value:function(e){var t=d("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return d("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,i=!!document.queryCommandSupported;return t.forEach(function(e){i=i&&!!document.queryCommandSupported(e)}),i}}]),t}();function d(e,t){var i="data-clipboard-"+e;if(t.hasAttribute(i))return t.getAttribute(i)}e.exports=c},function(e,t,i){"use strict";var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=i(2),s=(n=r)&&n.__esModule?n:{default:n};var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return a(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=i+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,s.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,s.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":o(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=l},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var i=e.hasAttribute("readonly");i||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),i||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),o=document.createRange();o.selectNodeContents(e),n.removeAllRanges(),n.addRange(o),t=n.toString()}return t}},function(e,t){function i(){}i.prototype={on:function(e,t,i){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:i}),this},once:function(e,t,i){var n=this;function o(){n.off(e,o),t.apply(i,arguments)}return o._=t,this.on(e,o,i)},emit:function(e){for(var t=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=i.length;n<o;n++)i[n].fn.apply(i[n].ctx,t);return this},off:function(e,t){var i=this.e||(this.e={}),n=i[e],o=[];if(n&&t)for(var a=0,r=n.length;a<r;a++)n[a].fn!==t&&n[a].fn._!==t&&o.push(n[a]);return o.length?i[e]=o:delete i[e],this}},e.exports=i},function(e,t,i){var n=i(5),o=i(6);e.exports=function(e,t,i){if(!e&&!t&&!i)throw new Error("Missing required arguments");if(!n.string(t))throw new TypeError("Second argument must be a String");if(!n.fn(i))throw new TypeError("Third argument must be a Function");if(n.node(e))return function(e,t,i){return e.addEventListener(t,i),{destroy:function(){e.removeEventListener(t,i)}}}(e,t,i);if(n.nodeList(e))return function(e,t,i){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,i)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,i)})}}}(e,t,i);if(n.string(e))return function(e,t,i){return o(document.body,e,t,i)}(e,t,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var i=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===i||"[object HTMLCollection]"===i)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,i){var n=i(7);function o(e,t,i,o,a){var r=function(e,t,i,o){return function(i){i.delegateTarget=n(i.target,t),i.delegateTarget&&o.call(e,i)}}.apply(this,arguments);return e.addEventListener(i,r,a),{destroy:function(){e.removeEventListener(i,r,a)}}}e.exports=function(e,t,i,n,a){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof i?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return o(e,t,i,n,a)}))}},function(e,t){var i=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&e.nodeType!==i;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}}])},e.exports=n()},144:function(e,t,i){i(145),e.exports=i(334)},145:function(e,t,i){},146:function(e,t){(function(){var e,t,i,n,o=function(e,t){return function(){return e.apply(t,arguments)}},a={}.hasOwnProperty;(n=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,i,n,o,a,r;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:e.label,title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),r=[],i=0,n=(a=e.childNodes).length;i<n;i++)o=a[i],r.push(this.add_option(o,t,e.disabled));return r},e.prototype.add_option=function(e,t,i){if("OPTION"===e.nodeName.toUpperCase())return""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:!0===i?i:e.disabled,group_array_index:t,group_label:null!=t?this.parsed[t].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},e}()).select_to_array=function(e){var t,i,o,a,r;for(a=new n,i=0,o=(r=e.childNodes).length;i<o;i++)t=r[i],a.add_node(t);return a.parsed},t=function(){function e(t,i){this.form_field=t,this.options=null!=i?i:{},this.label_click_handler=o(this.label_click_handler,this),e.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return e.prototype.set_default_values=function(){var e;return this.click_test_action=(e=this,function(t){return e.test_active_click(t)}),this.activate_action=function(e){return function(t){return e.activate_field(t)}}(this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},e.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||e.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||e.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||e.default_no_result_text},e.prototype.choice_label=function(e){return this.include_group_label_in_selected&&null!=e.group_label?"<b class='group-name'>"+this.escape_html(e.group_label)+"</b>"+e.html:e.html},e.prototype.mouse_enter=function(){return this.mouse_on_container=!0},e.prototype.mouse_leave=function(){return this.mouse_on_container=!1},e.prototype.input_focus=function(e){if(this.is_multiple){if(!this.active_field)return setTimeout((t=this,function(){return t.container_mousedown()}),50)}else if(!this.active_field)return this.activate_field();var t},e.prototype.input_blur=function(e){if(!this.mouse_on_container)return this.active_field=!1,setTimeout((t=this,function(){return t.blur_test()}),100);var t},e.prototype.label_click_handler=function(e){return this.is_multiple?this.container_mousedown(e):this.activate_field()},e.prototype.results_option_build=function(e){var t,i,n,o,a,r,s;for(t="",s=0,o=0,a=(r=this.results_data).length;o<a&&(n="",""!==(n=(i=r[o]).group?this.result_add_group(i):this.result_add_option(i))&&(s++,t+=n),(null!=e?e.first:void 0)&&(i.selected&&this.is_multiple?this.choice_build(i):i.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(i))),!(s>=this.max_shown_results));o++);return t},e.prototype.result_add_option=function(e){var t,i;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),(i=document.createElement("li")).className=t.join(" "),e.style&&(i.style.cssText=e.style),i.setAttribute("data-option-array-index",e.array_index),i.innerHTML=e.highlighted_html||e.html,e.title&&(i.title=e.title),this.outerHTML(i)):""},e.prototype.result_add_group=function(e){var t,i;return(e.search_match||e.group_match)&&e.active_options>0?((t=[]).push("group-result"),e.classes&&t.push(e.classes),(i=document.createElement("li")).className=t.join(" "),i.innerHTML=e.highlighted_html||this.escape_html(e.label),e.title&&(i.title=e.title),this.outerHTML(i)):""},e.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},e.prototype.reset_single_select_options=function(){var e,t,i,n,o;for(o=[],e=0,t=(i=this.results_data).length;e<t;e++)(n=i[e]).selected?o.push(n.selected=!1):o.push(void 0);return o},e.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},e.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},e.prototype.winnow_results=function(e){var t,i,n,o,a,r,s,l,c,d,u,h,f,p,g;for(this.no_results_clear(),d=0,t=(s=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),c=this.get_search_regex(t),n=0,o=(l=this.results_data).length;n<o;n++)(a=l[n]).search_match=!1,u=null,h=null,a.highlighted_html="",this.include_option_in_results(a)&&(a.group&&(a.group_match=!1,a.active_options=0),null!=a.group_array_index&&this.results_data[a.group_array_index]&&(0===(u=this.results_data[a.group_array_index]).active_options&&u.search_match&&(d+=1),u.active_options+=1),g=a.group?a.label:a.text,a.group&&!this.group_search||(h=this.search_string_match(g,c),a.search_match=null!=h,a.search_match&&!a.group&&(d+=1),a.search_match?(s.length&&(f=h.index,r=g.slice(0,f),i=g.slice(f,f+s.length),p=g.slice(f+s.length),a.highlighted_html=this.escape_html(r)+"<em>"+this.escape_html(i)+"</em>"+this.escape_html(p)),null!=u&&(u.group_match=!0)):null!=a.group_array_index&&this.results_data[a.group_array_index].search_match&&(a.search_match=!0)));return this.result_clear_highlight(),d<1&&s.length?(this.update_results_content(""),this.no_results(s)):(this.update_results_content(this.results_option_build()),(null!=e?e.skip_highlight:void 0)?void 0:this.winnow_results_set_highlight())},e.prototype.get_search_regex=function(e){var t,i;return i=this.search_contains?e:"(^|\\s|\\b)"+e+"[^\\s]*",this.enable_split_word_search||this.search_contains||(i="^"+i),t=this.case_sensitive_search?"":"i",new RegExp(i,t)},e.prototype.search_string_match=function(e,t){var i;return i=t.exec(e),!this.search_contains&&(null!=i?i[1]:void 0)&&(i.index+=1),i},e.prototype.choices_count=function(){var e,t,i;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,e=0,t=(i=this.form_field.options).length;e<t;e++)i[e].selected&&(this.selected_option_count+=1);return this.selected_option_count},e.prototype.choices_click=function(e){if(e.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},e.prototype.keydown_checker=function(e){var t,i;switch(i=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),8!==i&&this.pending_backstroke&&this.clear_backstroke(),i){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&e.preventDefault();break;case 32:this.disable_search&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},e.prototype.keyup_checker=function(e){var t,i;switch(i=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),i){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},e.prototype.clipboard_event_checker=function(e){var t;if(!this.is_disabled)return setTimeout((t=this,function(){return t.results_search()}),50)},e.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},e.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected)&&(!(!this.display_disabled_options&&e.disabled)&&!e.empty)},e.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},e.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},e.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},e.prototype.outerHTML=function(e){var t;return e.outerHTML?e.outerHTML:((t=document.createElement("div")).appendChild(e),t.innerHTML)},e.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n <span>'+this.default_text+'</span>\n <div><b></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n <input class="chosen-search-input" type="text" autocomplete="off" />\n </div>\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_no_results_html=function(e){return'<li class="no-results">\n '+this.results_none_found+" <span>"+this.escape_html(e)+"</span>\n</li>"},e.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},e.default_multiple_text="Select Some Options",e.default_single_text="Select an Option",e.default_no_result_text="No results match",e}(),(e=jQuery).fn.extend({chosen:function(n){return t.browser_is_supported()?this.each(function(t){var o,a;a=(o=e(this)).data("chosen"),"destroy"!==n?a instanceof i||o.data("chosen",new i(this,n)):a instanceof i&&a.destroy()}):this}}),i=function(i){function o(){return o.__super__.constructor.apply(this,arguments)}return function(e,t){for(var i in t)a.call(t,i)&&(e[i]=t[i]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(o,t),o.prototype.setup=function(){return this.form_field_jq=e(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},o.prototype.set_up_html=function(){var t,i;return(t=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&t.push(this.form_field.className),this.is_rtl&&t.push("chosen-rtl"),i={class:t.join(" "),title:this.form_field.title},this.form_field.id.length&&(i.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=e("<div />",i),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},o.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},o.prototype.register_observers=function(){var e;return this.container.on("touchstart.chosen",(e=this,function(t){e.container_mousedown(t)})),this.container.on("touchend.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mousedown.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.container.on("mouseup.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mouseenter.chosen",function(e){return function(t){e.mouse_enter(t)}}(this)),this.container.on("mouseleave.chosen",function(e){return function(t){e.mouse_leave(t)}}(this)),this.search_results.on("mouseup.chosen",function(e){return function(t){e.search_results_mouseup(t)}}(this)),this.search_results.on("mouseover.chosen",function(e){return function(t){e.search_results_mouseover(t)}}(this)),this.search_results.on("mouseout.chosen",function(e){return function(t){e.search_results_mouseout(t)}}(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",function(e){return function(t){e.search_results_mousewheel(t)}}(this)),this.search_results.on("touchstart.chosen",function(e){return function(t){e.search_results_touchstart(t)}}(this)),this.search_results.on("touchmove.chosen",function(e){return function(t){e.search_results_touchmove(t)}}(this)),this.search_results.on("touchend.chosen",function(e){return function(t){e.search_results_touchend(t)}}(this)),this.form_field_jq.on("chosen:updated.chosen",function(e){return function(t){e.results_update_field(t)}}(this)),this.form_field_jq.on("chosen:activate.chosen",function(e){return function(t){e.activate_field(t)}}(this)),this.form_field_jq.on("chosen:open.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.form_field_jq.on("chosen:close.chosen",function(e){return function(t){e.close_field(t)}}(this)),this.search_field.on("blur.chosen",function(e){return function(t){e.input_blur(t)}}(this)),this.search_field.on("keyup.chosen",function(e){return function(t){e.keyup_checker(t)}}(this)),this.search_field.on("keydown.chosen",function(e){return function(t){e.keydown_checker(t)}}(this)),this.search_field.on("focus.chosen",function(e){return function(t){e.input_focus(t)}}(this)),this.search_field.on("cut.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.search_field.on("paste.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.is_multiple?this.search_choices.on("click.chosen",function(e){return function(t){e.choices_click(t)}}(this)):this.container.on("click.chosen",function(e){e.preventDefault()})},o.prototype.destroy=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},o.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},o.prototype.container_mousedown=function(t){var i;if(!this.is_disabled)return!t||"mousedown"!==(i=t.type)&&"touchstart"!==i||this.results_showing||t.preventDefault(),null!=t&&e(t.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!t||e(t.target)[0]!==this.selected_item[0]&&!e(t.target).parents("a.chosen-single").length||(t.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),e(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},o.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},o.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},o.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},o.prototype.close_field=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},o.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},o.prototype.test_active_click=function(t){var i;return(i=e(t.target).closest(".chosen-container")).length&&this.container[0]===i[0]?this.active_field=!0:this.close_field()},o.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=n.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},o.prototype.result_do_highlight=function(e){var t,i,n,o,a;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),o=(n=parseInt(this.search_results.css("maxHeight"),10))+(a=this.search_results.scrollTop()),(t=(i=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight())>=o)return this.search_results.scrollTop(t-n>0?t-n:0);if(i<a)return this.search_results.scrollTop(i)}},o.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},o.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},o.prototype.update_results_content=function(e){return this.search_results.html(e)},o.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},o.prototype.set_tab_index=function(e){var t;if(this.form_field.tabIndex)return t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t},o.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=e("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.on("click.chosen",this.label_click_handler)},o.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},o.prototype.search_results_mouseup=function(t){var i;if((i=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first()).length)return this.result_highlight=i,this.result_select(t),this.search_field.focus()},o.prototype.search_results_mouseover=function(t){var i;if(i=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first())return this.result_do_highlight(i)},o.prototype.search_results_mouseout=function(t){if(e(t.target).hasClass("active-result")||e(t.target).parents(".active-result").first())return this.result_clear_highlight()},o.prototype.choice_build=function(t){var i,n,o;return i=e("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(t)+"</span>"),t.disabled?i.addClass("search-choice-disabled"):((n=e("<a />",{class:"search-choice-close","data-option-array-index":t.array_index})).on("click.chosen",(o=this,function(e){return o.choice_destroy_link_click(e)})),i.append(n)),this.search_container.before(i)},o.prototype.choice_destroy_link_click=function(t){if(t.preventDefault(),t.stopPropagation(),!this.is_disabled)return this.choice_destroy(e(t.target))},o.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},o.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},o.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},o.prototype.result_select=function(e){var t,i;if(this.result_highlight)return t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):this.reset_single_select_options(),t.addClass("result-selected"),(i=this.results_data[t[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[i.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(i):this.single_set_selected_text(this.choice_label(i)),this.is_multiple&&(!this.hide_results_on_select||e.metaKey||e.ctrlKey)?e.metaKey||e.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[i.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())},o.prototype.single_set_selected_text=function(e){return null==e&&(e=this.default_text),e===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(e)},o.prototype.result_deselect=function(e){var t;return t=this.results_data[e],!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)},o.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},o.prototype.get_search_field_value=function(){return this.search_field.val()},o.prototype.get_search_text=function(){return e.trim(this.get_search_field_value())},o.prototype.escape_html=function(t){return e("<div/>").text(t).html()},o.prototype.winnow_results_set_highlight=function(){var e,t;if(null!=(e=(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},o.prototype.no_results=function(e){var t;return t=this.get_no_results_html(e),this.search_results.append(t),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},o.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},o.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},o.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},o.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last()).length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},o.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},o.prototype.search_field_scale=function(){var t,i,n,o,a,r,s;if(this.is_multiple){for(a={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},i=0,n=(r=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;i<n;i++)a[o=r[i]]=this.search_field.css(o);return(t=e("<div />").css(a)).text(this.get_search_field_value()),e("body").append(t),s=t.width()+25,t.remove(),this.container.is(":visible")&&(s=Math.min(this.container.outerWidth()-10,s)),this.search_field.width(s)}},o.prototype.trigger_form_field_change=function(e){return this.form_field_jq.trigger("input",e),this.form_field_jq.trigger("change",e)},o}()}).call(this)},147:function(e,t){!function(e){e.color={},e.color.make=function(t,i,n,o){var a={};return a.r=t||0,a.g=i||0,a.b=n||0,a.a=null!=o?o:1,a.add=function(e,t){for(var i=0;i<e.length;++i)a[e.charAt(i)]+=t;return a.normalize()},a.scale=function(e,t){for(var i=0;i<e.length;++i)a[e.charAt(i)]*=t;return a.normalize()},a.toString=function(){return a.a>=1?"rgb("+[a.r,a.g,a.b].join(",")+")":"rgba("+[a.r,a.g,a.b,a.a].join(",")+")"},a.normalize=function(){function e(e,t,i){return t<e?e:t>i?i:t}return a.r=e(0,parseInt(a.r),255),a.g=e(0,parseInt(a.g),255),a.b=e(0,parseInt(a.b),255),a.a=e(0,a.a,1),a},a.clone=function(){return e.color.make(a.r,a.b,a.g,a.a)},a.normalize()},e.color.extract=function(t,i){var n;do{if(""!=(n=t.css(i).toLowerCase())&&"transparent"!=n)break;t=t.parent()}while(t.length&&!e.nodeName(t.get(0),"body"));return"rgba(0, 0, 0, 0)"==n&&(n="transparent"),e.color.parse(n)},e.color.parse=function(i){var n,o=e.color.make;if(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(i))return o(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10));if(n=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(i))return o(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4]));if(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(i))return o(2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3]));if(n=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(i))return o(2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3]),parseFloat(n[4]));if(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(i))return o(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16));if(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(i))return o(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16));var a=e.trim(i).toLowerCase();return"transparent"==a?o(255,255,255,0):o((n=t[a]||[0,0,0])[0],n[1],n[2])};var t={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(e){var t=Object.prototype.hasOwnProperty;function i(t,i){var n=i.children("."+t)[0];if(null==n&&((n=document.createElement("canvas")).className=t,e(n).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(i),!n.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");n=window.G_vmlCanvasManager.initElement(n)}this.element=n;var o=this.context=n.getContext("2d"),a=window.devicePixelRatio||1,r=o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1;this.pixelRatio=a/r,this.resize(i.width(),i.height()),this.textContainer=null,this.text={},this._textCache={}}function n(t,n,o,a){var r=[],s={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},l=null,c=null,d=null,u=null,h=null,f=[],p=[],g={left:0,right:0,top:0,bottom:0},m=0,v=0,_={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},b=this;function y(e,t){t=[b].concat(t);for(var i=0;i<e.length;++i)e[i].apply(this,t)}function x(t){r=function(t){for(var i=[],n=0;n<t.length;++n){var o=e.extend(!0,{},s.series);null!=t[n].data?(o.data=t[n].data,delete t[n].data,e.extend(!0,o,t[n]),t[n].data=o.data):o.data=t[n],i.push(o)}return i}(t),function(){var t,i=r.length,n=-1;for(t=0;t<r.length;++t){var o=r[t].color;null!=o&&(i--,"number"==typeof o&&o>n&&(n=o))}i<=n&&(i=n+1);var a,l=[],c=s.colors,d=c.length,u=0;for(t=0;t<i;t++)a=e.color.parse(c[t%d]||"#666"),t%d==0&&t&&(u=u>=0?u<.5?-u-.2:0:-u),l[t]=a.scale("rgb",1+u);var h,g=0;for(t=0;t<r.length;++t){if(null==(h=r[t]).color?(h.color=l[g].toString(),++g):"number"==typeof h.color&&(h.color=l[h.color].toString()),null==h.lines.show){var m,v=!0;for(m in h)if(h[m]&&h[m].show){v=!1;break}v&&(h.lines.show=!0)}null==h.lines.zero&&(h.lines.zero=!!h.lines.fill),h.xaxis=j(f,w(h,"x")),h.yaxis=j(p,w(h,"y"))}}(),function(){var t,i,n,o,a,s,l,c,d,u,h,f,p=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,m=Number.MAX_VALUE;function v(e,t,i){t<e.datamin&&t!=-m&&(e.datamin=t),i>e.datamax&&i!=m&&(e.datamax=i)}for(e.each(k(),function(e,t){t.datamin=p,t.datamax=g,t.used=!1}),t=0;t<r.length;++t)(a=r[t]).datapoints={points:[]},y(_.processRawData,[a,a.data,a.datapoints]);for(t=0;t<r.length;++t){if(a=r[t],h=a.data,!(f=a.datapoints.format)){if((f=[]).push({x:!0,number:!0,required:!0}),f.push({y:!0,number:!0,required:!0}),a.bars.show||a.lines.show&&a.lines.fill){var b=!!(a.bars.show&&a.bars.zero||a.lines.show&&a.lines.zero);f.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:b}),a.bars.horizontal&&(delete f[f.length-1].y,f[f.length-1].x=!0)}a.datapoints.format=f}if(null==a.datapoints.pointsize){a.datapoints.pointsize=f.length,l=a.datapoints.pointsize,s=a.datapoints.points;var x=a.lines.show&&a.lines.steps;for(a.xaxis.used=a.yaxis.used=!0,i=n=0;i<h.length;++i,n+=l){var w=null==(u=h[i]);if(!w)for(o=0;o<l;++o)c=u[o],(d=f[o])&&(d.number&&null!=c&&(c=+c,isNaN(c)?c=null:c==1/0?c=m:c==-1/0&&(c=-m)),null==c&&(d.required&&(w=!0),null!=d.defaultValue&&(c=d.defaultValue))),s[n+o]=c;if(w)for(o=0;o<l;++o)null!=(c=s[n+o])&&!1!==(d=f[o]).autoscale&&(d.x&&v(a.xaxis,c,c),d.y&&v(a.yaxis,c,c)),s[n+o]=null;else if(x&&n>0&&null!=s[n-l]&&s[n-l]!=s[n]&&s[n-l+1]!=s[n+1]){for(o=0;o<l;++o)s[n+l+o]=s[n+o];s[n+1]=s[n-l+1],n+=l}}}}for(t=0;t<r.length;++t)a=r[t],y(_.processDatapoints,[a,a.datapoints]);for(t=0;t<r.length;++t){a=r[t],s=a.datapoints.points,l=a.datapoints.pointsize,f=a.datapoints.format;var C=p,j=p,G=g,T=g;for(i=0;i<s.length;i+=l)if(null!=s[i])for(o=0;o<l;++o)c=s[i+o],(d=f[o])&&!1!==d.autoscale&&c!=m&&c!=-m&&(d.x&&(c<C&&(C=c),c>G&&(G=c)),d.y&&(c<j&&(j=c),c>T&&(T=c)));if(a.bars.show){var S;switch(a.bars.align){case"left":S=0;break;case"right":S=-a.bars.barWidth;break;default:S=-a.bars.barWidth/2}a.bars.horizontal?(j+=S,T+=S+a.bars.barWidth):(C+=S,G+=S+a.bars.barWidth)}v(a.xaxis,C,G),v(a.yaxis,j,T)}e.each(k(),function(e,t){t.datamin==p&&(t.datamin=null),t.datamax==g&&(t.datamax=null)})}()}function w(e,t){var i=e[t+"axis"];return"object"==typeof i&&(i=i.n),"number"!=typeof i&&(i=1),i}function k(){return e.grep(f.concat(p),function(e){return e})}function C(e){var t,i,n={};for(t=0;t<f.length;++t)(i=f[t])&&i.used&&(n["x"+i.n]=i.c2p(e.left));for(t=0;t<p.length;++t)(i=p[t])&&i.used&&(n["y"+i.n]=i.c2p(e.top));return void 0!==n.x1&&(n.x=n.x1),void 0!==n.y1&&(n.y=n.y1),n}function j(t,i){return t[i-1]||(t[i-1]={n:i,direction:t==f?"x":"y",options:e.extend(!0,{},t==f?s.xaxis:s.yaxis)}),t[i-1]}function G(){Q&&clearTimeout(Q),d.unbind("mousemove",D),d.unbind("mouseleave",N),d.unbind("click",W),y(_.shutdown,[d])}function T(t){var i=t.labelWidth,n=t.labelHeight,o=t.options.position,a="x"===t.direction,r=t.options.tickLength,c=s.grid.axisMargin,d=s.grid.labelMargin,u=!0,h=!0,m=!0,v=!1;e.each(a?f:p,function(e,i){i&&(i.show||i.reserveSpace)&&(i===t?v=!0:i.options.position===o&&(v?h=!1:u=!1),v||(m=!1))}),h&&(c=0),null==r&&(r=m?"full":5),isNaN(+r)||(d+=+r),a?(n+=d,"bottom"==o?(g.bottom+=n+c,t.box={top:l.height-g.bottom,height:n}):(t.box={top:g.top+c,height:n},g.top+=n+c)):(i+=d,"left"==o?(t.box={left:g.left+c,width:i},g.left+=i+c):(g.right+=i+c,t.box={left:l.width-g.right,width:i})),t.position=o,t.tickLength=r,t.box.padding=d,t.innermost=u}function S(){var i,n=k(),o=s.grid.show;for(var a in g){var c=s.grid.margin||0;g[a]="number"==typeof c?c:c[a]||0}for(var a in y(_.processOffset,[g]),g)"object"==typeof s.grid.borderWidth?g[a]+=o?s.grid.borderWidth[a]:0:g[a]+=o?s.grid.borderWidth:0;if(e.each(n,function(e,t){var i=t.options;t.show=null==i.show?t.used:i.show,t.reserveSpace=null==i.reserveSpace?t.show:i.reserveSpace,function(e){var t=e.options,i=+(null!=t.min?t.min:e.datamin),n=+(null!=t.max?t.max:e.datamax),o=n-i;if(0==o){var a=0==n?1:.01;null==t.min&&(i-=a),null!=t.max&&null==t.min||(n+=a)}else{var r=t.autoscaleMargin;null!=r&&(null==t.min&&(i-=o*r)<0&&null!=e.datamin&&e.datamin>=0&&(i=0),null==t.max&&(n+=o*r)>0&&null!=e.datamax&&e.datamax<=0&&(n=0))}e.min=i,e.max=n}(t)}),o){var d=e.grep(n,function(e){return e.show||e.reserveSpace});for(e.each(d,function(t,i){!function(t){var i,n=t.options;i="number"==typeof n.ticks&&n.ticks>0?n.ticks:.3*Math.sqrt("x"==t.direction?l.width:l.height);var o=(t.max-t.min)/i,a=-Math.floor(Math.log(o)/Math.LN10),r=n.tickDecimals;null!=r&&a>r&&(a=r);var s,c=Math.pow(10,-a),d=o/c;d<1.5?s=1:d<3?(s=2,d>2.25&&(null==r||a+1<=r)&&(s=2.5,++a)):s=d<7.5?5:10;s*=c,null!=n.minTickSize&&s<n.minTickSize&&(s=n.minTickSize);if(t.delta=o,t.tickDecimals=Math.max(0,null!=r?r:a),t.tickSize=n.tickSize||s,"time"==n.mode&&!t.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");t.tickGenerator||(t.tickGenerator=function(e){var t,i,n,o=[],a=(i=e.min,(n=e.tickSize)*Math.floor(i/n)),r=0,s=Number.NaN;do{t=s,s=a+r*e.tickSize,o.push(s),++r}while(s<e.max&&s!=t);return o},t.tickFormatter=function(e,t){var i=t.tickDecimals?Math.pow(10,t.tickDecimals):1,n=""+Math.round(e*i)/i;if(null!=t.tickDecimals){var o=n.indexOf("."),a=-1==o?0:n.length-o-1;if(a<t.tickDecimals)return(a?n:n+".")+(""+i).substr(1,t.tickDecimals-a)}return n});e.isFunction(n.tickFormatter)&&(t.tickFormatter=function(e,t){return""+n.tickFormatter(e,t)});if(null!=n.alignTicksWithAxis){var u=("x"==t.direction?f:p)[n.alignTicksWithAxis-1];if(u&&u.used&&u!=t){var h=t.tickGenerator(t);if(h.length>0&&(null==n.min&&(t.min=Math.min(t.min,h[0])),null==n.max&&h.length>1&&(t.max=Math.max(t.max,h[h.length-1]))),t.tickGenerator=function(e){var t,i,n=[];for(i=0;i<u.ticks.length;++i)t=(u.ticks[i].v-u.min)/(u.max-u.min),t=e.min+t*(e.max-e.min),n.push(t);return n},!t.mode&&null==n.tickDecimals){var g=Math.max(0,1-Math.floor(Math.log(t.delta)/Math.LN10)),m=t.tickGenerator(t);m.length>1&&/\..*0$/.test((m[1]-m[0]).toFixed(g))||(t.tickDecimals=g)}}}}(i),function(t){var i,n,o=t.options.ticks,a=[];null==o||"number"==typeof o&&o>0?a=t.tickGenerator(t):o&&(a=e.isFunction(o)?o(t):o);for(t.ticks=[],i=0;i<a.length;++i){var r=null,s=a[i];"object"==typeof s?(n=+s[0],s.length>1&&(r=s[1])):n=+s,null==r&&(r=t.tickFormatter(n,t)),isNaN(n)||t.ticks.push({v:n,label:r})}}(i),function(e,t){e.options.autoscaleMargin&&t.length>0&&(null==e.options.min&&(e.min=Math.min(e.min,t[0].v)),null==e.options.max&&t.length>1&&(e.max=Math.max(e.max,t[t.length-1].v)))}(i,i.ticks),function(e){for(var t=e.options,i=e.ticks||[],n=t.labelWidth||0,o=t.labelHeight||0,a=n||("x"==e.direction?Math.floor(l.width/(i.length||1)):null),r=e.direction+"Axis "+e.direction+e.n+"Axis",s="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+r,c=t.font||"flot-tick-label tickLabel",d=0;d<i.length;++d){var u=i[d];if(u.label){var h=l.getTextInfo(s,u.label,c,null,a);n=Math.max(n,h.width),o=Math.max(o,h.height)}}e.labelWidth=t.labelWidth||n,e.labelHeight=t.labelHeight||o}(i)}),i=d.length-1;i>=0;--i)T(d[i]);!function(){var t,i=s.grid.minBorderMargin;if(null==i)for(i=0,t=0;t<r.length;++t)i=Math.max(i,2*(r[t].points.radius+r[t].points.lineWidth/2));var n={left:i,right:i,top:i,bottom:i};e.each(k(),function(e,t){t.reserveSpace&&t.ticks&&t.ticks.length&&("x"===t.direction?(n.left=Math.max(n.left,t.labelWidth/2),n.right=Math.max(n.right,t.labelWidth/2)):(n.bottom=Math.max(n.bottom,t.labelHeight/2),n.top=Math.max(n.top,t.labelHeight/2)))}),g.left=Math.ceil(Math.max(n.left,g.left)),g.right=Math.ceil(Math.max(n.right,g.right)),g.top=Math.ceil(Math.max(n.top,g.top)),g.bottom=Math.ceil(Math.max(n.bottom,g.bottom))}(),e.each(d,function(e,t){!function(e){"x"==e.direction?(e.box.left=g.left-e.labelWidth/2,e.box.width=l.width-g.left-g.right+e.labelWidth):(e.box.top=g.top-e.labelHeight/2,e.box.height=l.height-g.bottom-g.top+e.labelHeight)}(t)})}m=l.width-g.left-g.right,v=l.height-g.bottom-g.top,e.each(n,function(e,t){!function(e){function t(e){return e}var i,n,o=e.options.transform||t,a=e.options.inverseTransform;"x"==e.direction?(i=e.scale=m/Math.abs(o(e.max)-o(e.min)),n=Math.min(o(e.max),o(e.min))):(i=-(i=e.scale=v/Math.abs(o(e.max)-o(e.min))),n=Math.max(o(e.max),o(e.min))),e.p2c=o==t?function(e){return(e-n)*i}:function(e){return(o(e)-n)*i},e.c2p=a?function(e){return a(n+e/i)}:function(e){return n+e/i}}(t)}),o&&e.each(k(),function(e,t){var i,n,o,a,r,s=t.box,c=t.direction+"Axis "+t.direction+t.n+"Axis",d="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+c,u=t.options.font||"flot-tick-label tickLabel";if(l.removeText(d),t.show&&0!=t.ticks.length)for(var h=0;h<t.ticks.length;++h)!(i=t.ticks[h]).label||i.v<t.min||i.v>t.max||("x"==t.direction?(a="center",n=g.left+t.p2c(i.v),"bottom"==t.position?o=s.top+s.padding:(o=s.top+s.height-s.padding,r="bottom")):(r="middle",o=g.top+t.p2c(i.v),"left"==t.position?(n=s.left+s.width-s.padding,a="right"):n=s.left+s.padding),l.addText(d,n,o,i.label,u,null,null,a,r))}),function(){null!=s.legend.container?e(s.legend.container).html(""):t.find(".legend").remove();if(!s.legend.show)return;for(var i,n,o=[],a=[],l=!1,c=s.legend.labelFormatter,d=0;d<r.length;++d)(i=r[d]).label&&(n=c?c(i.label,i):i.label)&&a.push({label:n,color:i.color});if(s.legend.sorted)if(e.isFunction(s.legend.sorted))a.sort(s.legend.sorted);else if("reverse"==s.legend.sorted)a.reverse();else{var u="descending"!=s.legend.sorted;a.sort(function(e,t){return e.label==t.label?0:e.label<t.label!=u?1:-1})}for(var d=0;d<a.length;++d){var h=a[d];d%s.legend.noColumns==0&&(l&&o.push("</tr>"),o.push("<tr>"),l=!0),o.push('<td class="legendColorBox"><div style="border:1px solid '+s.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+h.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+h.label+"</td>")}l&&o.push("</tr>");if(0==o.length)return;var f='<table style="font-size:smaller;color:'+s.grid.color+'">'+o.join("")+"</table>";if(null!=s.legend.container)e(s.legend.container).html(f);else{var p="",m=s.legend.position,v=s.legend.margin;null==v[0]&&(v=[v,v]),"n"==m.charAt(0)?p+="top:"+(v[1]+g.top)+"px;":"s"==m.charAt(0)&&(p+="bottom:"+(v[1]+g.bottom)+"px;"),"e"==m.charAt(1)?p+="right:"+(v[0]+g.right)+"px;":"w"==m.charAt(1)&&(p+="left:"+(v[0]+g.left)+"px;");var _=e('<div class="legend">'+f.replace('style="','style="position:absolute;'+p+";")+"</div>").appendTo(t);if(0!=s.legend.backgroundOpacity){var b=s.legend.backgroundColor;null==b&&((b=(b=s.grid.backgroundColor)&&"string"==typeof b?e.color.parse(b):e.color.extract(_,"background-color")).a=1,b=b.toString());var y=_.children();e('<div style="position:absolute;width:'+y.width()+"px;height:"+y.height()+"px;"+p+"background-color:"+b+';"> </div>').prependTo(_).css("opacity",s.legend.backgroundOpacity)}}}()}function M(){l.clear(),y(_.drawBackground,[u]);var e=s.grid;e.show&&e.backgroundColor&&(u.save(),u.translate(g.left,g.top),u.fillStyle=U(s.grid.backgroundColor,v,0,"rgba(255, 255, 255, 0)"),u.fillRect(0,0,m,v),u.restore()),e.show&&!e.aboveData&&A();for(var t=0;t<r.length;++t)y(_.drawSeries,[u,r[t]]),P(r[t]);y(_.draw,[u]),e.show&&e.aboveData&&A(),l.render(),V()}function I(e,t){for(var i,n,o,a,r=k(),s=0;s<r.length;++s)if((i=r[s]).direction==t&&(e[a=t+i.n+"axis"]||1!=i.n||(a=t+"axis"),e[a])){n=e[a].from,o=e[a].to;break}if(e[a]||(i="x"==t?f[0]:p[0],n=e[t+"1"],o=e[t+"2"]),null!=n&&null!=o&&n>o){var l=n;n=o,o=l}return{from:n,to:o,axis:i}}function A(){var t,i,n,o;u.save(),u.translate(g.left,g.top);var a=s.grid.markings;if(a)for(e.isFunction(a)&&((i=b.getAxes()).xmin=i.xaxis.min,i.xmax=i.xaxis.max,i.ymin=i.yaxis.min,i.ymax=i.yaxis.max,a=a(i)),t=0;t<a.length;++t){var r=a[t],l=I(r,"x"),c=I(r,"y");if(null==l.from&&(l.from=l.axis.min),null==l.to&&(l.to=l.axis.max),null==c.from&&(c.from=c.axis.min),null==c.to&&(c.to=c.axis.max),!(l.to<l.axis.min||l.from>l.axis.max||c.to<c.axis.min||c.from>c.axis.max)){l.from=Math.max(l.from,l.axis.min),l.to=Math.min(l.to,l.axis.max),c.from=Math.max(c.from,c.axis.min),c.to=Math.min(c.to,c.axis.max);var d=l.from===l.to,h=c.from===c.to;if(!d||!h)if(l.from=Math.floor(l.axis.p2c(l.from)),l.to=Math.floor(l.axis.p2c(l.to)),c.from=Math.floor(c.axis.p2c(c.from)),c.to=Math.floor(c.axis.p2c(c.to)),d||h){var f=r.lineWidth||s.grid.markingsLineWidth,p=f%2?.5:0;u.beginPath(),u.strokeStyle=r.color||s.grid.markingsColor,u.lineWidth=f,d?(u.moveTo(l.to+p,c.from),u.lineTo(l.to+p,c.to)):(u.moveTo(l.from,c.to+p),u.lineTo(l.to,c.to+p)),u.stroke()}else u.fillStyle=r.color||s.grid.markingsColor,u.fillRect(l.from,c.to,l.to-l.from,c.from-c.to)}}i=k(),n=s.grid.borderWidth;for(var _=0;_<i.length;++_){var y,x,w,C,j=i[_],G=j.box,T=j.tickLength;if(j.show&&0!=j.ticks.length){for(u.lineWidth=1,"x"==j.direction?(y=0,x="full"==T?"top"==j.position?0:v:G.top-g.top+("top"==j.position?G.height:0)):(x=0,y="full"==T?"left"==j.position?0:m:G.left-g.left+("left"==j.position?G.width:0)),j.innermost||(u.strokeStyle=j.options.color,u.beginPath(),w=C=0,"x"==j.direction?w=m+1:C=v+1,1==u.lineWidth&&("x"==j.direction?x=Math.floor(x)+.5:y=Math.floor(y)+.5),u.moveTo(y,x),u.lineTo(y+w,x+C),u.stroke()),u.strokeStyle=j.options.tickColor,u.beginPath(),t=0;t<j.ticks.length;++t){var S=j.ticks[t].v;w=C=0,isNaN(S)||S<j.min||S>j.max||"full"==T&&("object"==typeof n&&n[j.position]>0||n>0)&&(S==j.min||S==j.max)||("x"==j.direction?(y=j.p2c(S),C="full"==T?-v:T,"top"==j.position&&(C=-C)):(x=j.p2c(S),w="full"==T?-m:T,"left"==j.position&&(w=-w)),1==u.lineWidth&&("x"==j.direction?y=Math.floor(y)+.5:x=Math.floor(x)+.5),u.moveTo(y,x),u.lineTo(y+w,x+C))}u.stroke()}}n&&(o=s.grid.borderColor,"object"==typeof n||"object"==typeof o?("object"!=typeof n&&(n={top:n,right:n,bottom:n,left:n}),"object"!=typeof o&&(o={top:o,right:o,bottom:o,left:o}),n.top>0&&(u.strokeStyle=o.top,u.lineWidth=n.top,u.beginPath(),u.moveTo(0-n.left,0-n.top/2),u.lineTo(m,0-n.top/2),u.stroke()),n.right>0&&(u.strokeStyle=o.right,u.lineWidth=n.right,u.beginPath(),u.moveTo(m+n.right/2,0-n.top),u.lineTo(m+n.right/2,v),u.stroke()),n.bottom>0&&(u.strokeStyle=o.bottom,u.lineWidth=n.bottom,u.beginPath(),u.moveTo(m+n.right,v+n.bottom/2),u.lineTo(0,v+n.bottom/2),u.stroke()),n.left>0&&(u.strokeStyle=o.left,u.lineWidth=n.left,u.beginPath(),u.moveTo(0-n.left/2,v+n.bottom),u.lineTo(0-n.left/2,0),u.stroke())):(u.lineWidth=n,u.strokeStyle=s.grid.borderColor,u.strokeRect(-n/2,-n/2,m+n,v+n))),u.restore()}function P(e){e.lines.show&&function(e){function t(e,t,i,n,o){var a=e.points,r=e.pointsize,s=null,l=null;u.beginPath();for(var c=r;c<a.length;c+=r){var d=a[c-r],h=a[c-r+1],f=a[c],p=a[c+1];if(null!=d&&null!=f){if(h<=p&&h<o.min){if(p<o.min)continue;d=(o.min-h)/(p-h)*(f-d)+d,h=o.min}else if(p<=h&&p<o.min){if(h<o.min)continue;f=(o.min-h)/(p-h)*(f-d)+d,p=o.min}if(h>=p&&h>o.max){if(p>o.max)continue;d=(o.max-h)/(p-h)*(f-d)+d,h=o.max}else if(p>=h&&p>o.max){if(h>o.max)continue;f=(o.max-h)/(p-h)*(f-d)+d,p=o.max}if(d<=f&&d<n.min){if(f<n.min)continue;h=(n.min-d)/(f-d)*(p-h)+h,d=n.min}else if(f<=d&&f<n.min){if(d<n.min)continue;p=(n.min-d)/(f-d)*(p-h)+h,f=n.min}if(d>=f&&d>n.max){if(f>n.max)continue;h=(n.max-d)/(f-d)*(p-h)+h,d=n.max}else if(f>=d&&f>n.max){if(d>n.max)continue;p=(n.max-d)/(f-d)*(p-h)+h,f=n.max}d==s&&h==l||u.moveTo(n.p2c(d)+t,o.p2c(h)+i),s=f,l=p,u.lineTo(n.p2c(f)+t,o.p2c(p)+i)}}u.stroke()}u.save(),u.translate(g.left,g.top),u.lineJoin="round";var i=e.lines.lineWidth,n=e.shadowSize;if(i>0&&n>0){u.lineWidth=n,u.strokeStyle="rgba(0,0,0,0.1)";var o=Math.PI/18;t(e.datapoints,Math.sin(o)*(i/2+n/2),Math.cos(o)*(i/2+n/2),e.xaxis,e.yaxis),u.lineWidth=n/2,t(e.datapoints,Math.sin(o)*(i/2+n/4),Math.cos(o)*(i/2+n/4),e.xaxis,e.yaxis)}u.lineWidth=i,u.strokeStyle=e.color;var a=O(e.lines,e.color,0,v);a&&(u.fillStyle=a,function(e,t,i){var n=e.points,o=e.pointsize,a=Math.min(Math.max(0,i.min),i.max),r=0,s=!1,l=1,c=0,d=0;for(;!(o>0&&r>n.length+o);){var h=n[(r+=o)-o],f=n[r-o+l],p=n[r],g=n[r+l];if(s){if(o>0&&null!=h&&null==p){d=r,o=-o,l=2;continue}if(o<0&&r==c+o){u.fill(),s=!1,l=1,r=c=d+(o=-o);continue}}if(null!=h&&null!=p){if(h<=p&&h<t.min){if(p<t.min)continue;f=(t.min-h)/(p-h)*(g-f)+f,h=t.min}else if(p<=h&&p<t.min){if(h<t.min)continue;g=(t.min-h)/(p-h)*(g-f)+f,p=t.min}if(h>=p&&h>t.max){if(p>t.max)continue;f=(t.max-h)/(p-h)*(g-f)+f,h=t.max}else if(p>=h&&p>t.max){if(h>t.max)continue;g=(t.max-h)/(p-h)*(g-f)+f,p=t.max}if(s||(u.beginPath(),u.moveTo(t.p2c(h),i.p2c(a)),s=!0),f>=i.max&&g>=i.max)u.lineTo(t.p2c(h),i.p2c(i.max)),u.lineTo(t.p2c(p),i.p2c(i.max));else if(f<=i.min&&g<=i.min)u.lineTo(t.p2c(h),i.p2c(i.min)),u.lineTo(t.p2c(p),i.p2c(i.min));else{var m=h,v=p;f<=g&&f<i.min&&g>=i.min?(h=(i.min-f)/(g-f)*(p-h)+h,f=i.min):g<=f&&g<i.min&&f>=i.min&&(p=(i.min-f)/(g-f)*(p-h)+h,g=i.min),f>=g&&f>i.max&&g<=i.max?(h=(i.max-f)/(g-f)*(p-h)+h,f=i.max):g>=f&&g>i.max&&f<=i.max&&(p=(i.max-f)/(g-f)*(p-h)+h,g=i.max),h!=m&&u.lineTo(t.p2c(m),i.p2c(f)),u.lineTo(t.p2c(h),i.p2c(f)),u.lineTo(t.p2c(p),i.p2c(g)),p!=v&&(u.lineTo(t.p2c(p),i.p2c(g)),u.lineTo(t.p2c(v),i.p2c(g)))}}}}(e.datapoints,e.xaxis,e.yaxis));i>0&&t(e.datapoints,0,0,e.xaxis,e.yaxis);u.restore()}(e),e.bars.show&&function(e){var t;switch(u.save(),u.translate(g.left,g.top),u.lineWidth=e.bars.lineWidth,u.strokeStyle=e.color,e.bars.align){case"left":t=0;break;case"right":t=-e.bars.barWidth;break;default:t=-e.bars.barWidth/2}var i=e.bars.fill?function(t,i){return O(e.bars,e.color,t,i)}:null;(function(t,i,n,o,a,r){for(var s=t.points,l=t.pointsize,c=0;c<s.length;c+=l)null!=s[c]&&E(s[c],s[c+1],s[c+2],i,n,o,a,r,u,e.bars.horizontal,e.bars.lineWidth)})(e.datapoints,t,t+e.bars.barWidth,i,e.xaxis,e.yaxis),u.restore()}(e),e.points.show&&function(e){function t(e,t,i,n,o,a,r,s){for(var l=e.points,c=e.pointsize,d=0;d<l.length;d+=c){var h=l[d],f=l[d+1];null==h||h<a.min||h>a.max||f<r.min||f>r.max||(u.beginPath(),h=a.p2c(h),f=r.p2c(f)+n,"circle"==s?u.arc(h,f,t,0,o?Math.PI:2*Math.PI,!1):s(u,h,f,t,o),u.closePath(),i&&(u.fillStyle=i,u.fill()),u.stroke())}}u.save(),u.translate(g.left,g.top);var i=e.points.lineWidth,n=e.shadowSize,o=e.points.radius,a=e.points.symbol;0==i&&(i=1e-4);if(i>0&&n>0){var r=n/2;u.lineWidth=r,u.strokeStyle="rgba(0,0,0,0.1)",t(e.datapoints,o,null,r+r/2,!0,e.xaxis,e.yaxis,a),u.strokeStyle="rgba(0,0,0,0.2)",t(e.datapoints,o,null,r/2,!0,e.xaxis,e.yaxis,a)}u.lineWidth=i,u.strokeStyle=e.color,t(e.datapoints,o,O(e.points,e.color),0,!1,e.xaxis,e.yaxis,a),u.restore()}(e)}function E(e,t,i,n,o,a,r,s,l,c,d){var u,h,f,p,g,m,v,_,b;c?(_=m=v=!0,g=!1,p=t+n,f=t+o,(h=e)<(u=i)&&(b=h,h=u,u=b,g=!0,m=!1)):(g=m=v=!0,_=!1,u=e+n,h=e+o,(p=t)<(f=i)&&(b=p,p=f,f=b,_=!0,v=!1)),h<r.min||u>r.max||p<s.min||f>s.max||(u<r.min&&(u=r.min,g=!1),h>r.max&&(h=r.max,m=!1),f<s.min&&(f=s.min,_=!1),p>s.max&&(p=s.max,v=!1),u=r.p2c(u),f=s.p2c(f),h=r.p2c(h),p=s.p2c(p),a&&(l.fillStyle=a(f,p),l.fillRect(u,p,h-u,f-p)),d>0&&(g||m||v||_)&&(l.beginPath(),l.moveTo(u,f),g?l.lineTo(u,p):l.moveTo(u,p),v?l.lineTo(h,p):l.moveTo(h,p),m?l.lineTo(h,f):l.moveTo(h,f),_?l.lineTo(u,f):l.moveTo(u,f),l.stroke()))}function O(t,i,n,o){var a=t.fill;if(!a)return null;if(t.fillColor)return U(t.fillColor,n,o,i);var r=e.color.parse(i);return r.a="number"==typeof a?a:.4,r.normalize(),r.toString()}b.setData=x,b.setupGrid=S,b.draw=M,b.getPlaceholder=function(){return t},b.getCanvas=function(){return l.element},b.getPlotOffset=function(){return g},b.width=function(){return m},b.height=function(){return v},b.offset=function(){var e=d.offset();return e.left+=g.left,e.top+=g.top,e},b.getData=function(){return r},b.getAxes=function(){var t={};return e.each(f.concat(p),function(e,i){i&&(t[i.direction+(1!=i.n?i.n:"")+"axis"]=i)}),t},b.getXAxes=function(){return f},b.getYAxes=function(){return p},b.c2p=C,b.p2c=function(e){var t,i,n,o={};for(t=0;t<f.length;++t)if((i=f[t])&&i.used&&(n="x"+i.n,null==e[n]&&1==i.n&&(n="x"),null!=e[n])){o.left=i.p2c(e[n]);break}for(t=0;t<p.length;++t)if((i=p[t])&&i.used&&(n="y"+i.n,null==e[n]&&1==i.n&&(n="y"),null!=e[n])){o.top=i.p2c(e[n]);break}return o},b.getOptions=function(){return s},b.highlight=L,b.unhighlight=B,b.triggerRedrawOverlay=V,b.pointOffset=function(e){return{left:parseInt(f[w(e,"x")-1].p2c(+e.x)+g.left,10),top:parseInt(p[w(e,"y")-1].p2c(+e.y)+g.top,10)}},b.shutdown=G,b.destroy=function(){G(),t.removeData("plot").empty(),r=[],s=null,l=null,c=null,d=null,u=null,h=null,f=[],p=[],_=null,z=[],b=null},b.resize=function(){var e=t.width(),i=t.height();l.resize(e,i),c.resize(e,i)},b.hooks=_,function(){for(var t={Canvas:i},n=0;n<a.length;++n){var o=a[n];o.init(b,t),o.options&&e.extend(!0,s,o.options)}}(),function(i){e.extend(!0,s,i),i&&i.colors&&(s.colors=i.colors);null==s.xaxis.color&&(s.xaxis.color=e.color.parse(s.grid.color).scale("a",.22).toString());null==s.yaxis.color&&(s.yaxis.color=e.color.parse(s.grid.color).scale("a",.22).toString());null==s.xaxis.tickColor&&(s.xaxis.tickColor=s.grid.tickColor||s.xaxis.color);null==s.yaxis.tickColor&&(s.yaxis.tickColor=s.grid.tickColor||s.yaxis.color);null==s.grid.borderColor&&(s.grid.borderColor=s.grid.color);null==s.grid.tickColor&&(s.grid.tickColor=e.color.parse(s.grid.color).scale("a",.22).toString());var n,o,a,r=t.css("font-size"),l=r?+r.replace("px",""):13,c={style:t.css("font-style"),size:Math.round(.8*l),variant:t.css("font-variant"),weight:t.css("font-weight"),family:t.css("font-family")};for(a=s.xaxes.length||1,n=0;n<a;++n)(o=s.xaxes[n])&&!o.tickColor&&(o.tickColor=o.color),o=e.extend(!0,{},s.xaxis,o),s.xaxes[n]=o,o.font&&(o.font=e.extend({},c,o.font),o.font.color||(o.font.color=o.color),o.font.lineHeight||(o.font.lineHeight=Math.round(1.15*o.font.size)));for(a=s.yaxes.length||1,n=0;n<a;++n)(o=s.yaxes[n])&&!o.tickColor&&(o.tickColor=o.color),o=e.extend(!0,{},s.yaxis,o),s.yaxes[n]=o,o.font&&(o.font=e.extend({},c,o.font),o.font.color||(o.font.color=o.color),o.font.lineHeight||(o.font.lineHeight=Math.round(1.15*o.font.size)));s.xaxis.noTicks&&null==s.xaxis.ticks&&(s.xaxis.ticks=s.xaxis.noTicks);s.yaxis.noTicks&&null==s.yaxis.ticks&&(s.yaxis.ticks=s.yaxis.noTicks);s.x2axis&&(s.xaxes[1]=e.extend(!0,{},s.xaxis,s.x2axis),s.xaxes[1].position="top",null==s.x2axis.min&&(s.xaxes[1].min=null),null==s.x2axis.max&&(s.xaxes[1].max=null));s.y2axis&&(s.yaxes[1]=e.extend(!0,{},s.yaxis,s.y2axis),s.yaxes[1].position="right",null==s.y2axis.min&&(s.yaxes[1].min=null),null==s.y2axis.max&&(s.yaxes[1].max=null));s.grid.coloredAreas&&(s.grid.markings=s.grid.coloredAreas);s.grid.coloredAreasColor&&(s.grid.markingsColor=s.grid.coloredAreasColor);s.lines&&e.extend(!0,s.series.lines,s.lines);s.points&&e.extend(!0,s.series.points,s.points);s.bars&&e.extend(!0,s.series.bars,s.bars);null!=s.shadowSize&&(s.series.shadowSize=s.shadowSize);null!=s.highlightColor&&(s.series.highlightColor=s.highlightColor);for(n=0;n<s.xaxes.length;++n)j(f,n+1).options=s.xaxes[n];for(n=0;n<s.yaxes.length;++n)j(p,n+1).options=s.yaxes[n];for(var d in _)s.hooks[d]&&s.hooks[d].length&&(_[d]=_[d].concat(s.hooks[d]));y(_.processOptions,[s])}(o),function(){t.css("padding",0).children().filter(function(){return!e(this).hasClass("flot-overlay")&&!e(this).hasClass("flot-base")}).remove(),"static"==t.css("position")&&t.css("position","relative");l=new i("flot-base",t),c=new i("flot-overlay",t),u=l.context,h=c.context,d=e(c.element).unbind();var n=t.data("plot");n&&(n.shutdown(),c.clear());t.data("plot",b)}(),x(n),S(),M(),function(){s.grid.hoverable&&(d.mousemove(D),d.bind("mouseleave",N));s.grid.clickable&&d.click(W);y(_.bindEvents,[d])}();var z=[],Q=null;function D(e){s.grid.hoverable&&F("plothover",e,function(e){return 0!=e.hoverable})}function N(e){s.grid.hoverable&&F("plothover",e,function(e){return!1})}function W(e){F("plotclick",e,function(e){return 0!=e.clickable})}function F(e,i,n){var o=d.offset(),a=i.pageX-o.left-g.left,l=i.pageY-o.top-g.top,c=C({left:a,top:l});c.pageX=i.pageX,c.pageY=i.pageY;var u=function(e,t,i){var n,o,a,l=s.grid.mouseActiveRadius,c=l*l+1,d=null;for(n=r.length-1;n>=0;--n)if(i(r[n])){var u=r[n],h=u.xaxis,f=u.yaxis,p=u.datapoints.points,g=h.c2p(e),m=f.c2p(t),v=l/h.scale,_=l/f.scale;if(a=u.datapoints.pointsize,h.options.inverseTransform&&(v=Number.MAX_VALUE),f.options.inverseTransform&&(_=Number.MAX_VALUE),u.lines.show||u.points.show)for(o=0;o<p.length;o+=a){var b=p[o],y=p[o+1];if(null!=b&&!(b-g>v||b-g<-v||y-m>_||y-m<-_)){var x=Math.abs(h.p2c(b)-e),w=Math.abs(f.p2c(y)-t),k=x*x+w*w;k<c&&(c=k,d=[n,o/a])}}if(u.bars.show&&!d){var C,j;switch(u.bars.align){case"left":C=0;break;case"right":C=-u.bars.barWidth;break;default:C=-u.bars.barWidth/2}for(j=C+u.bars.barWidth,o=0;o<p.length;o+=a){b=p[o],y=p[o+1];var G=p[o+2];null!=b&&(r[n].bars.horizontal?g<=Math.max(G,b)&&g>=Math.min(G,b)&&m>=y+C&&m<=y+j:g>=b+C&&g<=b+j&&m>=Math.min(G,y)&&m<=Math.max(G,y))&&(d=[n,o/a])}}}return d?(n=d[0],o=d[1],a=r[n].datapoints.pointsize,{datapoint:r[n].datapoints.points.slice(o*a,(o+1)*a),dataIndex:o,series:r[n],seriesIndex:n}):null}(a,l,n);if(u&&(u.pageX=parseInt(u.series.xaxis.p2c(u.datapoint[0])+o.left+g.left,10),u.pageY=parseInt(u.series.yaxis.p2c(u.datapoint[1])+o.top+g.top,10)),s.grid.autoHighlight){for(var h=0;h<z.length;++h){var f=z[h];f.auto!=e||u&&f.series==u.series&&f.point[0]==u.datapoint[0]&&f.point[1]==u.datapoint[1]||B(f.series,f.point)}u&&L(u.series,u.datapoint,e)}t.trigger(e,[c,u])}function V(){var e=s.interaction.redrawOverlayInterval;-1!=e?Q||(Q=setTimeout(q,e)):q()}function q(){var e,t;for(Q=null,h.save(),c.clear(),h.translate(g.left,g.top),e=0;e<z.length;++e)(t=z[e]).series.bars.show?$(t.series,t.point):R(t.series,t.point);h.restore(),y(_.drawOverlay,[h])}function L(e,t,i){if("number"==typeof e&&(e=r[e]),"number"==typeof t){var n=e.datapoints.pointsize;t=e.datapoints.points.slice(n*t,n*(t+1))}var o=H(e,t);-1==o?(z.push({series:e,point:t,auto:i}),V()):i||(z[o].auto=!1)}function B(e,t){if(null==e&&null==t)return z=[],void V();if("number"==typeof e&&(e=r[e]),"number"==typeof t){var i=e.datapoints.pointsize;t=e.datapoints.points.slice(i*t,i*(t+1))}var n=H(e,t);-1!=n&&(z.splice(n,1),V())}function H(e,t){for(var i=0;i<z.length;++i){var n=z[i];if(n.series==e&&n.point[0]==t[0]&&n.point[1]==t[1])return i}return-1}function R(t,i){var n=i[0],o=i[1],a=t.xaxis,r=t.yaxis,s="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString();if(!(n<a.min||n>a.max||o<r.min||o>r.max)){var l=t.points.radius+t.points.lineWidth/2;h.lineWidth=l,h.strokeStyle=s;var c=1.5*l;n=a.p2c(n),o=r.p2c(o),h.beginPath(),"circle"==t.points.symbol?h.arc(n,o,c,0,2*Math.PI,!1):t.points.symbol(h,n,o,c,!1),h.closePath(),h.stroke()}}function $(t,i){var n,o="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString(),a=o;switch(t.bars.align){case"left":n=0;break;case"right":n=-t.bars.barWidth;break;default:n=-t.bars.barWidth/2}h.lineWidth=t.bars.lineWidth,h.strokeStyle=o,E(i[0],i[1],i[2]||0,n,n+t.bars.barWidth,function(){return a},t.xaxis,t.yaxis,h,t.bars.horizontal,t.bars.lineWidth)}function U(t,i,n,o){if("string"==typeof t)return t;for(var a=u.createLinearGradient(0,n,0,i),r=0,s=t.colors.length;r<s;++r){var l=t.colors[r];if("string"!=typeof l){var c=e.color.parse(o);null!=l.brightness&&(c=c.scale("rgb",l.brightness)),null!=l.opacity&&(c.a*=l.opacity),l=c.toString()}a.addColorStop(r/(s-1),l)}return a}}e.fn.detach||(e.fn.detach=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})}),i.prototype.resize=function(e,t){if(e<=0||t<=0)throw new Error("Invalid dimensions for plot, width = "+e+", height = "+t);var i=this.element,n=this.context,o=this.pixelRatio;this.width!=e&&(i.width=e*o,i.style.width=e+"px",this.width=e),this.height!=t&&(i.height=t*o,i.style.height=t+"px",this.height=t),n.restore(),n.save(),n.scale(o,o)},i.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},i.prototype.render=function(){var e=this._textCache;for(var i in e)if(t.call(e,i)){var n=this.getTextLayer(i),o=e[i];for(var a in n.hide(),o)if(t.call(o,a)){var r=o[a];for(var s in r)if(t.call(r,s)){for(var l,c=r[s].positions,d=0;l=c[d];d++)l.active?l.rendered||(n.append(l.element),l.rendered=!0):(c.splice(d--,1),l.rendered&&l.element.detach());0==c.length&&delete r[s]}}n.show()}},i.prototype.getTextLayer=function(t){var i=this.text[t];return null==i&&(null==this.textContainer&&(this.textContainer=e("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),i=this.text[t]=e("<div></div>").addClass(t).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),i},i.prototype.getTextInfo=function(t,i,n,o,a){var r,s,l,c;if(i=""+i,r="object"==typeof n?n.style+" "+n.variant+" "+n.weight+" "+n.size+"px/"+n.lineHeight+"px "+n.family:n,null==(s=this._textCache[t])&&(s=this._textCache[t]={}),null==(l=s[r])&&(l=s[r]={}),null==(c=l[i])){var d=e("<div></div>").html(i).css({position:"absolute","max-width":a,top:-9999}).appendTo(this.getTextLayer(t));"object"==typeof n?d.css({font:r,color:n.color}):"string"==typeof n&&d.addClass(n),c=l[i]={width:d.outerWidth(!0),height:d.outerHeight(!0),element:d,positions:[]},d.detach()}return c},i.prototype.addText=function(e,t,i,n,o,a,r,s,l){var c=this.getTextInfo(e,n,o,a,r),d=c.positions;"center"==s?t-=c.width/2:"right"==s&&(t-=c.width),"middle"==l?i-=c.height/2:"bottom"==l&&(i-=c.height);for(var u,h=0;u=d[h];h++)if(u.x==t&&u.y==i)return void(u.active=!0);u={active:!0,rendered:!1,element:d.length?c.element.clone():c.element,x:t,y:i},d.push(u),u.element.css({top:Math.round(i),left:Math.round(t),"text-align":s})},i.prototype.removeText=function(e,i,n,o,a,r){if(null==o){var s=this._textCache[e];if(null!=s)for(var l in s)if(t.call(s,l)){var c=s[l];for(var d in c)if(t.call(c,d))for(var u=c[d].positions,h=0;f=u[h];h++)f.active=!1}}else{var f;for(u=this.getTextInfo(e,o,a,r).positions,h=0;f=u[h];h++)f.x==i&&f.y==n&&(f.active=!1)}},e.plot=function(t,i,o){return new n(e(t),i,o,e.plot.plugins)},e.plot.version="0.8.3",e.plot.plugins=[],e.fn.plot=function(t,i){return this.each(function(){e.plot(this,t,i)})}}(jQuery)},148:function(e,t){!function(e){jQuery.plot.plugins.push({init:function(e){var t,i,n,o,a=1,r=!1,s={};function l(e,t){for(var i=new Array,n=0;n<e.length;n++)i[0]=e[n].data[0]?e[n].data[0][t]:null,i[1]=e[n].data[e[n].data.length-1]?e[n].data[e[n].data.length-1][t]:null;return i}function c(e,t){var i=e.bars.order,n=t.bars.order;return i<n?-1:i>n?1:0}function d(e,t,i){for(var n=0,a=t;a<=i;a++)n+=e[a].bars.barWidth+2*o;return n}e.hooks.processDatapoints.push(function(e,u,h){var f,p=null;if(function(e){return null!=e.bars&&e.bars.show&&null!=e.bars.order}(u)&&(function(e){e.bars.horizontal&&(r=!0)}(u),function(e){var t=r?e.getPlaceholder().innerHeight():e.getPlaceholder().innerWidth(),i=l(e.getData(),r?1:0),n=i[1]-i[0];a=n/t}(e),function(e){t=function(e){for(var t=new Array,i=[],n=0;n<e.length;n++)null!=e[n].bars.order&&e[n].bars.show&&i.indexOf(e[n].bars.order)<0&&(i.push(e[n].bars.order),t.push(e[n]));return t.sort(c)}(e.getData()),i=t.length}(e),function(e){n=void 0!==e.bars.lineWidth?e.bars.lineWidth:2,o=n*a}(u),i>=2)){var g=function(e){for(var i=0,n=0;n<t.length;++n)if(e==t[n]){i=n;break}return i+1}(u),m=(f=0,i%2!=0&&(f=t[Math.ceil(i/2)].bars.barWidth/2),f);void 0===s[u.bars.order]&&(function(e){return e<=Math.ceil(i/2)}(g)?s[u.bars.order]=-1*d(t,g-1,Math.floor(i/2)-1)-m:s[u.bars.order]=d(t,Math.ceil(i/2),g-2)+m+2*o),p=function(e,t,i){for(var n=e.pointsize,o=e.points,a=0,s=r?1:0;s<o.length;s+=n)o[s]+=i,t.data[a][3]=o[s],a++;return o}(h,u,s[u.bars.order]),h.points=p}return p})},options:{series:{bars:{order:null}}},name:"orderBars",version:"0.2"})}()},149:function(e,t){!function(e){function t(e,t){return t*Math.floor(e/t)}function i(e,t,i,n){if("function"==typeof e.strftime)return e.strftime(t);var o,a=function(e,t){return t=""+(null==t?"0":t),1==(e=""+e).length?t+e:e},r=[],s=!1,l=e.getHours(),c=l<12;null==i&&(i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),null==n&&(n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),o=l>12?l-12:0==l?12:l;for(var d=0;d<t.length;++d){var u=t.charAt(d);if(s){switch(u){case"a":u=""+n[e.getDay()];break;case"b":u=""+i[e.getMonth()];break;case"d":u=a(e.getDate());break;case"e":u=a(e.getDate()," ");break;case"h":case"H":u=a(l);break;case"I":u=a(o);break;case"l":u=a(o," ");break;case"m":u=a(e.getMonth()+1);break;case"M":u=a(e.getMinutes());break;case"q":u=""+(Math.floor(e.getMonth()/3)+1);break;case"S":u=a(e.getSeconds());break;case"y":u=a(e.getFullYear()%100);break;case"Y":u=""+e.getFullYear();break;case"p":u=c?"am":"pm";break;case"P":u=c?"AM":"PM";break;case"w":u=""+e.getDay()}r.push(u),s=!1}else"%"==u?s=!0:r.push(u)}return r.join("")}function n(e){function t(e,t,i,n){e[t]=function(){return i[n].apply(i,arguments)}}var i={date:e};null!=e.strftime&&t(i,"strftime",e,"strftime"),t(i,"getTime",e,"getTime"),t(i,"setTime",e,"setTime");for(var n=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"],o=0;o<n.length;o++)t(i,"get"+n[o],e,"getUTC"+n[o]),t(i,"set"+n[o],e,"setUTC"+n[o]);return i}function o(e,t){if("browser"==t.timezone)return new Date(e);if(t.timezone&&"utc"!=t.timezone){if("undefined"!=typeof timezoneJS&&void 0!==timezoneJS.Date){var i=new timezoneJS.Date;return i.setTimezone(t.timezone),i.setTime(e),i}return n(new Date(e))}return n(new Date(e))}var a={second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,quarter:7776e6,year:525949.2*60*1e3},r=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]],s=r.concat([[3,"month"],[6,"month"],[1,"year"]]),l=r.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);e.plot.plugins.push({init:function(n){n.hooks.processOptions.push(function(n,r){e.each(n.getAxes(),function(e,n){var r=n.options;"time"==r.mode&&(n.tickGenerator=function(e){var i=[],n=o(e.min,r),c=0,d=r.tickSize&&"quarter"===r.tickSize[1]||r.minTickSize&&"quarter"===r.minTickSize[1]?l:s;null!=r.minTickSize&&(c="number"==typeof r.tickSize?r.tickSize:r.minTickSize[0]*a[r.minTickSize[1]]);for(var u=0;u<d.length-1&&!(e.delta<(d[u][0]*a[d[u][1]]+d[u+1][0]*a[d[u+1][1]])/2&&d[u][0]*a[d[u][1]]>=c);++u);var h=d[u][0],f=d[u][1];if("year"==f){if(null!=r.minTickSize&&"year"==r.minTickSize[1])h=Math.floor(r.minTickSize[0]);else{var p=Math.pow(10,Math.floor(Math.log(e.delta/a.year)/Math.LN10)),g=e.delta/a.year/p;h=g<1.5?1:g<3?2:g<7.5?5:10,h*=p}h<1&&(h=1)}e.tickSize=r.tickSize||[h,f];var m=e.tickSize[0];f=e.tickSize[1];var v=m*a[f];"second"==f?n.setSeconds(t(n.getSeconds(),m)):"minute"==f?n.setMinutes(t(n.getMinutes(),m)):"hour"==f?n.setHours(t(n.getHours(),m)):"month"==f?n.setMonth(t(n.getMonth(),m)):"quarter"==f?n.setMonth(3*t(n.getMonth()/3,m)):"year"==f&&n.setFullYear(t(n.getFullYear(),m)),n.setMilliseconds(0),v>=a.minute&&n.setSeconds(0),v>=a.hour&&n.setMinutes(0),v>=a.day&&n.setHours(0),v>=4*a.day&&n.setDate(1),v>=2*a.month&&n.setMonth(t(n.getMonth(),3)),v>=2*a.quarter&&n.setMonth(t(n.getMonth(),6)),v>=a.year&&n.setMonth(0);var _,b=0,y=Number.NaN;do{if(_=y,y=n.getTime(),i.push(y),"month"==f||"quarter"==f)if(m<1){n.setDate(1);var x=n.getTime();n.setMonth(n.getMonth()+("quarter"==f?3:1));var w=n.getTime();n.setTime(y+b*a.hour+(w-x)*m),b=n.getHours(),n.setHours(0)}else n.setMonth(n.getMonth()+m*("quarter"==f?3:1));else"year"==f?n.setFullYear(n.getFullYear()+m):n.setTime(y+v)}while(y<e.max&&y!=_);return i},n.tickFormatter=function(e,t){var n=o(e,t.options);if(null!=r.timeformat)return i(n,r.timeformat,r.monthNames,r.dayNames);var s=t.options.tickSize&&"quarter"==t.options.tickSize[1]||t.options.minTickSize&&"quarter"==t.options.minTickSize[1],l=t.tickSize[0]*a[t.tickSize[1]],c=t.max-t.min,d=r.twelveHourClock?" %p":"",u=r.twelveHourClock?"%I":"%H";return i(n,l<a.minute?u+":%M:%S"+d:l<a.day?c<2*a.day?u+":%M"+d:"%b %d "+u+":%M"+d:l<a.month?"%b %d":s&&l<a.quarter||!s&&l<a.year?c<a.year?"%b":"%b %Y":s&&l<a.year?c<a.year?"Q%q":"Q%q %Y":"%Y",r.monthNames,r.dayNames)})})})},options:{xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null}},name:"time",version:"1.0"}),e.plot.formatDate=i,e.plot.dateGenerator=o}(jQuery)},150:function(e,t){!function(e){"use strict";e.extend({giveAjaxifyFields:function(t){var i,n,o=e.extend({},{type:"",parentWrapper:"form",countryFieldName:"country",stateFieldName:"state",stateFieldWrapper:".give-field-wrap",chosenState:!0},t||{});switch(o.type){case"country_state":if(i=e('select[name="'+o.countryFieldName+'"]'),n=i.closest(o.parentWrapper),!i.length||"Country_state"===i.data("give-ajaxify-field"))return;i.data("give-ajaxify-field","country_state"),i.change(function(){var t=e(this),i=t.closest(o.parentWrapper).find('[name="'+o.stateFieldName+'"]'),a=i.closest(o.stateFieldWrapper),r=e("label",a);o.stateFieldWrapper||(r=e('label[for="'+o.stateFieldName+'"]',n),a=i.parent());var s={action:"give_get_states",country:t.val(),field_name:o.stateFieldName};e.post(ajaxurl,s,function(t){t.show_field?(r.length&&r.text(t.states_label),o.chosenState&&i.chosen("destroy"),o.stateFieldWrapper?a.removeClass("give-hidden"):i.removeClass("give-hidden"),void 0!==typeof t.states_found&&!0===t.states_found?(i.replaceWith(t.data),i=e('[name="'+o.stateFieldName+'"]',a),o.chosenState&&i.chosen()):(i.replaceWith('<input type="text" name="'+o.stateFieldName+'" value="'+t.default_state+'" class="medium-text"/>'),i=e('[name="'+o.stateFieldName+'"]',a))):o.stateFieldWrapper?a.addClass("give-hidden"):i.addClass("give-hidden")})})}return this}})}(jQuery)},151:function(e,t){const i={collection:{},get:function(e,t,i){return jQuery?(t=void 0!==t?t:void 0,i=!0===i,(void 0===this.collection[e]||i)&&(this.collection[e]=void 0!==t?jQuery(e,t):jQuery(e)),this.collection[e]):-1}};window.Give_Selector_Cache=i},152:function(e,t){var i;(i=jQuery).fn.repeatable_fields=function(e){var t={wrapper:".wrapper",container:".container",row:".row",add:".add",remove:".remove",confirm_before_remove_row:!1,confirm_before_remove_row_text:"",move:".move",template:".template",is_sortable:!0,before_add:null,after_add:o,before_remove:null,after_remove:null,sortable_options:null,row_count_placeholder:"{{row-count-placeholder}}"},n=i.extend({},t,e);function o(e,t){var o=i(e).attr("data-rf-row-count");o++,i("*",t).each(function(){i.each(this.attributes,function(e,t){this.value=this.value.replace(n.row_count_placeholder,o-1)})}),i(e).attr("data-rf-row-count",o)}!function e(t){i(n.wrapper,t).each(function(t,a){var r=i(this).children(n.container);i(r).children(n.template).hide().find(":input").each(function(){i(this).prop("disabled",!0)});var s=i(r).children(n.row).filter(function(){return!i(this).hasClass(n.template.replace(".",""))}).length;if(i(r).attr("data-rf-row-count",s),i(this).on("click",n.add,function(t){t.stopImmediatePropagation();var a=i(i(r).children(n.template).clone().removeClass(n.template.replace(".",""))[0].outerHTML);i(a).find(":input").each(function(){i(this).prop("disabled",!1)}),"function"==typeof n.before_add&&n.before_add(r);var s=i(a).show().appendTo(r);"function"==typeof n.after_add&&n.after_add(r,s,o),e(s)}),i(this).on("click",n.remove,function(e){if(e.stopImmediatePropagation(),n.confirm_before_remove_row&&n.confirm_before_remove_row_text&&!confirm(n.confirm_before_remove_row_text))return!1;var t=i(this).parents(n.row).first();"function"==typeof n.before_remove&&n.before_remove(r,t),t.remove(),"function"==typeof n.after_remove&&n.after_remove(r)}),!0===n.is_sortable&&void 0!==i.ui&&void 0!==i.ui.sortable){var l=null!==n.sortable_options?n.sortable_options:{};l.handle=n.move,i(this).find(n.container).sortable(l)}})}(this)}},153:function(e,t){
|
9 |
/*!
|
10 |
* Give Admin Forms JS
|
11 |
*
|
@@ -15,7 +15,7 @@ var n;n=function(){return function(e){var t={};function i(n){if(t[n])return t[n]
|
|
15 |
* @copyright: Copyright (c) 2016, GiveWP
|
16 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
17 |
*/
|
18 |
-
!function(e){var t=function(){""===e(".give-level-id").text()&&e(".cmb-repeatable-grouping").each(function(t,i){var n=e(i).data("iterator")+1;e(i).find(".give-level-id").text(n),e(i).find(".give-level-id-input").val(n)});e("body").on("cmb2_add_row",function(t,i){!function(t){var i=(n=0,o=0,a=0,e("#_give_donation_levels_repeat > .cmb-repeatable-grouping").each(function(t,i){(a=e(this).find("input.give-level-id-input").val())>o&&(o=a),n++}),void 0!==o&&o>=n?parseInt(o)+1:n);var n,o,a;e(t).find("input.give-level-id-input").val(i),e(t).find(".give-level-id").text(i)}(i)}),e("body").on("cmb2_shift_rows_complete",function(t,i){e(".cmb-repeatable-grouping").each(function(t,i){var n=e(i).find("input.give-level-id-input").val();e(i).find(".give-level-id").text(n)})})};e(function(){e("body").on("change",".give-give_default_radio_inline",function(){e(".give-give_default_radio_inline").prop("checked",!1),e(this).prop("checked",!0)}),function(){e("._give_price_option_field input:radio").on("change",function(){"set"===e("._give_price_option_field input:radio:checked").val()?(e("._give_set_price_field").show(),e("#_give_donation_levels_field").hide(),e("._give_display_style_field").hide()):(e("._give_set_price_field").hide(),e("#_give_donation_levels_field").show(),e("._give_display_style_field").show())}).change(),e("._give_display_content_field input:radio").on("change",function(){"enabled"===e("._give_display_content_field input:radio:checked").val()?(e("._give_content_placement_field").show(),e("._give_form_content_field").show()):(e("._give_content_placement_field").hide(),e("._give_form_content_field").hide())}).change(),e("._give_terms_option_field input:radio").on("change",function(){"enabled"===e("._give_terms_option_field input:radio:checked").val()?(e("._give_agree_label_field").show(),e("._give_agree_text_field").show()):(e("._give_agree_label_field").hide(),e("._give_agree_text_field").hide())}).change(),e("._give_payment_display_field input:radio").on("change",function(){"onpage"===e("._give_payment_display_field input:radio:checked").val()?e("._give_reveal_label_field").hide():e("._give_reveal_label_field").show()}).change(),e("._give_custom_amount_field input:radio").on("change",function(){"disabled"===e("._give_custom_amount_field input:radio:checked").val()?(e("._give_custom_amount_range_field ").hide(),e("._give_custom_amount_text_field").hide()):(e("._give_custom_amount_range_field ").show(),e("._give_custom_amount_text_field").show())}).change();var t=e("._give_goal_option_field"),i=e("._give_goal_format_field input:radio");e("._give_close_form_when_goal_achieved_field input:radio").on("change",function(){"disabled"===e("._give_close_form_when_goal_achieved_field input:radio:checked").val()?e("._give_form_goal_achieved_message_field").hide():e("._give_form_goal_achieved_message_field").show()}).change(),t.on("change",function(){"disabled"===e("._give_goal_option_field input:radio:checked").val()?(e("._give_set_goal_field").hide(),e("._give_goal_format_field").hide(),e("._give_goal_color_field").hide(),e("._give_close_form_when_goal_achieved_field").hide(),e("._give_form_goal_achieved_message_field").hide(),e("._give_number_of_donation_goal_field").hide(),e("._give_number_of_donor_goal_field").hide()):(e("._give_set_goal_field").show(),e("._give_goal_format_field").show(),e("._give_goal_color_field").show(),e("._give_close_form_when_goal_achieved_field").show(),"enabled"===e("._give_close_form_when_goal_achieved_field input:radio:checked").val()&&e("._give_form_goal_achieved_message_field").show(),i.change())}).change(),i.on("change",function(){var t=e("._give_goal_format_field input:radio:checked").val(),i=e("._give_goal_option_field input:radio:checked").val();"donation"===t?(e("._give_set_goal_field, ._give_number_of_donor_goal_field,._give_number_of_donation_goal_field").hide(),"disabled"!==i&&e("._give_number_of_donation_goal_field").show()):"donors"===t?(e("._give_set_goal_field, ._give_number_of_donation_goal_field, ._give_number_of_donor_goal_field").hide(),"disabled"!==i&&e("._give_number_of_donor_goal_field").show()):("disabled"===i?e("._give_set_goal_field").hide():e("._give_set_goal_field").show(),e("._give_number_of_donation_goal_field, ._give_number_of_donor_goal_field").hide())}).change(),e("._give_customize_offline_donations_field input:radio").on("change",function(){"enabled"===e("._give_customize_offline_donations_field input:radio:checked").val()?(e("._give_offline_checkout_notes_field").show(),e("._give_offline_donation_enable_billing_fields_single_field").show(),e("._give_offline_donation_subject_field").show(),e("._give_offline_donation_email_field").show()):(e("._give_offline_checkout_notes_field").hide(),e("._give_offline_donation_enable_billing_fields_single_field").hide(),e("._give_offline_donation_subject_field").hide(),e("._give_offline_donation_email_field").hide())}).change(),e("._give_email_options_field input:radio").on("change",function(){"enabled"===e("._give_email_options_field input:radio:checked").val()?e("#email_notification_options .give-field-wrap:not(._give_email_options_field)").show():e("#email_notification_options .give-field-wrap:not(._give_email_options_field)").hide()}).change();var n=e('input[name="_give_name_title_prefix"]:checked').val();"required"!==n&&"optional"!==n||e(".give-title-prefixes-wrap").show(),e('input[name="_give_name_title_prefix"]').on("change",function(){var t=e('input[name="_give_name_title_prefix"]:checked').val();"required"===t||"optional"===t?e(".give-title-prefixes-wrap").show():e(".give-title-prefixes-wrap").hide()})}(),t(),e(".cmb2-text-money").each(function(t,i){parseInt(e(i).val())||e(i).removeAttr("value")})})}(jQuery)},
|
19 |
/*!
|
20 |
* Give Admin Forms JS
|
21 |
*
|
@@ -26,7 +26,7 @@ var n;n=function(){return function(e){var t={};function i(n){if(t[n])return t[n]
|
|
26 |
* @copyright: Copyright (c) 2016, GiveWP
|
27 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
28 |
*/
|
29 |
-
jQuery(document).ready(function(e){
|
30 |
/*!
|
31 |
* Give Admin Export JS
|
32 |
*
|
@@ -37,7 +37,7 @@ jQuery(document).ready(function(e){let t=jQuery("ul.give-payment-gatways-list");
|
|
37 |
* @copyright: Copyright (c) 2016, GiveWP
|
38 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
39 |
*/
|
40 |
-
jQuery(document).ready(function(e){function t(t){var i=void 0!==t.standard_fields&&null!==t.standard_fields?t.standard_fields:"",n=e(".give-export-donations-standard-fields ul");i.length>0&&(n.closest("tr").removeClass("give-hidden"),e(i).each(function(e,t){n.append('<li class="give-export-donation-checkbox-remove"><label for="give-give-donations-standard-field-'+t+'"><input type="checkbox" name="give_give_donations_export_option['+t+']" id="give-give-donations-standard-field-'+t+'">'+t+"</label> </li>")}));var o=void 0!==t.hidden_fields&&null!==t.hidden_fields?t.hidden_fields:"",a=e(".give-export-donations-hidden-fields ul");o&&(a.closest("tr").removeClass("give-hidden"),e(o).each(function(e,t){a.append('<li class="give-export-donation-checkbox-remove"><label for="give-give-donations-hidden-field-'+t+'"><input type="checkbox" name="give_give_donations_export_option['+t+']" id="give-give-donations-hidden-field-'+t+'">'+t+"</label> </li>")}))}e(".give-export_donations #give-export_donations-form .give_forms_categories , .give-export_donations #give-export_donations-form .give_forms_tags").change(function(){var i,n,o;i=e("form#give-export_donations-form"),n=e(i).find("tr.give-export-donation-form .give-select-chosen"),o=n.prev(),n.find('input[type="text"]'),n.hasClass("variations"),e(".give-export-donations-hide").addClass("give-hidden"),e("li.give-export-donation-checkbox-remove").remove(),e.ajax({type:"POST",url:ajaxurl,data:{action:"give_form_search",s:"",fields:e(i).serialize()},beforeSend:function(){o.closest("ul.chosen-results").empty()},success:function(a){e("option",o).remove();var r=[];a.length?(i.find(".give-export-donation-button").prop("disabled",!1),e.each(a,function(e,t){o.prepend('<option value="'+t.id+'">'+t.name+"</option>"),r.push(t.id)}),o.prepend('<option value="0" selected>'+o.data("placeholder")+"</option>")):(o.prepend('<option value="0">'+o.data("no-form")+"</option>"),i.find(".give-export-donation-button").prop("disabled",!0)),i.find(".form_ids").val(r.join()),n.prev("select.give-select-chosen").trigger("chosen:updated"),t("")}})}),e(".give-export_donations #give-export_donations-form #give_payment_form_select").change(function(){var i;if(e(".give-export-donations-hide").addClass("give-hidden"),e("li.give-export-donation-checkbox-remove").remove(),jQuery(document).trigger("give_export_donations_form_change"),!(i=e(this).val()))return!1;e.ajax({type:"POST",url:ajaxurl,data:{form_id:i,action:"give_export_donations_get_custom_fields"},success:function(e){e?t(e):alert(Give.fn.getGlobalVar("error_message")),jQuery(document).trigger("give_export_donations_form_response",e)}})});
|
41 |
/*!
|
42 |
* Give Admin Widgets JS
|
43 |
*
|
@@ -47,7 +47,7 @@ jQuery(document).ready(function(e){function t(t){var i=void 0!==t.standard_field
|
|
47 |
* @copyright: Copyright (c) 2016, GiveWP
|
48 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
49 |
*/
|
50 |
-
var i,n;i=jQuery,n=function(){i(".widget-liquid-right").on("change",".give_forms_display_style_setting_row input",function(){var e=i(this).parents("p"),t=e.next();"onpage"===i("input:checked",e).val()?t.hide():t.show()})},i(function(){n(),i(".give_forms_display_style_setting_row input",".widget-liquid-right").trigger("change")}),i(document).ajaxSuccess(function(e,t,o){n(),i(".give_forms_display_style_setting_row input",".widget-liquid-right").trigger("change")})},30:function(e,t){e.exports=jQuery},334:function(e,t,i){"use strict";i.r(t);i(146),i(66),i(147),i(148),i(149),i(150),i(151),i(152),i(68);var n=i(47),o=i(6);i(153),i(154),i(155),i(156);var a=class{constructor(e){this.root=e,this.buttonText=this.root.textContent.trim(),this.iconPosition="before";const t=this.root.querySelector(".dashicons");t&&(this.iconClassName=t.className)}enable(){this.root.disabled=!1}disable(){this.root.disabled=!0}setBusyState(){this.root.innerHTML=`<span class="dashicons dashicons-marker"></span> ${this.buttonText}`,this.disable()}removeBusyState(){this.enable(),this.iconClassName&&this.updateIcon(this.iconClassName)}updateIcon(e,t="before"){const i=`<span class="${e}"></span>`;this.root.innerHTML="after"===t?`${this.buttonText} ${i}`:`${i} ${this.buttonText}`,this.iconClassName=e,this.iconPosition=t}updateButtonText(e){this.buttonText=e,this.iconClassName?this.updateIcon(this.iconClassName,this.iconPosition):this.root.textContent=e}},r=i(132),s=i.n(r);class l extends a{constructor(e){super(e),this.shortcode=this.root.dataset.giveShortcode,this.clipboard=new s.a(this.root,{text:function(e){return e.dataset.giveShortcode}}),this.reset=this.reset.bind(this)}init(){this.registerEventHandlers()}registerEventHandlers(){this.clipboard.on("success",()=>this.handleSuccessClick()),this.clipboard.on("error",()=>this.handleErrorClick())}handleSuccessClick(e){this.updateIcon("dashicons dashicons-yes"),this.root.setAttribute("aria-label",give_vars.copied),this.root.addEventListener("mouseout",this.reset)}handleErrorClick(e){this.updateIcon("dashicons dashicons-warning"),this.root.setAttribute("aria-label","Shortcode could not be copied.")}reset(e){this.updateIcon("dashicons dashicons-admin-page"),this.root.setAttribute("aria-label",this.shortcode),this.root.removeEventListener("mouseout",this.reset)}}
|
51 |
/**
|
52 |
* Give Admin JS
|
53 |
*
|
@@ -55,18 +55,10 @@ var i,n;i=jQuery,n=function(){i(".widget-liquid-right").on("change",".give_forms
|
|
55 |
* @subpackage: Assets/JS
|
56 |
* @copyright: Copyright (c) 2016, GiveWP
|
57 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
58 |
-
*/var c=!1,d=i(69);function u(){var e=jQuery(".give-settings-page"),t=jQuery("h2.give-nav-tab-wrapper"),i=e.width(),n=jQuery(".give-sub-nav-tab-wrapper"),o=jQuery("nav",n),a=jQuery("div.give-nav-tab-wrapper > a:not(give-not-tab)"),r=[],s=[],l=0;if(600<jQuery(window).outerWidth()&&(l=200),!e.length)return!1;t.css({height:"auto",overflow:"visible"}),a.removeClass("give-hidden"),new Promise(function(e,t){jQuery.each(a,function(e,t){t=jQuery(t),(l+=parseInt(t.outerWidth()))<i?r.push(t):s.push(t)}),e(!0)}).then(function(e){if(s.length&&-1!==window.location.search.indexOf("&tab=")){var i={},a=function(){for(var e,t=[],i=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<i.length;n++)e=i[n].split("="),t[e[0]]=e[1];return t}
|
59 |
-
/**
|
60 |
-
* Give Admin JS
|
61 |
-
*
|
62 |
-
* @package: Give
|
63 |
-
* @subpackage: Assets/JS
|
64 |
-
* @copyright: Copyright (c) 2016, GiveWP
|
65 |
-
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
66 |
-
*/();s=s.filter(function(e){var t=-1!==parseInt(e.attr("href").indexOf("&tab="+a.tab));return t&&(i=e),!t}),i.length&&(s.unshift(r.pop()),r.push(i))}new Promise(function(e,t){r.length&&jQuery.each(r,function(e,t){(t=jQuery(t)).hasClass("give-hidden")&&t.removeClass("give-hidden")}),e(!0)}).then(function(e){s.length?(o.html(""),jQuery.each(s,function(e,t){(t=jQuery(t)).hasClass("nav-tab-active")||t.addClass("give-hidden"),t.clone().removeClass().appendTo(o)}),jQuery(".give-sub-nav-tab-wrapper",t).length||t.append(n),n.show()):n.hide()})})}!function(e){var t=function(t,i){var n=(i=jQuery.extend({wrapper:!0,show:!1},i)).wrapper?e(".give-spinner-wrapper",t):{},o=e(".give-spinner",t);if(i.show)return n.length&&n.addClass("is-active"),void o.addClass("is-active");n.length&&n.removeClass("is-active"),o.removeClass("is-active")},i=function(e){var t=document.location.href,i=t.split("?");e=void 0===e?"":e.replace("give-","");if(i.length>=2){for(var n=i.shift(),o=i.join("?"),a=encodeURIComponent("give-message")+"=",r=o.split(/[&;]/g),s=r.length;s-- >0;)(-1!==r[s].lastIndexOf(a,0)||""!==e&&-1!==r[s].lastIndexOf("give-messages",0)&&r[s].match(e+"$"))&&r.splice(s,1);t=n+"?"+r.join("&"),window.history.pushState("",document.title,t)}return t};function n(e,t){return e=accounting.unformat(e,Give.fn.getGlobalVar("decimal_separator")).toString(),e=!1!==(t="undefined"!==t&&t)?parseFloat(e).toFixed(t):parseFloat(e).toFixed(Give.fn.getGlobalVar("currency_decimals"))}var a={init:function(){this.deleteSingleDonation(),this.resendSingleDonationReceipt()},deleteSingleDonation:function(){new o.GiveConfirmModal({triggerSelector:".delete-single-donation",modalWrapper:"give-modal--warning",modalContent:{title:Give.fn.getGlobalVar("confirm_delete_donation"),desc:Give.fn.getGlobalVar("delete_payment")},successConfirm:function(e){window.location.assign(e.el.attr("href"))}})},resendSingleDonationReceipt:function(){new o.GiveConfirmModal({triggerSelector:".resend-single-donation-receipt",modalContent:{title:Give.fn.getGlobalVar("confirm_resend"),desc:Give.fn.getGlobalVar("resend_receipt")},successConfirm:function(e){window.location.assign(e.el.attr("href"))}})}},r={init:function(){this.edit_address(),this.add_note(),this.remove_note(),this.new_donor(),this.resend_receipt(),this.variable_price_list()},edit_address:function(){e('select[name="give-payment-address[0][country]"]').change(function(){var t=e(this),i={action:"give_get_states",country:t.val(),field_name:"give-payment-address[0][state]"};return e.post(ajaxurl,i,function(i){t.closest(".column-container").find("#give-order-address-state-wrap").removeClass("give-hidden"),t.closest(".column-container").find(".give-column").removeClass("column-full"),t.closest(".column-container").find(".give-column").addClass("column");var n=e("#give-order-address-state-wrap");n.find("*").not(".order-data-address-line").remove(),void 0!==typeof i.states_found&&!0===i.states_found?(n.append(i.data),n.find("select").chosen()):(n.append('<input type="text" name="give-payment-address[0][state]" value="'+i.default_state+'" class="give-edit-toggles medium-text"/>'),void 0!==typeof i.show_field&&!1===i.show_field&&(t.closest(".column-container").find("#give-order-address-state-wrap").addClass("give-hidden"),t.closest(".column-container").find(".give-column").addClass("column-full"),t.closest(".column-container").find(".give-column").removeClass("column")))}),!1})},add_note:function(){e("#give-add-payment-note").on("click",function(t){function i(){e.ajax({type:"POST",data:r,url:ajaxurl,beforeSend:function(){o.prop("disabled",!0),n.prop("disabled",!0)},success:function(t){e("#give-payment-notes-inner").append(t),e(".give-no-payment-notes").hide(),e("#give-payment-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)}).always(function(){o.prop("disabled",!1),n.prop("disabled",!1)})}t.preventDefault();let n=e(this),o=e("#give-payment-note"),a=e("#donation_note_type"),r={action:"give_insert_payment_note",payment_id:e(this).data("payment-id"),note:o.val(),type:a.val()};if(r.note)"donor"===r.type&&give_vars.email_notification.donor_note.status?new Give.modal.GiveConfirmModal({successConfirm:function(){i()},modalContent:{desc:give_vars.donor_note_confirm_msg}}).render():i();else{let e=o.css("border-color");o.css("border-color","red"),setTimeout(function(){o.css("border-color",e)},500)}})},remove_note:function(){e("body").on("click",".give-delete-payment-note",function(t){t.preventDefault();let i=this;new o.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_deletion"),desc:Give.fn.getGlobalVar("delete_payment_note")},successConfirm:function(t){var n={action:"give_delete_payment_note",payment_id:e(i).data("payment-id"),note_id:e(i).data("note-id")};e.ajax({type:"POST",data:n,url:ajaxurl,success:function(t){return e("#give-payment-note-"+n.note_id).remove(),e(".give-payment-note").length||e(".give-no-payment-notes").show(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}}).render()})},new_donor:function(){e("#give-donor-details").on("click",".give-payment-new-donor, .give-payment-new-donor-cancel",function(t){t.preventDefault(),e(".donor-info").toggle(),e(".new-donor").toggle(),e(".new-donor").is(":visible")?e("#give-new-donor").val(1):e("#give-new-donor").val(0)})},resend_receipt:function(){e("body").on("click","#give-resend-receipt",function(t){let i=this;t.preventDefault(),new o.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("resend_receipt")},successConfirm:function(){window.location.assign(e(i).attr("href"))}}).render()})},variable_price_list:function(){e("#give_payment_form_select").chosen().change(function(){var t,i=e(".give-donation-level");return!!(t=e(this).val())&&(!!i.length&&void e.ajax({type:"POST",url:ajaxurl,data:{form_id:t,payment_id:e('input[name="give_payment_id"]').val(),action:"give_check_for_form_price_variations_html"},success:function(t){(t=t.trim())?(i.html(t),e('select[name="give-variable-price"]').chosen().change()):i.html("")}}))}),e("#give-donation-overview").on("change",'select[name="give-variable-price"]',function(){var t=jQuery(this).data("prices"),i=e("#give-payment-total");""!==t&&e(this).val()in t&&(i.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout(function(){i.css("background-color","white")},1e3))})}},s={init:function(){this.toggle_gateways(),this.setting_change_country(),this.toggle_options(),this.main_setting_update_notice(),this.verify_settings(),this.saveButtonTriggered(),this.changeAlert(),this.detectSettingsChange(),this.sequentialDonationIDPreview()},toggle_gateways:function(){e(".gateways-checkbox").on("click",function(){let t=e(this).prev(".gateways-radio"),i=(this.checked,e(".gateways-checkbox:checked"));1===i.length?(i.prev(".gateways-radio").attr("checked","checked"),this.checked?t.removeAttr("disabled"):t.attr("disabled","disabled")):this.checked?(t.removeAttr("disabled"),t.removeAttr("checked")):t.attr("disabled","disabled")})},setting_change_country:function(){e('select[name="base_country"]').change(function(){var t=e(this),i={action:"give_get_states",country:t.val(),field_name:"base_state"};return e.post(ajaxurl,i,function(n){t.closest("tr").next().show(),e("#base_state_chosen").remove(),null!=typeof n.states_found&&1==n.states_found?(e(':input[name="base_state"]').replaceWith(n.data).addClass("give-select-chosen"),e(':input[name="base_state"]').chosen()):(null!=typeof n.show_field&&0==n.show_field&&t.closest("tr").next().hide(),e(':input[name="base_state"]').replaceWith('<input type="text" name="'+i.field_name+'" value="'+n.default_state+'" class="give-edit-toggles medium-text"/>'))}),!1})},toggle_options:function(){e('input[name="email_access"]',".give-setting-tab-body-general").on("change",function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val(),i=e('input[name="enable_recaptcha"]:checked',".give-setting-tab-body-general").val();"enabled"===t?(e('input[name="enable_recaptcha"]').parents("tr").show(),"enabled"===i?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide(),e('input[name="enable_recaptcha"]').parents("tr").hide())}).change(),e('input[name="enable_recaptcha"]',".give-setting-tab-body-general").on("change",function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val(),i=e('input[name="enable_recaptcha"]:checked',".give-setting-tab-body-general").val();"enabled"===t&&"enabled"===i?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())}).change(),e('input[name="form_featured_img"]',".give-setting-tab-body-display").on("change",function(){"enabled"===e('input[name="form_featured_img"]:checked',".give-setting-tab-body-display").val()?e("#featured_image_size").parents("tr").show():e("#featured_image_size").parents("tr").hide()}).change(),e('input[name="terms"]',".give-setting-tab-body-display").on("change",function(){"enabled"===e('input[name="terms"]:checked',".give-setting-tab-body-display").val()?(e("#agree_to_terms_label").parents("tr").show(),e("#wp-agreement_text-wrap").parents("tr").show()):(e("#agree_to_terms_label").parents("tr").hide(),e("#wp-agreement_text-wrap").parents("tr").hide())}).change(),e('input[name="admin_notices"]',".give-setting-tab-body-emails").on("change",function(){"enabled"===e('input[name="admin_notices"]:checked',".give-setting-tab-body-emails").val()?(e("#donation_notification_subject").parents("tr").show(),e("#wp-donation_notification-wrap").parents("tr").show(),e("#admin_notice_emails").parents("tr").show()):(e("#donation_notification_subject").parents("tr").hide(),e("#wp-donation_notification-wrap").parents("tr").hide(),e("#admin_notice_emails").parents("tr").hide())}).change(),e('input[name="sequential-ordering_status"]',".give-setting-tab-body-general").on("change",function(){var t=e('input[name="sequential-ordering_status"]:checked',".give-setting-tab-body-general").val(),i=e(this).closest("table");"enabled"===t?e("input",i).not('input[name="sequential-ordering_status"]').parents("tr").show():e("input",i).not('input[name="sequential-ordering_status"]').parents("tr").hide()}).change()},main_setting_update_notice:function(){var t=e("#setting-error-give-setting-updated");t.length&&window.setTimeout(function(){t.slideUp()},5e3)},verify_settings:function(){var t=e("#success_page"),i=e("#failure_page");t.add(i).change(function(){if(t.val()===i.val()){var n='<div id="setting-error-give-matched-success-failure-page" class="updated settings-error notice is-dismissible"> <p><strong>'+Give.fn.getGlobalVar("matched_success_failure_page")+'</strong></p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">'+Give.fn.getGlobalVar("dismiss_notice_text")+"</span></button> </div>",o=e("#setting-error-give-matched-success-failure-page");if(e(this).val(""),o.length)return!1;e("h1","#give-mainform").after(n),o=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",o).click(function(){o.remove()})}}).change()},saveButtonTriggered:function(){e(".give-settings-setting-page").on("click",".give-save-button",function(){e(window).unbind("beforeunload")})},changeAlert:function(){e(window).bind("beforeunload",function(e){var t=Give.fn.getGlobalVar("setting_not_save_message");if(c)return(e||window.event).returnValue=t,t})},detectSettingsChange:function(){var t=e(".give-settings-setting-page");if(t.length>0){var i=e("#give-mainform").serialize();t.on("change keyup blur","form",function(){var t=e("#give-mainform").serialize();c=i!==t})}},sequentialDonationIDPreview:function(){const t=jQuery("#sequential-ordering_preview");t.length&&(jQuery("#sequential-ordering_number_prefix, #sequential-ordering_number, #sequential-ordering_number_padding, #sequential-ordering_number_suffix").on("keyup change",function(){const e=jQuery("#sequential-ordering_number_prefix").val(),i=jQuery("#sequential-ordering_number").val().trim()||"1",n=jQuery("#sequential-ordering_number_padding").val().trim(),o=jQuery("#sequential-ordering_number_suffix").val(),a=`${e}${i.padStart(n,"0")}${o}`;t.val(a)}),jQuery("#sequential-ordering_number_prefix").trigger("keyup"),jQuery("#sequential-ordering_number_prefix, #sequential-ordering_number_suffix").on("blur",function(){e(this).val(e(this).val().replace(new RegExp(" ","g"),"-"))}))}},h={init:function(){this.date_options(),this.donors_export(),this.recount_stats()},date_options:function(){e("#give-graphs-date-options").change(function(){"other"===e(this).val()?e("#give-date-range-options").show():e("#give-date-range-options").hide()})},donors_export:function(){e("#give_donor_export_form").change(function(){var t=e(this),i=e("option:selected",t).val(),n=e("#give_customer_export_option");"0"===t.val()?n.show():n.hide();var o=e(".give_price_options_select");if(0!=parseInt(i)){var a={action:"give_check_for_form_price_variations",form_id:i,all_prices:!0};e.post(ajaxurl,a,function(t){o.remove(),e("#give_donor_export_form_chosen").after(t)})}else o.remove()})},recount_stats:function(){e("body").on("change","#recount-stats-type",function(){var t=e("#give-tools-recount-form"),i=e("option:selected",this).data("type"),n=e("#recount-stats-submit"),o=e(".tools-form-dropdown"),a=e(".tools-date-dropdown-delete-donations");if(t.find(".notice-wrap").remove(),n.removeClass("button-disabled").attr("disabled",!1),o.hide(),a.hide(),e(".give-recount-stats-descriptions span").hide(),"reset-stats"===i)t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("reset_stats_warn")+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled");else if("delete-test-donors"===i){t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_test_donor")+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else if("delete-import-donors"===i){t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_import_donor")+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else if("delete-donations"===i){a.show(),t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_donations_only")+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else o.hide(),o.val(0);var r=e(".tools-form-dropdown-"+i);r.show(),r.find(".give-select-chosen").css({width:"auto","min-width":"250px"}),e("#"+i).show()}),e("body").on("change","#confirm-reset",function(){e(this).is(":checked")?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),e("#give-tools-recount-form").submit(function(t){var i=e("#recount-stats-type").val(),n=e(this),o=e("option:selected",this).data("type");if("reset-stats"===o){if(e("#confirm-reset").is(":checked"))return!0;r=!0}n.find(".notice-wrap").remove(),n.append('<div class="notice-wrap"></div>');var a=n.find(".notice-wrap"),r=!1;(null!==i&&0!==i||(a.html('<div class="updated error"><p>'+Give.fn.getGlobalVar("batch_export_no_class")+"</p></div>"),r=!0),"recount-form"===o)&&(0==e('select[name="form_id"]').val()&&(a.html('<div class="updated error"><p>'+Give.fn.getGlobalVar("batch_export_no_reqs")+"</p></div>"),r=!0));if(r)return n.find(".button-disabled").removeClass("button-disabled"),!1})}},f={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".give-export-form",function(i){i.preventDefault();var n=e(this).find('input[type="submit"]');if(!n.hasClass("button-disabled")){var o=e(this).serialize();n.addClass("button-disabled"),e("form.give-export-form select").attr("disabled",!0).trigger("chosen:updated");var a=e(this);e(this).find(".add-notices").length>0&&(a=e(this).find(".add-notices")),a.find(".notice-wrap").remove(),a.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.process_step(1,o,t,this)}})},process_step:function(t,i,n,o){c=!0;var a=!1;e.ajax({type:"POST",url:ajaxurl,data:{form:i,action:"give_do_ajax_export",step:t},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){c=!1,a=!0;var r=e(o).parent().find(".notice-wrap");r.find(".give-progress");if(e(o).find(".button-disabled").removeClass("button-disabled"),e(o).find("select").attr("disabled",!1).trigger("chosen:updated"),t.error){var s=t.message;r.html('<div class="updated error"><p>'+s+"</p></div>")}else if(t.success){var l=t.message;r.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+l+'<span class="notice-dismiss"></span></p></div>')}else r.remove(),window.location=t.url}else e(".give-progress div").animate({width:t.percentage+"%"},50,function(){}),n.process_step(parseInt(t.step),i,n,o);!0===a&&e("#give-tools-recount-form").length>0&&(e("#give-tools-recount-form")[0].reset(),e("#give-tools-recount-form .tools-form-dropdown").hide(),e("#give-tools-recount-form .tools-date-dropdown").hide(),e("#give-tools-recount-form .tools-form-dropdown-recount-form-select").val("0").trigger("chosen:updated"))}}).fail(function(t){c=!1,window.console&&window.console.log&&console.log(t),e(".notice-wrap").append(t.responseText)})},dismiss_message:function(){e("body").on("click","#give-batch-success .notice-dismiss",function(){e("#give-batch-success").parent().slideUp("fast")})}},p={el:{},init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;t.el.main_container=Give_Selector_Cache.get("#give-db-updates"),t.el.update_link=Give_Selector_Cache.get(".give-update-now",t.el.main_container),t.el.run_upload_container=Give_Selector_Cache.get(".give-run-database-update",t.el.progress_main_container),t.el.progress_main_container=Give_Selector_Cache.get(".progress-container",t.el.main_container),t.el.heading=Give_Selector_Cache.get(".update-message",t.el.progress_main_container),t.el.progress_container=Give_Selector_Cache.get(".progress-content",t.el.progress_main_container),t.el.update_progress_counter=Give_Selector_Cache.get(e(".give-update-progress-count")),t.el.main_container.data("resume-update")&&(t.el.update_link.addClass("active").hide().removeClass("give-hidden"),e("#give-restart-upgrades").length||(Give.fn.getGlobalVar("ajax").length||window.setTimeout(p.start_db_update,1e3),window.setTimeout(p.get_db_updates_info,1e3,t))),t.el.update_link.hasClass("active")||(t.el.update_link.on("click","",function(e){e.preventDefault(),t.el.run_upload_container.find(".notice").remove(),t.el.run_upload_container.append('<div class="notice notice-error non-dismissible give-run-update-containt"><p> <a href="#" class="give-run-update-button button">'+Give.fn.getGlobalVar("db_update_confirmation_msg_button")+"</a> "+Give.fn.getGlobalVar("db_update_confirmation_msg")+"</p></div>")}),e("#give-db-updates").on("click","a.give-run-update-button",function(i){return i.preventDefault(),!e(this).hasClass("active")&&(e(this).addClass("active").fadeOut(),t.el.update_link.addClass("active").fadeOut(),e("#give-db-updates .give-run-update-containt").slideUp(),t.el.progress_container.find(".notice-wrap").remove(),t.el.progress_container.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.el.progress_main_container.removeClass("give-hidden"),p.start_db_update(),window.setTimeout(p.get_db_updates_info,500,t),!1)}))},start_db_update:function(){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_run_db_updates",run_db_update:1,nonce:Give.fn.getGlobalVar("db_update_nonce")},dataType:"json",success:function(e){}}).always(function(){Give.fn.getGlobalVar("ajax").length||window.setTimeout(p.start_db_update,1e3)})},get_db_updates_info:function(t){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_db_updates_info"},dataType:"json",success:function(i){var n=Give_Selector_Cache.get(".notice-wrap",t.el.progress_container,!0);-1!==e.inArray("success",Object.keys(i))?i.success?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text("100%"),-1!==e.inArray("heading",Object.keys(i.data))&&t.el.heading.html("<strong>"+i.data.heading+"</strong>"),t.el.update_link.closest("p").remove(),n.html('<div class="notice notice-success is-dismissible"><p>'+i.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(i.data))&&t.el.heading.html("<strong>"+i.data.heading+"</strong>"),i.data.message?(t.el.update_link.closest("p").remove(),n.html('<div class="notice notice-error is-dismissible"><p>'+i.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):setTimeout(function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")},1e3)):i&&-1!==e.inArray("percentage",Object.keys(i.data))?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text(i.data.total_percentage+"%"),-1!==e.inArray("heading",Object.keys(i.data))&&t.el.heading.html("<strong>"+i.data.heading+"</strong>"),e(".give-progress div","#give-db-updates").animate({width:i.data.percentage+"%"},50,function(){}),window.setTimeout(p.get_db_updates_info,1e3,t)):(n.html('<div class="notice notice-error"><p>'+Give.fn.getGlobal().updates.ajax_error+"</p></div>"),setTimeout(function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")},1e3))}})},process_step:function(t,i,n){c=!0,e.ajax({type:"POST",url:ajaxurl,data:{action:"give_do_ajax_updates",step:parseInt(t),update:parseInt(i)},dataType:"json",success:function(t){c=!1;var i=Give_Selector_Cache.get(".notice-wrap",n.el.progress_container,!0);-1!==e.inArray("success",Object.keys(t))?t.success?(-1!==e.inArray("heading",Object.keys(t.data))&&n.el.heading.html("<strong>"+t.data.heading+"</strong>"),n.el.update_link.closest("p").remove(),i.html('<div class="notice notice-success is-dismissible"><p>'+t.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(t.data))&&n.el.heading.html("<strong>"+t.data.heading+"</strong>"),i.html('<div class="notice notice-error"><p>'+t.data.message+"</p></div>"),setTimeout(function(){n.el.update_link.removeClass("active").show(),n.el.progress_main_container.addClass("give-hidden")},5e3)):t&&-1!==e.inArray("percentage",Object.keys(t.data))?(e(".give-progress div","#give-db-updates").animate({width:t.data.percentage+"%"},50,function(){}),-1!==e.inArray("heading",Object.keys(t.data))&&n.el.heading.html("<strong>"+t.data.heading.replace("{update_count}",n.el.heading.data("update-count"))+"</strong>"),n.process_step(parseInt(t.data.step),t.data.update,n)):(i.html('<div class="notice notice-error"><p>'+Give.fn.getGlobal().updates.ajax_error+"</p></div>"),setTimeout(function(){n.el.update_link.removeClass("active").show(),n.el.progress_main_container.addClass("give-hidden")},5e3))}}).fail(function(e){c=!1,window.console&&window.console.log&&console.log(e),Give_Selector_Cache.get(".notice-wrap",self.el.progress_container).append(e.responseText)}).always(function(){})},dismiss_message:function(){e("body").on("click","#poststuff .notice-dismiss",function(){e(this).parent().slideUp("fast")})}},g={init:function(){this.restartUpgrade(),this.stopUpgrade(),this.restartUpdater()},restartUpgrade:function(){jQuery("#give-restart-upgrades").click("click",function(e){let t=this;e.preventDefault(),jQuery(".give-doing-update-text-p").show(),jQuery(".give-update-paused-text-p").hide(),new o.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("restart_upgrade")},successConfirm:function(){window.location.assign(jQuery(t).data("redirect-url"))}}).render()})},stopUpgrade:function(){jQuery("#give-pause-upgrades").click("click",function(e){let t=this;e.preventDefault(),jQuery(".give-doing-update-text-p").hide(),jQuery(".give-update-paused-text-p").show(),new o.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("stop_upgrade")},successConfirm:function(){window.location.assign(jQuery(t).data("redirect-url"))}}).render()})},restartUpdater:function(){jQuery(".give-restart-updater-btn,.give-run-update-now").click("click",function(e){let t=this;e.preventDefault(),new o.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("restart_update")},successConfirm:function(){window.location.assign(jQuery(t).attr("href"))}}).render()})}},m={onLoadPageNumber:"",init:function(){this.loadGravatar(),this.unlockDonorFields(),this.editDonor(),this.add_email(),this.removeUser(),this.cancelEdit(),this.add_note(),this.delete_checked(),this.addressesAction(),this.bulkDeleteDonor(),m.onLoadPageNumber=e("#current-page-selector").val(),e("body").on("click",'#give-donors-filter .bulkactions input[type="submit"]',this.handleBulkActions)},loadGravatar:function(){var t,i;e(".give-donor-name").each(function(){if(!(t=e(this).find(".give-donor__image")).hasClass("gravatar-loaded")){if(i=t.attr("data-donor_email"),"1"===t.attr("data-has-valid-gravatar")){var n=e("<img>");n.attr("src",d.url(i)),n.attr("width","60"),n.attr("height","60"),e(this).find(".give-donor__image").html(n)}t.addClass("gravatar-loaded")}})},unlockDonorFields:function(t){e("body").on("click",".give-lock-block",function(e){new o.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("unlock_donor_fields_title"),desc:Give.fn.getGlobalVar("unlock_donor_fields_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),e.preventDefault()})},editDonor:function(){e("body").on("click","#edit-donor",function(t){t.preventDefault(),e("#give-donor-card-wrapper .editable").hide(),e("#give-donor-card-wrapper .edit-item").fadeIn().css("display","block")})},removeUser:function(){e("body").on("click","#disconnect-donor",function(t){if(t.preventDefault(),!confirm(Give.fn.getGlobalVar("disconnect_user")))return!1;var i={give_action:"disconnect-userid",customer_id:e('input[name="donor_info[id]"]').val(),_wpnonce:e("#edit-donor-info #_wpnonce").val()};e.post(ajaxurl,i,function(e){window.location.href=e.redirect},"json")})},cancelEdit:function(){e("body").on("click","#give-edit-donor-cancel",function(t){t.preventDefault(),e("#give-donor-card-wrapper .edit-item").hide(),e("#give-donor-card-wrapper .editable").show(),e(".give_user_search_results").html("")})},add_note:function(){e("body").on("click","#add-donor-note",function(t){t.preventDefault();var i={give_action:"add-donor-note",customer_id:e("#donor-id").val(),donor_note:e("#donor-note").val(),add_donor_note_nonce:e("#add_donor_note_nonce").val()};if(i.donor_note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-donor-notes").prepend(t),e(".give-no-donor-notes").hide(),e("#donor-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#donor-note").css("border-color");e("#donor-note").css("border-color","red"),setTimeout(function(){e("#donor-note").css("border-color",n)},500)}})},delete_checked:function(){e("#give-donor-delete-confirm").change(function(){var t=e("#give-donor-delete-records"),i=e("#give-delete-donor");e(this).prop("checked")?(t.attr("disabled",!1),i.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),i.attr("disabled",!0))})},add_email:function(){e("#add-donor-email").length&&e(document.body).on("click","#add-donor-email",function(t){t.preventDefault();var i=e(this),n=i.parent();n.parent().find(".notice-wrap").remove(),n.find(".spinner").css("visibility","visible"),i.attr("disabled",!0);var o={give_action:"add_donor_email",customer_id:n.find('input[name="donor-id"]').val(),email:n.find('input[name="additional-email"]').val(),primary:n.find('input[name="make-additional-primary"]').is(":checked"),_wpnonce:n.find('input[name="add_email_nonce"]').val()};e.post(ajaxurl,o,function(e){!0===e.success?window.location.href=e.redirect:(i.attr("disabled",!1),n.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),n.find(".spinner").css("visibility","hidden"))},"json")})},addressesAction:function(){var i=this,n=e("#donor-address-wrapper"),o=e(".all-address",n),a=e(".give-no-address-message",n),r=e(o).parent(),s=e(".address-form",n),l=e(".js-cancel",s),c=e('select[name="country"]',s),d=e(".add-new-address",n),u=parseInt(e('input[name="donor-id"]').val());c.on("change",function(){e(this).trigger("chosen:updated")}),o.on("click",".js-edit",function(t){var n=e(this).closest(".address");t.preventDefault(),e(".notice",r).remove(),i.__set_address_form_val(n),i.__set_address_form_action("update",n.data("address-id")),d.hide(),o.addClass("give-hidden"),s.removeClass("add-new-address-form-hidden"),s.data("process","update")}),o.on("click",".js-remove",function(t){t.preventDefault();var n=e(this).closest(".address");e(".notice",r).remove(),s.data("changed",!0),i.__set_address_form_val(n),i.__set_address_form_action("remove",n.data("address-id")),s.trigger("submit")}),d.on("click",function(t){t.preventDefault(),e(".notice",r).remove(),e(this).hide(),o.addClass("give-hidden"),s.removeClass("add-new-address-form-hidden"),i.__set_address_form_action("add"),i.__set_address_form_action()}),l.on("click",function(e){e.preventDefault(),s.find('input[type="text"]').val(""),d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden")}),s.on("change",function(){e(this).data("changed",!0)}).on("submit",function(i){i.preventDefault();var l=e(this);return e(".notice",r).remove(),e(this).data("changed")?(e.ajax({type:"POST",url:ajaxurl,data:{action:"donor_manage_addresses",donorID:u,form:e("form",s).serialize()},beforeSend:function(){t(n,{show:!0})},success:function(i){if(t(n),i.success){var s;switch(i.data.action){case"add":e(".give-grid-row",o).append(i.data.address_html),!a.hasClass("give-hidden")&&e("div.give-grid-col-4",o).length&&a.addClass("give-hidden");break;case"remove":(s=o.find('div[data-address-id*="'+i.data.id+'"]').parent()).length&&s.animate({"margin-left":"-999"},1e3,function(){s.remove(),a.hasClass("give-hidden")&&!e("div.give-grid-col-4",o).length&&a.removeClass("give-hidden")});break;case"update":var l=(s=o.find('div[data-address-id*="'+i.data.id+'"]').parent()).prev(),c={},d=!1;parseInt(e(".give-grid-row>div",o).length)<2?e(".give-grid-row",o).append(i.data.address_html):(l.length&&(l.after(i.data.address_html),d=!0),d||(c=s.next()).length&&c.before(i.data.address_html)),s.remove()}r.prepend(i.data.success_msg)}else r.prepend(i.data.error_msg)},dataType:"json"}).always(function(){l.data("changed",!1),s.find('input[type="text"]').val(""),d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden")}),!1):(d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden"),!1)})},__set_address_form_action:function(t,i){var n=e("#donor-address-wrapper"),o=e(".address-form",n),a=e('input[name="address-action"]',o),r=e('input[name="address-id"]',o);t=t||"add",i=i||"billing",a.val(t),r.val(i)},__set_address_form_val:function(t){var i=e("#donor-address-wrapper"),n=e(".address-form",i),o=e('[data-address-type="state"]',t).text().substr(2).trim();e('select[name="country"]',n).val().trim()!==e('[data-address-type="country"]',t).text().trim()?(e('select[name="country"]',n).val(e('[data-address-type="country"]',t).text().trim()).trigger("chosen:updated").change(),window.setTimeout(function(){e('[name="state"]',n).val(o).trigger("chosen:updated")},500)):e('[name="state"]',n).val(o).trigger("chosen:updated"),e('input[name="line1"]',n).val(e('[data-address-type="line1"]',t).text().trim()),e('input[name="line2"]',n).val(e('[data-address-type="line2"]',t).text().trim()),e('input[name="city"]',n).val(e('[data-address-type="city"]',t).text().trim()),e('input[name="zip"]',n).val(e('[data-address-type="zip"]',t).text().trim())},bulkDeleteDonor:function(){var t=e("body");t.on("click","#give-bulk-delete-cancel",function(t){e(this).closest("tr").hide(),e(".give-skip-donor").trigger("click"),t.preventDefault()}),t.on("click","#cb-select-all-1, #cb-select-all-2",function(){var t=e(this);e.each(e(".donor-selector"),function(){var i=e(this).val(),n=e(this).data("name"),o='<div id="give-donor-'+i+'" data-id="'+i+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+n+"</div>";t.is(":checked")&&!e(this).is(":checked")?e("#give-bulk-donors").append(o):t.is(":checked")||e("#give-bulk-donors").find("#give-donor-"+i).remove()})}),t.on("click",".donor-selector",function(){var t=e(this).val(),i=e(this).data("name"),n='<div id="give-donor-'+t+'" data-id="'+t+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+i+"</div>";e(this).is(":checked")?e("#give-bulk-donors").prepend(n):e("#give-bulk-donors").find("#give-donor-"+t).remove()}),t.on("click","#give-bulk-delete .give-donor-delete-confirm",function(){e(this).is(":checked")?e("#give-bulk-delete-button").removeAttr("disabled"):(e("#give-bulk-delete-button").attr("disabled",!0),e("#give-bulk-delete .give-donor-delete-records").removeAttr("checked"))}),t.on("click","#give-bulk-delete .give-donor-delete-records",function(){e(this).is(":checked")&&(e("#give-bulk-delete .give-donor-delete-confirm").attr("checked","checked"),e("#give-bulk-delete-button").removeAttr("disabled"))}),t.on("click",".give-skip-donor",function(){var t=e(this).closest("div").data("id");e("#give-donor-"+t).remove(),e("#donor-"+t).find('input[type="checkbox"]').removeAttr("checked")}),t.on("click",".give-single-donor-delete",function(t){var i=e(this).data("id"),n=e("tr#donor-"+i).find(".donor-selector"),o=e('[id^="cb-select-all-"]'),a=e("#give-bulk-donors"),r=n.data("name"),s='<div id="give-donor-'+i+'" data-id="'+i+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+r+"</div>";a.html(""),o.is(":checked")&&o.removeAttr("checked"),e(".donor-selector").removeAttr("checked"),n.attr("checked","checked"),0===e("#give-donor-"+i).length&&(a.prepend(s),e("#give-bulk-delete").slideDown()),t.preventDefault()})},handleBulkActions:function(t){var i=e(this).closest(".tablenav").find("select").val(),n=[],a=e("#current-page-selector").val(),r=m.onLoadPageNumber!==a,s=Give.fn.getGlobalVar("donors_bulk_action.no_action_selected"),l=Give.fn.getGlobalVar("donors_bulk_action.no_donor_selected");return!!r||(e.each(e(".donor-selector:checked"),function(){n.push(e(this).val())}),"-1"===i?(new o.GiveWarningAlert({modalContent:{title:s.title,desc:s.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1):parseInt(n)?("delete"===i&&e("#give-bulk-delete").slideDown(),void t.preventDefault()):(new o.GiveWarningAlert({modalContent:{title:l.title,desc:l.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1))}},v={init:function(){this.revoke_api_key(),this.regenerate_api_key()},revoke_api_key:function(){e("body").on("click",".give-revoke-api-key",function(e){return confirm(Give.fn.getGlobalVar("revoke_api_key"))})},regenerate_api_key:function(){e("body").on("click",".give-regenerate-api-key",function(e){return confirm(Give.fn.getGlobalVar("regenerate_api_key"))})}},_={init:function(){var t=e.query.get("give_tab").length?e.query.get("give_tab"):"form_field_options";this.handle_metabox_tab_click(),this.setup_colorpicker_fields(),this.setup_media_fields(),this.setup_repeatable_fields(),this.handle_repeater_group_events(),this.handle_multi_levels_repeater_group_events(),this.activate_tab(e('a[href="#'+t+'"]'))},handle_metabox_tab_click:function(){var t=this;e(".give-metabox-tabs a").on("click",function(i){i.preventDefault();let n=e(this);t.activate_tab(n),t.update_query(n)})},activate_tab:function(t){var i=t.data("tab-id"),n=t.parent(),o=e("ul.give-metabox-sub-tabs",n),a=o.length,r=e(".give-metabox-tabs a").parents("li"),s=e("ul.give-metabox-sub-tabs"),l=t.parents("ul.give-metabox-sub-tabs").length;if(e("#give_form_active_tab").val(i),a){n.toggleClass("active"),o.removeClass("give-hidden");var c=e("li.active","ul.give-metabox-sub-tabs");s.not(o).addClass("give-hidden"),r.not(n).removeClass("active"),c.addClass("active")}else l?l&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),r.removeClass("active"),t.parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),t.parents("li.has-sub-fields").addClass("active")):r.each(function(t,i){(i=e(i)).removeClass("active"),i.hasClass("has-sub-fields")&&e("ul.give-metabox-sub-tabs",i).addClass("give-hidden")});t.parent().addClass("active"),e(".give_options_panel").removeClass("active"),e(t.attr("href")).addClass("active")},update_query:function(t){var i=t.data("tab-id"),n=e.query.set("give_tab",i).remove("message").toString();history.replaceState&&history.replaceState(null,null,n)},setup_colorpicker_fields:function(){e(document).ready(function(){var t=e(".give-colorpicker");t.length&&t.each(function(t,i){var n=e(i);n.parents(".give-template").length||n.wpColorPicker()})})},setup_media_fields:function(){var t,i,n=e("body");n.on("click",".give-upload-button",function(o){o.preventDefault();var a={};switch(i=e(this),e(this).data("field-type")){case"media":a={title:Give.fn.getGlobal().metabox_fields.media.button_title,button:{text:Give.fn.getGlobal().metabox_fields.media.button_title},multiple:!1,library:{type:"image"}};break;default:a={title:Give.fn.getGlobal().metabox_fields.file.button_title,button:{text:Give.fn.getGlobal().metabox_fields.file.button_title},multiple:!1}}void 0!==jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("editing")&&(wp.media.controller.Library.prototype.defaults.contentUserSetting=!1);var r=jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("library");void 0!==r&&""!==r&&(a.library={type:r}),(t=wp.media(a)).on("select",function(){var e=t.state().get("selection").first().toJSON(),o=i.prev(),a="id"===i.data("fvalue")?e.id:e.url;if(n.trigger("give_media_inserted",[e,o]),o.val(a),"id"!==i.data("fvalue")){var r='input[name="'+o.attr("name")+'_id"]';o.closest("tr").next("tr").find(r).length&&o.closest("tr").next("tr").find(r).val(e.id)}}),t.open()}),n.on("give_media_inserted",function(t,n){var o=i.parents(".give-field-wrap"),a=e(".give-image-thumb",o);return!!a.length&&("image"!==n.type?(a.addClass("give-hidden"),e("img",a).attr("src",""),!1):(a.find("img").attr("src",n.url),void a.removeClass("give-hidden")))}),e("span.give-delete-image-thumb",".give-image-thumb").on("click",function(t){t.preventDefault();var i=e(this).parents(".give-field-wrap"),n=e(this).parent(),o=e('input[type="text"]',i);n.addClass("give-hidden"),o.val(""),e("img",n).attr("src","")})},setup_repeatable_fields:function(){jQuery(function(){jQuery(".give-repeatable-field-section").each(function(){var t=e(this),i={wrapper:".give-repeatable-fields-section-wrapper",container:".container",row:".give-row",add:".give-add-repeater-field-section-row",remove:".give-remove",move:".give-move",template:".give-template",confirm_before_remove_row:!0,confirm_before_remove_row_text:Give.fn.getGlobalVar("confirm_before_remove_row_text"),is_sortable:!0,before_add:null,after_add:b,before_remove:null,after_remove:y,sortable_options:{placeholder:"give-ui-placeholder-state-highlight",start:function(i,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item);let o=e(".give-row",t).not(".give-template");o.length&&o.each(function(t,i){let n=e('input[type="radio"].give-field',e(i));n.length&&n.each(function(){e(this).attr("data-give-checked",e(this).is(":checked"))})}),e("body").trigger("repeater_field_sorting_start",[n.item])},stop:function(t,i){i.item.next().hasClass("give-template")&&i.item.next().after(i.item),e("body").trigger("repeater_field_sorting_stop",[i.item])},update:function(i,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item);var o=e(".give-row",t).not(".give-template"),a=e(this).closest(".give-repeatable-fields-section-wrapper");if(o.length){var r=1;o.each(function(t,i){var n=e(".give-field, label",e(i));n.length&&n.each(function(){var t=e(this).parents(".give-field-wrap"),i=e(this);e.each(this.attributes,function(e,n){var o,a=this.value.replace(/\[/g,"_").replace(/]/g,""),s=a+"_field",l="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(r-1)+"]"),o=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(s)&&(l=o+"_field",t.removeClass(s).addClass(l)),a==i.attr("id")&&i.attr("id",o))})}),r++}),window.setTimeout(function(){e("input[data-give-checked]",a).each(function(t,i){(i=e(i)).prop("checked","true"===i.attr("data-give-checked"))})},100),t.trigger("repeater_field_row_reordered",[n.item])}}}};jQuery(this).repeatable_fields(i)})})},handle_repeater_group_events:function(){var t=e(".give-repeatable-field-section"),i=e("body");i.on("click",".give-row-head button",function(){var t=e(this).closest("tr");t.toggleClass("closed"),e(".give-row-body",t).toggle()}),t.on("repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered",function(){x(e(this))}),i.on("repeater_field_sorting_start",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){tinyMCE.execCommand("mceRemoveEditor",!0,e(i).attr("id"))},300)})}),i.on("repeater_field_sorting_stop",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){var t=e(i).attr("id");tinyMCE.execCommand("mceAddEditor",!0,t),window.setTimeout(function(){switchEditors.go(t,"html"),e("#"+t+"-tmce").trigger("click")},100)},300)})}),t.each(function(t,i){var n=e(i);x(n),parseInt(n.data("close-tabs"))&&(e(".give-row-head button",n).trigger("click"),e(".give-template",n).removeClass("closed"),e(".give-template .give-row-body",n).show())}),t.on("repeater_field_new_row_added",function(t,i,n){e(".give-colorpicker",e(this)).each(function(t,i){var n=e(i);n.parents(".wp-picker-container").length||n.parents(".give-template").length||n.wpColorPicker()});var o=e("div[data-wp-editor]",n);o.length&&o.each(function(t,i){var n=e(i),o=e(".wp-editor-wrap",n),a=e("textarea",n),r="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),s=o.prev();a.attr("id",r),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:n.data("wp-editor"),wp_editor_id:r,textarea_name:e("textarea",n).attr("name")},function(t){o.remove(),s.after(t),tinyMCEPreInit.qtInit[a.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:r}),tinyMCEPreInit.mceInit[r]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:r+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+r}),tinymce.init(tinyMCEPreInit.mceInit[r]),quicktags(tinyMCEPreInit.qtInit[r]),QTags._buttonsInit(),window.setTimeout(function(){switchEditors.go(r,"html"),e("#"+r+"-tmce").trigger("click")},100),window.wpActiveEditor||(window.wpActiveEditor=r)})})})},handle_multi_levels_repeater_group_events:function(){var t=e("#_give_donation_levels_field");e("body").on("keyup",".give-multilevel-text-field",function(){var t=e(this).closest("tr"),i=e(".give-row-head h2 span",t),n=i.data("header-title");if(e(this).val()&&e(this).val()===i.html())return!1;e(this).val()?i.html(n+": "+e(this).val()):i.html(n)}),e(".give-multilevel-text-field").each(function(t,i){if(t){var n=e(i),o=n.closest("tr"),a=e(".give-row-head h2 span",o),r=a.data("header-title");if(n.val()&&n.val()===a.html())return!1;n.val()?a.html(r+": "+n.val()):a.html(r)}}),t.on("repeater_field_row_deleted",function(){var t=e(this);window.setTimeout(function(){var i=e(".give-row",t).not(".give-template"),n=e(".give-give_default_radio_inline",i);1===i.length&&n.prop("checked",!0)},200)}),t.on("repeater_field_new_row_added",function(t,i,n){var o=e(this),a=0;window.setTimeout(function(){!1===e(".give-give_default_radio_inline",o).is(":checked")&&e(".give-row",o).not(".give-template").first().find(".give-give_default_radio_inline").prop("checked",!0)},200),e('input[type="hidden"].give-levels_id',o).each(function(t,i){var n=e(i),o=parseInt(n.val());a<o&&(a=o)}),e('input[type="hidden"].give-levels_id',n).val(++a)})}},b=function(t,i){var n=e(t).attr("data-rf-row-count"),o=e(t).parents(".give-repeatable-field-section");n++,e("*",i).each(function(){e.each(this.attributes,function(e,t){this.value=this.value.replace("{{row-count-placeholder}}",n-1)})}),e(t).attr("data-rf-row-count",n),o.trigger("repeater_field_new_row_added",[t,i])},y=function(t){var i=e(t),n=i.parents(".give-repeatable-field-section"),o=e(t).attr("data-rf-row-count");i.attr("data-rf-row-count",--o),n.trigger("repeater_field_row_deleted")},x=function(t){if(parseInt(t.data("group-numbering"))){var i=e(".give-row-head h2 span",t),n=i.data("header-title");i.each(function(t,i){var o=e(i);o.parents(".give-template").length||o.html(n+": "+t)})}},w={onLoadPageNumber:"",init:function(){w.onLoadPageNumber=e("#current-page-selector").val(),e("body").on("click",'#give-payments-filter input[type="submit"]',this.handleBulkActions)},handleBulkActions:function(t){var i=e(this).closest(".tablenav").find("select").val(),n=e(this).closest(".tablenav").find('option[value="'+i+'"]').text(),a=e('input[name="payment[]"]:checked').length,r=-1!==i.indexOf("set-status-"),s="",l="",c=e("#current-page-selector").val();if(w.onLoadPageNumber!==c)return!0;if("-1"===(i=r?"set-to-status":i))return new o.GiveWarningAlert({modalContent:{title:Give.fn.getGlobal().donors_bulk_action.no_action_selected.title,desc:Give.fn.getGlobal().donors_bulk_action.no_action_selected.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1;if(Object.keys(Give.fn.getGlobalVar("donations_bulk_action")).length)for(l in Give.fn.getGlobalVar("donations_bulk_action"))if(l===i){if(s=r?Give.fn.getGlobal().donations_bulk_action[i].zero.replace("{status}",n.replace("Set To ","")):Give.fn.getGlobal().donations_bulk_action[i].zero,!parseInt(a))return new o.GiveWarningAlert({modalContent:{title:Give.fn.getGlobal().donations_bulk_action.titles.zero,desc:s,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1;s=1<a?Give.fn.getGlobal().donations_bulk_action[i].multiple:Give.fn.getGlobal().donations_bulk_action[i].single,t.preventDefault(),new o.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_bulk_action"),desc:s.replace("{payment_count}",a).replace("{status}",n.replace("Set To ",""))},successConfirm:function(t){e("#give-payments-filter").submit()}}).render()}return!0}},k=function(){const e=document.querySelectorAll(".js-give-shortcode-button");if(e)for(const t of e){new l(t).init()}};e(function(){var t;e("body").on("click","button.notice-dismiss",function(){"give-invalid-license"!==jQuery(this).closest("div.give-notice").data("notice-id")&&i(jQuery(this).closest("div.give-notice").attr("id"))}),function(){let t,i=e(".give_datepicker");if(i.length){let n={},o={altFormat:"yy-mm-dd",onClose:function(e,t){e.length||t.input.next().val("")}};e.each(i,function(o,a){a=e(a),t=void 0!==a.attr("data-standard-date")?a.attr("data-standard-date"):a.attr("value"),a.attr("name").length&&(n=a.clone(),i[o]=n,n.attr("name",""),a.before(n),a.hide(),a.attr("class",""),a.attr("id",""),a.val(t),a.prop("readonly",!0))}),i.length>0&&e.each(i,function(t,i){i=e(i),o.altField=i.next(),i.datepicker(o)})}}(),e('select[name="give-payment-status"]').on("change",function(){var t=e(this).val();e(".give-donation-status").removeClass(function(e,t){return(t.match(/\bstatus-\S+/g)||[]).join(" ")}).addClass("status-"+t)}),(t=e(".give-select-chosen")).hasClass("give-chosen-settings")?t.chosen({no_results_text:Give.fn.getGlobalVar("chosen_add_title_prefix")+" ",width:"30%"}).on("chosen:no_results",function(t,i){e(i.chosen.container).on("keydown",function(n){var o=i.chosen.get_search_text();13!==n.keyCode||jQuery(i.chosen.form_field).find('option[value="'+o+'"]').length||(e(i.chosen.form_field).append('<option value="'+o+'" selected>'+o+"</option>").trigger("chosen:updated"),i.chosen.result_highlight=i.chosen.search_results.find("li.active-result").lasteturn,i.chosen.result_select(t))})}):(t.on("chosen:ready",function(){e(this).next(".chosen-container").find("input.chosen-search-input").after('<span class="spinner"></span>')}),t.chosen({inherit_select_classes:!0,placeholder_text_single:Give.fn.getGlobalVar("one_option"),placeholder_text_multiple:Give.fn.getGlobalVar("one_or_more_option")}),t.on("chosen:no_results",function(){var t,i=e(this).next(".chosen-container"),n=i.find("li.no-results"),o="",a=Give.fn.getGlobalVar("chosen");o=i.hasClass("give-select-chosen-ajax")&&n.length?a.ajax_search_msg.replace("{search_term}",'"'+e("input",i).val()+'"'):a.no_results_msg.replace("{search_term}",'"'+e("input",i).val()+'"'),n.html(o),e(document.body).on("keyup",".give-select.chosen-container .chosen-search input, .give-select.chosen-container .search-field input",function(i){var n=e(this).val(),o=e(this).closest(".give-select-chosen"),a=o.prev(),r=o.find('input[type="text"]'),s=(o.hasClass("variations"),i.which),l="give_form_search",c=this;if(o.prev().data("search-type")){if("no_ajax"===a.data("search-type"))return;l="give_"+a.data("search-type")+"_search"}n.length>0&&n.length<=3||!l.length||9===s||13===s||16===s||17===s||18===s||19===s||20===s||27===s||33===s||34===s||35===s||36===s||37===s||38===s||39===s||40===s||44===s||45===s||144===s||145===s||91===s||93===s||224===s||112<=s&&123>=s||(clearTimeout(t),o.addClass("give-select-chosen-ajax"),t=setTimeout(function(){e.ajax({type:"POST",url:ajaxurl,data:{action:l,s:n,fields:e(c).closest("form").serialize()},dataType:"json",beforeSend:function(){a.closest("ul.chosen-results").empty(),r.prop("disabled",!0)},success:function(t){o.removeClass("give-select-chosen-ajax"),e("option:not(:selected)",a).remove(),t.length?(e.each(t,function(t,i){e('option[value="'+i.id+'"]',a).length||(0===n.length?a.append(`<option value="${i.id}">${i.name}</option>`):a.prepend(`<option value="${i.id}">${i.name}</option>`))}),o.prev("select.give-select-chosen").trigger("chosen:updated")):o.prev("select.give-select-chosen").trigger("chosen:no_results"),r.prop("disabled",!1),r.val(n).focus()}}).fail(function(e){window.console&&window.console.log&&console.log(e)}).done(function(e){r.prop("disabled",!1)})},342))}),e(".give-select-chosen .chosen-search input").each(function(){var t=e(this).parent().parent().parent().prev("select.give-select-chosen").data("search-type"),i="";"form"===t?i=Give.fn.getGlobalVar("search_placeholder"):(t="search_placeholder_"+t,Give.fn.getGlobalVar(t)&&(i=Give.fn.getGlobalVar(t))),e(this).attr("placeholder",i)})})),e(".chosen-container").each(function(){0===e(this).width()&&e(this).css("width","100%")}),e("#post").on("click",".give-thickbox",function(){e(".give-select-chosen","#choose-give-form").css("width","100%")}),e.giveAjaxifyFields({type:"country_state",debug:!0}),a.init(),r.init(),s.init(),h.init(),m.init(),v.init(),f.init(),p.init(),g.init(),_.init(),w.init(),k(),e("a.give-rating-link").click(function(){jQuery(this).parent().text(jQuery(this).data("rated"))}),e(".give-ajax-user-search").on("keyup",function(){var t=e(this).val(),i="";e(this).data("exclude")&&(i=e(this).data("exclude")),e(".give-ajax").show(),data={action:"give_search_users",user_name:t,exclude:i},document.body.style.cursor="wait",e.ajax({type:"POST",data:data,dataType:"json",url:ajaxurl,success:function(t){e(".give-ajax").hide(),e(".give_user_search_results").removeClass("hidden"),e(".give_user_search_results span").html(""),e(t.results).appendTo(".give_user_search_results span"),document.body.style.cursor="default"}})}),e("body").on("click.giveSelectUser",".give_user_search_results span a",function(t){t.preventDefault();var i=e(this).data("login");e(".give-ajax-user-search").val(i),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")}),e("body").on("click.giveCancelUserSearch",".give_user_search_results a.give-ajax-user-cancel",function(t){t.preventDefault(),e(".give-ajax-user-search").val(""),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")});var o=e("#poststuff"),l=Give.fn.getGlobalVar("thousands_separator"),c=Give.fn.getGlobalVar("decimal_separator"),d="",b="",y="",x=c===l?1:0;o.on("keyup","input.give-money-field, input.give-price-field",function(){var t={label:Give.fn.getGlobalVar("price_format_guide").trim()};d=(e(this).val().match(new RegExp(l,"g"))||[]).length,b=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(l)&&x<d?e(this).giveHintCss("show",t):b?e(this).giveHintCss("show",t):e(this).giveHintCss("hide",t),d=b=""}),o.on("focusout","input.give-money-field, input.give-price-field",function(){if(y=n(e(this).val(),!1),e(this).giveHintCss("hide",{label:Give.fn.getGlobalVar("price_format_guide").trim()}),n("0",!1)===n(e(this).val(),!1)){var t=e(this).attr("placeholder");return t=t||"0",e(this).val(t),!1}-1!==(y=y.replace(".",c)).indexOf("-")&&(y=y.replace("-","")),e(this).val(y)}),o.on("focusout","#_give_number_of_donation_goal",function(){1>e(this).val()&&e(this).val(1)}),e(".give-settings-page").on("click","#give-show-sub-nav",function(t){t.preventDefault();var i=e(this).next();return i.is(":hover")||i.toggleClass("give-hidden"),!1}).on("blur","#give-show-sub-nav",function(){var t=e(this).next();t.is(":hover")||t.addClass("give-hidden")}),e(".give_email_api_notification_status_setting input").change(function(){var t=e(this).val(),i="enabled"===t,n={};return e(this).closest(".give_options_panel").length?n=e(this).closest(".give_options_panel").children(".give-field-wrap:not(.give_email_api_notification_status_setting), .give-repeatable-field-section"):e(this).closest("table").length&&(n=e(this).closest("table").find("tr:not(.give_email_api_notification_status_setting)")),-1!==jQuery.inArray(t,["enabled","disabled","global"])&&(!!n.length&&void(i?n.show():n.hide()))}),e(".give_email_api_notification_status_setting input:checked").change(),u()})}(jQuery),jQuery(window).resize(function(){u()});function h(){var e=document.querySelector(".give-tools-setting-page-import table.step-2 .give-import-donation-required-fields");if("undefined"!==e&&null!==e){var t=!0,i=!1,n=!1,o=!1,a=!1;document.querySelectorAll(".give-import-donation-required-fields li").forEach(function(e){e.querySelector(".dashicons").classList.remove("dashicons-yes"),e.querySelector(".dashicons").classList.add("dashicons-no-alt")});var r=Array.from(document.querySelectorAll("table.step-2 tbody select")).map(function(e){return e.value});r.includes("email")&&(i=!0,document.querySelector(".give-import-donation-required-email .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-email .dashicons").classList.add("dashicons-yes")),r.includes("first_name")&&(n=!0,document.querySelector(".give-import-donation-required-first .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-first .dashicons").classList.add("dashicons-yes")),r.includes("amount")&&(o=!0,document.querySelector(".give-import-donation-required-amount .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-amount .dashicons").classList.add("dashicons-yes")),(r.includes("form_id")||r.includes("form_title"))&&(a=!0,document.querySelector(".give-import-donation-required-form .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-form .dashicons").classList.add("dashicons-yes")),i&&n&&o&&a&&(t=!1),document.getElementById("recount-stats-submit").disabled=t}}jQuery(function(){window.onload=function(){var e,t;h(),"undefined"!==(e=document.querySelector(".give-tools-setting-page-import table.step-2 tbody select"))&&null!==e&&jQuery(".give-tools-setting-page-import table.step-2 tbody").on("change","select",function(){h()}),jQuery("body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-3").length>0&&function e(){var t=jQuery("form.tools-setting-page-import");!0;var i=t.find(".give-progress"),n=jQuery(i).data("total_ajax"),a=jQuery(i).data("current"),r=jQuery(i).data("start"),s=jQuery(i).data("end"),l=jQuery(i).data("next"),c=jQuery(i).data("total"),d=jQuery(i).data("per_page");jQuery.ajax({type:"POST",url:ajaxurl,data:{action:Give.fn.getGlobalVar("give_donation_import"),total_ajax:n,current:a,start:r,end:s,next:l,total:c,per_page:d,fields:t.serialize()},dataType:"json",success:function(t){jQuery(i).data("current",t.current),jQuery(i).find("div").width(t.percentage+"%"),1==t.next?(jQuery(i).data("start",t.start),jQuery(i).data("end",t.end),1==t.last&&jQuery(i).data("next",!1),e()):(!1,window.location=t.url)},error:function(){!1,new o.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}})}(),t="body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-1 .is_csv_valid",jQuery(t).length>0&&(window.location=jQuery(t).val()),function(){var e="body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-2 .csv_not_valid";jQuery(e).length>0&&(window.location=jQuery(e).val())}(),function(){if(jQuery("body.give_forms_page_give-tools .give-tools-import-tab #give-import-core-settings-form table.step-2").length>0){var e=jQuery("form.tools-setting-page-import"),t=e.find(".give-progress");!0,jQuery.ajax({type:"POST",url:ajaxurl,data:{action:Give.fn.getGlobalVar("core_settings_import"),fields:e.serialize()},dataType:"json",success:function(e){!1,!0===e.success?(jQuery(t).find("div").width(e.percentage+"%"),window.location=e.url):new o.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()},error:function(){!1,new o.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}})}}(),function(){var e="body.give_forms_page_give-tools .give-tools-import-tab #give-import-core-settings-form table.step-1 .is_json_valid";jQuery(e).length>0&&(window.location=jQuery(e).val())}()}}),n.a.modal=o;const{init:f,fn:p,cache:g,modal:m}=n.a;window.Give={init:f,fn:p,cache:g,modal:m}},40:function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},47:function(e,t,i){"use strict";var n={fn:{renderNotice:function(e,t){let i;switch(t=void 0!==t?t:{},e){case"bad_minimum":i=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":i=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";i.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var i,n,o;if(i=n=o="",t.length)switch(e){case"bad_minimum":n=Give.fn.getGlobalVar(e),o=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":n=Give.fn.getGlobalVar(e),o=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==n&&(i=n+" "+Give.fn.formatCurrency(o,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),i}}},o={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.addEventListener("load",function(){Give.form.fn.__sendBackToForm()})},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},formatAmount:function(e,t,i){return t.length?Give.fn.formatCurrency(e,i,t):e},getInfo:function(e,t){var i="";if(t=void 0!==t?t:{},!e.length||!t.length)return i;switch(e){case"gateways":i=[],jQuery.each(t.find('input[name="payment-mode"]'),function(e,t){t=t instanceof jQuery?t:jQuery(t),i.push(t.val().trim())});break;case"form-type":t.hasClass("give-form-type-set")?i="set":t.hasClass("give-form-type-multi")&&(i="multi");break;case"form-id":i=t.find('input[name="give-form-id"]').val();break;default:void 0!==(i=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&i.trim()}return i},setInfo:function(e,t,i,n){if(!i.length)return!1;switch(e=void 0===e?"data":e){case"nonce":i.find('input[name="give-form-hash"]').val(t)}if(void 0!==n&&!n.length)return!1;switch(e){case"attr":i.attr(n,t);break;default:i.data(n,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,i=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,function(t,n){n=n instanceof jQuery?n:jQuery(n);var o=Give.form.fn.getInfo("decimal_separator",e);i.push({price_id:n.data("price-id"),amount:Give.fn.unFormatCurrency(n.val(),o)})}),i):i},getPriceID:function(e,t){var i=this.getVariablePrices(e),n=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),o=Give.fn.getCache("amount_"+n,e)?Give.fn.getCache("amount_"+n,e):-1;return t=void 0===t||t,i.length&&-1===o&&(t?(jQuery.each(i,function(e,t){if(t.amount===n)return o=t.price_id,!1}),-1===o&&this.getMinimumAmount(e)<=n&&this.getMaximumAmount(e)>=n&&this.getMinimumAmount(e)<=n&&(o="custom")):o=jQuery('input[name="give-price-id"]',e).val()),o},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";let t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){let t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)})},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((t,i)=>{jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(n){if(!n.success)return i(n);const o=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",n.data.give_form_hash,e,""),o.length&&o.val(n.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[n.data]),t(n)}).done(function(){Give.form.fn.disable(e,!1)})}))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),i=e.val(),n=e.data("price-id");if(void 0===n&&(n=e.find("option:selected").data("price-id")),"custom"===n)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(i),t.find("span.give-amount-top").text(i);var o=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),o)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,i,n])},__sendBackToForm:function(){let e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;let i=jQuery("body").find("#give-form-"+e+"-wrap"),n=i.find("form.give-form"),o=i.hasClass("give-display-modal"),a=i.hasClass("give-display-button"),r=i.hasClass("give-display-reveal");n.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),n.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");let s=Give.fn.getParameterByName("level-id"),l=n.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):o||a?give_open_form_modal(i,n):r&&(n.find(".give-btn-reveal").hide(),n.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;let t=this.getMinimumAmount(e),i=this.getMaximumAmount(e),n=this.getAmount(e),o=this.getPriceID(e,!0);return 0!==n&&(-1<n&&n>=t&&n<=i||-1!==o)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]})},field:{formatCreditCard:function(e){e.each(function(e,t){var i=(t=jQuery(t)).find(".card-number"),n=t.find(".card-cvc"),o=t.find(".card-expiry");i.length&&(i.payment("formatCardNumber"),n.payment("formatCardCVC"),o.payment("formatCardExpiry"))})}}}},a={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}};let r={init:function(){let e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)r[e[t]].init&&r[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,i){let n={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(i=void 0===i?{}:i).length&&(n={symbol:"",decimal:r.form.fn.getInfo("decimal_separator",i),thousand:r.form.fn.getInfo("thousands_separator",i),precision:r.form.fn.getInfo("number_decimals",i),currency:r.form.fn.getInfo("currency_code",i)}),(t=jQuery.extend(n,t)).precision=parseInt(t.precision),"INR"===t.currency){let i=parseFloat(e).toFixed(n.precision),o=t.precision?".0":"",a="",r="",s="",l="";(i=(i=accounting.unformat(i,".").toString()).toString()).indexOf(".")>0&&(o=i.substring(i.indexOf("."),i.length)),a=(i=Math.floor(i).toString()).substring(i.length-3),""!==(r=i.substring(0,i.length-3))&&(a=n.thousand+a),l=(s=r.replace(/\B(?=(\d{2})+(?!\d))/g,n.thousand)+a+o).lastIndexOf("."),e=s=s.slice(0,l)+(s.slice(l)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){let i=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(i,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");let i=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){const t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,i){i.length?r.cache["form_"+r.form.fn.getInfo("form-id",i)][e]=t:r.cache[e]=t},getCache:function(e,t){let i,n=r.cache["form_"+r.form.fn.getInfo("form-id",t)];return i=void 0===(i=t.length?void 0!==n?n[e]:"":r.cache[e])?"":i},__getCookie:function(e){const t=("; "+document.cookie).split("; "+e+"=");let i="";return 2===t.length&&(i=t.pop().split(";").shift()),i}},cache:{}};r.notice=n,r.form=o,r.donor=a;t.a=r},48:function(e,t,i){var n,o,a;
|
67 |
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
68 |
* http://dimsemenov.com/plugins/magnific-popup/
|
69 |
-
* Copyright (c) 2016 Dmitry Semenov; */o=[i(30)],void 0===(a="function"==typeof(n=function(e){var t,i,n,o,a,r,s=function(){},l=!!window.jQuery,c=e(window),d=function(e,i){t.ev.on("mfp"+e+".mfp",i)},u=function(t,i,n,o){var a=document.createElement("div");return a.className="mfp-"+t,n&&(a.innerHTML=n),o?i&&i.appendChild(a):(a=e(a),i&&a.appendTo(i)),a},h=function(i,n){t.ev.triggerHandler("mfp"+i,n),t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,e.isArray(n)?n:[n]))},f=function(i){return i===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=i),t.currTemplate.closeBtn},p=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)};s.prototype={constructor:s,init:function(){var i=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(i),t.isIOS=/iphone|ipad|ipod/gi.test(i),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),n=e(document),t.popupsCache={}},open:function(i){var o;if(!1===i.isObj){t.items=i.items.toArray(),t.index=0;var r,s=i.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===i.el[0]){t.index=o;break}}else t.items=e.isArray(i.items)?i.items:[i.items],t.index=i.index||0;if(!t.isOpen){t.types=[],a="",i.mainEl&&i.mainEl.length?t.ev=i.mainEl.eq(0):t.ev=n,i.key?(t.popupsCache[i.key]||(t.popupsCache[i.key]={}),t.currTemplate=t.popupsCache[i.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,i),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=u("bg").on("click.mfp",function(){t.close()}),t.wrap=u("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=u("container",t.wrap)),t.contentContainer=u("content"),t.st.preloader&&(t.preloader=u("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var p=l[o];p=p.charAt(0).toUpperCase()+p.slice(1),t["init"+p].call(t)}h("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(d("MarkupParse",function(e,t,i,n){i.close_replaceWith=f(n.type)}),a+=" mfp-close-btn-in"):t.wrap.append(f())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:n.height(),position:"absolute"}),t.st.enableEscapeKey&&n.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),c.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var g=t.wH=c.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(g)){var v=t._getScrollbarSize();v&&(m.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var _=t.st.mainClass;return t.isIE7&&(_+=" mfp-ie7"),_&&t._addClassToMFP(_),t.updateItemHTML(),h("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),n.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(g),h("Open"),i}t.updateItemHTML()},close:function(){t.isOpen&&(h("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){h("Close");var i="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(i+=t.st.mainClass+" "),t._removeClassFromMFP(i),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}n.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,h("AfterClose")},updateSize:function(e){if(t.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i;t.wrap.css("height",n),t.wH=n}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),h("Resize")},updateItemHTML:function(){var i=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index));var n=i.type;if(h("BeforeChange",[t.currItem?t.currItem.type:"",n]),t.currItem=i,!t.currTemplate[n]){var a=!!t.st[n]&&t.st[n].markup;h("FirstMarkupParse",a),t.currTemplate[n]=!a||e(a)}o&&o!==i.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,t.currTemplate[n]);t.appendContent(r,n),i.preloaded=!0,h("Change",i),o=i.type,t.container.prepend(t.contentContainer),h("AfterChange")},appendContent:function(e,i){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[i]?t.content.find(".mfp-close").length||t.content.append(f()):t.content=e:t.content="",h("BeforeAppend"),t.container.addClass("mfp-"+i+"-holder"),t.contentContainer.append(t.content)},parseEl:function(i){var n,o=t.items[i];if(o.tagName?o={el:e(o)}:(n=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){n=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=n||t.st.type||"inline",o.index=i,o.parsed=!0,t.items[i]=o,h("ElementParse",o),t.items[i]},addGroup:function(e,i){var n=function(n){n.mfpEl=this,t._openClick(n,e,i)};i||(i={});var o="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(o).on(o,n)):(i.isObj=!1,i.delegate?e.off(o).on(o,i.delegate,n):(i.items=e,e.off(o).on(o,n)))},_openClick:function(i,n,o){var a=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(a||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(c.width()<r)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation()),o.el=e(i.mfpEl),o.delegate&&(o.items=n.find(o.delegate)),t.open(o)}},updateStatus:function(e,n){if(t.preloader){i!==e&&t.container.removeClass("mfp-s-"+i),n||"loading"!==e||(n=t.st.tLoading);var o={status:e,text:n};h("UpdateStatus",o),e=o.status,n=o.text,t.preloader.html(n),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(i){if(!e(i).hasClass("mfp-prevent-close")){var n=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(n&&o)return!0;if(!t.content||e(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||e.contains(t.content[0],i)){if(n)return!0}else if(o&&e.contains(document,i))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?n.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!e.contains(t.wrap[0],i.target))return t._setFocus(),!1},_parseMarkup:function(t,i,n){var o;n.data&&(i=e.extend(n.data,i)),h("MarkupParse",[t,i,n]),e.each(i,function(i,n){if(void 0===n||!1===n)return!0;if((o=i.split("_")).length>1){var a=t.find(".mfp-"+o[0]);if(a.length>0){var r=o[1];"replaceWith"===r?a[0]!==n[0]&&a.replaceWith(n):"img"===r?a.is("img")?a.attr("src",n):a.replaceWith(e("<img>").attr("src",n).attr("class",a.attr("class"))):a.attr(o[1],n)}}else t.find(".mfp-"+i).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,i){return p(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(i){p();var n=e(this);if("string"==typeof i)if("open"===i){var o,a=l?n.data("magnificPopup"):n[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=n,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},n,a)}else t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1));else i=e.extend(!0,{},i),l?n.data("magnificPopup",i):n[0].magnificPopup=i,t.addGroup(n,i);return n};var g,m,v,_=function(){v&&(m.after(v.addClass(g)).detach(),v=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),d("Close.inline",function(){_()})},getInline:function(i,n){if(_(),i.src){var o=t.st.inline,a=e(i.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(m||(g=o.hiddenClass,m=u(g),g="mfp-"+g),v=a.after(m).detach().removeClass(g)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return i.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(n,{},i),n}}});var b,y=function(){b&&e(document.body).removeClass(b)},x=function(){y(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),b=t.st.ajax.cursor,d("Close.ajax",x),d("BeforeChange.ajax",x)},getAjax:function(i){b&&e(document.body).addClass(b),t.updateStatus("loading");var n=e.extend({url:i.src,success:function(n,o,a){var r={data:n,xhr:a};h("ParseAjax",r),t.appendContent(e(r.data),"ajax"),i.finished=!0,y(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),h("AjaxContentAdded")},error:function(){y(),i.finished=i.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",i.src))}},t.st.ajax.settings);return t.req=e.ajax(n),""}}});var w,k,C=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=t.st.image.titleSrc;if(n){if(e.isFunction(n))return n.call(t,i);if(i.el)return i.el.attr(n)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=t.st.image,n=".image";t.types.push("image"),d("Open"+n,function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)}),d("Close"+n,function(){i.cursor&&e(document.body).removeClass(i.cursor),c.off("resize.mfp")}),d("Resize"+n,t.resizeImage),t.isLowIE&&d("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,w&&clearInterval(w),e.isCheckingImgSize=!1,h("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,n=e.img[0],o=function(a){w&&clearInterval(w),w=setInterval(function(){n.naturalWidth>0?t._onImageHasSize(e):(i>200&&clearInterval(w),3==++i?o(10):40===i?o(50):100===i&&o(500))},a)};o(1)},getImage:function(i,n){var o=0,a=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,h("ImageLoadComplete")):++o<200?setTimeout(a,100):r())},r=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",s.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},s=t.st.image,l=n.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),(c=i.img[0]).naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return t._parseMarkup(n,{title:C(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(w&&clearInterval(w),i.loadError?(n.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),t.updateStatus("ready")),n):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),t.findImageSize(i)),n)}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,n=".zoom";if(i.enabled&&t.supportsTransition){var o,a,r=i.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=n,t.css(o),t},l=function(){t.content.css("visibility","visible")};d("BuildControls"+n,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(a=s(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){a.remove(),e=a=null,h("ZoomAnimationEnded")},16)},r)},16)}}),d("BeforeClose"+n,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=s(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),d("Close"+n,function(){t._allowZoom()&&(l(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(i){var n,o=(n=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(n.css("padding-top"),10),r=parseInt(n.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:n.width(),height:(l?n.innerHeight():n[0].offsetHeight)-r-a};return void 0===k&&(k=void 0!==document.createElement("p").style.MozTransform),k?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var j=function(e){if(t.currTemplate.iframe){var i=t.currTemplate.iframe.find("iframe");i.length&&(e||(i[0].src="//about:blank"),t.isIE8&&i.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),d("BeforeChange",function(e,t,i){t!==i&&("iframe"===t?j():"iframe"===i&&j(!0))}),d("Close.iframe",function(){j()})},getIframe:function(i,n){var o=i.src,a=t.st.iframe;e.each(a.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(n,r,i),t.updateStatus("ready"),n}}});var G=function(e){var i=t.items.length;return e>i-1?e-i:e<0?i+e:e},T=function(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!i||!i.enabled)return!1;a+=" mfp-gallery",d("Open"+o,function(){i.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),n.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),d("UpdateStatus"+o,function(e,i){i.text&&(i.text=T(i.text,t.currItem.index,t.items.length))}),d("MarkupParse"+o,function(e,n,o,a){var r=t.items.length;o.counter=r>1?T(i.tCounter,a.index,r):""}),d("BuildControls"+o,function(){if(t.items.length>1&&i.arrows&&!t.arrowLeft){var n=i.arrowMarkup,o=t.arrowLeft=e(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),a=t.arrowRight=e(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");o.click(function(){t.prev()}),a.click(function(){t.next()}),t.container.append(o.add(a))}}),d("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),d("Close"+o,function(){n.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=G(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=G(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,i=t.st.gallery.preload,n=Math.min(i[0],t.items.length),o=Math.min(i[1],t.items.length);for(e=1;e<=(t.direction?o:n);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?n:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(i){if(i=G(i),!t.items[i].preloaded){var n=t.items[i];n.parsed||(n=t.parseEl(i)),h("LazyLoad",n),"image"===n.type&&(n.img=e('<img class="mfp-img" />').on("load.mfploader",function(){n.hasSize=!0}).on("error.mfploader",function(){n.hasSize=!0,n.loadError=!0,h("LazyLoadError",n)}).attr("src",n.src)),n.preloaded=!0}}}}),e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;(i=isNaN(i)?i():i)>1&&(d("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),d("ElementParse.retina",function(t,n){n.src=e.replaceSrc(n,i)}))}}}}),p()})?n.apply(t,o):n)||(e.exports=a)},49:function(e,t){!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),i=t.length;--i>=0&&t.item(i)!==this;);return i>-1}),e.addDynamicEventListener=function(e,t,i,n,o){e.addEventListener(t,function(e,t){return function(i){i.target&&i.target.matches(e)&&t.apply(this,arguments)}}(i,n),o)}}(window)},6:function(e,t,i){"use strict";i.r(t),i.d(t,"GiveModal",function(){return n}),i.d(t,"GiveErrorAlert",function(){return o}),i.d(t,"GiveWarningAlert",function(){return a}),i.d(t,"GiveNoticeAlert",function(){return r}),i.d(t,"GiveSuccessAlert",function(){return s}),i.d(t,"GiveConfirmModal",function(){return l}),i.d(t,"GiveFormModal",function(){return c});i(48),i(49);class n{constructor(e){if(n===this.constructor)throw new Error("Abstract classes can't be instantiated.");this.config=Object.assign({type:"",triggerSelector:"",externalPlugin:"magnificPopup",classes:{modalWrapper:""},modalContent:{}},e),this.config.mainClass=`${this.config.mainClass?this.config.mainClass:""} modal-fade-slide`.trim()}init(){this.setupTemplate(),this.popupConfig(),this.__setupClickEvent()}getTemplate(){let e='<div class="give-hidden"></div>';return this.config.type.length&&(e=`<div class="give-modal give-modal--zoom ${this.config.classes.modalWrapper?`${this.config.classes.modalWrapper}`.trim():""}">\n\n\t\t\t\t<div class="give-modal__body">\n\t\t\t\t\t${this.config.modalContent.title?`<h2 class="give-modal__title">${this.config.modalContent.title}</h2>`:""}\n\t\t\t\t\t${this.config.modalContent.desc?`<p class="give-modal__description">${this.config.modalContent.desc}</p>`:""}\n\t\t\t\t</div>\n\t\n\t\t\t\t<div class="give-modal__controls">\n\n\t\t\t\t\t${"form"===this.config.type?'<div class="spinner"></div>':""}\n\t\t\t\t\t${"form"===this.config.type?`<a class="give-modal--additional-link" href="${this.config.modalContent.link}">${this.config.modalContent.link_text}</a>`:""}\n\n\t\t\t\t\t<button class="give-button give-button--secondary give-popup-close-button">\n\t\t\t\t\t\t${this.config.modalContent.cancelBtnTitle?this.config.modalContent.cancelBtnTitle:"confirm"===this.config.type?Give.fn.getGlobalVar("cancel"):Give.fn.getGlobalVar("close")}\n\t\t\t\t\t</button>\n\n\t\t\t\t\t${"confirm"!==this.config.type&&"form"!==this.config.type?"":`<button class="give-button give-button--primary give-popup-${this.config.type}-button">\n\n\t\t\t\t\t\t${this.config.modalContent.confirmBtnTitle?this.config.modalContent.confirmBtnTitle:Give.fn.getGlobalVar("confirm")}\n\t\t\t\t\t</button>`}\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t</div>`),e}setupTemplate(){this.config.template=this.getTemplate()}__setupClickEvent(){this.config.triggerSelector.length&&jQuery(this.config.triggerSelector).magnificPopup(this.config)}popupConfig(){"magnificPopup"===this.config.externalPlugin&&(this.config.items=this.config.items||{src:this.config.template,type:"inline"},this.config.removalDelay=300,this.config.fixedContentPos=!0,this.config.fixedBgPos=!0,this.config.alignTop=!0,this.config.showCloseBtn=!1,this.config.closeOnBgClick=!1,this.config.enableEscapeKey=!0,this.config.focus=".give-popup-close-button")}static __closePopup(e){e.preventDefault(),jQuery.magnificPopup.instance.close()}render(){switch(this.config.externalPlugin){case"magnificPopup":this.config.triggerSelector||jQuery.magnificPopup.open(this.config)}return this}}class o extends n{constructor(e){e.type="alert",super(e),this.config.classes.modalWrapper="give-modal--error",this.init()}}class a extends n{constructor(e){e.type="alert",super(e),this.config.classes.modalWrapper="give-modal--warning",this.init()}}class r extends n{constructor(e){e.type="alert",super(e),this.config.classes.modalWrapper="give-modal--notice",this.init()}}class s extends n{constructor(e){e.type="alert",super(e),this.config.classes.modalWrapper="give-modal--success",this.init()}}class l extends n{constructor(e){e.type="confirm",super(e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(this.config.classes.modalWrapper=e.modalWrapper),this.init()}static __confirmPopup(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&(jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el}),jQuery.magnificPopup.close())}}class c extends n{constructor(e){e.type="form",super(e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(this.config.classes.modalWrapper=e.modalWrapper),this.init()}static __submitPopup(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el})}}window.addDynamicEventListener(document,"click",".give-popup-close-button",n.__closePopup,{}),window.addDynamicEventListener(document,"click",".give-popup-confirm-button",l.__confirmPopup,{}),window.addDynamicEventListener(document,"click",".give-popup-form-button",c.__submitPopup,{})},66:function(e,t,i){(function(t){e.exports=t.accounting=i(67)}).call(this,i(40))},67:function(e,t,i){
|
70 |
/*!
|
71 |
* accounting.js v0.4.1
|
72 |
* Copyright 2014 Open Exchange Rates
|
@@ -77,4 +69,4 @@ var i,n;i=jQuery,n=function(){i(".widget-liquid-right").on("change",".give_forms
|
|
77 |
* Full details and documentation:
|
78 |
* http://openexchangerates.github.io/accounting.js/
|
79 |
*/
|
80 |
-
!function(i,n){var o={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},a=Array.prototype.map,r=Array.isArray,s=Object.prototype.toString;function l(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function c(e){return r?r(e):"[object Array]"===s.call(e)}function d(e){return e&&"[object Object]"===s.call(e)}function u(e,t){var i;for(i in e=e||{},t=t||{})t.hasOwnProperty(i)&&null==e[i]&&(e[i]=t[i]);return e}function h(e,t,i){var n,o,r=[];if(!e)return r;if(a&&e.map===a)return e.map(t,i);for(n=0,o=e.length;n<o;n++)r[n]=t.call(i,e[n],n,e);return r}function f(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function p(e){var t=o.settings.currency.format;return"function"==typeof e&&(e=e()),l(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:l(t)?o.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var g=o.unformat=o.parse=function(e,t){if(c(e))return h(e,function(e){return g(e,t)});if("number"==typeof(e=e||0))return e;t=t||o.settings.number.decimal;var i=new RegExp("[^0-9-"+t+"]",["g"]),n=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(i,"").replace(t,"."));return isNaN(n)?0:n},m=o.toFixed=function(e,t){t=f(t,o.settings.number.precision);var i=Math.pow(10,t);return(Math.round(o.unformat(e)*i)/i).toFixed(t)},v=o.formatNumber=o.format=function(e,t,i,n){if(c(e))return h(e,function(e){return v(e,t,i,n)});e=g(e);var a=u(d(t)?t:{precision:t,thousand:i,decimal:n},o.settings.number),r=f(a.precision),s=e<0?"-":"",l=parseInt(m(Math.abs(e||0),r),10)+"",p=l.length>3?l.length%3:0;return s+(p?l.substr(0,p)+a.thousand:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+a.thousand)+(r?a.decimal+m(Math.abs(e),r).split(".")[1]:"")},_=o.formatMoney=function(e,t,i,n,a,r){if(c(e))return h(e,function(e){return _(e,t,i,n,a,r)});e=g(e);var s=u(d(t)?t:{symbol:t,precision:i,thousand:n,decimal:a,format:r},o.settings.currency),l=p(s.format);return(e>0?l.pos:e<0?l.neg:l.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),f(s.precision),s.thousand,s.decimal))};o.formatColumn=function(e,t,i,n,a,r){if(!e)return[];var s=u(d(t)?t:{symbol:t,precision:i,thousand:n,decimal:a,format:r},o.settings.currency),m=p(s.format),_=m.pos.indexOf("%s")<m.pos.indexOf("%v"),b=0,y=h(e,function(e,t){if(c(e))return o.formatColumn(e,s);var i=((e=g(e))>0?m.pos:e<0?m.neg:m.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),f(s.precision),s.thousand,s.decimal));return i.length>b&&(b=i.length),i});return h(y,function(e,t){return l(e)&&e.length<b?_?e.replace(s.symbol,s.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e})},e.exports&&(t=e.exports=o),t.accounting=o}()},68:function(e,t){jQuery.fn.giveHintCss=function(e,t){return this.each(function(){var i=jQuery(this);t=jQuery.extend({label:""},t);var n=i.next("span.give-hint-tooltip-js");if(!n.length){var o=t.label.length?t.label:i.data("hint-aria-label");if(!o.length)return;i.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+o+'"></span>'),(n=i.next()).css({top:-i.outerHeight(),left:-i.outerWidth()/2})}"show"===e?n.addClass("hint--always"):"hide"===e&&n.removeClass("hint--always")})},jQuery(document).ready(function(e){var t=e("[data-tooltip]");function i(t){if(!t.is('[class*="hint"]')){var i=t.attr("class"),n=[],o=t.data("tooltip").split(" ").length;i&&(i=i.split(" "),(n=e.grep(i,function(e){return-1!==e.indexOf("give-icon")})).length&&(n=n.join(" "),t.removeClass(n),t.append('<i class="'+n+'"></i>'))),t.addClass("hint--top"),15<o?t.addClass("hint--large"):7<o&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each(function(t,n){i(n=n instanceof jQuery?n:e(n))}),e("body").on("hover","[data-tooltip]",function(){i(e(this))})})},69:function(e,t,i){e.exports=i(70)},70:function(e,t,i){var n=i(71),o=i(72),a=/^[0-9a-f]{32}$/;function r(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function s(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(a)?e:n(e)}function l(e){var t=o.stringify(function(e){var t={},i={protocol:1,format:1};for(var n in e)i[n]||(t[n]=e[n]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,i){var n="//www.gravatar.com/avatar/";t&&t.cdn?(n=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(i=r(t)),void 0!==i&&(n=i?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var o=l(t);return n+s(e)+o},profile_url:function(e,t,i){var n=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)o=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(i=r(t));var o=i?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var a=l(t);return o+s(e)+"."+n+a}}},71:function(e,t,i){var n;!function(o){"use strict";function a(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function r(e,t,i,n,o,r){return a((s=a(a(t,e),a(n,r)))<<(l=o)|s>>>32-l,i);var s,l}function s(e,t,i,n,o,a,s){return r(t&i|~t&n,e,t,o,a,s)}function l(e,t,i,n,o,a,s){return r(t&n|i&~n,e,t,o,a,s)}function c(e,t,i,n,o,a,s){return r(t^i^n,e,t,o,a,s)}function d(e,t,i,n,o,a,s){return r(i^(t|~n),e,t,o,a,s)}function u(e,t){var i,n,o,r,u;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var h=1732584193,f=-271733879,p=-1732584194,g=271733878;for(i=0;i<e.length;i+=16)n=h,o=f,r=p,u=g,h=s(h,f,p,g,e[i],7,-680876936),g=s(g,h,f,p,e[i+1],12,-389564586),p=s(p,g,h,f,e[i+2],17,606105819),f=s(f,p,g,h,e[i+3],22,-1044525330),h=s(h,f,p,g,e[i+4],7,-176418897),g=s(g,h,f,p,e[i+5],12,1200080426),p=s(p,g,h,f,e[i+6],17,-1473231341),f=s(f,p,g,h,e[i+7],22,-45705983),h=s(h,f,p,g,e[i+8],7,1770035416),g=s(g,h,f,p,e[i+9],12,-1958414417),p=s(p,g,h,f,e[i+10],17,-42063),f=s(f,p,g,h,e[i+11],22,-1990404162),h=s(h,f,p,g,e[i+12],7,1804603682),g=s(g,h,f,p,e[i+13],12,-40341101),p=s(p,g,h,f,e[i+14],17,-1502002290),h=l(h,f=s(f,p,g,h,e[i+15],22,1236535329),p,g,e[i+1],5,-165796510),g=l(g,h,f,p,e[i+6],9,-1069501632),p=l(p,g,h,f,e[i+11],14,643717713),f=l(f,p,g,h,e[i],20,-373897302),h=l(h,f,p,g,e[i+5],5,-701558691),g=l(g,h,f,p,e[i+10],9,38016083),p=l(p,g,h,f,e[i+15],14,-660478335),f=l(f,p,g,h,e[i+4],20,-405537848),h=l(h,f,p,g,e[i+9],5,568446438),g=l(g,h,f,p,e[i+14],9,-1019803690),p=l(p,g,h,f,e[i+3],14,-187363961),f=l(f,p,g,h,e[i+8],20,1163531501),h=l(h,f,p,g,e[i+13],5,-1444681467),g=l(g,h,f,p,e[i+2],9,-51403784),p=l(p,g,h,f,e[i+7],14,1735328473),h=c(h,f=l(f,p,g,h,e[i+12],20,-1926607734),p,g,e[i+5],4,-378558),g=c(g,h,f,p,e[i+8],11,-2022574463),p=c(p,g,h,f,e[i+11],16,1839030562),f=c(f,p,g,h,e[i+14],23,-35309556),h=c(h,f,p,g,e[i+1],4,-1530992060),g=c(g,h,f,p,e[i+4],11,1272893353),p=c(p,g,h,f,e[i+7],16,-155497632),f=c(f,p,g,h,e[i+10],23,-1094730640),h=c(h,f,p,g,e[i+13],4,681279174),g=c(g,h,f,p,e[i],11,-358537222),p=c(p,g,h,f,e[i+3],16,-722521979),f=c(f,p,g,h,e[i+6],23,76029189),h=c(h,f,p,g,e[i+9],4,-640364487),g=c(g,h,f,p,e[i+12],11,-421815835),p=c(p,g,h,f,e[i+15],16,530742520),h=d(h,f=c(f,p,g,h,e[i+2],23,-995338651),p,g,e[i],6,-198630844),g=d(g,h,f,p,e[i+7],10,1126891415),p=d(p,g,h,f,e[i+14],15,-1416354905),f=d(f,p,g,h,e[i+5],21,-57434055),h=d(h,f,p,g,e[i+12],6,1700485571),g=d(g,h,f,p,e[i+3],10,-1894986606),p=d(p,g,h,f,e[i+10],15,-1051523),f=d(f,p,g,h,e[i+1],21,-2054922799),h=d(h,f,p,g,e[i+8],6,1873313359),g=d(g,h,f,p,e[i+15],10,-30611744),p=d(p,g,h,f,e[i+6],15,-1560198380),f=d(f,p,g,h,e[i+13],21,1309151649),h=d(h,f,p,g,e[i+4],6,-145523070),g=d(g,h,f,p,e[i+11],10,-1120210379),p=d(p,g,h,f,e[i+2],15,718787259),f=d(f,p,g,h,e[i+9],21,-343485551),h=a(h,n),f=a(f,o),p=a(p,r),g=a(g,u);return[h,f,p,g]}function h(e){var t,i="",n=32*e.length;for(t=0;t<n;t+=8)i+=String.fromCharCode(e[t>>5]>>>t%32&255);return i}function f(e){var t,i=[];for(i[(e.length>>2)-1]=void 0,t=0;t<i.length;t+=1)i[t]=0;var n=8*e.length;for(t=0;t<n;t+=8)i[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return i}function p(e){var t,i,n="";for(i=0;i<e.length;i+=1)t=e.charCodeAt(i),n+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return n}function g(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return h(u(f(e),8*e.length))}(g(e))}function v(e,t){return function(e,t){var i,n,o=f(e),a=[],r=[];for(a[15]=r[15]=void 0,o.length>16&&(o=u(o,8*e.length)),i=0;i<16;i+=1)a[i]=909522486^o[i],r[i]=1549556828^o[i];return n=u(a.concat(f(t)),512+8*t.length),h(u(r.concat(n),640))}(g(e),g(t))}function _(e,t,i){return t?i?v(t,e):p(v(t,e)):i?m(e):p(m(e))}void 0===(n=function(){return _}.call(t,i,t,e))||(e.exports=n)}()},72:function(e,t,i){"use strict";t.decode=t.parse=i(73),t.encode=t.stringify=i(74)},73:function(e,t,i){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,i,a){t=t||"&",i=i||"=";var r={};if("string"!=typeof e||0===e.length)return r;var s=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var d=0;d<c;++d){var u,h,f,p,g=e[d].replace(s,"%20"),m=g.indexOf(i);m>=0?(u=g.substr(0,m),h=g.substr(m+1)):(u=g,h=""),f=decodeURIComponent(u),p=decodeURIComponent(h),n(r,f)?o(r[f])?r[f].push(p):r[f]=[r[f],p]:r[f]=p}return r};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},74:function(e,t,i){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,i,s){return t=t||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?a(r(e),function(r){var s=encodeURIComponent(n(r))+i;return o(e[r])?a(e[r],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[r]))}).join(t):s?encodeURIComponent(n(s))+i+encodeURIComponent(n(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var i=[],n=0;n<e.length;n++)i.push(t(e[n],n));return i}var r=Object.keys||function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t}}});
|
1 |
+
!function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=152)}({10:function(e,t){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(t){return"function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?e.exports=n=function(e){return i(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)},n(t)}e.exports=n},11:function(e,t,i){var n=i(10),o=i(29);e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?o(e):t}},12:function(e,t){function i(t){return e.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(t)}e.exports=i},13:function(e,t,i){var n=i(58);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}},141:function(e,t,i){
|
2 |
/*!
|
3 |
* clipboard.js v2.0.4
|
4 |
* https://zenorocha.github.io/clipboard.js
|
5 |
*
|
6 |
* Licensed MIT © Zeno Rocha
|
7 |
*/
|
8 |
+
var n;n=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=l(i(1)),r=l(i(3)),s=l(i(4));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.resolveOptions(i),n.listenClick(e),n}return function(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)}(t,r.default),o(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===n(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,s.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return d("action",e)}},{key:"defaultTarget",value:function(e){var t=d("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return d("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,i=!!document.queryCommandSupported;return t.forEach(function(e){i=i&&!!document.queryCommandSupported(e)}),i}}]),t}();function d(e,t){var i="data-clipboard-"+e;if(t.hasAttribute(i))return t.getAttribute(i)}e.exports=c},function(e,t,i){"use strict";var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=i(2),s=(n=r)&&n.__esModule?n:{default:n};var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return a(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=i+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,s.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,s.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":o(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=l},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var i=e.hasAttribute("readonly");i||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),i||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),o=document.createRange();o.selectNodeContents(e),n.removeAllRanges(),n.addRange(o),t=n.toString()}return t}},function(e,t){function i(){}i.prototype={on:function(e,t,i){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:i}),this},once:function(e,t,i){var n=this;function o(){n.off(e,o),t.apply(i,arguments)}return o._=t,this.on(e,o,i)},emit:function(e){for(var t=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=i.length;n<o;n++)i[n].fn.apply(i[n].ctx,t);return this},off:function(e,t){var i=this.e||(this.e={}),n=i[e],o=[];if(n&&t)for(var a=0,r=n.length;a<r;a++)n[a].fn!==t&&n[a].fn._!==t&&o.push(n[a]);return o.length?i[e]=o:delete i[e],this}},e.exports=i},function(e,t,i){var n=i(5),o=i(6);e.exports=function(e,t,i){if(!e&&!t&&!i)throw new Error("Missing required arguments");if(!n.string(t))throw new TypeError("Second argument must be a String");if(!n.fn(i))throw new TypeError("Third argument must be a Function");if(n.node(e))return function(e,t,i){return e.addEventListener(t,i),{destroy:function(){e.removeEventListener(t,i)}}}(e,t,i);if(n.nodeList(e))return function(e,t,i){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,i)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,i)})}}}(e,t,i);if(n.string(e))return function(e,t,i){return o(document.body,e,t,i)}(e,t,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var i=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===i||"[object HTMLCollection]"===i)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,i){var n=i(7);function o(e,t,i,o,a){var r=function(e,t,i,o){return function(i){i.delegateTarget=n(i.target,t),i.delegateTarget&&o.call(e,i)}}.apply(this,arguments);return e.addEventListener(i,r,a),{destroy:function(){e.removeEventListener(i,r,a)}}}e.exports=function(e,t,i,n,a){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof i?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return o(e,t,i,n,a)}))}},function(e,t){var i=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&e.nodeType!==i;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}}])},e.exports=n()},152:function(e,t,i){i(153),e.exports=i(340)},153:function(e,t,i){},154:function(e,t){(function(){var e,t,i,n,o=function(e,t){return function(){return e.apply(t,arguments)}},a={}.hasOwnProperty;(n=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,i,n,o,a,r;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:e.label,title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),r=[],i=0,n=(a=e.childNodes).length;i<n;i++)o=a[i],r.push(this.add_option(o,t,e.disabled));return r},e.prototype.add_option=function(e,t,i){if("OPTION"===e.nodeName.toUpperCase())return""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:!0===i?i:e.disabled,group_array_index:t,group_label:null!=t?this.parsed[t].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},e}()).select_to_array=function(e){var t,i,o,a,r;for(a=new n,i=0,o=(r=e.childNodes).length;i<o;i++)t=r[i],a.add_node(t);return a.parsed},t=function(){function e(t,i){this.form_field=t,this.options=null!=i?i:{},this.label_click_handler=o(this.label_click_handler,this),e.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return e.prototype.set_default_values=function(){var e;return this.click_test_action=(e=this,function(t){return e.test_active_click(t)}),this.activate_action=function(e){return function(t){return e.activate_field(t)}}(this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},e.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||e.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||e.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||e.default_no_result_text},e.prototype.choice_label=function(e){return this.include_group_label_in_selected&&null!=e.group_label?"<b class='group-name'>"+this.escape_html(e.group_label)+"</b>"+e.html:e.html},e.prototype.mouse_enter=function(){return this.mouse_on_container=!0},e.prototype.mouse_leave=function(){return this.mouse_on_container=!1},e.prototype.input_focus=function(e){if(this.is_multiple){if(!this.active_field)return setTimeout((t=this,function(){return t.container_mousedown()}),50)}else if(!this.active_field)return this.activate_field();var t},e.prototype.input_blur=function(e){if(!this.mouse_on_container)return this.active_field=!1,setTimeout((t=this,function(){return t.blur_test()}),100);var t},e.prototype.label_click_handler=function(e){return this.is_multiple?this.container_mousedown(e):this.activate_field()},e.prototype.results_option_build=function(e){var t,i,n,o,a,r,s;for(t="",s=0,o=0,a=(r=this.results_data).length;o<a&&(n="",""!==(n=(i=r[o]).group?this.result_add_group(i):this.result_add_option(i))&&(s++,t+=n),(null!=e?e.first:void 0)&&(i.selected&&this.is_multiple?this.choice_build(i):i.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(i))),!(s>=this.max_shown_results));o++);return t},e.prototype.result_add_option=function(e){var t,i;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),(i=document.createElement("li")).className=t.join(" "),e.style&&(i.style.cssText=e.style),i.setAttribute("data-option-array-index",e.array_index),i.innerHTML=e.highlighted_html||e.html,e.title&&(i.title=e.title),this.outerHTML(i)):""},e.prototype.result_add_group=function(e){var t,i;return(e.search_match||e.group_match)&&e.active_options>0?((t=[]).push("group-result"),e.classes&&t.push(e.classes),(i=document.createElement("li")).className=t.join(" "),i.innerHTML=e.highlighted_html||this.escape_html(e.label),e.title&&(i.title=e.title),this.outerHTML(i)):""},e.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},e.prototype.reset_single_select_options=function(){var e,t,i,n,o;for(o=[],e=0,t=(i=this.results_data).length;e<t;e++)(n=i[e]).selected?o.push(n.selected=!1):o.push(void 0);return o},e.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},e.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},e.prototype.winnow_results=function(e){var t,i,n,o,a,r,s,l,c,d,u,h,f,p,g;for(this.no_results_clear(),d=0,t=(s=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),c=this.get_search_regex(t),n=0,o=(l=this.results_data).length;n<o;n++)(a=l[n]).search_match=!1,u=null,h=null,a.highlighted_html="",this.include_option_in_results(a)&&(a.group&&(a.group_match=!1,a.active_options=0),null!=a.group_array_index&&this.results_data[a.group_array_index]&&(0===(u=this.results_data[a.group_array_index]).active_options&&u.search_match&&(d+=1),u.active_options+=1),g=a.group?a.label:a.text,a.group&&!this.group_search||(h=this.search_string_match(g,c),a.search_match=null!=h,a.search_match&&!a.group&&(d+=1),a.search_match?(s.length&&(f=h.index,r=g.slice(0,f),i=g.slice(f,f+s.length),p=g.slice(f+s.length),a.highlighted_html=this.escape_html(r)+"<em>"+this.escape_html(i)+"</em>"+this.escape_html(p)),null!=u&&(u.group_match=!0)):null!=a.group_array_index&&this.results_data[a.group_array_index].search_match&&(a.search_match=!0)));return this.result_clear_highlight(),d<1&&s.length?(this.update_results_content(""),this.no_results(s)):(this.update_results_content(this.results_option_build()),(null!=e?e.skip_highlight:void 0)?void 0:this.winnow_results_set_highlight())},e.prototype.get_search_regex=function(e){var t,i;return i=this.search_contains?e:"(^|\\s|\\b)"+e+"[^\\s]*",this.enable_split_word_search||this.search_contains||(i="^"+i),t=this.case_sensitive_search?"":"i",new RegExp(i,t)},e.prototype.search_string_match=function(e,t){var i;return i=t.exec(e),!this.search_contains&&(null!=i?i[1]:void 0)&&(i.index+=1),i},e.prototype.choices_count=function(){var e,t,i;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,e=0,t=(i=this.form_field.options).length;e<t;e++)i[e].selected&&(this.selected_option_count+=1);return this.selected_option_count},e.prototype.choices_click=function(e){if(e.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},e.prototype.keydown_checker=function(e){var t,i;switch(i=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),8!==i&&this.pending_backstroke&&this.clear_backstroke(),i){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&e.preventDefault();break;case 32:this.disable_search&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},e.prototype.keyup_checker=function(e){var t,i;switch(i=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),i){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},e.prototype.clipboard_event_checker=function(e){var t;if(!this.is_disabled)return setTimeout((t=this,function(){return t.results_search()}),50)},e.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},e.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected)&&(!(!this.display_disabled_options&&e.disabled)&&!e.empty)},e.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},e.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},e.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},e.prototype.outerHTML=function(e){var t;return e.outerHTML?e.outerHTML:((t=document.createElement("div")).appendChild(e),t.innerHTML)},e.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n <span>'+this.default_text+'</span>\n <div><b></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n <input class="chosen-search-input" type="text" autocomplete="off" />\n </div>\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_no_results_html=function(e){return'<li class="no-results">\n '+this.results_none_found+" <span>"+this.escape_html(e)+"</span>\n</li>"},e.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},e.default_multiple_text="Select Some Options",e.default_single_text="Select an Option",e.default_no_result_text="No results match",e}(),(e=jQuery).fn.extend({chosen:function(n){return t.browser_is_supported()?this.each(function(t){var o,a;a=(o=e(this)).data("chosen"),"destroy"!==n?a instanceof i||o.data("chosen",new i(this,n)):a instanceof i&&a.destroy()}):this}}),i=function(i){function o(){return o.__super__.constructor.apply(this,arguments)}return function(e,t){for(var i in t)a.call(t,i)&&(e[i]=t[i]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(o,t),o.prototype.setup=function(){return this.form_field_jq=e(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},o.prototype.set_up_html=function(){var t,i;return(t=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&t.push(this.form_field.className),this.is_rtl&&t.push("chosen-rtl"),i={class:t.join(" "),title:this.form_field.title},this.form_field.id.length&&(i.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=e("<div />",i),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},o.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},o.prototype.register_observers=function(){var e;return this.container.on("touchstart.chosen",(e=this,function(t){e.container_mousedown(t)})),this.container.on("touchend.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mousedown.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.container.on("mouseup.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mouseenter.chosen",function(e){return function(t){e.mouse_enter(t)}}(this)),this.container.on("mouseleave.chosen",function(e){return function(t){e.mouse_leave(t)}}(this)),this.search_results.on("mouseup.chosen",function(e){return function(t){e.search_results_mouseup(t)}}(this)),this.search_results.on("mouseover.chosen",function(e){return function(t){e.search_results_mouseover(t)}}(this)),this.search_results.on("mouseout.chosen",function(e){return function(t){e.search_results_mouseout(t)}}(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",function(e){return function(t){e.search_results_mousewheel(t)}}(this)),this.search_results.on("touchstart.chosen",function(e){return function(t){e.search_results_touchstart(t)}}(this)),this.search_results.on("touchmove.chosen",function(e){return function(t){e.search_results_touchmove(t)}}(this)),this.search_results.on("touchend.chosen",function(e){return function(t){e.search_results_touchend(t)}}(this)),this.form_field_jq.on("chosen:updated.chosen",function(e){return function(t){e.results_update_field(t)}}(this)),this.form_field_jq.on("chosen:activate.chosen",function(e){return function(t){e.activate_field(t)}}(this)),this.form_field_jq.on("chosen:open.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.form_field_jq.on("chosen:close.chosen",function(e){return function(t){e.close_field(t)}}(this)),this.search_field.on("blur.chosen",function(e){return function(t){e.input_blur(t)}}(this)),this.search_field.on("keyup.chosen",function(e){return function(t){e.keyup_checker(t)}}(this)),this.search_field.on("keydown.chosen",function(e){return function(t){e.keydown_checker(t)}}(this)),this.search_field.on("focus.chosen",function(e){return function(t){e.input_focus(t)}}(this)),this.search_field.on("cut.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.search_field.on("paste.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.is_multiple?this.search_choices.on("click.chosen",function(e){return function(t){e.choices_click(t)}}(this)):this.container.on("click.chosen",function(e){e.preventDefault()})},o.prototype.destroy=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},o.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},o.prototype.container_mousedown=function(t){var i;if(!this.is_disabled)return!t||"mousedown"!==(i=t.type)&&"touchstart"!==i||this.results_showing||t.preventDefault(),null!=t&&e(t.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!t||e(t.target)[0]!==this.selected_item[0]&&!e(t.target).parents("a.chosen-single").length||(t.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),e(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},o.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},o.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},o.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},o.prototype.close_field=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},o.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},o.prototype.test_active_click=function(t){var i;return(i=e(t.target).closest(".chosen-container")).length&&this.container[0]===i[0]?this.active_field=!0:this.close_field()},o.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=n.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},o.prototype.result_do_highlight=function(e){var t,i,n,o,a;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),o=(n=parseInt(this.search_results.css("maxHeight"),10))+(a=this.search_results.scrollTop()),(t=(i=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight())>=o)return this.search_results.scrollTop(t-n>0?t-n:0);if(i<a)return this.search_results.scrollTop(i)}},o.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},o.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},o.prototype.update_results_content=function(e){return this.search_results.html(e)},o.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},o.prototype.set_tab_index=function(e){var t;if(this.form_field.tabIndex)return t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t},o.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=e("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.on("click.chosen",this.label_click_handler)},o.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},o.prototype.search_results_mouseup=function(t){var i;if((i=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first()).length)return this.result_highlight=i,this.result_select(t),this.search_field.focus()},o.prototype.search_results_mouseover=function(t){var i;if(i=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first())return this.result_do_highlight(i)},o.prototype.search_results_mouseout=function(t){if(e(t.target).hasClass("active-result")||e(t.target).parents(".active-result").first())return this.result_clear_highlight()},o.prototype.choice_build=function(t){var i,n,o;return i=e("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(t)+"</span>"),t.disabled?i.addClass("search-choice-disabled"):((n=e("<a />",{class:"search-choice-close","data-option-array-index":t.array_index})).on("click.chosen",(o=this,function(e){return o.choice_destroy_link_click(e)})),i.append(n)),this.search_container.before(i)},o.prototype.choice_destroy_link_click=function(t){if(t.preventDefault(),t.stopPropagation(),!this.is_disabled)return this.choice_destroy(e(t.target))},o.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},o.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},o.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},o.prototype.result_select=function(e){var t,i;if(this.result_highlight)return t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):this.reset_single_select_options(),t.addClass("result-selected"),(i=this.results_data[t[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[i.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(i):this.single_set_selected_text(this.choice_label(i)),this.is_multiple&&(!this.hide_results_on_select||e.metaKey||e.ctrlKey)?e.metaKey||e.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[i.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())},o.prototype.single_set_selected_text=function(e){return null==e&&(e=this.default_text),e===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(e)},o.prototype.result_deselect=function(e){var t;return t=this.results_data[e],!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)},o.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},o.prototype.get_search_field_value=function(){return this.search_field.val()},o.prototype.get_search_text=function(){return e.trim(this.get_search_field_value())},o.prototype.escape_html=function(t){return e("<div/>").text(t).html()},o.prototype.winnow_results_set_highlight=function(){var e,t;if(null!=(e=(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},o.prototype.no_results=function(e){var t;return t=this.get_no_results_html(e),this.search_results.append(t),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},o.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},o.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},o.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},o.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last()).length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},o.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},o.prototype.search_field_scale=function(){var t,i,n,o,a,r,s;if(this.is_multiple){for(a={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},i=0,n=(r=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;i<n;i++)a[o=r[i]]=this.search_field.css(o);return(t=e("<div />").css(a)).text(this.get_search_field_value()),e("body").append(t),s=t.width()+25,t.remove(),this.container.is(":visible")&&(s=Math.min(this.container.outerWidth()-10,s)),this.search_field.width(s)}},o.prototype.trigger_form_field_change=function(e){return this.form_field_jq.trigger("input",e),this.form_field_jq.trigger("change",e)},o}()}).call(this)},155:function(e,t){!function(e){e.color={},e.color.make=function(t,i,n,o){var a={};return a.r=t||0,a.g=i||0,a.b=n||0,a.a=null!=o?o:1,a.add=function(e,t){for(var i=0;i<e.length;++i)a[e.charAt(i)]+=t;return a.normalize()},a.scale=function(e,t){for(var i=0;i<e.length;++i)a[e.charAt(i)]*=t;return a.normalize()},a.toString=function(){return a.a>=1?"rgb("+[a.r,a.g,a.b].join(",")+")":"rgba("+[a.r,a.g,a.b,a.a].join(",")+")"},a.normalize=function(){function e(e,t,i){return t<e?e:t>i?i:t}return a.r=e(0,parseInt(a.r),255),a.g=e(0,parseInt(a.g),255),a.b=e(0,parseInt(a.b),255),a.a=e(0,a.a,1),a},a.clone=function(){return e.color.make(a.r,a.b,a.g,a.a)},a.normalize()},e.color.extract=function(t,i){var n;do{if(""!=(n=t.css(i).toLowerCase())&&"transparent"!=n)break;t=t.parent()}while(t.length&&!e.nodeName(t.get(0),"body"));return"rgba(0, 0, 0, 0)"==n&&(n="transparent"),e.color.parse(n)},e.color.parse=function(i){var n,o=e.color.make;if(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(i))return o(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10));if(n=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(i))return o(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4]));if(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(i))return o(2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3]));if(n=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(i))return o(2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3]),parseFloat(n[4]));if(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(i))return o(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16));if(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(i))return o(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16));var a=e.trim(i).toLowerCase();return"transparent"==a?o(255,255,255,0):o((n=t[a]||[0,0,0])[0],n[1],n[2])};var t={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(e){var t=Object.prototype.hasOwnProperty;function i(t,i){var n=i.children("."+t)[0];if(null==n&&((n=document.createElement("canvas")).className=t,e(n).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(i),!n.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");n=window.G_vmlCanvasManager.initElement(n)}this.element=n;var o=this.context=n.getContext("2d"),a=window.devicePixelRatio||1,r=o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1;this.pixelRatio=a/r,this.resize(i.width(),i.height()),this.textContainer=null,this.text={},this._textCache={}}function n(t,n,o,a){var r=[],s={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},l=null,c=null,d=null,u=null,h=null,f=[],p=[],g={left:0,right:0,top:0,bottom:0},m=0,v=0,_={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},b=this;function y(e,t){t=[b].concat(t);for(var i=0;i<e.length;++i)e[i].apply(this,t)}function x(t){r=function(t){for(var i=[],n=0;n<t.length;++n){var o=e.extend(!0,{},s.series);null!=t[n].data?(o.data=t[n].data,delete t[n].data,e.extend(!0,o,t[n]),t[n].data=o.data):o.data=t[n],i.push(o)}return i}(t),function(){var t,i=r.length,n=-1;for(t=0;t<r.length;++t){var o=r[t].color;null!=o&&(i--,"number"==typeof o&&o>n&&(n=o))}i<=n&&(i=n+1);var a,l=[],c=s.colors,d=c.length,u=0;for(t=0;t<i;t++)a=e.color.parse(c[t%d]||"#666"),t%d==0&&t&&(u=u>=0?u<.5?-u-.2:0:-u),l[t]=a.scale("rgb",1+u);var h,g=0;for(t=0;t<r.length;++t){if(null==(h=r[t]).color?(h.color=l[g].toString(),++g):"number"==typeof h.color&&(h.color=l[h.color].toString()),null==h.lines.show){var m,v=!0;for(m in h)if(h[m]&&h[m].show){v=!1;break}v&&(h.lines.show=!0)}null==h.lines.zero&&(h.lines.zero=!!h.lines.fill),h.xaxis=j(f,w(h,"x")),h.yaxis=j(p,w(h,"y"))}}(),function(){var t,i,n,o,a,s,l,c,d,u,h,f,p=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,m=Number.MAX_VALUE;function v(e,t,i){t<e.datamin&&t!=-m&&(e.datamin=t),i>e.datamax&&i!=m&&(e.datamax=i)}for(e.each(k(),function(e,t){t.datamin=p,t.datamax=g,t.used=!1}),t=0;t<r.length;++t)(a=r[t]).datapoints={points:[]},y(_.processRawData,[a,a.data,a.datapoints]);for(t=0;t<r.length;++t){if(a=r[t],h=a.data,!(f=a.datapoints.format)){if((f=[]).push({x:!0,number:!0,required:!0}),f.push({y:!0,number:!0,required:!0}),a.bars.show||a.lines.show&&a.lines.fill){var b=!!(a.bars.show&&a.bars.zero||a.lines.show&&a.lines.zero);f.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:b}),a.bars.horizontal&&(delete f[f.length-1].y,f[f.length-1].x=!0)}a.datapoints.format=f}if(null==a.datapoints.pointsize){a.datapoints.pointsize=f.length,l=a.datapoints.pointsize,s=a.datapoints.points;var x=a.lines.show&&a.lines.steps;for(a.xaxis.used=a.yaxis.used=!0,i=n=0;i<h.length;++i,n+=l){var w=null==(u=h[i]);if(!w)for(o=0;o<l;++o)c=u[o],(d=f[o])&&(d.number&&null!=c&&(c=+c,isNaN(c)?c=null:c==1/0?c=m:c==-1/0&&(c=-m)),null==c&&(d.required&&(w=!0),null!=d.defaultValue&&(c=d.defaultValue))),s[n+o]=c;if(w)for(o=0;o<l;++o)null!=(c=s[n+o])&&!1!==(d=f[o]).autoscale&&(d.x&&v(a.xaxis,c,c),d.y&&v(a.yaxis,c,c)),s[n+o]=null;else if(x&&n>0&&null!=s[n-l]&&s[n-l]!=s[n]&&s[n-l+1]!=s[n+1]){for(o=0;o<l;++o)s[n+l+o]=s[n+o];s[n+1]=s[n-l+1],n+=l}}}}for(t=0;t<r.length;++t)a=r[t],y(_.processDatapoints,[a,a.datapoints]);for(t=0;t<r.length;++t){a=r[t],s=a.datapoints.points,l=a.datapoints.pointsize,f=a.datapoints.format;var C=p,j=p,S=g,T=g;for(i=0;i<s.length;i+=l)if(null!=s[i])for(o=0;o<l;++o)c=s[i+o],(d=f[o])&&!1!==d.autoscale&&c!=m&&c!=-m&&(d.x&&(c<C&&(C=c),c>S&&(S=c)),d.y&&(c<j&&(j=c),c>T&&(T=c)));if(a.bars.show){var G;switch(a.bars.align){case"left":G=0;break;case"right":G=-a.bars.barWidth;break;default:G=-a.bars.barWidth/2}a.bars.horizontal?(j+=G,T+=G+a.bars.barWidth):(C+=G,S+=G+a.bars.barWidth)}v(a.xaxis,C,S),v(a.yaxis,j,T)}e.each(k(),function(e,t){t.datamin==p&&(t.datamin=null),t.datamax==g&&(t.datamax=null)})}()}function w(e,t){var i=e[t+"axis"];return"object"==typeof i&&(i=i.n),"number"!=typeof i&&(i=1),i}function k(){return e.grep(f.concat(p),function(e){return e})}function C(e){var t,i,n={};for(t=0;t<f.length;++t)(i=f[t])&&i.used&&(n["x"+i.n]=i.c2p(e.left));for(t=0;t<p.length;++t)(i=p[t])&&i.used&&(n["y"+i.n]=i.c2p(e.top));return void 0!==n.x1&&(n.x=n.x1),void 0!==n.y1&&(n.y=n.y1),n}function j(t,i){return t[i-1]||(t[i-1]={n:i,direction:t==f?"x":"y",options:e.extend(!0,{},t==f?s.xaxis:s.yaxis)}),t[i-1]}function S(){Q&&clearTimeout(Q),d.unbind("mousemove",D),d.unbind("mouseleave",N),d.unbind("click",W),y(_.shutdown,[d])}function T(t){var i=t.labelWidth,n=t.labelHeight,o=t.options.position,a="x"===t.direction,r=t.options.tickLength,c=s.grid.axisMargin,d=s.grid.labelMargin,u=!0,h=!0,m=!0,v=!1;e.each(a?f:p,function(e,i){i&&(i.show||i.reserveSpace)&&(i===t?v=!0:i.options.position===o&&(v?h=!1:u=!1),v||(m=!1))}),h&&(c=0),null==r&&(r=m?"full":5),isNaN(+r)||(d+=+r),a?(n+=d,"bottom"==o?(g.bottom+=n+c,t.box={top:l.height-g.bottom,height:n}):(t.box={top:g.top+c,height:n},g.top+=n+c)):(i+=d,"left"==o?(t.box={left:g.left+c,width:i},g.left+=i+c):(g.right+=i+c,t.box={left:l.width-g.right,width:i})),t.position=o,t.tickLength=r,t.box.padding=d,t.innermost=u}function G(){var i,n=k(),o=s.grid.show;for(var a in g){var c=s.grid.margin||0;g[a]="number"==typeof c?c:c[a]||0}for(var a in y(_.processOffset,[g]),g)"object"==typeof s.grid.borderWidth?g[a]+=o?s.grid.borderWidth[a]:0:g[a]+=o?s.grid.borderWidth:0;if(e.each(n,function(e,t){var i=t.options;t.show=null==i.show?t.used:i.show,t.reserveSpace=null==i.reserveSpace?t.show:i.reserveSpace,function(e){var t=e.options,i=+(null!=t.min?t.min:e.datamin),n=+(null!=t.max?t.max:e.datamax),o=n-i;if(0==o){var a=0==n?1:.01;null==t.min&&(i-=a),null!=t.max&&null==t.min||(n+=a)}else{var r=t.autoscaleMargin;null!=r&&(null==t.min&&(i-=o*r)<0&&null!=e.datamin&&e.datamin>=0&&(i=0),null==t.max&&(n+=o*r)>0&&null!=e.datamax&&e.datamax<=0&&(n=0))}e.min=i,e.max=n}(t)}),o){var d=e.grep(n,function(e){return e.show||e.reserveSpace});for(e.each(d,function(t,i){!function(t){var i,n=t.options;i="number"==typeof n.ticks&&n.ticks>0?n.ticks:.3*Math.sqrt("x"==t.direction?l.width:l.height);var o=(t.max-t.min)/i,a=-Math.floor(Math.log(o)/Math.LN10),r=n.tickDecimals;null!=r&&a>r&&(a=r);var s,c=Math.pow(10,-a),d=o/c;d<1.5?s=1:d<3?(s=2,d>2.25&&(null==r||a+1<=r)&&(s=2.5,++a)):s=d<7.5?5:10;s*=c,null!=n.minTickSize&&s<n.minTickSize&&(s=n.minTickSize);if(t.delta=o,t.tickDecimals=Math.max(0,null!=r?r:a),t.tickSize=n.tickSize||s,"time"==n.mode&&!t.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");t.tickGenerator||(t.tickGenerator=function(e){var t,i,n,o=[],a=(i=e.min,(n=e.tickSize)*Math.floor(i/n)),r=0,s=Number.NaN;do{t=s,s=a+r*e.tickSize,o.push(s),++r}while(s<e.max&&s!=t);return o},t.tickFormatter=function(e,t){var i=t.tickDecimals?Math.pow(10,t.tickDecimals):1,n=""+Math.round(e*i)/i;if(null!=t.tickDecimals){var o=n.indexOf("."),a=-1==o?0:n.length-o-1;if(a<t.tickDecimals)return(a?n:n+".")+(""+i).substr(1,t.tickDecimals-a)}return n});e.isFunction(n.tickFormatter)&&(t.tickFormatter=function(e,t){return""+n.tickFormatter(e,t)});if(null!=n.alignTicksWithAxis){var u=("x"==t.direction?f:p)[n.alignTicksWithAxis-1];if(u&&u.used&&u!=t){var h=t.tickGenerator(t);if(h.length>0&&(null==n.min&&(t.min=Math.min(t.min,h[0])),null==n.max&&h.length>1&&(t.max=Math.max(t.max,h[h.length-1]))),t.tickGenerator=function(e){var t,i,n=[];for(i=0;i<u.ticks.length;++i)t=(u.ticks[i].v-u.min)/(u.max-u.min),t=e.min+t*(e.max-e.min),n.push(t);return n},!t.mode&&null==n.tickDecimals){var g=Math.max(0,1-Math.floor(Math.log(t.delta)/Math.LN10)),m=t.tickGenerator(t);m.length>1&&/\..*0$/.test((m[1]-m[0]).toFixed(g))||(t.tickDecimals=g)}}}}(i),function(t){var i,n,o=t.options.ticks,a=[];null==o||"number"==typeof o&&o>0?a=t.tickGenerator(t):o&&(a=e.isFunction(o)?o(t):o);for(t.ticks=[],i=0;i<a.length;++i){var r=null,s=a[i];"object"==typeof s?(n=+s[0],s.length>1&&(r=s[1])):n=+s,null==r&&(r=t.tickFormatter(n,t)),isNaN(n)||t.ticks.push({v:n,label:r})}}(i),function(e,t){e.options.autoscaleMargin&&t.length>0&&(null==e.options.min&&(e.min=Math.min(e.min,t[0].v)),null==e.options.max&&t.length>1&&(e.max=Math.max(e.max,t[t.length-1].v)))}(i,i.ticks),function(e){for(var t=e.options,i=e.ticks||[],n=t.labelWidth||0,o=t.labelHeight||0,a=n||("x"==e.direction?Math.floor(l.width/(i.length||1)):null),r=e.direction+"Axis "+e.direction+e.n+"Axis",s="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+r,c=t.font||"flot-tick-label tickLabel",d=0;d<i.length;++d){var u=i[d];if(u.label){var h=l.getTextInfo(s,u.label,c,null,a);n=Math.max(n,h.width),o=Math.max(o,h.height)}}e.labelWidth=t.labelWidth||n,e.labelHeight=t.labelHeight||o}(i)}),i=d.length-1;i>=0;--i)T(d[i]);!function(){var t,i=s.grid.minBorderMargin;if(null==i)for(i=0,t=0;t<r.length;++t)i=Math.max(i,2*(r[t].points.radius+r[t].points.lineWidth/2));var n={left:i,right:i,top:i,bottom:i};e.each(k(),function(e,t){t.reserveSpace&&t.ticks&&t.ticks.length&&("x"===t.direction?(n.left=Math.max(n.left,t.labelWidth/2),n.right=Math.max(n.right,t.labelWidth/2)):(n.bottom=Math.max(n.bottom,t.labelHeight/2),n.top=Math.max(n.top,t.labelHeight/2)))}),g.left=Math.ceil(Math.max(n.left,g.left)),g.right=Math.ceil(Math.max(n.right,g.right)),g.top=Math.ceil(Math.max(n.top,g.top)),g.bottom=Math.ceil(Math.max(n.bottom,g.bottom))}(),e.each(d,function(e,t){!function(e){"x"==e.direction?(e.box.left=g.left-e.labelWidth/2,e.box.width=l.width-g.left-g.right+e.labelWidth):(e.box.top=g.top-e.labelHeight/2,e.box.height=l.height-g.bottom-g.top+e.labelHeight)}(t)})}m=l.width-g.left-g.right,v=l.height-g.bottom-g.top,e.each(n,function(e,t){!function(e){function t(e){return e}var i,n,o=e.options.transform||t,a=e.options.inverseTransform;"x"==e.direction?(i=e.scale=m/Math.abs(o(e.max)-o(e.min)),n=Math.min(o(e.max),o(e.min))):(i=-(i=e.scale=v/Math.abs(o(e.max)-o(e.min))),n=Math.max(o(e.max),o(e.min))),e.p2c=o==t?function(e){return(e-n)*i}:function(e){return(o(e)-n)*i},e.c2p=a?function(e){return a(n+e/i)}:function(e){return n+e/i}}(t)}),o&&e.each(k(),function(e,t){var i,n,o,a,r,s=t.box,c=t.direction+"Axis "+t.direction+t.n+"Axis",d="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+c,u=t.options.font||"flot-tick-label tickLabel";if(l.removeText(d),t.show&&0!=t.ticks.length)for(var h=0;h<t.ticks.length;++h)!(i=t.ticks[h]).label||i.v<t.min||i.v>t.max||("x"==t.direction?(a="center",n=g.left+t.p2c(i.v),"bottom"==t.position?o=s.top+s.padding:(o=s.top+s.height-s.padding,r="bottom")):(r="middle",o=g.top+t.p2c(i.v),"left"==t.position?(n=s.left+s.width-s.padding,a="right"):n=s.left+s.padding),l.addText(d,n,o,i.label,u,null,null,a,r))}),function(){null!=s.legend.container?e(s.legend.container).html(""):t.find(".legend").remove();if(!s.legend.show)return;for(var i,n,o=[],a=[],l=!1,c=s.legend.labelFormatter,d=0;d<r.length;++d)(i=r[d]).label&&(n=c?c(i.label,i):i.label)&&a.push({label:n,color:i.color});if(s.legend.sorted)if(e.isFunction(s.legend.sorted))a.sort(s.legend.sorted);else if("reverse"==s.legend.sorted)a.reverse();else{var u="descending"!=s.legend.sorted;a.sort(function(e,t){return e.label==t.label?0:e.label<t.label!=u?1:-1})}for(var d=0;d<a.length;++d){var h=a[d];d%s.legend.noColumns==0&&(l&&o.push("</tr>"),o.push("<tr>"),l=!0),o.push('<td class="legendColorBox"><div style="border:1px solid '+s.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+h.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+h.label+"</td>")}l&&o.push("</tr>");if(0==o.length)return;var f='<table style="font-size:smaller;color:'+s.grid.color+'">'+o.join("")+"</table>";if(null!=s.legend.container)e(s.legend.container).html(f);else{var p="",m=s.legend.position,v=s.legend.margin;null==v[0]&&(v=[v,v]),"n"==m.charAt(0)?p+="top:"+(v[1]+g.top)+"px;":"s"==m.charAt(0)&&(p+="bottom:"+(v[1]+g.bottom)+"px;"),"e"==m.charAt(1)?p+="right:"+(v[0]+g.right)+"px;":"w"==m.charAt(1)&&(p+="left:"+(v[0]+g.left)+"px;");var _=e('<div class="legend">'+f.replace('style="','style="position:absolute;'+p+";")+"</div>").appendTo(t);if(0!=s.legend.backgroundOpacity){var b=s.legend.backgroundColor;null==b&&((b=(b=s.grid.backgroundColor)&&"string"==typeof b?e.color.parse(b):e.color.extract(_,"background-color")).a=1,b=b.toString());var y=_.children();e('<div style="position:absolute;width:'+y.width()+"px;height:"+y.height()+"px;"+p+"background-color:"+b+';"> </div>').prependTo(_).css("opacity",s.legend.backgroundOpacity)}}}()}function M(){l.clear(),y(_.drawBackground,[u]);var e=s.grid;e.show&&e.backgroundColor&&(u.save(),u.translate(g.left,g.top),u.fillStyle=Y(s.grid.backgroundColor,v,0,"rgba(255, 255, 255, 0)"),u.fillRect(0,0,m,v),u.restore()),e.show&&!e.aboveData&&A();for(var t=0;t<r.length;++t)y(_.drawSeries,[u,r[t]]),P(r[t]);y(_.draw,[u]),e.show&&e.aboveData&&A(),l.render(),V()}function I(e,t){for(var i,n,o,a,r=k(),s=0;s<r.length;++s)if((i=r[s]).direction==t&&(e[a=t+i.n+"axis"]||1!=i.n||(a=t+"axis"),e[a])){n=e[a].from,o=e[a].to;break}if(e[a]||(i="x"==t?f[0]:p[0],n=e[t+"1"],o=e[t+"2"]),null!=n&&null!=o&&n>o){var l=n;n=o,o=l}return{from:n,to:o,axis:i}}function A(){var t,i,n,o;u.save(),u.translate(g.left,g.top);var a=s.grid.markings;if(a)for(e.isFunction(a)&&((i=b.getAxes()).xmin=i.xaxis.min,i.xmax=i.xaxis.max,i.ymin=i.yaxis.min,i.ymax=i.yaxis.max,a=a(i)),t=0;t<a.length;++t){var r=a[t],l=I(r,"x"),c=I(r,"y");if(null==l.from&&(l.from=l.axis.min),null==l.to&&(l.to=l.axis.max),null==c.from&&(c.from=c.axis.min),null==c.to&&(c.to=c.axis.max),!(l.to<l.axis.min||l.from>l.axis.max||c.to<c.axis.min||c.from>c.axis.max)){l.from=Math.max(l.from,l.axis.min),l.to=Math.min(l.to,l.axis.max),c.from=Math.max(c.from,c.axis.min),c.to=Math.min(c.to,c.axis.max);var d=l.from===l.to,h=c.from===c.to;if(!d||!h)if(l.from=Math.floor(l.axis.p2c(l.from)),l.to=Math.floor(l.axis.p2c(l.to)),c.from=Math.floor(c.axis.p2c(c.from)),c.to=Math.floor(c.axis.p2c(c.to)),d||h){var f=r.lineWidth||s.grid.markingsLineWidth,p=f%2?.5:0;u.beginPath(),u.strokeStyle=r.color||s.grid.markingsColor,u.lineWidth=f,d?(u.moveTo(l.to+p,c.from),u.lineTo(l.to+p,c.to)):(u.moveTo(l.from,c.to+p),u.lineTo(l.to,c.to+p)),u.stroke()}else u.fillStyle=r.color||s.grid.markingsColor,u.fillRect(l.from,c.to,l.to-l.from,c.from-c.to)}}i=k(),n=s.grid.borderWidth;for(var _=0;_<i.length;++_){var y,x,w,C,j=i[_],S=j.box,T=j.tickLength;if(j.show&&0!=j.ticks.length){for(u.lineWidth=1,"x"==j.direction?(y=0,x="full"==T?"top"==j.position?0:v:S.top-g.top+("top"==j.position?S.height:0)):(x=0,y="full"==T?"left"==j.position?0:m:S.left-g.left+("left"==j.position?S.width:0)),j.innermost||(u.strokeStyle=j.options.color,u.beginPath(),w=C=0,"x"==j.direction?w=m+1:C=v+1,1==u.lineWidth&&("x"==j.direction?x=Math.floor(x)+.5:y=Math.floor(y)+.5),u.moveTo(y,x),u.lineTo(y+w,x+C),u.stroke()),u.strokeStyle=j.options.tickColor,u.beginPath(),t=0;t<j.ticks.length;++t){var G=j.ticks[t].v;w=C=0,isNaN(G)||G<j.min||G>j.max||"full"==T&&("object"==typeof n&&n[j.position]>0||n>0)&&(G==j.min||G==j.max)||("x"==j.direction?(y=j.p2c(G),C="full"==T?-v:T,"top"==j.position&&(C=-C)):(x=j.p2c(G),w="full"==T?-m:T,"left"==j.position&&(w=-w)),1==u.lineWidth&&("x"==j.direction?y=Math.floor(y)+.5:x=Math.floor(x)+.5),u.moveTo(y,x),u.lineTo(y+w,x+C))}u.stroke()}}n&&(o=s.grid.borderColor,"object"==typeof n||"object"==typeof o?("object"!=typeof n&&(n={top:n,right:n,bottom:n,left:n}),"object"!=typeof o&&(o={top:o,right:o,bottom:o,left:o}),n.top>0&&(u.strokeStyle=o.top,u.lineWidth=n.top,u.beginPath(),u.moveTo(0-n.left,0-n.top/2),u.lineTo(m,0-n.top/2),u.stroke()),n.right>0&&(u.strokeStyle=o.right,u.lineWidth=n.right,u.beginPath(),u.moveTo(m+n.right/2,0-n.top),u.lineTo(m+n.right/2,v),u.stroke()),n.bottom>0&&(u.strokeStyle=o.bottom,u.lineWidth=n.bottom,u.beginPath(),u.moveTo(m+n.right,v+n.bottom/2),u.lineTo(0,v+n.bottom/2),u.stroke()),n.left>0&&(u.strokeStyle=o.left,u.lineWidth=n.left,u.beginPath(),u.moveTo(0-n.left/2,v+n.bottom),u.lineTo(0-n.left/2,0),u.stroke())):(u.lineWidth=n,u.strokeStyle=s.grid.borderColor,u.strokeRect(-n/2,-n/2,m+n,v+n))),u.restore()}function P(e){e.lines.show&&function(e){function t(e,t,i,n,o){var a=e.points,r=e.pointsize,s=null,l=null;u.beginPath();for(var c=r;c<a.length;c+=r){var d=a[c-r],h=a[c-r+1],f=a[c],p=a[c+1];if(null!=d&&null!=f){if(h<=p&&h<o.min){if(p<o.min)continue;d=(o.min-h)/(p-h)*(f-d)+d,h=o.min}else if(p<=h&&p<o.min){if(h<o.min)continue;f=(o.min-h)/(p-h)*(f-d)+d,p=o.min}if(h>=p&&h>o.max){if(p>o.max)continue;d=(o.max-h)/(p-h)*(f-d)+d,h=o.max}else if(p>=h&&p>o.max){if(h>o.max)continue;f=(o.max-h)/(p-h)*(f-d)+d,p=o.max}if(d<=f&&d<n.min){if(f<n.min)continue;h=(n.min-d)/(f-d)*(p-h)+h,d=n.min}else if(f<=d&&f<n.min){if(d<n.min)continue;p=(n.min-d)/(f-d)*(p-h)+h,f=n.min}if(d>=f&&d>n.max){if(f>n.max)continue;h=(n.max-d)/(f-d)*(p-h)+h,d=n.max}else if(f>=d&&f>n.max){if(d>n.max)continue;p=(n.max-d)/(f-d)*(p-h)+h,f=n.max}d==s&&h==l||u.moveTo(n.p2c(d)+t,o.p2c(h)+i),s=f,l=p,u.lineTo(n.p2c(f)+t,o.p2c(p)+i)}}u.stroke()}u.save(),u.translate(g.left,g.top),u.lineJoin="round";var i=e.lines.lineWidth,n=e.shadowSize;if(i>0&&n>0){u.lineWidth=n,u.strokeStyle="rgba(0,0,0,0.1)";var o=Math.PI/18;t(e.datapoints,Math.sin(o)*(i/2+n/2),Math.cos(o)*(i/2+n/2),e.xaxis,e.yaxis),u.lineWidth=n/2,t(e.datapoints,Math.sin(o)*(i/2+n/4),Math.cos(o)*(i/2+n/4),e.xaxis,e.yaxis)}u.lineWidth=i,u.strokeStyle=e.color;var a=O(e.lines,e.color,0,v);a&&(u.fillStyle=a,function(e,t,i){var n=e.points,o=e.pointsize,a=Math.min(Math.max(0,i.min),i.max),r=0,s=!1,l=1,c=0,d=0;for(;!(o>0&&r>n.length+o);){var h=n[(r+=o)-o],f=n[r-o+l],p=n[r],g=n[r+l];if(s){if(o>0&&null!=h&&null==p){d=r,o=-o,l=2;continue}if(o<0&&r==c+o){u.fill(),s=!1,l=1,r=c=d+(o=-o);continue}}if(null!=h&&null!=p){if(h<=p&&h<t.min){if(p<t.min)continue;f=(t.min-h)/(p-h)*(g-f)+f,h=t.min}else if(p<=h&&p<t.min){if(h<t.min)continue;g=(t.min-h)/(p-h)*(g-f)+f,p=t.min}if(h>=p&&h>t.max){if(p>t.max)continue;f=(t.max-h)/(p-h)*(g-f)+f,h=t.max}else if(p>=h&&p>t.max){if(h>t.max)continue;g=(t.max-h)/(p-h)*(g-f)+f,p=t.max}if(s||(u.beginPath(),u.moveTo(t.p2c(h),i.p2c(a)),s=!0),f>=i.max&&g>=i.max)u.lineTo(t.p2c(h),i.p2c(i.max)),u.lineTo(t.p2c(p),i.p2c(i.max));else if(f<=i.min&&g<=i.min)u.lineTo(t.p2c(h),i.p2c(i.min)),u.lineTo(t.p2c(p),i.p2c(i.min));else{var m=h,v=p;f<=g&&f<i.min&&g>=i.min?(h=(i.min-f)/(g-f)*(p-h)+h,f=i.min):g<=f&&g<i.min&&f>=i.min&&(p=(i.min-f)/(g-f)*(p-h)+h,g=i.min),f>=g&&f>i.max&&g<=i.max?(h=(i.max-f)/(g-f)*(p-h)+h,f=i.max):g>=f&&g>i.max&&f<=i.max&&(p=(i.max-f)/(g-f)*(p-h)+h,g=i.max),h!=m&&u.lineTo(t.p2c(m),i.p2c(f)),u.lineTo(t.p2c(h),i.p2c(f)),u.lineTo(t.p2c(p),i.p2c(g)),p!=v&&(u.lineTo(t.p2c(p),i.p2c(g)),u.lineTo(t.p2c(v),i.p2c(g)))}}}}(e.datapoints,e.xaxis,e.yaxis));i>0&&t(e.datapoints,0,0,e.xaxis,e.yaxis);u.restore()}(e),e.bars.show&&function(e){var t;switch(u.save(),u.translate(g.left,g.top),u.lineWidth=e.bars.lineWidth,u.strokeStyle=e.color,e.bars.align){case"left":t=0;break;case"right":t=-e.bars.barWidth;break;default:t=-e.bars.barWidth/2}var i=e.bars.fill?function(t,i){return O(e.bars,e.color,t,i)}:null;(function(t,i,n,o,a,r){for(var s=t.points,l=t.pointsize,c=0;c<s.length;c+=l)null!=s[c]&&E(s[c],s[c+1],s[c+2],i,n,o,a,r,u,e.bars.horizontal,e.bars.lineWidth)})(e.datapoints,t,t+e.bars.barWidth,i,e.xaxis,e.yaxis),u.restore()}(e),e.points.show&&function(e){function t(e,t,i,n,o,a,r,s){for(var l=e.points,c=e.pointsize,d=0;d<l.length;d+=c){var h=l[d],f=l[d+1];null==h||h<a.min||h>a.max||f<r.min||f>r.max||(u.beginPath(),h=a.p2c(h),f=r.p2c(f)+n,"circle"==s?u.arc(h,f,t,0,o?Math.PI:2*Math.PI,!1):s(u,h,f,t,o),u.closePath(),i&&(u.fillStyle=i,u.fill()),u.stroke())}}u.save(),u.translate(g.left,g.top);var i=e.points.lineWidth,n=e.shadowSize,o=e.points.radius,a=e.points.symbol;0==i&&(i=1e-4);if(i>0&&n>0){var r=n/2;u.lineWidth=r,u.strokeStyle="rgba(0,0,0,0.1)",t(e.datapoints,o,null,r+r/2,!0,e.xaxis,e.yaxis,a),u.strokeStyle="rgba(0,0,0,0.2)",t(e.datapoints,o,null,r/2,!0,e.xaxis,e.yaxis,a)}u.lineWidth=i,u.strokeStyle=e.color,t(e.datapoints,o,O(e.points,e.color),0,!1,e.xaxis,e.yaxis,a),u.restore()}(e)}function E(e,t,i,n,o,a,r,s,l,c,d){var u,h,f,p,g,m,v,_,b;c?(_=m=v=!0,g=!1,p=t+n,f=t+o,(h=e)<(u=i)&&(b=h,h=u,u=b,g=!0,m=!1)):(g=m=v=!0,_=!1,u=e+n,h=e+o,(p=t)<(f=i)&&(b=p,p=f,f=b,_=!0,v=!1)),h<r.min||u>r.max||p<s.min||f>s.max||(u<r.min&&(u=r.min,g=!1),h>r.max&&(h=r.max,m=!1),f<s.min&&(f=s.min,_=!1),p>s.max&&(p=s.max,v=!1),u=r.p2c(u),f=s.p2c(f),h=r.p2c(h),p=s.p2c(p),a&&(l.fillStyle=a(f,p),l.fillRect(u,p,h-u,f-p)),d>0&&(g||m||v||_)&&(l.beginPath(),l.moveTo(u,f),g?l.lineTo(u,p):l.moveTo(u,p),v?l.lineTo(h,p):l.moveTo(h,p),m?l.lineTo(h,f):l.moveTo(h,f),_?l.lineTo(u,f):l.moveTo(u,f),l.stroke()))}function O(t,i,n,o){var a=t.fill;if(!a)return null;if(t.fillColor)return Y(t.fillColor,n,o,i);var r=e.color.parse(i);return r.a="number"==typeof a?a:.4,r.normalize(),r.toString()}b.setData=x,b.setupGrid=G,b.draw=M,b.getPlaceholder=function(){return t},b.getCanvas=function(){return l.element},b.getPlotOffset=function(){return g},b.width=function(){return m},b.height=function(){return v},b.offset=function(){var e=d.offset();return e.left+=g.left,e.top+=g.top,e},b.getData=function(){return r},b.getAxes=function(){var t={};return e.each(f.concat(p),function(e,i){i&&(t[i.direction+(1!=i.n?i.n:"")+"axis"]=i)}),t},b.getXAxes=function(){return f},b.getYAxes=function(){return p},b.c2p=C,b.p2c=function(e){var t,i,n,o={};for(t=0;t<f.length;++t)if((i=f[t])&&i.used&&(n="x"+i.n,null==e[n]&&1==i.n&&(n="x"),null!=e[n])){o.left=i.p2c(e[n]);break}for(t=0;t<p.length;++t)if((i=p[t])&&i.used&&(n="y"+i.n,null==e[n]&&1==i.n&&(n="y"),null!=e[n])){o.top=i.p2c(e[n]);break}return o},b.getOptions=function(){return s},b.highlight=L,b.unhighlight=B,b.triggerRedrawOverlay=V,b.pointOffset=function(e){return{left:parseInt(f[w(e,"x")-1].p2c(+e.x)+g.left,10),top:parseInt(p[w(e,"y")-1].p2c(+e.y)+g.top,10)}},b.shutdown=S,b.destroy=function(){S(),t.removeData("plot").empty(),r=[],s=null,l=null,c=null,d=null,u=null,h=null,f=[],p=[],_=null,z=[],b=null},b.resize=function(){var e=t.width(),i=t.height();l.resize(e,i),c.resize(e,i)},b.hooks=_,function(){for(var t={Canvas:i},n=0;n<a.length;++n){var o=a[n];o.init(b,t),o.options&&e.extend(!0,s,o.options)}}(),function(i){e.extend(!0,s,i),i&&i.colors&&(s.colors=i.colors);null==s.xaxis.color&&(s.xaxis.color=e.color.parse(s.grid.color).scale("a",.22).toString());null==s.yaxis.color&&(s.yaxis.color=e.color.parse(s.grid.color).scale("a",.22).toString());null==s.xaxis.tickColor&&(s.xaxis.tickColor=s.grid.tickColor||s.xaxis.color);null==s.yaxis.tickColor&&(s.yaxis.tickColor=s.grid.tickColor||s.yaxis.color);null==s.grid.borderColor&&(s.grid.borderColor=s.grid.color);null==s.grid.tickColor&&(s.grid.tickColor=e.color.parse(s.grid.color).scale("a",.22).toString());var n,o,a,r=t.css("font-size"),l=r?+r.replace("px",""):13,c={style:t.css("font-style"),size:Math.round(.8*l),variant:t.css("font-variant"),weight:t.css("font-weight"),family:t.css("font-family")};for(a=s.xaxes.length||1,n=0;n<a;++n)(o=s.xaxes[n])&&!o.tickColor&&(o.tickColor=o.color),o=e.extend(!0,{},s.xaxis,o),s.xaxes[n]=o,o.font&&(o.font=e.extend({},c,o.font),o.font.color||(o.font.color=o.color),o.font.lineHeight||(o.font.lineHeight=Math.round(1.15*o.font.size)));for(a=s.yaxes.length||1,n=0;n<a;++n)(o=s.yaxes[n])&&!o.tickColor&&(o.tickColor=o.color),o=e.extend(!0,{},s.yaxis,o),s.yaxes[n]=o,o.font&&(o.font=e.extend({},c,o.font),o.font.color||(o.font.color=o.color),o.font.lineHeight||(o.font.lineHeight=Math.round(1.15*o.font.size)));s.xaxis.noTicks&&null==s.xaxis.ticks&&(s.xaxis.ticks=s.xaxis.noTicks);s.yaxis.noTicks&&null==s.yaxis.ticks&&(s.yaxis.ticks=s.yaxis.noTicks);s.x2axis&&(s.xaxes[1]=e.extend(!0,{},s.xaxis,s.x2axis),s.xaxes[1].position="top",null==s.x2axis.min&&(s.xaxes[1].min=null),null==s.x2axis.max&&(s.xaxes[1].max=null));s.y2axis&&(s.yaxes[1]=e.extend(!0,{},s.yaxis,s.y2axis),s.yaxes[1].position="right",null==s.y2axis.min&&(s.yaxes[1].min=null),null==s.y2axis.max&&(s.yaxes[1].max=null));s.grid.coloredAreas&&(s.grid.markings=s.grid.coloredAreas);s.grid.coloredAreasColor&&(s.grid.markingsColor=s.grid.coloredAreasColor);s.lines&&e.extend(!0,s.series.lines,s.lines);s.points&&e.extend(!0,s.series.points,s.points);s.bars&&e.extend(!0,s.series.bars,s.bars);null!=s.shadowSize&&(s.series.shadowSize=s.shadowSize);null!=s.highlightColor&&(s.series.highlightColor=s.highlightColor);for(n=0;n<s.xaxes.length;++n)j(f,n+1).options=s.xaxes[n];for(n=0;n<s.yaxes.length;++n)j(p,n+1).options=s.yaxes[n];for(var d in _)s.hooks[d]&&s.hooks[d].length&&(_[d]=_[d].concat(s.hooks[d]));y(_.processOptions,[s])}(o),function(){t.css("padding",0).children().filter(function(){return!e(this).hasClass("flot-overlay")&&!e(this).hasClass("flot-base")}).remove(),"static"==t.css("position")&&t.css("position","relative");l=new i("flot-base",t),c=new i("flot-overlay",t),u=l.context,h=c.context,d=e(c.element).unbind();var n=t.data("plot");n&&(n.shutdown(),c.clear());t.data("plot",b)}(),x(n),G(),M(),function(){s.grid.hoverable&&(d.mousemove(D),d.bind("mouseleave",N));s.grid.clickable&&d.click(W);y(_.bindEvents,[d])}();var z=[],Q=null;function D(e){s.grid.hoverable&&F("plothover",e,function(e){return 0!=e.hoverable})}function N(e){s.grid.hoverable&&F("plothover",e,function(e){return!1})}function W(e){F("plotclick",e,function(e){return 0!=e.clickable})}function F(e,i,n){var o=d.offset(),a=i.pageX-o.left-g.left,l=i.pageY-o.top-g.top,c=C({left:a,top:l});c.pageX=i.pageX,c.pageY=i.pageY;var u=function(e,t,i){var n,o,a,l=s.grid.mouseActiveRadius,c=l*l+1,d=null;for(n=r.length-1;n>=0;--n)if(i(r[n])){var u=r[n],h=u.xaxis,f=u.yaxis,p=u.datapoints.points,g=h.c2p(e),m=f.c2p(t),v=l/h.scale,_=l/f.scale;if(a=u.datapoints.pointsize,h.options.inverseTransform&&(v=Number.MAX_VALUE),f.options.inverseTransform&&(_=Number.MAX_VALUE),u.lines.show||u.points.show)for(o=0;o<p.length;o+=a){var b=p[o],y=p[o+1];if(null!=b&&!(b-g>v||b-g<-v||y-m>_||y-m<-_)){var x=Math.abs(h.p2c(b)-e),w=Math.abs(f.p2c(y)-t),k=x*x+w*w;k<c&&(c=k,d=[n,o/a])}}if(u.bars.show&&!d){var C,j;switch(u.bars.align){case"left":C=0;break;case"right":C=-u.bars.barWidth;break;default:C=-u.bars.barWidth/2}for(j=C+u.bars.barWidth,o=0;o<p.length;o+=a){b=p[o],y=p[o+1];var S=p[o+2];null!=b&&(r[n].bars.horizontal?g<=Math.max(S,b)&&g>=Math.min(S,b)&&m>=y+C&&m<=y+j:g>=b+C&&g<=b+j&&m>=Math.min(S,y)&&m<=Math.max(S,y))&&(d=[n,o/a])}}}return d?(n=d[0],o=d[1],a=r[n].datapoints.pointsize,{datapoint:r[n].datapoints.points.slice(o*a,(o+1)*a),dataIndex:o,series:r[n],seriesIndex:n}):null}(a,l,n);if(u&&(u.pageX=parseInt(u.series.xaxis.p2c(u.datapoint[0])+o.left+g.left,10),u.pageY=parseInt(u.series.yaxis.p2c(u.datapoint[1])+o.top+g.top,10)),s.grid.autoHighlight){for(var h=0;h<z.length;++h){var f=z[h];f.auto!=e||u&&f.series==u.series&&f.point[0]==u.datapoint[0]&&f.point[1]==u.datapoint[1]||B(f.series,f.point)}u&&L(u.series,u.datapoint,e)}t.trigger(e,[c,u])}function V(){var e=s.interaction.redrawOverlayInterval;-1!=e?Q||(Q=setTimeout(q,e)):q()}function q(){var e,t;for(Q=null,h.save(),c.clear(),h.translate(g.left,g.top),e=0;e<z.length;++e)(t=z[e]).series.bars.show?U(t.series,t.point):R(t.series,t.point);h.restore(),y(_.drawOverlay,[h])}function L(e,t,i){if("number"==typeof e&&(e=r[e]),"number"==typeof t){var n=e.datapoints.pointsize;t=e.datapoints.points.slice(n*t,n*(t+1))}var o=H(e,t);-1==o?(z.push({series:e,point:t,auto:i}),V()):i||(z[o].auto=!1)}function B(e,t){if(null==e&&null==t)return z=[],void V();if("number"==typeof e&&(e=r[e]),"number"==typeof t){var i=e.datapoints.pointsize;t=e.datapoints.points.slice(i*t,i*(t+1))}var n=H(e,t);-1!=n&&(z.splice(n,1),V())}function H(e,t){for(var i=0;i<z.length;++i){var n=z[i];if(n.series==e&&n.point[0]==t[0]&&n.point[1]==t[1])return i}return-1}function R(t,i){var n=i[0],o=i[1],a=t.xaxis,r=t.yaxis,s="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString();if(!(n<a.min||n>a.max||o<r.min||o>r.max)){var l=t.points.radius+t.points.lineWidth/2;h.lineWidth=l,h.strokeStyle=s;var c=1.5*l;n=a.p2c(n),o=r.p2c(o),h.beginPath(),"circle"==t.points.symbol?h.arc(n,o,c,0,2*Math.PI,!1):t.points.symbol(h,n,o,c,!1),h.closePath(),h.stroke()}}function U(t,i){var n,o="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString(),a=o;switch(t.bars.align){case"left":n=0;break;case"right":n=-t.bars.barWidth;break;default:n=-t.bars.barWidth/2}h.lineWidth=t.bars.lineWidth,h.strokeStyle=o,E(i[0],i[1],i[2]||0,n,n+t.bars.barWidth,function(){return a},t.xaxis,t.yaxis,h,t.bars.horizontal,t.bars.lineWidth)}function Y(t,i,n,o){if("string"==typeof t)return t;for(var a=u.createLinearGradient(0,n,0,i),r=0,s=t.colors.length;r<s;++r){var l=t.colors[r];if("string"!=typeof l){var c=e.color.parse(o);null!=l.brightness&&(c=c.scale("rgb",l.brightness)),null!=l.opacity&&(c.a*=l.opacity),l=c.toString()}a.addColorStop(r/(s-1),l)}return a}}e.fn.detach||(e.fn.detach=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})}),i.prototype.resize=function(e,t){if(e<=0||t<=0)throw new Error("Invalid dimensions for plot, width = "+e+", height = "+t);var i=this.element,n=this.context,o=this.pixelRatio;this.width!=e&&(i.width=e*o,i.style.width=e+"px",this.width=e),this.height!=t&&(i.height=t*o,i.style.height=t+"px",this.height=t),n.restore(),n.save(),n.scale(o,o)},i.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},i.prototype.render=function(){var e=this._textCache;for(var i in e)if(t.call(e,i)){var n=this.getTextLayer(i),o=e[i];for(var a in n.hide(),o)if(t.call(o,a)){var r=o[a];for(var s in r)if(t.call(r,s)){for(var l,c=r[s].positions,d=0;l=c[d];d++)l.active?l.rendered||(n.append(l.element),l.rendered=!0):(c.splice(d--,1),l.rendered&&l.element.detach());0==c.length&&delete r[s]}}n.show()}},i.prototype.getTextLayer=function(t){var i=this.text[t];return null==i&&(null==this.textContainer&&(this.textContainer=e("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),i=this.text[t]=e("<div></div>").addClass(t).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),i},i.prototype.getTextInfo=function(t,i,n,o,a){var r,s,l,c;if(i=""+i,r="object"==typeof n?n.style+" "+n.variant+" "+n.weight+" "+n.size+"px/"+n.lineHeight+"px "+n.family:n,null==(s=this._textCache[t])&&(s=this._textCache[t]={}),null==(l=s[r])&&(l=s[r]={}),null==(c=l[i])){var d=e("<div></div>").html(i).css({position:"absolute","max-width":a,top:-9999}).appendTo(this.getTextLayer(t));"object"==typeof n?d.css({font:r,color:n.color}):"string"==typeof n&&d.addClass(n),c=l[i]={width:d.outerWidth(!0),height:d.outerHeight(!0),element:d,positions:[]},d.detach()}return c},i.prototype.addText=function(e,t,i,n,o,a,r,s,l){var c=this.getTextInfo(e,n,o,a,r),d=c.positions;"center"==s?t-=c.width/2:"right"==s&&(t-=c.width),"middle"==l?i-=c.height/2:"bottom"==l&&(i-=c.height);for(var u,h=0;u=d[h];h++)if(u.x==t&&u.y==i)return void(u.active=!0);u={active:!0,rendered:!1,element:d.length?c.element.clone():c.element,x:t,y:i},d.push(u),u.element.css({top:Math.round(i),left:Math.round(t),"text-align":s})},i.prototype.removeText=function(e,i,n,o,a,r){if(null==o){var s=this._textCache[e];if(null!=s)for(var l in s)if(t.call(s,l)){var c=s[l];for(var d in c)if(t.call(c,d))for(var u=c[d].positions,h=0;f=u[h];h++)f.active=!1}}else{var f;for(u=this.getTextInfo(e,o,a,r).positions,h=0;f=u[h];h++)f.x==i&&f.y==n&&(f.active=!1)}},e.plot=function(t,i,o){return new n(e(t),i,o,e.plot.plugins)},e.plot.version="0.8.3",e.plot.plugins=[],e.fn.plot=function(t,i){return this.each(function(){e.plot(this,t,i)})}}(jQuery)},156:function(e,t){!function(e){jQuery.plot.plugins.push({init:function(e){var t,i,n,o,a=1,r=!1,s={};function l(e,t){for(var i=new Array,n=0;n<e.length;n++)i[0]=e[n].data[0]?e[n].data[0][t]:null,i[1]=e[n].data[e[n].data.length-1]?e[n].data[e[n].data.length-1][t]:null;return i}function c(e,t){var i=e.bars.order,n=t.bars.order;return i<n?-1:i>n?1:0}function d(e,t,i){for(var n=0,a=t;a<=i;a++)n+=e[a].bars.barWidth+2*o;return n}e.hooks.processDatapoints.push(function(e,u,h){var f,p=null;if(function(e){return null!=e.bars&&e.bars.show&&null!=e.bars.order}(u)&&(function(e){e.bars.horizontal&&(r=!0)}(u),function(e){var t=r?e.getPlaceholder().innerHeight():e.getPlaceholder().innerWidth(),i=l(e.getData(),r?1:0),n=i[1]-i[0];a=n/t}(e),function(e){t=function(e){for(var t=new Array,i=[],n=0;n<e.length;n++)null!=e[n].bars.order&&e[n].bars.show&&i.indexOf(e[n].bars.order)<0&&(i.push(e[n].bars.order),t.push(e[n]));return t.sort(c)}(e.getData()),i=t.length}(e),function(e){n=void 0!==e.bars.lineWidth?e.bars.lineWidth:2,o=n*a}(u),i>=2)){var g=function(e){for(var i=0,n=0;n<t.length;++n)if(e==t[n]){i=n;break}return i+1}(u),m=(f=0,i%2!=0&&(f=t[Math.ceil(i/2)].bars.barWidth/2),f);void 0===s[u.bars.order]&&(function(e){return e<=Math.ceil(i/2)}(g)?s[u.bars.order]=-1*d(t,g-1,Math.floor(i/2)-1)-m:s[u.bars.order]=d(t,Math.ceil(i/2),g-2)+m+2*o),p=function(e,t,i){for(var n=e.pointsize,o=e.points,a=0,s=r?1:0;s<o.length;s+=n)o[s]+=i,t.data[a][3]=o[s],a++;return o}(h,u,s[u.bars.order]),h.points=p}return p})},options:{series:{bars:{order:null}}},name:"orderBars",version:"0.2"})}()},157:function(e,t){!function(e){function t(e,t){return t*Math.floor(e/t)}function i(e,t,i,n){if("function"==typeof e.strftime)return e.strftime(t);var o,a=function(e,t){return t=""+(null==t?"0":t),1==(e=""+e).length?t+e:e},r=[],s=!1,l=e.getHours(),c=l<12;null==i&&(i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),null==n&&(n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),o=l>12?l-12:0==l?12:l;for(var d=0;d<t.length;++d){var u=t.charAt(d);if(s){switch(u){case"a":u=""+n[e.getDay()];break;case"b":u=""+i[e.getMonth()];break;case"d":u=a(e.getDate());break;case"e":u=a(e.getDate()," ");break;case"h":case"H":u=a(l);break;case"I":u=a(o);break;case"l":u=a(o," ");break;case"m":u=a(e.getMonth()+1);break;case"M":u=a(e.getMinutes());break;case"q":u=""+(Math.floor(e.getMonth()/3)+1);break;case"S":u=a(e.getSeconds());break;case"y":u=a(e.getFullYear()%100);break;case"Y":u=""+e.getFullYear();break;case"p":u=c?"am":"pm";break;case"P":u=c?"AM":"PM";break;case"w":u=""+e.getDay()}r.push(u),s=!1}else"%"==u?s=!0:r.push(u)}return r.join("")}function n(e){function t(e,t,i,n){e[t]=function(){return i[n].apply(i,arguments)}}var i={date:e};null!=e.strftime&&t(i,"strftime",e,"strftime"),t(i,"getTime",e,"getTime"),t(i,"setTime",e,"setTime");for(var n=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"],o=0;o<n.length;o++)t(i,"get"+n[o],e,"getUTC"+n[o]),t(i,"set"+n[o],e,"setUTC"+n[o]);return i}function o(e,t){if("browser"==t.timezone)return new Date(e);if(t.timezone&&"utc"!=t.timezone){if("undefined"!=typeof timezoneJS&&void 0!==timezoneJS.Date){var i=new timezoneJS.Date;return i.setTimezone(t.timezone),i.setTime(e),i}return n(new Date(e))}return n(new Date(e))}var a={second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,quarter:7776e6,year:525949.2*60*1e3},r=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]],s=r.concat([[3,"month"],[6,"month"],[1,"year"]]),l=r.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);e.plot.plugins.push({init:function(n){n.hooks.processOptions.push(function(n,r){e.each(n.getAxes(),function(e,n){var r=n.options;"time"==r.mode&&(n.tickGenerator=function(e){var i=[],n=o(e.min,r),c=0,d=r.tickSize&&"quarter"===r.tickSize[1]||r.minTickSize&&"quarter"===r.minTickSize[1]?l:s;null!=r.minTickSize&&(c="number"==typeof r.tickSize?r.tickSize:r.minTickSize[0]*a[r.minTickSize[1]]);for(var u=0;u<d.length-1&&!(e.delta<(d[u][0]*a[d[u][1]]+d[u+1][0]*a[d[u+1][1]])/2&&d[u][0]*a[d[u][1]]>=c);++u);var h=d[u][0],f=d[u][1];if("year"==f){if(null!=r.minTickSize&&"year"==r.minTickSize[1])h=Math.floor(r.minTickSize[0]);else{var p=Math.pow(10,Math.floor(Math.log(e.delta/a.year)/Math.LN10)),g=e.delta/a.year/p;h=g<1.5?1:g<3?2:g<7.5?5:10,h*=p}h<1&&(h=1)}e.tickSize=r.tickSize||[h,f];var m=e.tickSize[0];f=e.tickSize[1];var v=m*a[f];"second"==f?n.setSeconds(t(n.getSeconds(),m)):"minute"==f?n.setMinutes(t(n.getMinutes(),m)):"hour"==f?n.setHours(t(n.getHours(),m)):"month"==f?n.setMonth(t(n.getMonth(),m)):"quarter"==f?n.setMonth(3*t(n.getMonth()/3,m)):"year"==f&&n.setFullYear(t(n.getFullYear(),m)),n.setMilliseconds(0),v>=a.minute&&n.setSeconds(0),v>=a.hour&&n.setMinutes(0),v>=a.day&&n.setHours(0),v>=4*a.day&&n.setDate(1),v>=2*a.month&&n.setMonth(t(n.getMonth(),3)),v>=2*a.quarter&&n.setMonth(t(n.getMonth(),6)),v>=a.year&&n.setMonth(0);var _,b=0,y=Number.NaN;do{if(_=y,y=n.getTime(),i.push(y),"month"==f||"quarter"==f)if(m<1){n.setDate(1);var x=n.getTime();n.setMonth(n.getMonth()+("quarter"==f?3:1));var w=n.getTime();n.setTime(y+b*a.hour+(w-x)*m),b=n.getHours(),n.setHours(0)}else n.setMonth(n.getMonth()+m*("quarter"==f?3:1));else"year"==f?n.setFullYear(n.getFullYear()+m):n.setTime(y+v)}while(y<e.max&&y!=_);return i},n.tickFormatter=function(e,t){var n=o(e,t.options);if(null!=r.timeformat)return i(n,r.timeformat,r.monthNames,r.dayNames);var s=t.options.tickSize&&"quarter"==t.options.tickSize[1]||t.options.minTickSize&&"quarter"==t.options.minTickSize[1],l=t.tickSize[0]*a[t.tickSize[1]],c=t.max-t.min,d=r.twelveHourClock?" %p":"",u=r.twelveHourClock?"%I":"%H";return i(n,l<a.minute?u+":%M:%S"+d:l<a.day?c<2*a.day?u+":%M"+d:"%b %d "+u+":%M"+d:l<a.month?"%b %d":s&&l<a.quarter||!s&&l<a.year?c<a.year?"%b":"%b %Y":s&&l<a.year?c<a.year?"Q%q":"Q%q %Y":"%Y",r.monthNames,r.dayNames)})})})},options:{xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null}},name:"time",version:"1.0"}),e.plot.formatDate=i,e.plot.dateGenerator=o}(jQuery)},158:function(e,t){var i={collection:{},get:function(e,t,i){return jQuery?(t=void 0!==t?t:void 0,i=!0===i,(void 0===this.collection[e]||i)&&(this.collection[e]=void 0!==t?jQuery(e,t):jQuery(e)),this.collection[e]):-1}};window.Give_Selector_Cache=i},159:function(e,t){var i;(i=jQuery).fn.repeatable_fields=function(e){var t={wrapper:".wrapper",container:".container",row:".row",add:".add",remove:".remove",confirm_before_remove_row:!1,confirm_before_remove_row_text:"",move:".move",template:".template",is_sortable:!0,before_add:null,after_add:o,before_remove:null,after_remove:null,sortable_options:null,row_count_placeholder:"{{row-count-placeholder}}"},n=i.extend({},t,e);function o(e,t){var o=i(e).attr("data-rf-row-count");o++,i("*",t).each(function(){i.each(this.attributes,function(e,t){this.value=this.value.replace(n.row_count_placeholder,o-1)})}),i(e).attr("data-rf-row-count",o)}!function e(t){i(n.wrapper,t).each(function(t,a){var r=i(this).children(n.container);i(r).children(n.template).hide().find(":input").each(function(){i(this).prop("disabled",!0)});var s=i(r).children(n.row).filter(function(){return!i(this).hasClass(n.template.replace(".",""))}).length;if(i(r).attr("data-rf-row-count",s),i(this).on("click",n.add,function(t){t.stopImmediatePropagation();var a=i(i(r).children(n.template).clone().removeClass(n.template.replace(".",""))[0].outerHTML);i(a).find(":input").each(function(){i(this).prop("disabled",!1)}),"function"==typeof n.before_add&&n.before_add(r);var s=i(a).show().appendTo(r);"function"==typeof n.after_add&&n.after_add(r,s,o),e(s)}),i(this).on("click",n.remove,function(e){if(e.stopImmediatePropagation(),n.confirm_before_remove_row&&n.confirm_before_remove_row_text&&!confirm(n.confirm_before_remove_row_text))return!1;var t=i(this).parents(n.row).first();"function"==typeof n.before_remove&&n.before_remove(r,t),t.remove(),"function"==typeof n.after_remove&&n.after_remove(r)}),!0===n.is_sortable&&void 0!==i.ui&&void 0!==i.ui.sortable){var l=null!==n.sortable_options?n.sortable_options:{};l.handle=n.move,i(this).find(n.container).sortable(l)}})}(this)}},160:function(e,t){
|
9 |
/*!
|
10 |
* Give Admin Forms JS
|
11 |
*
|
15 |
* @copyright: Copyright (c) 2016, GiveWP
|
16 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
17 |
*/
|
18 |
+
!function(e){var t=function(){""===e(".give-level-id").text()&&e(".cmb-repeatable-grouping").each(function(t,i){var n=e(i).data("iterator")+1;e(i).find(".give-level-id").text(n),e(i).find(".give-level-id-input").val(n)});e("body").on("cmb2_add_row",function(t,i){!function(t){var i=(n=0,o=0,a=0,e("#_give_donation_levels_repeat > .cmb-repeatable-grouping").each(function(t,i){(a=e(this).find("input.give-level-id-input").val())>o&&(o=a),n++}),void 0!==o&&o>=n?parseInt(o)+1:n);var n,o,a;e(t).find("input.give-level-id-input").val(i),e(t).find(".give-level-id").text(i)}(i)}),e("body").on("cmb2_shift_rows_complete",function(t,i){e(".cmb-repeatable-grouping").each(function(t,i){var n=e(i).find("input.give-level-id-input").val();e(i).find(".give-level-id").text(n)})})};e(function(){e("body").on("change",".give-give_default_radio_inline",function(){e(".give-give_default_radio_inline").prop("checked",!1),e(this).prop("checked",!0)}),function(){e("._give_price_option_field input:radio").on("change",function(){"set"===e("._give_price_option_field input:radio:checked").val()?(e("._give_set_price_field").show(),e("#_give_donation_levels_field").hide(),e("._give_display_style_field").hide()):(e("._give_set_price_field").hide(),e("#_give_donation_levels_field").show(),e("._give_display_style_field").show())}).change(),e("._give_display_content_field input:radio").on("change",function(){"enabled"===e("._give_display_content_field input:radio:checked").val()?(e("._give_content_placement_field").show(),e("._give_form_content_field").show()):(e("._give_content_placement_field").hide(),e("._give_form_content_field").hide())}).change(),e("._give_terms_option_field input:radio").on("change",function(){"enabled"===e("._give_terms_option_field input:radio:checked").val()?(e("._give_agree_label_field").show(),e("._give_agree_text_field").show()):(e("._give_agree_label_field").hide(),e("._give_agree_text_field").hide())}).change(),e("._give_payment_display_field input:radio").on("change",function(){"onpage"===e("._give_payment_display_field input:radio:checked").val()?e("._give_reveal_label_field").hide():e("._give_reveal_label_field").show()}).change(),e("._give_custom_amount_field input:radio").on("change",function(){"disabled"===e("._give_custom_amount_field input:radio:checked").val()?(e("._give_custom_amount_range_field ").hide(),e("._give_custom_amount_text_field").hide()):(e("._give_custom_amount_range_field ").show(),e("._give_custom_amount_text_field").show())}).change();var t=e("._give_goal_option_field"),i=e("._give_goal_format_field input:radio");e("._give_close_form_when_goal_achieved_field input:radio").on("change",function(){"disabled"===e("._give_close_form_when_goal_achieved_field input:radio:checked").val()?e("._give_form_goal_achieved_message_field").hide():e("._give_form_goal_achieved_message_field").show()}).change(),t.on("change",function(){"disabled"===e("._give_goal_option_field input:radio:checked").val()?(e("._give_set_goal_field").hide(),e("._give_goal_format_field").hide(),e("._give_goal_color_field").hide(),e("._give_close_form_when_goal_achieved_field").hide(),e("._give_form_goal_achieved_message_field").hide(),e("._give_number_of_donation_goal_field").hide(),e("._give_number_of_donor_goal_field").hide()):(e("._give_set_goal_field").show(),e("._give_goal_format_field").show(),e("._give_goal_color_field").show(),e("._give_close_form_when_goal_achieved_field").show(),"enabled"===e("._give_close_form_when_goal_achieved_field input:radio:checked").val()&&e("._give_form_goal_achieved_message_field").show(),i.change())}).change(),i.on("change",function(){var t=e("._give_goal_format_field input:radio:checked").val(),i=e("._give_goal_option_field input:radio:checked").val();"donation"===t?(e("._give_set_goal_field, ._give_number_of_donor_goal_field,._give_number_of_donation_goal_field").hide(),"disabled"!==i&&e("._give_number_of_donation_goal_field").show()):"donors"===t?(e("._give_set_goal_field, ._give_number_of_donation_goal_field, ._give_number_of_donor_goal_field").hide(),"disabled"!==i&&e("._give_number_of_donor_goal_field").show()):("disabled"===i?e("._give_set_goal_field").hide():e("._give_set_goal_field").show(),e("._give_number_of_donation_goal_field, ._give_number_of_donor_goal_field").hide())}).change(),e("._give_customize_offline_donations_field input:radio").on("change",function(){"enabled"===e("._give_customize_offline_donations_field input:radio:checked").val()?(e("._give_offline_checkout_notes_field").show(),e("._give_offline_donation_enable_billing_fields_single_field").show(),e("._give_offline_donation_subject_field").show(),e("._give_offline_donation_email_field").show()):(e("._give_offline_checkout_notes_field").hide(),e("._give_offline_donation_enable_billing_fields_single_field").hide(),e("._give_offline_donation_subject_field").hide(),e("._give_offline_donation_email_field").hide())}).change(),e("._give_email_options_field input:radio").on("change",function(){"enabled"===e("._give_email_options_field input:radio:checked").val()?e("#email_notification_options .give-field-wrap:not(._give_email_options_field)").show():e("#email_notification_options .give-field-wrap:not(._give_email_options_field)").hide()}).change();var n=e('input[name="_give_name_title_prefix"]:checked').val();"required"!==n&&"optional"!==n||e(".give-title-prefixes-wrap").show(),e('input[name="_give_name_title_prefix"]').on("change",function(){var t=e('input[name="_give_name_title_prefix"]:checked').val();"required"===t||"optional"===t?e(".give-title-prefixes-wrap").show():e(".give-title-prefixes-wrap").hide()})}(),t(),e(".cmb2-text-money").each(function(t,i){parseInt(e(i).val())||e(i).removeAttr("value")})})}(jQuery)},161:function(e,t){
|
19 |
/*!
|
20 |
* Give Admin Forms JS
|
21 |
*
|
26 |
* @copyright: Copyright (c) 2016, GiveWP
|
27 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
28 |
*/
|
29 |
+
jQuery(document).ready(function(e){var t=jQuery("ul.give-payment-gatways-list");t.length&&t.sortable();e("body").on("change","#give-mainform #currency",function(){var t=e("#give-mainform #currency option:selected").text().split("(").pop().split(")").shift();""===t&&(t=Give.fn.getGlobalVar("currency_sign"));var i=e("#give-mainform #currency_position").data("before-template");i=i.replace("{currency_pos}",t),e('#give-mainform #currency_position option[value="before"]').text(i);var n=e("#give-mainform #currency_position").data("after-template");n=n.replace("{currency_pos}",t),e('#give-mainform #currency_position option[value="after"]').text(n)}),"disabled"!==e('input[name="name_title_prefix"]:checked').val()&&e(".give-title-prefixes-settings-wrap").show(),e('input[name="name_title_prefix"]').on("change",function(){"disabled"!==e(this).val()?e(".give-title-prefixes-settings-wrap").show():e(".give-title-prefixes-settings-wrap").hide()}),e("a.give-repeat-setting-field").on("click",function(t){t.preventDefault();var i=e(this).parents("td"),n=e("p:first-child",i).clone(),o=e("p",i).not(".give-field-description").length,a=e(this).data("id")+"_"+ ++o,r=e(this).prev();return e("input",r).val()&&(e(this).before(n),r=e(this).prev(),e("input",r).attr("id",a),e("input",r).val("")),!1}),e(".give-settings-page").on("click","span.give-remove-setting-field",function(t){e(this).parents("p").remove()}),e(".give-email-notification-status","table.giveemailnotifications").on("click",function(){var t=e(this),i=e("i",t),n=e(this).next(),o=e(this).hasClass("give-email-notification-enabled")?"disabled":"enabled",a=e(this).data("id");if(!parseInt(t.data("edit")))return e("div.give-email-notification-status-notice").remove(),e("hr.wp-header-end").after('<div class="updated error give-email-notification-status-notice"><p>'+e(this).closest(".give-email-notification-status").data("notice")+"</p></div>"),e("html, body").animate({scrollTop:e("div.give-email-notification-status-notice").position().top},"slow"),!1;e.ajax({url:ajaxurl,method:"POST",data:{action:"give_set_notification_status",status:o,notification_id:a},beforeSend:function(){t.hide(),n.addClass("is-active")},success:function(e){e.success&&(t.removeClass("give-email-notification-"+t.data("status")),t.addClass("give-email-notification-"+o),t.data("status",o),"enabled"===o?(i.removeClass("dashicons-no-alt"),i.addClass("dashicons-yes")):(i.removeClass("dashicons-yes"),i.addClass("dashicons-no-alt")),n.removeClass("is-active"),t.show())}})}),e("#give-clear-cache").on("click",function(){e.ajax({url:ajaxurl,type:"GET",data:{action:"give_cache_flush"}}).done(function(e){e.success?new Give.modal.GiveSuccessAlert({modalContent:{title:Give.fn.getGlobalVar("flush_success"),desc:e.data.message,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render():new Give.modal.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("flush_error"),desc:e.data.message,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()})});var i=Give.fn.getGlobalVar("decimal_separator"),n=Give.fn.getGlobalVar("thousands_separator"),o=/\(([^)]+)\)/,a={position:Give.fn.getGlobalVar("currency_pos"),symbol:Give.fn.getGlobalVar("currency_sign"),precision:Give.fn.getGlobalVar("number_decimals"),decimal:Give.fn.getGlobalVar("decimal_separator"),thousand:Give.fn.getGlobalVar("thousands_separator")};e("#number_decimals, #decimal_separator, #thousands_separator, #currency_position, #currency").on("input blur change",function(t){var r=e("#currency_preview"),s=e("#decimal_separator"),l=e("#thousands_separator"),c=t.target.name,d=t.target.value;if("number_decimals"!==c||"input"!==t.type&&"blur"!==t.type||(d&&!isNaN(d)||"blur"!==t.type||(t.target.value=Give.fn.getGlobalVar("number_decimals")),a.precision=isNaN(parseInt(d))?Give.fn.getGlobalVar("number_decimals"):parseInt(d)),"decimal_separator"!==c||"input"!==t.type&&"blur"!==t.type||(d||"blur"!==t.type||(t.target.value=i),a.decimal=d,a.hasOwnProperty("thousand")&&"input"===t.type?a.decimal===a.thousand&&(a.thousand=i,l.val(i),i=d,n=l.val()):a.decimal===Give.fn.getGlobalVar("thousands_separator")&&"input"===t.type&&(a.thousand=i,l.val(i),i=d,n=l.val())),"thousands_separator"!==c||"input"!==t.type&&"blur"!==t.type||(d||"blur"!==t.type||(t.target.value=n),a.thousand=d,a.hasOwnProperty("decimal")&&"input"===t.type?a.decimal===a.thousand&&(a.decimal=n,s.val(n),n=d,i=s.val()):a.thousand===Give.fn.getGlobalVar("decimal_separator")&&"input"===t.type&&(a.decimal=n,s.val(n),n=d,i=s.val())),"currency_position"===c&&"change"===t.type&&(a.position=d),"currency"===c&&"change"===t.type){a.currency=d;var u=o.exec(t.target[t.target.selectedIndex].text);a.symbol=u[1]}r.val(Give.fn.formatCurrency("123456.12345",a,{}))})})},162:function(e,t){
|
30 |
/*!
|
31 |
* Give Admin Export JS
|
32 |
*
|
37 |
* @copyright: Copyright (c) 2016, GiveWP
|
38 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
39 |
*/
|
40 |
+
jQuery(document).ready(function(e){function t(t){var i=void 0!==t.standard_fields&&null!==t.standard_fields?t.standard_fields:"",n=e(".give-export-donations-standard-fields ul");i.length>0&&(n.closest("tr").removeClass("give-hidden"),e(i).each(function(e,t){n.append('<li class="give-export-donation-checkbox-remove"><label for="give-give-donations-standard-field-'+t+'"><input type="checkbox" name="give_give_donations_export_option['+t+']" id="give-give-donations-standard-field-'+t+'">'+t+"</label> </li>")}));var o=void 0!==t.hidden_fields&&null!==t.hidden_fields?t.hidden_fields:"",a=e(".give-export-donations-hidden-fields ul");o&&(a.closest("tr").removeClass("give-hidden"),e(o).each(function(e,t){a.append('<li class="give-export-donation-checkbox-remove"><label for="give-give-donations-hidden-field-'+t+'"><input type="checkbox" name="give_give_donations_export_option['+t+']" id="give-give-donations-hidden-field-'+t+'">'+t+"</label> </li>")}))}e(".give-export_donations #give-export_donations-form .give_forms_categories , .give-export_donations #give-export_donations-form .give_forms_tags").change(function(){var i,n,o;i=e("form#give-export_donations-form"),n=e(i).find("tr.give-export-donation-form .give-select-chosen"),o=n.prev(),n.find('input[type="text"]'),n.hasClass("variations"),e(".give-export-donations-hide").addClass("give-hidden"),e("li.give-export-donation-checkbox-remove").remove(),e.ajax({type:"POST",url:ajaxurl,data:{action:"give_form_search",s:"",fields:e(i).serialize()},beforeSend:function(){o.closest("ul.chosen-results").empty()},success:function(a){e("option",o).remove();var r=[];a.length?(i.find(".give-export-donation-button").prop("disabled",!1),e.each(a,function(e,t){o.prepend('<option value="'+t.id+'">'+t.name+"</option>"),r.push(t.id)}),o.prepend('<option value="0" selected>'+o.data("placeholder")+"</option>")):(o.prepend('<option value="0">'+o.data("no-form")+"</option>"),i.find(".give-export-donation-button").prop("disabled",!0)),i.find(".form_ids").val(r.join()),n.prev("select.give-select-chosen").trigger("chosen:updated"),t("")}})}),e(".give-export_donations #give-export_donations-form #give_payment_form_select").change(function(){var i;if(e(".give-export-donations-hide").addClass("give-hidden"),e("li.give-export-donation-checkbox-remove").remove(),jQuery(document).trigger("give_export_donations_form_change"),!(i=e(this).val()))return!1;e.ajax({type:"POST",url:ajaxurl,data:{form_id:i,action:"give_export_donations_get_custom_fields"},success:function(e){e?t(e):alert(Give.fn.getGlobalVar("error_message")),jQuery(document).trigger("give_export_donations_form_response",e)}})});var i=e('.give-export-option-fields input[type="checkbox"]');function n(t){var i=e(t).val(),n=e(t).attr("data-value"),o=[n,i];i=o[0],n=o[1],e(t).attr("value",i),e(t).attr("data-value",n)}e(".give-toggle-checkbox-selection").toggle(function(){i.removeAttr("checked"),n(this)},function(){i.attr("checked",!0),n(this)})})},163:function(e,t){
|
41 |
/*!
|
42 |
* Give Admin Widgets JS
|
43 |
*
|
47 |
* @copyright: Copyright (c) 2016, GiveWP
|
48 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
49 |
*/
|
50 |
+
var i,n;i=jQuery,n=function(){i(".widget-liquid-right").on("change",".give_forms_display_style_setting_row input",function(){var e=i(this).parents("p"),t=e.next();"onpage"===i("input:checked",e).val()?t.hide():t.show()})},i(function(){n(),i(".give_forms_display_style_setting_row input",".widget-liquid-right").trigger("change")}),i(document).ajaxSuccess(function(e,t,o){n(),i(".give_forms_display_style_setting_row input",".widget-liquid-right").trigger("change")})},17:function(e,t,i){"use strict";var n={fn:{renderNotice:function(e,t){var i;switch(t=void 0!==t?t:{},e){case"bad_minimum":i=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":i=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";i.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var i,n,o;if(i=n=o="",t.length)switch(e){case"bad_minimum":n=Give.fn.getGlobalVar(e),o=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":n=Give.fn.getGlobalVar(e),o=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==n&&(i=n+" "+Give.fn.formatCurrency(o,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),i}}},o={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.addEventListener("load",function(){Give.form.fn.__sendBackToForm()})},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},formatAmount:function(e,t,i){return t.length?Give.fn.formatCurrency(e,i,t):e},getInfo:function(e,t){var i="";if(t=void 0!==t?t:{},!e.length||!t.length)return i;switch(e){case"gateways":i=[],jQuery.each(t.find('input[name="payment-mode"]'),function(e,t){t=t instanceof jQuery?t:jQuery(t),i.push(t.val().trim())});break;case"form-type":t.hasClass("give-form-type-set")?i="set":t.hasClass("give-form-type-multi")&&(i="multi");break;case"form-id":i=t.find('input[name="give-form-id"]').val();break;default:void 0!==(i=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&i.trim()}return i},setInfo:function(e,t,i,n){if(!i.length)return!1;switch(e=void 0===e?"data":e){case"nonce":i.find('input[name="give-form-hash"]').val(t)}if(void 0!==n&&!n.length)return!1;switch(e){case"attr":i.attr(n,t);break;default:i.data(n,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,i=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,function(t,n){n=n instanceof jQuery?n:jQuery(n);var o=Give.form.fn.getInfo("decimal_separator",e);i.push({price_id:n.data("price-id"),amount:Give.fn.unFormatCurrency(n.val(),o)})}),i):i},getPriceID:function(e,t){var i=this.getVariablePrices(e),n=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),o=Give.fn.getCache("amount_"+n,e)?Give.fn.getCache("amount_"+n,e):-1;return t=void 0===t||t,i.length&&-1===o&&(t?(jQuery.each(i,function(e,t){if(t.amount===n)return o=t.price_id,!1}),-1===o&&this.getMinimumAmount(e)<=n&&this.getMaximumAmount(e)>=n&&this.getMinimumAmount(e)<=n&&(o="custom")):o=jQuery('input[name="give-price-id"]',e).val()),o},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)})},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise(function(t,i){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(n){if(!n.success)return i(n);var o=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",n.data.give_form_hash,e,""),o.length&&o.val(n.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[n.data]),t(n)}).done(function(){Give.form.fn.disable(e,!1)})}))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),i=e.val(),n=e.data("price-id");if(void 0===n&&(n=e.find("option:selected").data("price-id")),"custom"===n)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(i),t.find("span.give-amount-top").text(i);var o=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),o)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,i,n])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var i=jQuery("body").find("#give-form-"+e+"-wrap"),n=i.find("form.give-form"),o=i.hasClass("give-display-modal"),a=i.hasClass("give-display-button"),r=i.hasClass("give-display-reveal");n.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),n.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=n.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):o||a?give_open_form_modal(i,n):r&&(n.find(".give-btn-reveal").hide(),n.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),i=this.getMaximumAmount(e),n=this.getAmount(e),o=this.getPriceID(e,!0);return 0!==n&&(-1<n&&n>=t&&n<=i||-1!==o)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]})},field:{formatCreditCard:function(e){e.each(function(e,t){var i=(t=jQuery(t)).find(".card-number"),n=t.find(".card-cvc"),o=t.find(".card-expiry");i.length&&(i.payment("formatCardNumber"),n.payment("formatCardCVC"),o.payment("formatCardExpiry"))})}}}},a={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},r={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)r[e[t]].init&&r[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,i){var n={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(i=void 0===i?{}:i).length&&(n={symbol:"",decimal:r.form.fn.getInfo("decimal_separator",i),thousand:r.form.fn.getInfo("thousands_separator",i),precision:r.form.fn.getInfo("number_decimals",i),currency:r.form.fn.getInfo("currency_code",i)}),(t=jQuery.extend(n,t)).precision=parseInt(t.precision),"INR"===t.currency){var o,a=parseFloat(e).toFixed(n.precision),s=t.precision?".0":"",l="",c="",d="";(a=(a=accounting.unformat(a,".").toString()).toString()).indexOf(".")>0&&(s=a.substring(a.indexOf("."),a.length)),l=(a=Math.floor(a).toString()).substring(a.length-3),""!==(c=a.substring(0,a.length-3))&&(l=n.thousand+l),o=(d=c.replace(/\B(?=(\d{2})+(?!\d))/g,n.thousand)+l+s).lastIndexOf("."),e=d=d.slice(0,o)+(d.slice(o)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var i=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(i,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,i){i.length?r.cache["form_"+r.form.fn.getInfo("form-id",i)][e]=t:r.cache[e]=t},getCache:function(e,t){var i,n=r.cache["form_"+r.form.fn.getInfo("form-id",t)];return i=void 0===(i=t.length?void 0!==n?n[e]:"":r.cache[e])?"":i},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),i="";return 2===t.length&&(i=t.pop().split(";").shift()),i}},cache:{}};r.notice=n,r.form=o,r.donor=a;t.a=r},29:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},340:function(e,t,i){"use strict";i.r(t);i(154),i(75),i(155),i(156),i(157);var n,o=i(10),a=i.n(o);(n=jQuery).extend({giveAjaxifyFields:function(e){var t,i,o=n.extend({},{type:"",parentWrapper:"form",countryFieldName:"country",stateFieldName:"state",stateFieldWrapper:".give-field-wrap",chosenState:!0},e||{});switch(o.type){case"country_state":if(t=n('select[name="'+o.countryFieldName+'"]'),i=t.closest(o.parentWrapper),!t.length||"Country_state"===t.data("give-ajaxify-field"))return;t.data("give-ajaxify-field","country_state"),t.change(function(){var e=n(this),t=e.closest(o.parentWrapper).find('[name="'+o.stateFieldName+'"]'),r=t.closest(o.stateFieldWrapper),s=n("label",r);o.stateFieldWrapper||(s=n('label[for="'+o.stateFieldName+'"]',i),r=t.parent());var l={action:"give_get_states",country:e.val(),field_name:o.stateFieldName};n.post(ajaxurl,l,function(e){e.show_field?(s.length&&s.text(e.states_label),o.chosenState&&t.chosen("destroy"),o.stateFieldWrapper?r.removeClass("give-hidden"):t.removeClass("give-hidden"),void 0!==a()(e.states_found)&&!0===e.states_found?(t.replaceWith(e.data),t=n('[name="'+o.stateFieldName+'"]',r),o.chosenState&&t.chosen()):(t.replaceWith('<input type="text" name="'+o.stateFieldName+'" value="'+e.default_state+'" class="medium-text"/>'),t=n('[name="'+o.stateFieldName+'"]',r))):o.stateFieldWrapper?r.addClass("give-hidden"):t.addClass("give-hidden")})})}return this}});i(158),i(159),i(77);var r=i(17),s=i(7),l=(i(160),i(161),i(162),i(163),i(5)),c=i.n(l),d=i(8),u=i.n(d),h=i(11),f=i.n(h),p=i(12),g=i.n(p),m=i(29),v=i.n(m),_=i(13),b=i.n(_),y=function(){function e(t){c()(this,e),this.root=t,this.buttonText=this.root.textContent.trim(),this.iconPosition="before";var i=this.root.querySelector(".dashicons");i&&(this.iconClassName=i.className)}return u()(e,[{key:"enable",value:function(){this.root.disabled=!1}},{key:"disable",value:function(){this.root.disabled=!0}},{key:"setBusyState",value:function(){this.root.innerHTML="".concat('<span class="dashicons dashicons-marker"></span>'," ").concat(this.buttonText),this.disable()}},{key:"removeBusyState",value:function(){this.enable(),this.iconClassName&&this.updateIcon(this.iconClassName)}},{key:"updateIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"before",i='<span class="'.concat(e,'"></span>');this.root.innerHTML="after"===t?"".concat(this.buttonText," ").concat(i):"".concat(i," ").concat(this.buttonText),this.iconClassName=e,this.iconPosition=t}},{key:"updateButtonText",value:function(e){this.buttonText=e,this.iconClassName?this.updateIcon(this.iconClassName,this.iconPosition):this.root.textContent=e}}]),e}(),x=i(141),w=i.n(x),k=function(e){function t(e){var i;return c()(this,t),(i=f()(this,g()(t).call(this,e))).shortcode=i.root.dataset.giveShortcode,i.clipboard=new w.a(i.root,{text:function(e){return e.dataset.giveShortcode}}),i.reset=i.reset.bind(v()(i)),i}return b()(t,e),u()(t,[{key:"init",value:function(){this.registerEventHandlers()}},{key:"registerEventHandlers",value:function(){var e=this;this.clipboard.on("success",function(){return e.handleSuccessClick()}),this.clipboard.on("error",function(){return e.handleErrorClick()})}},{key:"handleSuccessClick",value:function(e){this.updateIcon("dashicons dashicons-yes"),this.root.setAttribute("aria-label",give_vars.copied),this.root.addEventListener("mouseout",this.reset)}},{key:"handleErrorClick",value:function(e){this.updateIcon("dashicons dashicons-warning"),this.root.setAttribute("aria-label","Shortcode could not be copied.")}},{key:"reset",value:function(e){this.updateIcon("dashicons dashicons-admin-page"),this.root.setAttribute("aria-label",this.shortcode),this.root.removeEventListener("mouseout",this.reset)}}]),t}(y),C=!1,j=i(78);function S(){var e=jQuery(".give-settings-page"),t=jQuery("h2.give-nav-tab-wrapper"),i=e.width(),n=jQuery(".give-sub-nav-tab-wrapper"),o=jQuery("nav",n),a=jQuery("div.give-nav-tab-wrapper > a:not(give-not-tab)"),r=[],s=[],l=0;if(600<jQuery(window).outerWidth()&&(l=200),!e.length)return!1;t.css({height:"auto",overflow:"visible"}),a.removeClass("give-hidden"),new Promise(function(e,t){jQuery.each(a,function(e,t){t=jQuery(t),(l+=parseInt(t.outerWidth()))<i?r.push(t):s.push(t)}),e(!0)}).then(function(e){if(s.length&&-1!==window.location.search.indexOf("&tab=")){var i={},a=function(){for(var e,t=[],i=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<i.length;n++)e=i[n].split("="),t[e[0]]=e[1];return t}
|
51 |
/**
|
52 |
* Give Admin JS
|
53 |
*
|
55 |
* @subpackage: Assets/JS
|
56 |
* @copyright: Copyright (c) 2016, GiveWP
|
57 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
58 |
+
*/();s=s.filter(function(e){var t=-1!==parseInt(e.attr("href").indexOf("&tab="+a.tab));return t&&(i=e),!t}),i.length&&(s.unshift(r.pop()),r.push(i))}new Promise(function(e,t){r.length&&jQuery.each(r,function(e,t){(t=jQuery(t)).hasClass("give-hidden")&&t.removeClass("give-hidden")}),e(!0)}).then(function(e){s.length?(o.html(""),jQuery.each(s,function(e,t){(t=jQuery(t)).hasClass("nav-tab-active")||t.addClass("give-hidden"),t.clone().removeClass().appendTo(o)}),jQuery(".give-sub-nav-tab-wrapper",t).length||t.append(n),n.show()):n.hide()})})}!function(e){var t=function(t,i){var n=(i=jQuery.extend({wrapper:!0,show:!1},i)).wrapper?e(".give-spinner-wrapper",t):{},o=e(".give-spinner",t);if(i.show)return n.length&&n.addClass("is-active"),void o.addClass("is-active");n.length&&n.removeClass("is-active"),o.removeClass("is-active")},i=function(e){var t=document.location.href,i=t.split("?");e=void 0===e?"":e.replace("give-","");if(i.length>=2){for(var n=i.shift(),o=i.join("?"),a=encodeURIComponent("give-message")+"=",r=o.split(/[&;]/g),s=r.length;s-- >0;)(-1!==r[s].lastIndexOf(a,0)||""!==e&&-1!==r[s].lastIndexOf("give-messages",0)&&r[s].match(e+"$"))&&r.splice(s,1);t=n+"?"+r.join("&"),window.history.pushState("",document.title,t)}return t};function n(e,t){return e=accounting.unformat(e,Give.fn.getGlobalVar("decimal_separator")).toString(),e=!1!==(t="undefined"!==t&&t)?parseFloat(e).toFixed(t):parseFloat(e).toFixed(Give.fn.getGlobalVar("currency_decimals"))}var o={init:function(){this.deleteSingleDonation(),this.resendSingleDonationReceipt()},deleteSingleDonation:function(){new s.GiveConfirmModal({triggerSelector:".delete-single-donation",modalWrapper:"give-modal--warning",modalContent:{title:Give.fn.getGlobalVar("confirm_delete_donation"),desc:Give.fn.getGlobalVar("delete_payment")},successConfirm:function(e){window.location.assign(e.el.attr("href"))}})},resendSingleDonationReceipt:function(){new s.GiveConfirmModal({triggerSelector:".resend-single-donation-receipt",modalContent:{title:Give.fn.getGlobalVar("confirm_resend"),desc:Give.fn.getGlobalVar("resend_receipt")},successConfirm:function(e){window.location.assign(e.el.attr("href"))}})}},r={init:function(){this.edit_address(),this.add_note(),this.remove_note(),this.new_donor(),this.resend_receipt(),this.variable_price_list()},edit_address:function(){e('select[name="give-payment-address[0][country]"]').change(function(){var t=e(this),i={action:"give_get_states",country:t.val(),field_name:"give-payment-address[0][state]"};return e.post(ajaxurl,i,function(i){t.closest(".column-container").find("#give-order-address-state-wrap").removeClass("give-hidden"),t.closest(".column-container").find(".give-column").removeClass("column-full"),t.closest(".column-container").find(".give-column").addClass("column");var n=e("#give-order-address-state-wrap");n.find("*").not(".order-data-address-line").remove(),void 0!==a()(i.states_found)&&!0===i.states_found?(n.append(i.data),n.find("select").chosen()):(n.append('<input type="text" name="give-payment-address[0][state]" value="'+i.default_state+'" class="give-edit-toggles medium-text"/>'),void 0!==a()(i.show_field)&&!1===i.show_field&&(t.closest(".column-container").find("#give-order-address-state-wrap").addClass("give-hidden"),t.closest(".column-container").find(".give-column").addClass("column-full"),t.closest(".column-container").find(".give-column").removeClass("column")))}),!1})},add_note:function(){e("#give-add-payment-note").on("click",function(t){function i(){e.ajax({type:"POST",data:r,url:ajaxurl,beforeSend:function(){o.prop("disabled",!0),n.prop("disabled",!0)},success:function(t){e("#give-payment-notes-inner").append(t),e(".give-no-payment-notes").hide(),e("#give-payment-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)}).always(function(){o.prop("disabled",!1),n.prop("disabled",!1)})}t.preventDefault();var n=e(this),o=e("#give-payment-note"),a=e("#donation_note_type"),r={action:"give_insert_payment_note",payment_id:e(this).data("payment-id"),note:o.val(),type:a.val()};if(r.note)"donor"===r.type&&give_vars.email_notification.donor_note.status?new Give.modal.GiveConfirmModal({successConfirm:function(){i()},modalContent:{desc:give_vars.donor_note_confirm_msg}}).render():i();else{var s=o.css("border-color");o.css("border-color","red"),setTimeout(function(){o.css("border-color",s)},500)}})},remove_note:function(){e("body").on("click",".give-delete-payment-note",function(t){t.preventDefault();var i=this;new s.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_deletion"),desc:Give.fn.getGlobalVar("delete_payment_note")},successConfirm:function(t){var n={action:"give_delete_payment_note",payment_id:e(i).data("payment-id"),note_id:e(i).data("note-id")};e.ajax({type:"POST",data:n,url:ajaxurl,success:function(t){return e("#give-payment-note-"+n.note_id).remove(),e(".give-payment-note").length||e(".give-no-payment-notes").show(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}}).render()})},new_donor:function(){e("#give-donor-details").on("click",".give-payment-new-donor, .give-payment-new-donor-cancel",function(t){t.preventDefault(),e(".donor-info").toggle(),e(".new-donor").toggle(),e(".new-donor").is(":visible")?e("#give-new-donor").val(1):e("#give-new-donor").val(0)})},resend_receipt:function(){e("body").on("click","#give-resend-receipt",function(t){var i=this;t.preventDefault(),new s.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("resend_receipt")},successConfirm:function(){window.location.assign(e(i).attr("href"))}}).render()})},variable_price_list:function(){e("#give_payment_form_select").chosen().change(function(){var t,i=e(".give-donation-level");return!!(t=e(this).val())&&(!!i.length&&void e.ajax({type:"POST",url:ajaxurl,data:{form_id:t,payment_id:e('input[name="give_payment_id"]').val(),action:"give_check_for_form_price_variations_html"},success:function(t){(t=t.trim())?(i.html(t),e('select[name="give-variable-price"]').chosen().change()):i.html("")}}))}),e("#give-donation-overview").on("change",'select[name="give-variable-price"]',function(){var t=jQuery(this).data("prices"),i=e("#give-payment-total");""!==t&&e(this).val()in t&&(i.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout(function(){i.css("background-color","white")},1e3))})}},l={init:function(){this.toggle_gateways(),this.setting_change_country(),this.toggle_options(),this.main_setting_update_notice(),this.verify_settings(),this.saveButtonTriggered(),this.changeAlert(),this.detectSettingsChange(),this.sequentialDonationIDPreview()},toggle_gateways:function(){e(".gateways-checkbox").on("click",function(){var t=e(this).prev(".gateways-radio"),i=(this.checked,e(".gateways-checkbox:checked"));1===i.length?(i.prev(".gateways-radio").attr("checked","checked"),this.checked?t.removeAttr("disabled"):t.attr("disabled","disabled")):this.checked?(t.removeAttr("disabled"),t.removeAttr("checked")):t.attr("disabled","disabled")})},setting_change_country:function(){e('select[name="base_country"]').change(function(){var t=e(this),i={action:"give_get_states",country:t.val(),field_name:"base_state"};return e.post(ajaxurl,i,function(n){t.closest("tr").next().show(),e("#base_state_chosen").remove(),null!=a()(n.states_found)&&1==n.states_found?(e(':input[name="base_state"]').replaceWith(n.data).addClass("give-select-chosen"),e(':input[name="base_state"]').chosen()):(null!=a()(n.show_field)&&0==n.show_field&&t.closest("tr").next().hide(),e(':input[name="base_state"]').replaceWith('<input type="text" name="'+i.field_name+'" value="'+n.default_state+'" class="give-edit-toggles medium-text"/>'))}),!1})},toggle_options:function(){e('input[name="email_access"]',".give-setting-tab-body-general").on("change",function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val(),i=e('input[name="enable_recaptcha"]:checked',".give-setting-tab-body-general").val();"enabled"===t?(e('input[name="enable_recaptcha"]').parents("tr").show(),"enabled"===i?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide(),e('input[name="enable_recaptcha"]').parents("tr").hide())}).change(),e('input[name="enable_recaptcha"]',".give-setting-tab-body-general").on("change",function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val(),i=e('input[name="enable_recaptcha"]:checked',".give-setting-tab-body-general").val();"enabled"===t&&"enabled"===i?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())}).change(),e('input[name="form_featured_img"]',".give-setting-tab-body-display").on("change",function(){"enabled"===e('input[name="form_featured_img"]:checked',".give-setting-tab-body-display").val()?e("#featured_image_size").parents("tr").show():e("#featured_image_size").parents("tr").hide()}).change(),e('input[name="terms"]',".give-setting-tab-body-display").on("change",function(){"enabled"===e('input[name="terms"]:checked',".give-setting-tab-body-display").val()?(e("#agree_to_terms_label").parents("tr").show(),e("#wp-agreement_text-wrap").parents("tr").show()):(e("#agree_to_terms_label").parents("tr").hide(),e("#wp-agreement_text-wrap").parents("tr").hide())}).change(),e('input[name="admin_notices"]',".give-setting-tab-body-emails").on("change",function(){"enabled"===e('input[name="admin_notices"]:checked',".give-setting-tab-body-emails").val()?(e("#donation_notification_subject").parents("tr").show(),e("#wp-donation_notification-wrap").parents("tr").show(),e("#admin_notice_emails").parents("tr").show()):(e("#donation_notification_subject").parents("tr").hide(),e("#wp-donation_notification-wrap").parents("tr").hide(),e("#admin_notice_emails").parents("tr").hide())}).change(),e('input[name="sequential-ordering_status"]',".give-setting-tab-body-general").on("change",function(){var t=e('input[name="sequential-ordering_status"]:checked',".give-setting-tab-body-general").val(),i=e(this).closest("table");"enabled"===t?e("input",i).not('input[name="sequential-ordering_status"]').parents("tr").show():e("input",i).not('input[name="sequential-ordering_status"]').parents("tr").hide()}).change()},main_setting_update_notice:function(){var t=e("#setting-error-give-setting-updated");t.length&&window.setTimeout(function(){t.slideUp()},5e3)},verify_settings:function(){var t=e("#success_page"),i=e("#failure_page");t.add(i).change(function(){if(t.val()===i.val()){var n='<div id="setting-error-give-matched-success-failure-page" class="updated settings-error notice is-dismissible"> <p><strong>'+Give.fn.getGlobalVar("matched_success_failure_page")+'</strong></p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">'+Give.fn.getGlobalVar("dismiss_notice_text")+"</span></button> </div>",o=e("#setting-error-give-matched-success-failure-page");if(e(this).val(""),o.length)return!1;e("h1","#give-mainform").after(n),o=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",o).click(function(){o.remove()})}}).change()},saveButtonTriggered:function(){e(".give-settings-setting-page").on("click",".give-save-button",function(){e(window).unbind("beforeunload")})},changeAlert:function(){e(window).bind("beforeunload",function(e){var t=Give.fn.getGlobalVar("setting_not_save_message");if(C)return(e||window.event).returnValue=t,t})},detectSettingsChange:function(){var t=e(".give-settings-setting-page");if(t.length>0){var i=e("#give-mainform").serialize();t.on("change keyup blur","form",function(){var t=e("#give-mainform").serialize();C=i!==t})}},sequentialDonationIDPreview:function(){var t=jQuery("#sequential-ordering_preview");t.length&&(jQuery("#sequential-ordering_number_prefix, #sequential-ordering_number, #sequential-ordering_number_padding, #sequential-ordering_number_suffix").on("keyup change",function(){var e=jQuery("#sequential-ordering_number_prefix").val(),i=jQuery("#sequential-ordering_number").val().trim()||"1",n=jQuery("#sequential-ordering_number_padding").val().trim(),o=jQuery("#sequential-ordering_number_suffix").val(),a="".concat(e).concat(i.padStart(n,"0")).concat(o);t.val(a)}),jQuery("#sequential-ordering_number_prefix").trigger("keyup"),jQuery("#sequential-ordering_number_prefix, #sequential-ordering_number_suffix").on("blur",function(){e(this).val(e(this).val().replace(new RegExp(" ","g"),"-"))}))}},c={init:function(){this.date_options(),this.donors_export(),this.recount_stats()},date_options:function(){e("#give-graphs-date-options").change(function(){"other"===e(this).val()?e("#give-date-range-options").show():e("#give-date-range-options").hide()})},donors_export:function(){e("#give_donor_export_form").change(function(){var t=e(this),i=e("option:selected",t).val(),n=e("#give_customer_export_option");"0"===t.val()?n.show():n.hide();var o=e(".give_price_options_select");if(0!=parseInt(i)){var a={action:"give_check_for_form_price_variations",form_id:i,all_prices:!0};e.post(ajaxurl,a,function(t){o.remove(),e("#give_donor_export_form_chosen").after(t)})}else o.remove()})},recount_stats:function(){e("body").on("change","#recount-stats-type",function(){var t=e("#give-tools-recount-form"),i=e("option:selected",this).data("type"),n=e("#recount-stats-submit"),o=e(".tools-form-dropdown"),a=e(".tools-date-dropdown-delete-donations");if(t.find(".notice-wrap").remove(),n.removeClass("button-disabled").attr("disabled",!1),o.hide(),a.hide(),e(".give-recount-stats-descriptions span").hide(),"reset-stats"===i)t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("reset_stats_warn")+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled");else if("delete-test-donors"===i){t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_test_donor")+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else if("delete-import-donors"===i){t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_import_donor")+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else if("delete-donations"===i){a.show(),t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_donations_only")+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else o.hide(),o.val(0);var r=e(".tools-form-dropdown-"+i);r.show(),r.find(".give-select-chosen").css({width:"auto","min-width":"250px"}),e("#"+i).show()}),e("body").on("change","#confirm-reset",function(){e(this).is(":checked")?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),e("#give-tools-recount-form").submit(function(t){var i=e("#recount-stats-type").val(),n=e(this),o=e("option:selected",this).data("type");if("reset-stats"===o){if(e("#confirm-reset").is(":checked"))return!0;r=!0}n.find(".notice-wrap").remove(),n.append('<div class="notice-wrap"></div>');var a=n.find(".notice-wrap"),r=!1;(null!==i&&0!==i||(a.html('<div class="updated error"><p>'+Give.fn.getGlobalVar("batch_export_no_class")+"</p></div>"),r=!0),"recount-form"===o)&&(0==e('select[name="form_id"]').val()&&(a.html('<div class="updated error"><p>'+Give.fn.getGlobalVar("batch_export_no_reqs")+"</p></div>"),r=!0));if(r)return n.find(".button-disabled").removeClass("button-disabled"),!1})}},d={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".give-export-form",function(i){i.preventDefault();var n=e(this).find('input[type="submit"]');if(!n.hasClass("button-disabled")){var o=e(this).serialize();n.addClass("button-disabled"),e("form.give-export-form select").attr("disabled",!0).trigger("chosen:updated");var a=e(this);e(this).find(".add-notices").length>0&&(a=e(this).find(".add-notices")),a.find(".notice-wrap").remove(),a.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.process_step(1,o,t,this)}})},process_step:function(t,i,n,o){C=!0;var a=!1;e.ajax({type:"POST",url:ajaxurl,data:{form:i,action:"give_do_ajax_export",step:t},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){C=!1,a=!0;var r=e(o).parent().find(".notice-wrap");r.find(".give-progress");if(e(o).find(".button-disabled").removeClass("button-disabled"),e(o).find("select").attr("disabled",!1).trigger("chosen:updated"),t.error){var s=t.message;r.html('<div class="updated error"><p>'+s+"</p></div>")}else if(t.success){var l=t.message;r.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+l+'<span class="notice-dismiss"></span></p></div>')}else r.remove(),window.location=t.url}else e(".give-progress div").animate({width:t.percentage+"%"},50,function(){}),n.process_step(parseInt(t.step),i,n,o);!0===a&&e("#give-tools-recount-form").length>0&&(e("#give-tools-recount-form")[0].reset(),e("#give-tools-recount-form .tools-form-dropdown").hide(),e("#give-tools-recount-form .tools-date-dropdown").hide(),e("#give-tools-recount-form .tools-form-dropdown-recount-form-select").val("0").trigger("chosen:updated"))}}).fail(function(t){C=!1,window.console&&window.console.log&&console.log(t),e(".notice-wrap").append(t.responseText)})},dismiss_message:function(){e("body").on("click","#give-batch-success .notice-dismiss",function(){e("#give-batch-success").parent().slideUp("fast")})}},u={el:{},init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;t.el.main_container=Give_Selector_Cache.get("#give-db-updates"),t.el.update_link=Give_Selector_Cache.get(".give-update-now",t.el.main_container),t.el.run_upload_container=Give_Selector_Cache.get(".give-run-database-update",t.el.progress_main_container),t.el.progress_main_container=Give_Selector_Cache.get(".progress-container",t.el.main_container),t.el.heading=Give_Selector_Cache.get(".update-message",t.el.progress_main_container),t.el.progress_container=Give_Selector_Cache.get(".progress-content",t.el.progress_main_container),t.el.update_progress_counter=Give_Selector_Cache.get(e(".give-update-progress-count")),t.el.main_container.data("resume-update")&&(t.el.update_link.addClass("active").hide().removeClass("give-hidden"),e("#give-restart-upgrades").length||(Give.fn.getGlobalVar("ajax").length||window.setTimeout(u.start_db_update,1e3),window.setTimeout(u.get_db_updates_info,1e3,t))),t.el.update_link.hasClass("active")||(t.el.update_link.on("click","",function(e){e.preventDefault(),t.el.run_upload_container.find(".notice").remove(),t.el.run_upload_container.append('<div class="notice notice-error non-dismissible give-run-update-containt"><p> <a href="#" class="give-run-update-button button">'+Give.fn.getGlobalVar("db_update_confirmation_msg_button")+"</a> "+Give.fn.getGlobalVar("db_update_confirmation_msg")+"</p></div>")}),e("#give-db-updates").on("click","a.give-run-update-button",function(i){return i.preventDefault(),!e(this).hasClass("active")&&(e(this).addClass("active").fadeOut(),t.el.update_link.addClass("active").fadeOut(),e("#give-db-updates .give-run-update-containt").slideUp(),t.el.progress_container.find(".notice-wrap").remove(),t.el.progress_container.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.el.progress_main_container.removeClass("give-hidden"),u.start_db_update(),window.setTimeout(u.get_db_updates_info,500,t),!1)}))},start_db_update:function(){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_run_db_updates",run_db_update:1,nonce:Give.fn.getGlobalVar("db_update_nonce")},dataType:"json",success:function(e){}}).always(function(){Give.fn.getGlobalVar("ajax").length||window.setTimeout(u.start_db_update,1e3)})},get_db_updates_info:function(t){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_db_updates_info"},dataType:"json",success:function(i){var n=Give_Selector_Cache.get(".notice-wrap",t.el.progress_container,!0);-1!==e.inArray("success",Object.keys(i))?i.success?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text("100%"),-1!==e.inArray("heading",Object.keys(i.data))&&t.el.heading.html("<strong>"+i.data.heading+"</strong>"),t.el.update_link.closest("p").remove(),n.html('<div class="notice notice-success is-dismissible"><p>'+i.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(i.data))&&t.el.heading.html("<strong>"+i.data.heading+"</strong>"),i.data.message?(t.el.update_link.closest("p").remove(),n.html('<div class="notice notice-error is-dismissible"><p>'+i.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):setTimeout(function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")},1e3)):i&&-1!==e.inArray("percentage",Object.keys(i.data))?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text(i.data.total_percentage+"%"),-1!==e.inArray("heading",Object.keys(i.data))&&t.el.heading.html("<strong>"+i.data.heading+"</strong>"),e(".give-progress div","#give-db-updates").animate({width:i.data.percentage+"%"},50,function(){}),window.setTimeout(u.get_db_updates_info,1e3,t)):(n.html('<div class="notice notice-error"><p>'+Give.fn.getGlobal().updates.ajax_error+"</p></div>"),setTimeout(function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")},1e3))}})},process_step:function(t,i,n){C=!0,e.ajax({type:"POST",url:ajaxurl,data:{action:"give_do_ajax_updates",step:parseInt(t),update:parseInt(i)},dataType:"json",success:function(t){C=!1;var i=Give_Selector_Cache.get(".notice-wrap",n.el.progress_container,!0);-1!==e.inArray("success",Object.keys(t))?t.success?(-1!==e.inArray("heading",Object.keys(t.data))&&n.el.heading.html("<strong>"+t.data.heading+"</strong>"),n.el.update_link.closest("p").remove(),i.html('<div class="notice notice-success is-dismissible"><p>'+t.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(t.data))&&n.el.heading.html("<strong>"+t.data.heading+"</strong>"),i.html('<div class="notice notice-error"><p>'+t.data.message+"</p></div>"),setTimeout(function(){n.el.update_link.removeClass("active").show(),n.el.progress_main_container.addClass("give-hidden")},5e3)):t&&-1!==e.inArray("percentage",Object.keys(t.data))?(e(".give-progress div","#give-db-updates").animate({width:t.data.percentage+"%"},50,function(){}),-1!==e.inArray("heading",Object.keys(t.data))&&n.el.heading.html("<strong>"+t.data.heading.replace("{update_count}",n.el.heading.data("update-count"))+"</strong>"),n.process_step(parseInt(t.data.step),t.data.update,n)):(i.html('<div class="notice notice-error"><p>'+Give.fn.getGlobal().updates.ajax_error+"</p></div>"),setTimeout(function(){n.el.update_link.removeClass("active").show(),n.el.progress_main_container.addClass("give-hidden")},5e3))}}).fail(function(e){C=!1,window.console&&window.console.log&&console.log(e),Give_Selector_Cache.get(".notice-wrap",self.el.progress_container).append(e.responseText)}).always(function(){})},dismiss_message:function(){e("body").on("click","#poststuff .notice-dismiss",function(){e(this).parent().slideUp("fast")})}},h={init:function(){this.restartUpgrade(),this.stopUpgrade(),this.restartUpdater()},restartUpgrade:function(){jQuery("#give-restart-upgrades").click("click",function(e){var t=this;e.preventDefault(),jQuery(".give-doing-update-text-p").show(),jQuery(".give-update-paused-text-p").hide(),new s.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("restart_upgrade")},successConfirm:function(){window.location.assign(jQuery(t).data("redirect-url"))}}).render()})},stopUpgrade:function(){jQuery("#give-pause-upgrades").click("click",function(e){var t=this;e.preventDefault(),jQuery(".give-doing-update-text-p").hide(),jQuery(".give-update-paused-text-p").show(),new s.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("stop_upgrade")},successConfirm:function(){window.location.assign(jQuery(t).data("redirect-url"))}}).render()})},restartUpdater:function(){jQuery(".give-restart-updater-btn,.give-run-update-now").click("click",function(e){var t=this;e.preventDefault(),new s.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("restart_update")},successConfirm:function(){window.location.assign(jQuery(t).attr("href"))}}).render()})}},f={onLoadPageNumber:"",init:function(){this.loadGravatar(),this.unlockDonorFields(),this.editDonor(),this.add_email(),this.removeUser(),this.cancelEdit(),this.add_note(),this.delete_checked(),this.addressesAction(),this.bulkDeleteDonor(),f.onLoadPageNumber=e("#current-page-selector").val(),e("body").on("click",'#give-donors-filter .bulkactions input[type="submit"]',this.handleBulkActions)},loadGravatar:function(){var t,i;e(".give-donor-name").each(function(){if(!(t=e(this).find(".give-donor__image")).hasClass("gravatar-loaded")){if(i=t.attr("data-donor_email"),"1"===t.attr("data-has-valid-gravatar")){var n=e("<img>");n.attr("src",j.url(i)),n.attr("width","60"),n.attr("height","60"),e(this).find(".give-donor__image").html(n)}t.addClass("gravatar-loaded")}})},unlockDonorFields:function(t){e("body").on("click",".give-lock-block",function(e){new s.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("unlock_donor_fields_title"),desc:Give.fn.getGlobalVar("unlock_donor_fields_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),e.preventDefault()})},editDonor:function(){e("body").on("click","#edit-donor",function(t){t.preventDefault(),e("#give-donor-card-wrapper .editable").hide(),e("#give-donor-card-wrapper .edit-item").fadeIn().css("display","block")})},removeUser:function(){e("body").on("click","#disconnect-donor",function(t){if(t.preventDefault(),!confirm(Give.fn.getGlobalVar("disconnect_user")))return!1;var i={give_action:"disconnect-userid",customer_id:e('input[name="donor_info[id]"]').val(),_wpnonce:e("#edit-donor-info #_wpnonce").val()};e.post(ajaxurl,i,function(e){window.location.href=e.redirect},"json")})},cancelEdit:function(){e("body").on("click","#give-edit-donor-cancel",function(t){t.preventDefault(),e("#give-donor-card-wrapper .edit-item").hide(),e("#give-donor-card-wrapper .editable").show(),e(".give_user_search_results").html("")})},add_note:function(){e("body").on("click","#add-donor-note",function(t){t.preventDefault();var i={give_action:"add-donor-note",customer_id:e("#donor-id").val(),donor_note:e("#donor-note").val(),add_donor_note_nonce:e("#add_donor_note_nonce").val()};if(i.donor_note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-donor-notes").prepend(t),e(".give-no-donor-notes").hide(),e("#donor-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#donor-note").css("border-color");e("#donor-note").css("border-color","red"),setTimeout(function(){e("#donor-note").css("border-color",n)},500)}})},delete_checked:function(){e("#give-donor-delete-confirm").change(function(){var t=e("#give-donor-delete-records"),i=e("#give-delete-donor");e(this).prop("checked")?(t.attr("disabled",!1),i.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),i.attr("disabled",!0))})},add_email:function(){e("#add-donor-email").length&&e(document.body).on("click","#add-donor-email",function(t){t.preventDefault();var i=e(this),n=i.parent();n.parent().find(".notice-wrap").remove(),n.find(".spinner").css("visibility","visible"),i.attr("disabled",!0);var o={give_action:"add_donor_email",customer_id:n.find('input[name="donor-id"]').val(),email:n.find('input[name="additional-email"]').val(),primary:n.find('input[name="make-additional-primary"]').is(":checked"),_wpnonce:n.find('input[name="add_email_nonce"]').val()};e.post(ajaxurl,o,function(e){!0===e.success?window.location.href=e.redirect:(i.attr("disabled",!1),n.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),n.find(".spinner").css("visibility","hidden"))},"json")})},addressesAction:function(){var i=this,n=e("#donor-address-wrapper"),o=e(".all-address",n),a=e(".give-no-address-message",n),r=e(o).parent(),s=e(".address-form",n),l=e(".js-cancel",s),c=e('select[name="country"]',s),d=e(".add-new-address",n),u=parseInt(e('input[name="donor-id"]').val());c.on("change",function(){e(this).trigger("chosen:updated")}),o.on("click",".js-edit",function(t){var n=e(this).closest(".address");t.preventDefault(),e(".notice",r).remove(),i.__set_address_form_val(n),i.__set_address_form_action("update",n.data("address-id")),d.hide(),o.addClass("give-hidden"),s.removeClass("add-new-address-form-hidden"),s.data("process","update")}),o.on("click",".js-remove",function(t){t.preventDefault();var n=e(this).closest(".address");e(".notice",r).remove(),s.data("changed",!0),i.__set_address_form_val(n),i.__set_address_form_action("remove",n.data("address-id")),s.trigger("submit")}),d.on("click",function(t){t.preventDefault(),e(".notice",r).remove(),e(this).hide(),o.addClass("give-hidden"),s.removeClass("add-new-address-form-hidden"),i.__set_address_form_action("add"),i.__set_address_form_action()}),l.on("click",function(e){e.preventDefault(),s.find('input[type="text"]').val(""),d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden")}),s.on("change",function(){e(this).data("changed",!0)}).on("submit",function(i){i.preventDefault();var l=e(this);return e(".notice",r).remove(),e(this).data("changed")?(e.ajax({type:"POST",url:ajaxurl,data:{action:"donor_manage_addresses",donorID:u,form:e("form",s).serialize()},beforeSend:function(){t(n,{show:!0})},success:function(i){if(t(n),i.success){var s;switch(i.data.action){case"add":e(".give-grid-row",o).append(i.data.address_html),!a.hasClass("give-hidden")&&e("div.give-grid-col-4",o).length&&a.addClass("give-hidden");break;case"remove":(s=o.find('div[data-address-id*="'+i.data.id+'"]').parent()).length&&s.animate({"margin-left":"-999"},1e3,function(){s.remove(),a.hasClass("give-hidden")&&!e("div.give-grid-col-4",o).length&&a.removeClass("give-hidden")});break;case"update":var l=(s=o.find('div[data-address-id*="'+i.data.id+'"]').parent()).prev(),c={},d=!1;parseInt(e(".give-grid-row>div",o).length)<2?e(".give-grid-row",o).append(i.data.address_html):(l.length&&(l.after(i.data.address_html),d=!0),d||(c=s.next()).length&&c.before(i.data.address_html)),s.remove()}r.prepend(i.data.success_msg)}else r.prepend(i.data.error_msg)},dataType:"json"}).always(function(){l.data("changed",!1),s.find('input[type="text"]').val(""),d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden")}),!1):(d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden"),!1)})},__set_address_form_action:function(t,i){var n=e("#donor-address-wrapper"),o=e(".address-form",n),a=e('input[name="address-action"]',o),r=e('input[name="address-id"]',o);t=t||"add",i=i||"billing",a.val(t),r.val(i)},__set_address_form_val:function(t){var i=e("#donor-address-wrapper"),n=e(".address-form",i),o=e('[data-address-type="state"]',t).text().substr(2).trim();e('select[name="country"]',n).val().trim()!==e('[data-address-type="country"]',t).text().trim()?(e('select[name="country"]',n).val(e('[data-address-type="country"]',t).text().trim()).trigger("chosen:updated").change(),window.setTimeout(function(){e('[name="state"]',n).val(o).trigger("chosen:updated")},500)):e('[name="state"]',n).val(o).trigger("chosen:updated"),e('input[name="line1"]',n).val(e('[data-address-type="line1"]',t).text().trim()),e('input[name="line2"]',n).val(e('[data-address-type="line2"]',t).text().trim()),e('input[name="city"]',n).val(e('[data-address-type="city"]',t).text().trim()),e('input[name="zip"]',n).val(e('[data-address-type="zip"]',t).text().trim())},bulkDeleteDonor:function(){var t=e("body");t.on("click","#give-bulk-delete-cancel",function(t){e(this).closest("tr").hide(),e(".give-skip-donor").trigger("click"),t.preventDefault()}),t.on("click","#cb-select-all-1, #cb-select-all-2",function(){var t=e(this);e.each(e(".donor-selector"),function(){var i=e(this).val(),n=e(this).data("name"),o='<div id="give-donor-'+i+'" data-id="'+i+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+n+"</div>";t.is(":checked")&&!e(this).is(":checked")?e("#give-bulk-donors").append(o):t.is(":checked")||e("#give-bulk-donors").find("#give-donor-"+i).remove()})}),t.on("click",".donor-selector",function(){var t=e(this).val(),i=e(this).data("name"),n='<div id="give-donor-'+t+'" data-id="'+t+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+i+"</div>";e(this).is(":checked")?e("#give-bulk-donors").prepend(n):e("#give-bulk-donors").find("#give-donor-"+t).remove()}),t.on("click","#give-bulk-delete .give-donor-delete-confirm",function(){e(this).is(":checked")?e("#give-bulk-delete-button").removeAttr("disabled"):(e("#give-bulk-delete-button").attr("disabled",!0),e("#give-bulk-delete .give-donor-delete-records").removeAttr("checked"))}),t.on("click","#give-bulk-delete .give-donor-delete-records",function(){e(this).is(":checked")&&(e("#give-bulk-delete .give-donor-delete-confirm").attr("checked","checked"),e("#give-bulk-delete-button").removeAttr("disabled"))}),t.on("click",".give-skip-donor",function(){var t=e(this).closest("div").data("id");e("#give-donor-"+t).remove(),e("#donor-"+t).find('input[type="checkbox"]').removeAttr("checked")}),t.on("click",".give-single-donor-delete",function(t){var i=e(this).data("id"),n=e("tr#donor-"+i).find(".donor-selector"),o=e('[id^="cb-select-all-"]'),a=e("#give-bulk-donors"),r=n.data("name"),s='<div id="give-donor-'+i+'" data-id="'+i+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+r+"</div>";a.html(""),o.is(":checked")&&o.removeAttr("checked"),e(".donor-selector").removeAttr("checked"),n.attr("checked","checked"),0===e("#give-donor-"+i).length&&(a.prepend(s),e("#give-bulk-delete").slideDown()),t.preventDefault()})},handleBulkActions:function(t){var i=e(this).closest(".tablenav").find("select").val(),n=[],o=e("#current-page-selector").val(),a=f.onLoadPageNumber!==o,r=Give.fn.getGlobalVar("donors_bulk_action.no_action_selected"),l=Give.fn.getGlobalVar("donors_bulk_action.no_donor_selected");return!!a||(e.each(e(".donor-selector:checked"),function(){n.push(e(this).val())}),"-1"===i?(new s.GiveWarningAlert({modalContent:{title:r.title,desc:r.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1):parseInt(n)?("delete"===i&&e("#give-bulk-delete").slideDown(),void t.preventDefault()):(new s.GiveWarningAlert({modalContent:{title:l.title,desc:l.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1))}},p={init:function(){this.revoke_api_key(),this.regenerate_api_key()},revoke_api_key:function(){e("body").on("click",".give-revoke-api-key",function(e){return confirm(Give.fn.getGlobalVar("revoke_api_key"))})},regenerate_api_key:function(){e("body").on("click",".give-regenerate-api-key",function(e){return confirm(Give.fn.getGlobalVar("regenerate_api_key"))})}},g={init:function(){var t=e.query.get("give_tab").length?e.query.get("give_tab"):"form_field_options";this.handle_metabox_tab_click(),this.setup_colorpicker_fields(),this.setup_media_fields(),this.setup_repeatable_fields(),this.handle_repeater_group_events(),this.handle_multi_levels_repeater_group_events(),this.activate_tab(e('a[href="#'+t+'"]'))},handle_metabox_tab_click:function(){var t=this;e(".give-metabox-tabs a").on("click",function(i){i.preventDefault();var n=e(this);t.activate_tab(n),t.update_query(n)})},activate_tab:function(t){var i=t.data("tab-id"),n=t.parent(),o=e("ul.give-metabox-sub-tabs",n),a=o.length,r=e(".give-metabox-tabs a").parents("li"),s=e("ul.give-metabox-sub-tabs"),l=t.parents("ul.give-metabox-sub-tabs").length;if(e("#give_form_active_tab").val(i),a){n.toggleClass("active"),o.removeClass("give-hidden");var c=e("li.active","ul.give-metabox-sub-tabs");s.not(o).addClass("give-hidden"),r.not(n).removeClass("active"),c.addClass("active")}else l?l&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),r.removeClass("active"),t.parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),t.parents("li.has-sub-fields").addClass("active")):r.each(function(t,i){(i=e(i)).removeClass("active"),i.hasClass("has-sub-fields")&&e("ul.give-metabox-sub-tabs",i).addClass("give-hidden")});t.parent().addClass("active"),e(".give_options_panel").removeClass("active"),e(t.attr("href")).addClass("active")},update_query:function(t){var i=t.data("tab-id"),n=e.query.set("give_tab",i).remove("message").toString();history.replaceState&&history.replaceState(null,null,n)},setup_colorpicker_fields:function(){e(document).ready(function(){var t=e(".give-colorpicker");t.length&&t.each(function(t,i){var n=e(i);n.parents(".give-template").length||n.wpColorPicker()})})},setup_media_fields:function(){var t,i,n=e("body");n.on("click",".give-upload-button",function(o){o.preventDefault();var a={};switch(i=e(this),e(this).data("field-type")){case"media":a={title:Give.fn.getGlobal().metabox_fields.media.button_title,button:{text:Give.fn.getGlobal().metabox_fields.media.button_title},multiple:!1,library:{type:"image"}};break;default:a={title:Give.fn.getGlobal().metabox_fields.file.button_title,button:{text:Give.fn.getGlobal().metabox_fields.file.button_title},multiple:!1}}void 0!==jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("editing")&&(wp.media.controller.Library.prototype.defaults.contentUserSetting=!1);var r=jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("library");void 0!==r&&""!==r&&(a.library={type:r}),(t=wp.media(a)).on("select",function(){var e=t.state().get("selection").first().toJSON(),o=i.prev(),a="id"===i.data("fvalue")?e.id:e.url;if(n.trigger("give_media_inserted",[e,o]),o.val(a),"id"!==i.data("fvalue")){var r='input[name="'+o.attr("name")+'_id"]';o.closest("tr").next("tr").find(r).length&&o.closest("tr").next("tr").find(r).val(e.id)}}),t.open()}),n.on("give_media_inserted",function(t,n){var o=i.parents(".give-field-wrap"),a=e(".give-image-thumb",o);return!!a.length&&("image"!==n.type?(a.addClass("give-hidden"),e("img",a).attr("src",""),!1):(a.find("img").attr("src",n.url),void a.removeClass("give-hidden")))}),e("span.give-delete-image-thumb",".give-image-thumb").on("click",function(t){t.preventDefault();var i=e(this).parents(".give-field-wrap"),n=e(this).parent(),o=e('input[type="text"]',i);n.addClass("give-hidden"),o.val(""),e("img",n).attr("src","")})},setup_repeatable_fields:function(){jQuery(function(){jQuery(".give-repeatable-field-section").each(function(){var t=e(this),i={wrapper:".give-repeatable-fields-section-wrapper",container:".container",row:".give-row",add:".give-add-repeater-field-section-row",remove:".give-remove",move:".give-move",template:".give-template",confirm_before_remove_row:!0,confirm_before_remove_row_text:Give.fn.getGlobalVar("confirm_before_remove_row_text"),is_sortable:!0,before_add:null,after_add:m,before_remove:null,after_remove:v,sortable_options:{placeholder:"give-ui-placeholder-state-highlight",start:function(i,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item);var o=e(".give-row",t).not(".give-template");o.length&&o.each(function(t,i){var n=e('input[type="radio"].give-field',e(i));n.length&&n.each(function(){e(this).attr("data-give-checked",e(this).is(":checked"))})}),e("body").trigger("repeater_field_sorting_start",[n.item])},stop:function(t,i){i.item.next().hasClass("give-template")&&i.item.next().after(i.item),e("body").trigger("repeater_field_sorting_stop",[i.item])},update:function(i,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item);var o=e(".give-row",t).not(".give-template"),a=e(this).closest(".give-repeatable-fields-section-wrapper");if(o.length){var r=1;o.each(function(t,i){var n=e(".give-field, label",e(i));n.length&&n.each(function(){var t=e(this).parents(".give-field-wrap"),i=e(this);e.each(this.attributes,function(e,n){var o,a=this.value.replace(/\[/g,"_").replace(/]/g,""),s=a+"_field",l="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(r-1)+"]"),o=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(s)&&(l=o+"_field",t.removeClass(s).addClass(l)),a==i.attr("id")&&i.attr("id",o))})}),r++}),window.setTimeout(function(){e("input[data-give-checked]",a).each(function(t,i){(i=e(i)).prop("checked","true"===i.attr("data-give-checked"))})},100),t.trigger("repeater_field_row_reordered",[n.item])}}}};jQuery(this).repeatable_fields(i)})})},handle_repeater_group_events:function(){var t=e(".give-repeatable-field-section"),i=e("body");i.on("click",".give-row-head button",function(){var t=e(this).closest("tr");t.toggleClass("closed"),e(".give-row-body",t).toggle()}),t.on("repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered",function(){_(e(this))}),i.on("repeater_field_sorting_start",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){tinyMCE.execCommand("mceRemoveEditor",!0,e(i).attr("id"))},300)})}),i.on("repeater_field_sorting_stop",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){var t=e(i).attr("id");tinyMCE.execCommand("mceAddEditor",!0,t),window.setTimeout(function(){switchEditors.go(t,"html"),e("#"+t+"-tmce").trigger("click")},100)},300)})}),t.each(function(t,i){var n=e(i);_(n),parseInt(n.data("close-tabs"))&&(e(".give-row-head button",n).trigger("click"),e(".give-template",n).removeClass("closed"),e(".give-template .give-row-body",n).show())}),t.on("repeater_field_new_row_added",function(t,i,n){e(".give-colorpicker",e(this)).each(function(t,i){var n=e(i);n.parents(".wp-picker-container").length||n.parents(".give-template").length||n.wpColorPicker()});var o=e("div[data-wp-editor]",n);o.length&&o.each(function(t,i){var n=e(i),o=e(".wp-editor-wrap",n),a=e("textarea",n),r="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),s=o.prev();a.attr("id",r),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:n.data("wp-editor"),wp_editor_id:r,textarea_name:e("textarea",n).attr("name")},function(t){o.remove(),s.after(t),tinyMCEPreInit.qtInit[a.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:r}),tinyMCEPreInit.mceInit[r]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:r+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+r}),tinymce.init(tinyMCEPreInit.mceInit[r]),quicktags(tinyMCEPreInit.qtInit[r]),QTags._buttonsInit(),window.setTimeout(function(){switchEditors.go(r,"html"),e("#"+r+"-tmce").trigger("click")},100),window.wpActiveEditor||(window.wpActiveEditor=r)})})})},handle_multi_levels_repeater_group_events:function(){var t=e("#_give_donation_levels_field");e("body").on("keyup",".give-multilevel-text-field",function(){var t=e(this).closest("tr"),i=e(".give-row-head h2 span",t),n=i.data("header-title");if(e(this).val()&&e(this).val()===i.html())return!1;e(this).val()?i.html(n+": "+e(this).val()):i.html(n)}),e(".give-multilevel-text-field").each(function(t,i){if(t){var n=e(i),o=n.closest("tr"),a=e(".give-row-head h2 span",o),r=a.data("header-title");if(n.val()&&n.val()===a.html())return!1;n.val()?a.html(r+": "+n.val()):a.html(r)}}),t.on("repeater_field_row_deleted",function(){var t=e(this);window.setTimeout(function(){var i=e(".give-row",t).not(".give-template"),n=e(".give-give_default_radio_inline",i);1===i.length&&n.prop("checked",!0)},200)}),t.on("repeater_field_new_row_added",function(t,i,n){var o=e(this),a=0;window.setTimeout(function(){!1===e(".give-give_default_radio_inline",o).is(":checked")&&e(".give-row",o).not(".give-template").first().find(".give-give_default_radio_inline").prop("checked",!0)},200),e('input[type="hidden"].give-levels_id',o).each(function(t,i){var n=e(i),o=parseInt(n.val());a<o&&(a=o)}),e('input[type="hidden"].give-levels_id',n).val(++a)})}},m=function(t,i){var n=e(t).attr("data-rf-row-count"),o=e(t).parents(".give-repeatable-field-section");n++,e("*",i).each(function(){e.each(this.attributes,function(e,t){this.value=this.value.replace("{{row-count-placeholder}}",n-1)})}),e(t).attr("data-rf-row-count",n),o.trigger("repeater_field_new_row_added",[t,i])},v=function(t){var i=e(t),n=i.parents(".give-repeatable-field-section"),o=e(t).attr("data-rf-row-count");i.attr("data-rf-row-count",--o),n.trigger("repeater_field_row_deleted")},_=function(t){if(parseInt(t.data("group-numbering"))){var i=e(".give-row-head h2 span",t),n=i.data("header-title");i.each(function(t,i){var o=e(i);o.parents(".give-template").length||o.html(n+": "+t)})}},b={onLoadPageNumber:"",init:function(){b.onLoadPageNumber=e("#current-page-selector").val(),e("body").on("click",'#give-payments-filter input[type="submit"]',this.handleBulkActions)},handleBulkActions:function(t){var i=e(this).closest(".tablenav").find("select").val(),n=e(this).closest(".tablenav").find('option[value="'+i+'"]').text(),o=e('input[name="payment[]"]:checked').length,a=-1!==i.indexOf("set-status-"),r="",l="",c=e("#current-page-selector").val();if(b.onLoadPageNumber!==c)return!0;if("-1"===(i=a?"set-to-status":i))return new s.GiveWarningAlert({modalContent:{title:Give.fn.getGlobal().donors_bulk_action.no_action_selected.title,desc:Give.fn.getGlobal().donors_bulk_action.no_action_selected.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1;if(Object.keys(Give.fn.getGlobalVar("donations_bulk_action")).length)for(l in Give.fn.getGlobalVar("donations_bulk_action"))if(l===i){if(r=a?Give.fn.getGlobal().donations_bulk_action[i].zero.replace("{status}",n.replace("Set To ","")):Give.fn.getGlobal().donations_bulk_action[i].zero,!parseInt(o))return new s.GiveWarningAlert({modalContent:{title:Give.fn.getGlobal().donations_bulk_action.titles.zero,desc:r,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1;r=1<o?Give.fn.getGlobal().donations_bulk_action[i].multiple:Give.fn.getGlobal().donations_bulk_action[i].single,t.preventDefault(),new s.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_bulk_action"),desc:r.replace("{payment_count}",o).replace("{status}",n.replace("Set To ",""))},successConfirm:function(t){e("#give-payments-filter").submit()}}).render()}return!0}},y=function(){var e=document.querySelectorAll(".js-give-shortcode-button");if(e){var t=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var r=o.value;new k(r).init()}}catch(e){i=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(i)throw n}}}};e(function(){var t;e("body").on("click","button.notice-dismiss",function(){"give-invalid-license"!==jQuery(this).closest("div.give-notice").data("notice-id")&&i(jQuery(this).closest("div.give-notice").attr("id"))}),function(){var t,i=e(".give_datepicker");if(i.length){var n={},o={altFormat:"yy-mm-dd",onClose:function(e,t){e.length||t.input.next().val("")}};e.each(i,function(o,a){a=e(a),t=void 0!==a.attr("data-standard-date")?a.attr("data-standard-date"):a.attr("value"),a.attr("name").length&&(n=a.clone(),i[o]=n,n.attr("name",""),a.before(n),a.hide(),a.attr("class",""),a.attr("id",""),a.val(t),a.prop("readonly",!0))}),i.length>0&&e.each(i,function(t,i){i=e(i),o.altField=i.next(),i.datepicker(o)})}}(),e('select[name="give-payment-status"]').on("change",function(){var t=e(this).val();e(".give-donation-status").removeClass(function(e,t){return(t.match(/\bstatus-\S+/g)||[]).join(" ")}).addClass("status-"+t)}),(t=e(".give-select-chosen")).hasClass("give-chosen-settings")?t.chosen({no_results_text:Give.fn.getGlobalVar("chosen_add_title_prefix")+" ",width:"30%"}).on("chosen:no_results",function(t,i){e(i.chosen.container).on("keydown",function(n){var o=i.chosen.get_search_text();13!==n.keyCode||jQuery(i.chosen.form_field).find('option[value="'+o+'"]').length||(e(i.chosen.form_field).append('<option value="'+o+'" selected>'+o+"</option>").trigger("chosen:updated"),i.chosen.result_highlight=i.chosen.search_results.find("li.active-result").lasteturn,i.chosen.result_select(t))})}):(t.on("chosen:ready",function(){e(this).next(".chosen-container").find("input.chosen-search-input").after('<span class="spinner"></span>')}),t.chosen({inherit_select_classes:!0,placeholder_text_single:Give.fn.getGlobalVar("one_option"),placeholder_text_multiple:Give.fn.getGlobalVar("one_or_more_option")}),t.on("chosen:no_results",function(){var t,i=e(this).next(".chosen-container"),n=i.find("li.no-results"),o="",a=Give.fn.getGlobalVar("chosen");o=i.hasClass("give-select-chosen-ajax")&&n.length?a.ajax_search_msg.replace("{search_term}",'"'+e("input",i).val()+'"'):a.no_results_msg.replace("{search_term}",'"'+e("input",i).val()+'"'),n.html(o),e(document.body).on("keyup",".give-select.chosen-container .chosen-search input, .give-select.chosen-container .search-field input",function(i){var n=e(this).val(),o=e(this).closest(".give-select-chosen"),a=o.prev(),r=o.find('input[type="text"]'),s=(o.hasClass("variations"),i.which),l="give_form_search",c=this;if(o.prev().data("search-type")){if("no_ajax"===a.data("search-type"))return;l="give_"+a.data("search-type")+"_search"}n.length>0&&n.length<=3||!l.length||9===s||13===s||16===s||17===s||18===s||19===s||20===s||27===s||33===s||34===s||35===s||36===s||37===s||38===s||39===s||40===s||44===s||45===s||144===s||145===s||91===s||93===s||224===s||112<=s&&123>=s||(clearTimeout(t),o.addClass("give-select-chosen-ajax"),t=setTimeout(function(){e.ajax({type:"POST",url:ajaxurl,data:{action:l,s:n,fields:e(c).closest("form").serialize()},dataType:"json",beforeSend:function(){a.closest("ul.chosen-results").empty(),r.prop("disabled",!0)},success:function(t){o.removeClass("give-select-chosen-ajax"),e("option:not(:selected)",a).remove(),t.length?(e.each(t,function(t,i){e('option[value="'+i.id+'"]',a).length||(0===n.length?a.append('<option value="'.concat(i.id,'">').concat(i.name,"</option>")):a.prepend('<option value="'.concat(i.id,'">').concat(i.name,"</option>")))}),o.prev("select.give-select-chosen").trigger("chosen:updated")):o.prev("select.give-select-chosen").trigger("chosen:no_results"),r.prop("disabled",!1),r.val(n).focus()}}).fail(function(e){window.console&&window.console.log&&console.log(e)}).done(function(e){r.prop("disabled",!1)})},342))}),e(".give-select-chosen .chosen-search input").each(function(){var t=e(this).parent().parent().parent().prev("select.give-select-chosen").data("search-type"),i="";"form"===t?i=Give.fn.getGlobalVar("search_placeholder"):(t="search_placeholder_"+t,Give.fn.getGlobalVar(t)&&(i=Give.fn.getGlobalVar(t))),e(this).attr("placeholder",i)})})),e(".chosen-container").each(function(){0===e(this).width()&&e(this).css("width","100%")}),e("#post").on("click",".give-thickbox",function(){e(".give-select-chosen","#choose-give-form").css("width","100%")}),e.giveAjaxifyFields({type:"country_state",debug:!0}),o.init(),r.init(),l.init(),c.init(),f.init(),p.init(),d.init(),u.init(),h.init(),g.init(),b.init(),y(),e("a.give-rating-link").click(function(){jQuery(this).parent().text(jQuery(this).data("rated"))}),e(".give-ajax-user-search").on("keyup",function(){var t=e(this).val(),i="";e(this).data("exclude")&&(i=e(this).data("exclude")),e(".give-ajax").show(),data={action:"give_search_users",user_name:t,exclude:i},document.body.style.cursor="wait",e.ajax({type:"POST",data:data,dataType:"json",url:ajaxurl,success:function(t){e(".give-ajax").hide(),e(".give_user_search_results").removeClass("hidden"),e(".give_user_search_results span").html(""),e(t.results).appendTo(".give_user_search_results span"),document.body.style.cursor="default"}})}),e("body").on("click.giveSelectUser",".give_user_search_results span a",function(t){t.preventDefault();var i=e(this).data("login");e(".give-ajax-user-search").val(i),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")}),e("body").on("click.giveCancelUserSearch",".give_user_search_results a.give-ajax-user-cancel",function(t){t.preventDefault(),e(".give-ajax-user-search").val(""),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")});var a=e("#poststuff"),s=Give.fn.getGlobalVar("thousands_separator"),m=Give.fn.getGlobalVar("decimal_separator"),v="",_="",x="",w=m===s?1:0;a.on("keyup","input.give-money-field, input.give-price-field",function(){var t={label:Give.fn.getGlobalVar("price_format_guide").trim()};v=(e(this).val().match(new RegExp(s,"g"))||[]).length,_=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(s)&&w<v?e(this).giveHintCss("show",t):_?e(this).giveHintCss("show",t):e(this).giveHintCss("hide",t),v=_=""}),a.on("focusout","input.give-money-field, input.give-price-field",function(){if(x=n(e(this).val(),!1),e(this).giveHintCss("hide",{label:Give.fn.getGlobalVar("price_format_guide").trim()}),n("0",!1)===n(e(this).val(),!1)){var t=e(this).attr("placeholder");return t=t||"0",e(this).val(t),!1}-1!==(x=x.replace(".",m)).indexOf("-")&&(x=x.replace("-","")),e(this).val(x)}),a.on("focusout","#_give_number_of_donation_goal",function(){1>e(this).val()&&e(this).val(1)}),e(".give-settings-page").on("click","#give-show-sub-nav",function(t){t.preventDefault();var i=e(this).next();return i.is(":hover")||i.toggleClass("give-hidden"),!1}).on("blur","#give-show-sub-nav",function(){var t=e(this).next();t.is(":hover")||t.addClass("give-hidden")}),e(".give_email_api_notification_status_setting input").change(function(){var t=e(this).val(),i="enabled"===t,n={};return e(this).closest(".give_options_panel").length?n=e(this).closest(".give_options_panel").children(".give-field-wrap:not(.give_email_api_notification_status_setting), .give-repeatable-field-section"):e(this).closest("table").length&&(n=e(this).closest("table").find("tr:not(.give_email_api_notification_status_setting)")),-1!==jQuery.inArray(t,["enabled","disabled","global"])&&(!!n.length&&void(i?n.show():n.hide()))}),e(".give_email_api_notification_status_setting input:checked").change(),S()})}(jQuery),jQuery(window).resize(function(){S()});function T(){var e=document.querySelector(".give-tools-setting-page-import table.step-2 .give-import-donation-required-fields");if("undefined"!==e&&null!==e){var t=!0,i=!1,n=!1,o=!1,a=!1;document.querySelectorAll(".give-import-donation-required-fields li").forEach(function(e){e.querySelector(".dashicons").classList.remove("dashicons-yes"),e.querySelector(".dashicons").classList.add("dashicons-no-alt")});var r=Array.from(document.querySelectorAll("table.step-2 tbody select")).map(function(e){return e.value});r.includes("email")&&(i=!0,document.querySelector(".give-import-donation-required-email .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-email .dashicons").classList.add("dashicons-yes")),r.includes("first_name")&&(n=!0,document.querySelector(".give-import-donation-required-first .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-first .dashicons").classList.add("dashicons-yes")),r.includes("amount")&&(o=!0,document.querySelector(".give-import-donation-required-amount .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-amount .dashicons").classList.add("dashicons-yes")),(r.includes("form_id")||r.includes("form_title"))&&(a=!0,document.querySelector(".give-import-donation-required-form .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-form .dashicons").classList.add("dashicons-yes")),i&&n&&o&&a&&(t=!1),document.getElementById("recount-stats-submit").disabled=t}}jQuery(function(){window.onload=function(){var e,t;T(),"undefined"!==(e=document.querySelector(".give-tools-setting-page-import table.step-2 tbody select"))&&null!==e&&jQuery(".give-tools-setting-page-import table.step-2 tbody").on("change","select",function(){T()}),jQuery("body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-3").length>0&&function e(){var t=jQuery("form.tools-setting-page-import");!0;var i=t.find(".give-progress"),n=jQuery(i).data("total_ajax"),o=jQuery(i).data("current"),a=jQuery(i).data("start"),r=jQuery(i).data("end"),l=jQuery(i).data("next"),c=jQuery(i).data("total"),d=jQuery(i).data("per_page");jQuery.ajax({type:"POST",url:ajaxurl,data:{action:Give.fn.getGlobalVar("give_donation_import"),total_ajax:n,current:o,start:a,end:r,next:l,total:c,per_page:d,fields:t.serialize()},dataType:"json",success:function(t){jQuery(i).data("current",t.current),jQuery(i).find("div").width(t.percentage+"%"),1==t.next?(jQuery(i).data("start",t.start),jQuery(i).data("end",t.end),1==t.last&&jQuery(i).data("next",!1),e()):(!1,window.location=t.url)},error:function(){!1,new s.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}})}(),t="body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-1 .is_csv_valid",jQuery(t).length>0&&(window.location=jQuery(t).val()),function(){var e="body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-2 .csv_not_valid";jQuery(e).length>0&&(window.location=jQuery(e).val())}(),function(){if(jQuery("body.give_forms_page_give-tools .give-tools-import-tab #give-import-core-settings-form table.step-2").length>0){var e=jQuery("form.tools-setting-page-import"),t=e.find(".give-progress");!0,jQuery.ajax({type:"POST",url:ajaxurl,data:{action:Give.fn.getGlobalVar("core_settings_import"),fields:e.serialize()},dataType:"json",success:function(e){!1,!0===e.success?(jQuery(t).find("div").width(e.percentage+"%"),window.location=e.url):new s.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()},error:function(){!1,new s.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}})}}(),function(){var e="body.give_forms_page_give-tools .give-tools-import-tab #give-import-core-settings-form table.step-1 .is_json_valid";jQuery(e).length>0&&(window.location=jQuery(e).val())}()}}),r.a.modal=s;var G=r.a.init,M=r.a.fn,I=r.a.cache,A=r.a.modal;window.Give={init:G,fn:M,cache:I,modal:A}},39:function(e,t){e.exports=jQuery},49:function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},5:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},56:function(e,t,i){var n,o,a;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
60 |
* http://dimsemenov.com/plugins/magnific-popup/
|
61 |
+
* Copyright (c) 2016 Dmitry Semenov; */o=[i(39)],void 0===(a="function"==typeof(n=function(e){var t,i,n,o,a,r,s=function(){},l=!!window.jQuery,c=e(window),d=function(e,i){t.ev.on("mfp"+e+".mfp",i)},u=function(t,i,n,o){var a=document.createElement("div");return a.className="mfp-"+t,n&&(a.innerHTML=n),o?i&&i.appendChild(a):(a=e(a),i&&a.appendTo(i)),a},h=function(i,n){t.ev.triggerHandler("mfp"+i,n),t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,e.isArray(n)?n:[n]))},f=function(i){return i===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=i),t.currTemplate.closeBtn},p=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)};s.prototype={constructor:s,init:function(){var i=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(i),t.isIOS=/iphone|ipad|ipod/gi.test(i),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),n=e(document),t.popupsCache={}},open:function(i){var o;if(!1===i.isObj){t.items=i.items.toArray(),t.index=0;var r,s=i.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===i.el[0]){t.index=o;break}}else t.items=e.isArray(i.items)?i.items:[i.items],t.index=i.index||0;if(!t.isOpen){t.types=[],a="",i.mainEl&&i.mainEl.length?t.ev=i.mainEl.eq(0):t.ev=n,i.key?(t.popupsCache[i.key]||(t.popupsCache[i.key]={}),t.currTemplate=t.popupsCache[i.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,i),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=u("bg").on("click.mfp",function(){t.close()}),t.wrap=u("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=u("container",t.wrap)),t.contentContainer=u("content"),t.st.preloader&&(t.preloader=u("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var p=l[o];p=p.charAt(0).toUpperCase()+p.slice(1),t["init"+p].call(t)}h("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(d("MarkupParse",function(e,t,i,n){i.close_replaceWith=f(n.type)}),a+=" mfp-close-btn-in"):t.wrap.append(f())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:n.height(),position:"absolute"}),t.st.enableEscapeKey&&n.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),c.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var g=t.wH=c.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(g)){var v=t._getScrollbarSize();v&&(m.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var _=t.st.mainClass;return t.isIE7&&(_+=" mfp-ie7"),_&&t._addClassToMFP(_),t.updateItemHTML(),h("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),n.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(g),h("Open"),i}t.updateItemHTML()},close:function(){t.isOpen&&(h("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){h("Close");var i="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(i+=t.st.mainClass+" "),t._removeClassFromMFP(i),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}n.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,h("AfterClose")},updateSize:function(e){if(t.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i;t.wrap.css("height",n),t.wH=n}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),h("Resize")},updateItemHTML:function(){var i=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index));var n=i.type;if(h("BeforeChange",[t.currItem?t.currItem.type:"",n]),t.currItem=i,!t.currTemplate[n]){var a=!!t.st[n]&&t.st[n].markup;h("FirstMarkupParse",a),t.currTemplate[n]=!a||e(a)}o&&o!==i.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,t.currTemplate[n]);t.appendContent(r,n),i.preloaded=!0,h("Change",i),o=i.type,t.container.prepend(t.contentContainer),h("AfterChange")},appendContent:function(e,i){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[i]?t.content.find(".mfp-close").length||t.content.append(f()):t.content=e:t.content="",h("BeforeAppend"),t.container.addClass("mfp-"+i+"-holder"),t.contentContainer.append(t.content)},parseEl:function(i){var n,o=t.items[i];if(o.tagName?o={el:e(o)}:(n=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){n=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=n||t.st.type||"inline",o.index=i,o.parsed=!0,t.items[i]=o,h("ElementParse",o),t.items[i]},addGroup:function(e,i){var n=function(n){n.mfpEl=this,t._openClick(n,e,i)};i||(i={});var o="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(o).on(o,n)):(i.isObj=!1,i.delegate?e.off(o).on(o,i.delegate,n):(i.items=e,e.off(o).on(o,n)))},_openClick:function(i,n,o){var a=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(a||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(c.width()<r)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation()),o.el=e(i.mfpEl),o.delegate&&(o.items=n.find(o.delegate)),t.open(o)}},updateStatus:function(e,n){if(t.preloader){i!==e&&t.container.removeClass("mfp-s-"+i),n||"loading"!==e||(n=t.st.tLoading);var o={status:e,text:n};h("UpdateStatus",o),e=o.status,n=o.text,t.preloader.html(n),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(i){if(!e(i).hasClass("mfp-prevent-close")){var n=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(n&&o)return!0;if(!t.content||e(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||e.contains(t.content[0],i)){if(n)return!0}else if(o&&e.contains(document,i))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?n.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!e.contains(t.wrap[0],i.target))return t._setFocus(),!1},_parseMarkup:function(t,i,n){var o;n.data&&(i=e.extend(n.data,i)),h("MarkupParse",[t,i,n]),e.each(i,function(i,n){if(void 0===n||!1===n)return!0;if((o=i.split("_")).length>1){var a=t.find(".mfp-"+o[0]);if(a.length>0){var r=o[1];"replaceWith"===r?a[0]!==n[0]&&a.replaceWith(n):"img"===r?a.is("img")?a.attr("src",n):a.replaceWith(e("<img>").attr("src",n).attr("class",a.attr("class"))):a.attr(o[1],n)}}else t.find(".mfp-"+i).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,i){return p(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(i){p();var n=e(this);if("string"==typeof i)if("open"===i){var o,a=l?n.data("magnificPopup"):n[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=n,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},n,a)}else t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1));else i=e.extend(!0,{},i),l?n.data("magnificPopup",i):n[0].magnificPopup=i,t.addGroup(n,i);return n};var g,m,v,_=function(){v&&(m.after(v.addClass(g)).detach(),v=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),d("Close.inline",function(){_()})},getInline:function(i,n){if(_(),i.src){var o=t.st.inline,a=e(i.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(m||(g=o.hiddenClass,m=u(g),g="mfp-"+g),v=a.after(m).detach().removeClass(g)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return i.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(n,{},i),n}}});var b,y=function(){b&&e(document.body).removeClass(b)},x=function(){y(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),b=t.st.ajax.cursor,d("Close.ajax",x),d("BeforeChange.ajax",x)},getAjax:function(i){b&&e(document.body).addClass(b),t.updateStatus("loading");var n=e.extend({url:i.src,success:function(n,o,a){var r={data:n,xhr:a};h("ParseAjax",r),t.appendContent(e(r.data),"ajax"),i.finished=!0,y(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),h("AjaxContentAdded")},error:function(){y(),i.finished=i.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",i.src))}},t.st.ajax.settings);return t.req=e.ajax(n),""}}});var w,k,C=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=t.st.image.titleSrc;if(n){if(e.isFunction(n))return n.call(t,i);if(i.el)return i.el.attr(n)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=t.st.image,n=".image";t.types.push("image"),d("Open"+n,function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)}),d("Close"+n,function(){i.cursor&&e(document.body).removeClass(i.cursor),c.off("resize.mfp")}),d("Resize"+n,t.resizeImage),t.isLowIE&&d("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,w&&clearInterval(w),e.isCheckingImgSize=!1,h("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,n=e.img[0],o=function(a){w&&clearInterval(w),w=setInterval(function(){n.naturalWidth>0?t._onImageHasSize(e):(i>200&&clearInterval(w),3==++i?o(10):40===i?o(50):100===i&&o(500))},a)};o(1)},getImage:function(i,n){var o=0,a=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,h("ImageLoadComplete")):++o<200?setTimeout(a,100):r())},r=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",s.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},s=t.st.image,l=n.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),(c=i.img[0]).naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return t._parseMarkup(n,{title:C(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(w&&clearInterval(w),i.loadError?(n.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),t.updateStatus("ready")),n):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),t.findImageSize(i)),n)}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,n=".zoom";if(i.enabled&&t.supportsTransition){var o,a,r=i.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=n,t.css(o),t},l=function(){t.content.css("visibility","visible")};d("BuildControls"+n,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(a=s(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){a.remove(),e=a=null,h("ZoomAnimationEnded")},16)},r)},16)}}),d("BeforeClose"+n,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=s(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),d("Close"+n,function(){t._allowZoom()&&(l(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(i){var n,o=(n=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(n.css("padding-top"),10),r=parseInt(n.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:n.width(),height:(l?n.innerHeight():n[0].offsetHeight)-r-a};return void 0===k&&(k=void 0!==document.createElement("p").style.MozTransform),k?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var j=function(e){if(t.currTemplate.iframe){var i=t.currTemplate.iframe.find("iframe");i.length&&(e||(i[0].src="//about:blank"),t.isIE8&&i.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),d("BeforeChange",function(e,t,i){t!==i&&("iframe"===t?j():"iframe"===i&&j(!0))}),d("Close.iframe",function(){j()})},getIframe:function(i,n){var o=i.src,a=t.st.iframe;e.each(a.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(n,r,i),t.updateStatus("ready"),n}}});var S=function(e){var i=t.items.length;return e>i-1?e-i:e<0?i+e:e},T=function(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!i||!i.enabled)return!1;a+=" mfp-gallery",d("Open"+o,function(){i.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),n.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),d("UpdateStatus"+o,function(e,i){i.text&&(i.text=T(i.text,t.currItem.index,t.items.length))}),d("MarkupParse"+o,function(e,n,o,a){var r=t.items.length;o.counter=r>1?T(i.tCounter,a.index,r):""}),d("BuildControls"+o,function(){if(t.items.length>1&&i.arrows&&!t.arrowLeft){var n=i.arrowMarkup,o=t.arrowLeft=e(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),a=t.arrowRight=e(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");o.click(function(){t.prev()}),a.click(function(){t.next()}),t.container.append(o.add(a))}}),d("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),d("Close"+o,function(){n.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=S(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=S(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,i=t.st.gallery.preload,n=Math.min(i[0],t.items.length),o=Math.min(i[1],t.items.length);for(e=1;e<=(t.direction?o:n);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?n:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(i){if(i=S(i),!t.items[i].preloaded){var n=t.items[i];n.parsed||(n=t.parseEl(i)),h("LazyLoad",n),"image"===n.type&&(n.img=e('<img class="mfp-img" />').on("load.mfploader",function(){n.hasSize=!0}).on("error.mfploader",function(){n.hasSize=!0,n.loadError=!0,h("LazyLoadError",n)}).attr("src",n.src)),n.preloaded=!0}}}}),e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;(i=isNaN(i)?i():i)>1&&(d("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),d("ElementParse.retina",function(t,n){n.src=e.replaceSrc(n,i)}))}}}}),p()})?n.apply(t,o):n)||(e.exports=a)},57:function(e,t){!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),i=t.length;--i>=0&&t.item(i)!==this;);return i>-1}),e.addDynamicEventListener=function(e,t,i,n,o){e.addEventListener(t,function(e,t){return function(i){i.target&&i.target.matches(e)&&t.apply(this,arguments)}}(i,n),o)}}(window)},58:function(e,t){function i(t,n){return e.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(t,n)}e.exports=i},7:function(e,t,i){"use strict";i.r(t),i.d(t,"GiveModal",function(){return f}),i.d(t,"GiveErrorAlert",function(){return p}),i.d(t,"GiveWarningAlert",function(){return g}),i.d(t,"GiveNoticeAlert",function(){return m}),i.d(t,"GiveSuccessAlert",function(){return v}),i.d(t,"GiveConfirmModal",function(){return _}),i.d(t,"GiveFormModal",function(){return b});var n=i(11),o=i.n(n),a=i(12),r=i.n(a),s=i(13),l=i.n(s),c=i(5),d=i.n(c),u=i(8),h=i.n(u),f=(i(56),i(57),function(){function e(t){if(d()(this,e),e===this.constructor)throw new Error("Abstract classes can't be instantiated.");this.config=Object.assign({type:"",triggerSelector:"",externalPlugin:"magnificPopup",classes:{modalWrapper:""},modalContent:{}},t),this.config.mainClass="".concat(this.config.mainClass?this.config.mainClass:""," modal-fade-slide").trim()}return h()(e,[{key:"init",value:function(){this.setupTemplate(),this.popupConfig(),this.__setupClickEvent()}},{key:"getTemplate",value:function(){var e='<div class="give-hidden"></div>';return this.config.type.length&&(e='<div class="give-modal give-modal--zoom '.concat(this.config.classes.modalWrapper?"".concat(this.config.classes.modalWrapper).trim():"",'">\n\n\t\t\t\t<div class="give-modal__body">\n\t\t\t\t\t').concat(this.config.modalContent.title?'<h2 class="give-modal__title">'.concat(this.config.modalContent.title,"</h2>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.desc?'<p class="give-modal__description">'.concat(this.config.modalContent.desc,"</p>"):"",'\n\t\t\t\t</div>\n\t\n\t\t\t\t<div class="give-modal__controls">\n\n\t\t\t\t\t').concat("form"===this.config.type?'<div class="spinner"></div>':"","\n\t\t\t\t\t").concat("form"===this.config.type?'<a class="give-modal--additional-link" href="'.concat(this.config.modalContent.link,'">').concat(this.config.modalContent.link_text,"</a>"):"",'\n\n\t\t\t\t\t<button class="give-button give-button--secondary give-popup-close-button">\n\t\t\t\t\t\t').concat(this.config.modalContent.cancelBtnTitle?this.config.modalContent.cancelBtnTitle:"confirm"===this.config.type?Give.fn.getGlobalVar("cancel"):Give.fn.getGlobalVar("close"),"\n\t\t\t\t\t</button>\n\n\t\t\t\t\t").concat("confirm"!==this.config.type&&"form"!==this.config.type?"":'<button class="give-button give-button--primary give-popup-'.concat(this.config.type,'-button">\n\n\t\t\t\t\t\t').concat(this.config.modalContent.confirmBtnTitle?this.config.modalContent.confirmBtnTitle:Give.fn.getGlobalVar("confirm"),"\n\t\t\t\t\t</button>"),"\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t</div>")),e}},{key:"setupTemplate",value:function(){this.config.template=this.getTemplate()}},{key:"__setupClickEvent",value:function(){this.config.triggerSelector.length&&jQuery(this.config.triggerSelector).magnificPopup(this.config)}},{key:"popupConfig",value:function(){"magnificPopup"===this.config.externalPlugin&&(this.config.items=this.config.items||{src:this.config.template,type:"inline"},this.config.removalDelay=300,this.config.fixedContentPos=!0,this.config.fixedBgPos=!0,this.config.alignTop=!0,this.config.showCloseBtn=!1,this.config.closeOnBgClick=!1,this.config.enableEscapeKey=!0,this.config.focus=".give-popup-close-button")}},{key:"render",value:function(){switch(this.config.externalPlugin){case"magnificPopup":this.config.triggerSelector||jQuery.magnificPopup.open(this.config)}return this}}],[{key:"__closePopup",value:function(e){e.preventDefault(),jQuery.magnificPopup.instance.close()}}]),e}()),p=function(e){function t(e){var i;return d()(this,t),e.type="alert",(i=o()(this,r()(t).call(this,e))).config.classes.modalWrapper="give-modal--error",i.init(),i}return l()(t,e),t}(f),g=function(e){function t(e){var i;return d()(this,t),e.type="alert",(i=o()(this,r()(t).call(this,e))).config.classes.modalWrapper="give-modal--warning",i.init(),i}return l()(t,e),t}(f),m=function(e){function t(e){var i;return d()(this,t),e.type="alert",(i=o()(this,r()(t).call(this,e))).config.classes.modalWrapper="give-modal--notice",i.init(),i}return l()(t,e),t}(f),v=function(e){function t(e){var i;return d()(this,t),e.type="alert",(i=o()(this,r()(t).call(this,e))).config.classes.modalWrapper="give-modal--success",i.init(),i}return l()(t,e),t}(f),_=function(e){function t(e){var i;return d()(this,t),e.type="confirm",i=o()(this,r()(t).call(this,e)),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(i.config.classes.modalWrapper=e.modalWrapper),i.init(),i}return l()(t,e),h()(t,null,[{key:"__confirmPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&(jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el}),jQuery.magnificPopup.close())}}]),t}(f),b=function(e){function t(e){var i;return d()(this,t),e.type="form",i=o()(this,r()(t).call(this,e)),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(i.config.classes.modalWrapper=e.modalWrapper),i.init(),i}return l()(t,e),h()(t,null,[{key:"__submitPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el})}}]),t}(f);window.addDynamicEventListener(document,"click",".give-popup-close-button",f.__closePopup,{}),window.addDynamicEventListener(document,"click",".give-popup-confirm-button",_.__confirmPopup,{}),window.addDynamicEventListener(document,"click",".give-popup-form-button",b.__submitPopup,{})},75:function(e,t,i){(function(t){e.exports=t.accounting=i(76)}).call(this,i(49))},76:function(e,t,i){
|
62 |
/*!
|
63 |
* accounting.js v0.4.1
|
64 |
* Copyright 2014 Open Exchange Rates
|
69 |
* Full details and documentation:
|
70 |
* http://openexchangerates.github.io/accounting.js/
|
71 |
*/
|
72 |
+
!function(i,n){var o={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},a=Array.prototype.map,r=Array.isArray,s=Object.prototype.toString;function l(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function c(e){return r?r(e):"[object Array]"===s.call(e)}function d(e){return e&&"[object Object]"===s.call(e)}function u(e,t){var i;for(i in e=e||{},t=t||{})t.hasOwnProperty(i)&&null==e[i]&&(e[i]=t[i]);return e}function h(e,t,i){var n,o,r=[];if(!e)return r;if(a&&e.map===a)return e.map(t,i);for(n=0,o=e.length;n<o;n++)r[n]=t.call(i,e[n],n,e);return r}function f(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function p(e){var t=o.settings.currency.format;return"function"==typeof e&&(e=e()),l(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:l(t)?o.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var g=o.unformat=o.parse=function(e,t){if(c(e))return h(e,function(e){return g(e,t)});if("number"==typeof(e=e||0))return e;t=t||o.settings.number.decimal;var i=new RegExp("[^0-9-"+t+"]",["g"]),n=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(i,"").replace(t,"."));return isNaN(n)?0:n},m=o.toFixed=function(e,t){t=f(t,o.settings.number.precision);var i=Math.pow(10,t);return(Math.round(o.unformat(e)*i)/i).toFixed(t)},v=o.formatNumber=o.format=function(e,t,i,n){if(c(e))return h(e,function(e){return v(e,t,i,n)});e=g(e);var a=u(d(t)?t:{precision:t,thousand:i,decimal:n},o.settings.number),r=f(a.precision),s=e<0?"-":"",l=parseInt(m(Math.abs(e||0),r),10)+"",p=l.length>3?l.length%3:0;return s+(p?l.substr(0,p)+a.thousand:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+a.thousand)+(r?a.decimal+m(Math.abs(e),r).split(".")[1]:"")},_=o.formatMoney=function(e,t,i,n,a,r){if(c(e))return h(e,function(e){return _(e,t,i,n,a,r)});e=g(e);var s=u(d(t)?t:{symbol:t,precision:i,thousand:n,decimal:a,format:r},o.settings.currency),l=p(s.format);return(e>0?l.pos:e<0?l.neg:l.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),f(s.precision),s.thousand,s.decimal))};o.formatColumn=function(e,t,i,n,a,r){if(!e)return[];var s=u(d(t)?t:{symbol:t,precision:i,thousand:n,decimal:a,format:r},o.settings.currency),m=p(s.format),_=m.pos.indexOf("%s")<m.pos.indexOf("%v"),b=0,y=h(e,function(e,t){if(c(e))return o.formatColumn(e,s);var i=((e=g(e))>0?m.pos:e<0?m.neg:m.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),f(s.precision),s.thousand,s.decimal));return i.length>b&&(b=i.length),i});return h(y,function(e,t){return l(e)&&e.length<b?_?e.replace(s.symbol,s.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e})},e.exports&&(t=e.exports=o),t.accounting=o}()},77:function(e,t){jQuery.fn.giveHintCss=function(e,t){return this.each(function(){var i=jQuery(this);t=jQuery.extend({label:""},t);var n=i.next("span.give-hint-tooltip-js");if(!n.length){var o=t.label.length?t.label:i.data("hint-aria-label");if(!o.length)return;i.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+o+'"></span>'),(n=i.next()).css({top:-i.outerHeight(),left:-i.outerWidth()/2})}"show"===e?n.addClass("hint--always"):"hide"===e&&n.removeClass("hint--always")})},jQuery(document).ready(function(e){var t=e("[data-tooltip]");function i(t){if(!t.is('[class*="hint"]')){var i=t.attr("class"),n=[],o=t.data("tooltip").split(" ").length;i&&(i=i.split(" "),(n=e.grep(i,function(e){return-1!==e.indexOf("give-icon")})).length&&(n=n.join(" "),t.removeClass(n),t.append('<i class="'+n+'"></i>'))),t.addClass("hint--top"),15<o?t.addClass("hint--large"):7<o&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each(function(t,n){i(n=n instanceof jQuery?n:e(n))}),e("body").on("hover","[data-tooltip]",function(){i(e(this))})})},78:function(e,t,i){e.exports=i(79)},79:function(e,t,i){var n=i(80),o=i(81),a=/^[0-9a-f]{32}$/;function r(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function s(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(a)?e:n(e)}function l(e){var t=o.stringify(function(e){var t={},i={protocol:1,format:1};for(var n in e)i[n]||(t[n]=e[n]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,i){var n="//www.gravatar.com/avatar/";t&&t.cdn?(n=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(i=r(t)),void 0!==i&&(n=i?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var o=l(t);return n+s(e)+o},profile_url:function(e,t,i){var n=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)o=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(i=r(t));var o=i?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var a=l(t);return o+s(e)+"."+n+a}}},8:function(e,t){function i(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}},80:function(e,t,i){var n;!function(o){"use strict";function a(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function r(e,t,i,n,o,r){return a((s=a(a(t,e),a(n,r)))<<(l=o)|s>>>32-l,i);var s,l}function s(e,t,i,n,o,a,s){return r(t&i|~t&n,e,t,o,a,s)}function l(e,t,i,n,o,a,s){return r(t&n|i&~n,e,t,o,a,s)}function c(e,t,i,n,o,a,s){return r(t^i^n,e,t,o,a,s)}function d(e,t,i,n,o,a,s){return r(i^(t|~n),e,t,o,a,s)}function u(e,t){var i,n,o,r,u;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var h=1732584193,f=-271733879,p=-1732584194,g=271733878;for(i=0;i<e.length;i+=16)n=h,o=f,r=p,u=g,h=s(h,f,p,g,e[i],7,-680876936),g=s(g,h,f,p,e[i+1],12,-389564586),p=s(p,g,h,f,e[i+2],17,606105819),f=s(f,p,g,h,e[i+3],22,-1044525330),h=s(h,f,p,g,e[i+4],7,-176418897),g=s(g,h,f,p,e[i+5],12,1200080426),p=s(p,g,h,f,e[i+6],17,-1473231341),f=s(f,p,g,h,e[i+7],22,-45705983),h=s(h,f,p,g,e[i+8],7,1770035416),g=s(g,h,f,p,e[i+9],12,-1958414417),p=s(p,g,h,f,e[i+10],17,-42063),f=s(f,p,g,h,e[i+11],22,-1990404162),h=s(h,f,p,g,e[i+12],7,1804603682),g=s(g,h,f,p,e[i+13],12,-40341101),p=s(p,g,h,f,e[i+14],17,-1502002290),h=l(h,f=s(f,p,g,h,e[i+15],22,1236535329),p,g,e[i+1],5,-165796510),g=l(g,h,f,p,e[i+6],9,-1069501632),p=l(p,g,h,f,e[i+11],14,643717713),f=l(f,p,g,h,e[i],20,-373897302),h=l(h,f,p,g,e[i+5],5,-701558691),g=l(g,h,f,p,e[i+10],9,38016083),p=l(p,g,h,f,e[i+15],14,-660478335),f=l(f,p,g,h,e[i+4],20,-405537848),h=l(h,f,p,g,e[i+9],5,568446438),g=l(g,h,f,p,e[i+14],9,-1019803690),p=l(p,g,h,f,e[i+3],14,-187363961),f=l(f,p,g,h,e[i+8],20,1163531501),h=l(h,f,p,g,e[i+13],5,-1444681467),g=l(g,h,f,p,e[i+2],9,-51403784),p=l(p,g,h,f,e[i+7],14,1735328473),h=c(h,f=l(f,p,g,h,e[i+12],20,-1926607734),p,g,e[i+5],4,-378558),g=c(g,h,f,p,e[i+8],11,-2022574463),p=c(p,g,h,f,e[i+11],16,1839030562),f=c(f,p,g,h,e[i+14],23,-35309556),h=c(h,f,p,g,e[i+1],4,-1530992060),g=c(g,h,f,p,e[i+4],11,1272893353),p=c(p,g,h,f,e[i+7],16,-155497632),f=c(f,p,g,h,e[i+10],23,-1094730640),h=c(h,f,p,g,e[i+13],4,681279174),g=c(g,h,f,p,e[i],11,-358537222),p=c(p,g,h,f,e[i+3],16,-722521979),f=c(f,p,g,h,e[i+6],23,76029189),h=c(h,f,p,g,e[i+9],4,-640364487),g=c(g,h,f,p,e[i+12],11,-421815835),p=c(p,g,h,f,e[i+15],16,530742520),h=d(h,f=c(f,p,g,h,e[i+2],23,-995338651),p,g,e[i],6,-198630844),g=d(g,h,f,p,e[i+7],10,1126891415),p=d(p,g,h,f,e[i+14],15,-1416354905),f=d(f,p,g,h,e[i+5],21,-57434055),h=d(h,f,p,g,e[i+12],6,1700485571),g=d(g,h,f,p,e[i+3],10,-1894986606),p=d(p,g,h,f,e[i+10],15,-1051523),f=d(f,p,g,h,e[i+1],21,-2054922799),h=d(h,f,p,g,e[i+8],6,1873313359),g=d(g,h,f,p,e[i+15],10,-30611744),p=d(p,g,h,f,e[i+6],15,-1560198380),f=d(f,p,g,h,e[i+13],21,1309151649),h=d(h,f,p,g,e[i+4],6,-145523070),g=d(g,h,f,p,e[i+11],10,-1120210379),p=d(p,g,h,f,e[i+2],15,718787259),f=d(f,p,g,h,e[i+9],21,-343485551),h=a(h,n),f=a(f,o),p=a(p,r),g=a(g,u);return[h,f,p,g]}function h(e){var t,i="",n=32*e.length;for(t=0;t<n;t+=8)i+=String.fromCharCode(e[t>>5]>>>t%32&255);return i}function f(e){var t,i=[];for(i[(e.length>>2)-1]=void 0,t=0;t<i.length;t+=1)i[t]=0;var n=8*e.length;for(t=0;t<n;t+=8)i[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return i}function p(e){var t,i,n="";for(i=0;i<e.length;i+=1)t=e.charCodeAt(i),n+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return n}function g(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return h(u(f(e),8*e.length))}(g(e))}function v(e,t){return function(e,t){var i,n,o=f(e),a=[],r=[];for(a[15]=r[15]=void 0,o.length>16&&(o=u(o,8*e.length)),i=0;i<16;i+=1)a[i]=909522486^o[i],r[i]=1549556828^o[i];return n=u(a.concat(f(t)),512+8*t.length),h(u(r.concat(n),640))}(g(e),g(t))}function _(e,t,i){return t?i?v(t,e):p(v(t,e)):i?m(e):p(m(e))}void 0===(n=function(){return _}.call(t,i,t,e))||(e.exports=n)}()},81:function(e,t,i){"use strict";t.decode=t.parse=i(82),t.encode=t.stringify=i(83)},82:function(e,t,i){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,i,a){t=t||"&",i=i||"=";var r={};if("string"!=typeof e||0===e.length)return r;var s=/\+/g;e=e.split(t);var l=1e3;a&&"number"==typeof a.maxKeys&&(l=a.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var d=0;d<c;++d){var u,h,f,p,g=e[d].replace(s,"%20"),m=g.indexOf(i);m>=0?(u=g.substr(0,m),h=g.substr(m+1)):(u=g,h=""),f=decodeURIComponent(u),p=decodeURIComponent(h),n(r,f)?o(r[f])?r[f].push(p):r[f]=[r[f],p]:r[f]=p}return r};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},83:function(e,t,i){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,i,s){return t=t||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?a(r(e),function(r){var s=encodeURIComponent(n(r))+i;return o(e[r])?a(e[r],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[r]))}).join(t):s?encodeURIComponent(n(s))+i+encodeURIComponent(n(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var i=[],n=0;n<e.length;n++)i.push(t(e[n],n));return i}var r=Object.keys||function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t}}});
|
assets/dist/js/babel-polyfill.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){var n={};function r(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)r.d(e,i,function(n){return t[n]}.bind(null,i));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=157)}([function(t,n,r){var e=r(1),i=r(10),o=r(15),u=r(11),c=r(22),f=function(t,n,r){var a,s,l,h,v=t&f.F,p=t&f.G,g=t&f.S,y=t&f.P,d=t&f.B,x=p?e:g?e[n]||(e[n]={}):(e[n]||{}).prototype,m=p?i:i[n]||(i[n]={}),b=m.prototype||(m.prototype={});for(a in p&&(r=n),r)l=((s=!v&&x&&void 0!==x[a])?x:r)[a],h=d&&s?c(l,e):y&&"function"==typeof l?c(Function.call,l):l,x&&u(x,a,l,t&f.U),m[a]!=l&&o(m,a,h),y&&b[a]!=l&&(b[a]=l)};e.core=i,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(4);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(54)("wks"),i=r(32),o=r(1).Symbol,u="function"==typeof o;(t.exports=function(t){return e[t]||(e[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=e},,function(t,n,r){var e=r(18),i=Math.min;t.exports=function(t){return t>0?i(e(t),9007199254740991):0}},function(t,n,r){var e=r(3),i=r(102),o=r(27),u=Object.defineProperty;n.f=r(9)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){t.exports=!r(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){var r=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=r)},function(t,n,r){var e=r(1),i=r(15),o=r(14),u=r(32)("src"),c=r(160),f=(""+c).split("toString");r(10).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var a="function"==typeof r;a&&(o(r,"name")||i(r,"name",n)),t[n]!==r&&(a&&(o(r,u)||i(r,u,t[n]?""+t[n]:f.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n,r){var e=r(25);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(0),i=r(2),o=r(25),u=/"/g,c=function(t,n,r,e){var i=String(o(t)),c="<"+n;return""!==r&&(c+=" "+r+'="'+String(e).replace(u,""")+'"'),c+">"+i+"</"+n+">"};t.exports=function(t,n){var r={};r[t]=n(c),e(e.P+e.F*i(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",r)}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(8),i=r(31);t.exports=r(9)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(50),i=r(25);t.exports=function(t){return e(i(t))}},function(t,n,r){"use strict";var e=r(2);t.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(51),i=r(31),o=r(16),u=r(27),c=r(14),f=r(102),a=Object.getOwnPropertyDescriptor;n.f=r(9)?a:function(t,n){if(t=o(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(0),i=r(10),o=r(2);t.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o(function(){r(1)}),"Object",u)}},function(t,n,r){var e=r(22),i=r(50),o=r(12),u=r(7),c=r(250);t.exports=function(t,n){var r=1==t,f=2==t,a=3==t,s=4==t,l=6==t,h=5==t||l,v=n||c;return function(n,c,p){for(var g,y,d=o(n),x=i(d),m=e(c,p,3),b=u(x.length),S=0,w=r?v(n,b):f?v(n,0):void 0;b>S;S++)if((h||S in x)&&(y=m(g=x[S],S,d),t))if(r)w[S]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return S;case 2:w.push(g)}else if(s)return!1;return l?-1:a||s?s:w}}},function(t,n,r){var e=r(23);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){"use strict";if(r(9)){var e=r(33),i=r(1),o=r(2),u=r(0),c=r(65),f=r(100),a=r(22),s=r(45),l=r(31),h=r(15),v=r(46),p=r(18),g=r(7),y=r(128),d=r(35),x=r(27),m=r(14),b=r(52),S=r(4),w=r(12),_=r(92),E=r(36),O=r(38),F=r(37).f,P=r(94),M=r(32),A=r(5),I=r(21),j=r(55),N=r(53),T=r(96),L=r(42),R=r(58),k=r(44),C=r(95),D=r(119),W=r(8),U=r(19),V=W.f,B=U.f,G=i.RangeError,z=i.TypeError,Y=i.Uint8Array,q=Array.prototype,$=f.ArrayBuffer,K=f.DataView,J=I(0),X=I(2),H=I(3),Z=I(4),Q=I(5),tt=I(6),nt=j(!0),rt=j(!1),et=T.values,it=T.keys,ot=T.entries,ut=q.lastIndexOf,ct=q.reduce,ft=q.reduceRight,at=q.join,st=q.sort,lt=q.slice,ht=q.toString,vt=q.toLocaleString,pt=A("iterator"),gt=A("toStringTag"),yt=M("typed_constructor"),dt=M("def_constructor"),xt=c.CONSTR,mt=c.TYPED,bt=c.VIEW,St=I(1,function(t,n){return Ft(N(t,t[dt]),n)}),wt=o(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),_t=!!Y&&!!Y.prototype.set&&o(function(){new Y(1).set({})}),Et=function(t,n){var r=p(t);if(r<0||r%n)throw G("Wrong offset!");return r},Ot=function(t){if(S(t)&&mt in t)return t;throw z(t+" is not a typed array!")},Ft=function(t,n){if(!(S(t)&&yt in t))throw z("It is not a typed array constructor!");return new t(n)},Pt=function(t,n){return Mt(N(t,t[dt]),n)},Mt=function(t,n){for(var r=0,e=n.length,i=Ft(t,e);e>r;)i[r]=n[r++];return i},At=function(t,n,r){V(t,n,{get:function(){return this._d[r]}})},It=function(t){var n,r,e,i,o,u,c=w(t),f=arguments.length,s=f>1?arguments[1]:void 0,l=void 0!==s,h=P(c);if(null!=h&&!_(h)){for(u=h.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(l&&f>2&&(s=a(s,arguments[2],2)),n=0,r=g(c.length),i=Ft(this,r);r>n;n++)i[n]=l?s(c[n],n):c[n];return i},jt=function(){for(var t=0,n=arguments.length,r=Ft(this,n);n>t;)r[t]=arguments[t++];return r},Nt=!!Y&&o(function(){vt.call(new Y(1))}),Tt=function(){return vt.apply(Nt?lt.call(Ot(this)):Ot(this),arguments)},Lt={copyWithin:function(t,n){return D.call(Ot(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Ot(this),arguments)},filter:function(t){return Pt(this,X(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){J(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return at.apply(Ot(this),arguments)},lastIndexOf:function(t){return ut.apply(Ot(this),arguments)},map:function(t){return St(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Ot(this),arguments)},reduceRight:function(t){return ft.apply(Ot(this),arguments)},reverse:function(){for(var t,n=Ot(this).length,r=Math.floor(n/2),e=0;e<r;)t=this[e],this[e++]=this[--n],this[n]=t;return this},some:function(t){return H(Ot(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return st.call(Ot(this),t)},subarray:function(t,n){var r=Ot(this),e=r.length,i=d(t,e);return new(N(r,r[dt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,g((void 0===n?e:d(n,e))-i))}},Rt=function(t,n){return Pt(this,lt.call(Ot(this),t,n))},kt=function(t){Ot(this);var n=Et(arguments[1],1),r=this.length,e=w(t),i=g(e.length),o=0;if(i+n>r)throw G("Wrong length!");for(;o<i;)this[n+o]=e[o++]},Ct={entries:function(){return ot.call(Ot(this))},keys:function(){return it.call(Ot(this))},values:function(){return et.call(Ot(this))}},Dt=function(t,n){return S(t)&&t[mt]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Wt=function(t,n){return Dt(t,n=x(n,!0))?l(2,t[n]):B(t,n)},Ut=function(t,n,r){return!(Dt(t,n=x(n,!0))&&S(r)&&m(r,"value"))||m(r,"get")||m(r,"set")||r.configurable||m(r,"writable")&&!r.writable||m(r,"enumerable")&&!r.enumerable?V(t,n,r):(t[n]=r.value,t)};xt||(U.f=Wt,W.f=Ut),u(u.S+u.F*!xt,"Object",{getOwnPropertyDescriptor:Wt,defineProperty:Ut}),o(function(){ht.call({})})&&(ht=vt=function(){return at.call(this)});var Vt=v({},Lt);v(Vt,Ct),h(Vt,pt,Ct.values),v(Vt,{slice:Rt,set:kt,constructor:function(){},toString:ht,toLocaleString:Tt}),At(Vt,"buffer","b"),At(Vt,"byteOffset","o"),At(Vt,"byteLength","l"),At(Vt,"length","e"),V(Vt,gt,{get:function(){return this[mt]}}),t.exports=function(t,n,r,f){var a=t+((f=!!f)?"Clamped":"")+"Array",l="get"+t,v="set"+t,p=i[a],d=p||{},x=p&&O(p),m=!p||!c.ABV,w={},_=p&&p.prototype,P=function(t,r){V(t,r,{get:function(){return function(t,r){var e=t._d;return e.v[l](r*n+e.o,wt)}(this,r)},set:function(t){return function(t,r,e){var i=t._d;f&&(e=(e=Math.round(e))<0?0:e>255?255:255&e),i.v[v](r*n+i.o,e,wt)}(this,r,t)},enumerable:!0})};m?(p=r(function(t,r,e,i){s(t,p,a,"_d");var o,u,c,f,l=0,v=0;if(S(r)){if(!(r instanceof $||"ArrayBuffer"==(f=b(r))||"SharedArrayBuffer"==f))return mt in r?Mt(p,r):It.call(p,r);o=r,v=Et(e,n);var d=r.byteLength;if(void 0===i){if(d%n)throw G("Wrong length!");if((u=d-v)<0)throw G("Wrong length!")}else if((u=g(i)*n)+v>d)throw G("Wrong length!");c=u/n}else c=y(r),o=new $(u=c*n);for(h(t,"_d",{b:o,o:v,l:u,e:c,v:new K(o)});l<c;)P(t,l++)}),_=p.prototype=E(Vt),h(_,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&R(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=r(function(t,r,e,i){var o;return s(t,p,a),S(r)?r instanceof $||"ArrayBuffer"==(o=b(r))||"SharedArrayBuffer"==o?void 0!==i?new d(r,Et(e,n),i):void 0!==e?new d(r,Et(e,n)):new d(r):mt in r?Mt(p,r):It.call(p,r):new d(y(r))}),J(x!==Function.prototype?F(d).concat(F(x)):F(d),function(t){t in p||h(p,t,d[t])}),p.prototype=_,e||(_.constructor=p));var M=_[pt],A=!!M&&("values"==M.name||null==M.name),I=Ct.values;h(p,yt,!0),h(_,mt,a),h(_,bt,!0),h(_,dt,p),(f?new p(1)[gt]==a:gt in _)||V(_,gt,{get:function(){return a}}),w[a]=p,u(u.G+u.W+u.F*(p!=d),w),u(u.S,a,{BYTES_PER_ELEMENT:n}),u(u.S+u.F*o(function(){d.of.call(p,1)}),a,{from:It,of:jt}),"BYTES_PER_ELEMENT"in _||h(_,"BYTES_PER_ELEMENT",n),u(u.P,a,Lt),k(a),u(u.P+u.F*_t,a,{set:kt}),u(u.P+u.F*!A,a,Ct),e||_.toString==ht||(_.toString=ht),u(u.P+u.F*o(function(){new p(1).slice()}),a,{slice:Rt}),u(u.P+u.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){_.toLocaleString.call([1,2])})),a,{toLocaleString:Tt}),L[a]=A?M:I,e||A||h(_,pt,I)}}else t.exports=function(){}},function(t,n,r){var e=r(4);t.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(32)("meta"),i=r(4),o=r(14),u=r(8).f,c=0,f=Object.isExtensible||function(){return!0},a=!r(2)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,e)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[e].i},getWeak:function(t,n){if(!o(t,e)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[e].w},onFreeze:function(t){return a&&l.NEED&&f(t)&&!o(t,e)&&s(t),t}}},,,function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n){t.exports=!1},function(t,n,r){var e=r(104),i=r(78);t.exports=Object.keys||function(t){return e(t,i)}},function(t,n,r){var e=r(18),i=Math.max,o=Math.min;t.exports=function(t,n){return(t=e(t))<0?i(t+n,0):o(t,n)}},function(t,n,r){var e=r(3),i=r(105),o=r(78),u=r(77)("IE_PROTO"),c=function(){},f=function(){var t,n=r(75)("iframe"),e=o.length;for(n.style.display="none",r(80).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;e--;)delete f.prototype[o[e]];return f()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=f(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(104),i=r(78).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},function(t,n,r){var e=r(14),i=r(12),o=r(77)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){var e=r(4);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){var e=r(8).f,i=r(14),o=r(5)("toStringTag");t.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},function(t,n){t.exports={}},function(t,n,r){var e=r(5)("unscopables"),i=Array.prototype;null==i[e]&&r(15)(i,e,{}),t.exports=function(t){i[e][t]=!0}},function(t,n,r){"use strict";var e=r(1),i=r(8),o=r(9),u=r(5)("species");t.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(11);t.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},,,,function(t,n,r){var e=r(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(24),i=r(5)("toStringTag"),o="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?r:o?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,r){var e=r(3),i=r(23),o=r(5)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||null==(r=e(u)[o])?n:i(r)}},function(t,n,r){var e=r(10),i=r(1),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(33)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n,r){var e=r(16),i=r(7),o=r(35);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=i(f.length),s=o(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(0),i=r(25),o=r(2),u=r(82),c="["+u+"]",f=RegExp("^"+c+c+"*"),a=RegExp(c+c+"*$"),s=function(t,n,r){var i={},c=o(function(){return!!u[t]()||"
"!="
"[t]()}),f=i[t]=c?n(l):u[t];r&&(i[r]=f),e(e.P+e.F*c,"String",i)},l=s.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(a,"")),t};t.exports=s},function(t,n,r){var e=r(5)("iterator"),i=!1;try{var o=[7][e]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(t){}return r}},function(t,n,r){"use strict";var e=r(3);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){"use strict";var e=r(52),i=RegExp.prototype.exec;t.exports=function(t,n){var r=t.exec;if("function"==typeof r){var o=r.call(t,n);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==e(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},function(t,n,r){"use strict";r(121);var e=r(11),i=r(15),o=r(2),u=r(25),c=r(5),f=r(97),a=c("species"),s=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,n,r){var h=c(t),v=!o(function(){var n={};return n[h]=function(){return 7},7!=""[t](n)}),p=v?!o(function(){var n=!1,r=/a/;return r.exec=function(){return n=!0,null},"split"===t&&(r.constructor={},r.constructor[a]=function(){return r}),r[h](""),!n}):void 0;if(!v||!p||"replace"===t&&!s||"split"===t&&!l){var g=/./[h],y=r(u,h,""[t],function(t,n,r,e,i){return n.exec===f?v&&!i?{done:!0,value:g.call(n,r,e)}:{done:!0,value:t.call(r,n,e)}:{done:!1}}),d=y[0],x=y[1];e(String.prototype,t,d),i(RegExp.prototype,h,2==n?function(t,n){return x.call(t,this,n)}:function(t){return x.call(t,this)})}}},function(t,n,r){var e=r(22),i=r(117),o=r(92),u=r(3),c=r(7),f=r(94),a={},s={};(n=t.exports=function(t,n,r,l,h){var v,p,g,y,d=h?function(){return t}:f(t),x=e(r,l,n?2:1),m=0;if("function"!=typeof d)throw TypeError(t+" is not iterable!");if(o(d)){for(v=c(t.length);v>m;m++)if((y=n?x(u(p=t[m])[0],p[1]):x(t[m]))===a||y===s)return y}else for(g=d.call(t);!(p=g.next()).done;)if((y=i(g,x,p.value,n))===a||y===s)return y}).BREAK=a,n.RETURN=s},function(t,n,r){var e=r(1).navigator;t.exports=e&&e.userAgent||""},function(t,n,r){"use strict";var e=r(1),i=r(0),o=r(11),u=r(46),c=r(28),f=r(62),a=r(45),s=r(4),l=r(2),h=r(58),v=r(41),p=r(83);t.exports=function(t,n,r,g,y,d){var x=e[t],m=x,b=y?"set":"add",S=m&&m.prototype,w={},_=function(t){var n=S[t];o(S,t,"delete"==t?function(t){return!(d&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(d&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return d&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof m&&(d||S.forEach&&!l(function(){(new m).entries().next()}))){var E=new m,O=E[b](d?{}:-0,1)!=E,F=l(function(){E.has(1)}),P=h(function(t){new m(t)}),M=!d&&l(function(){for(var t=new m,n=5;n--;)t[b](n,n);return!t.has(-0)});P||((m=n(function(n,r){a(n,m,t);var e=p(new x,n,m);return null!=r&&f(r,y,e[b],e),e})).prototype=S,S.constructor=m),(F||M)&&(_("delete"),_("has"),y&&_("get")),(M||O)&&_(b),d&&S.clear&&delete S.clear}else m=g.getConstructor(n,t,y,b),u(m.prototype,r),c.NEED=!0;return v(m,t),w[t]=m,i(i.G+i.W+i.F*(m!=x),w),d||g.setStrong(m,t,y),m}},function(t,n,r){for(var e,i=r(1),o=r(15),u=r(32),c=u("typed_array"),f=u("view"),a=!(!i.ArrayBuffer||!i.DataView),s=a,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=i[h[l++]])?(o(e.prototype,c,!0),o(e.prototype,f,!0)):s=!1;t.exports={ABV:a,CONSTR:s,TYPED:c,VIEW:f}},,,,,,,,,,function(t,n,r){var e=r(4),i=r(1).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,r){n.f=r(5)},function(t,n,r){var e=r(54)("keys"),i=r(32);t.exports=function(t){return e[t]||(e[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(24);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(1).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(4),i=r(3),o=function(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{(e=r(22)(Function.call,r(19).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return o(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:o}},function(t,n){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,n,r){var e=r(4),i=r(81).set;t.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&"function"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},function(t,n,r){"use strict";var e=r(18),i=r(25);t.exports=function(t){var n=String(i(this)),r="",o=e(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,n,r){var e=r(18),i=r(25);t.exports=function(t){return function(n,r){var o,u,c=String(i(n)),f=e(r),a=c.length;return f<0||f>=a?t?"":void 0:(o=c.charCodeAt(f))<55296||o>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):o:t?c.slice(f,f+2):u-56320+(o-55296<<10)+65536}}},function(t,n,r){"use strict";var e=r(33),i=r(0),o=r(11),u=r(15),c=r(42),f=r(116),a=r(41),s=r(38),l=r(5)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,r,p,g,y,d){f(r,n,p);var x,m,b,S=function(t){if(!h&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},w=n+" Iterator",_="values"==g,E=!1,O=t.prototype,F=O[l]||O["@@iterator"]||g&&O[g],P=F||S(g),M=g?_?S("entries"):P:void 0,A="Array"==n&&O.entries||F;if(A&&(b=s(A.call(new t)))!==Object.prototype&&b.next&&(a(b,w,!0),e||"function"==typeof b[l]||u(b,l,v)),_&&F&&"values"!==F.name&&(E=!0,P=function(){return F.call(this)}),e&&!d||!h&&!E&&O[l]||u(O,l,P),c[n]=P,c[w]=v,g)if(x={values:_?P:S("values"),keys:y?P:S("keys"),entries:M},d)for(m in x)m in O||o(O,m,x[m]);else i(i.P+i.F*(h||E),n,x);return x}},function(t,n,r){var e=r(90),i=r(25);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},function(t,n,r){var e=r(4),i=r(24),o=r(5)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,r){var e=r(5)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,r){var e=r(42),i=r(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},function(t,n,r){"use strict";var e=r(8),i=r(31);t.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},function(t,n,r){var e=r(52),i=r(5)("iterator"),o=r(42);t.exports=r(10).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,n,r){"use strict";var e=r(12),i=r(35),o=r(7);t.exports=function(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),f=u>2?arguments[2]:void 0,a=void 0===f?r:i(f,r);a>c;)n[c++]=t;return n}},function(t,n,r){"use strict";var e=r(43),i=r(120),o=r(42),u=r(16);t.exports=r(88)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])},"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},function(t,n,r){"use strict";var e,i,o=r(59),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,a=(e=/a/,i=/b*/g,u.call(e,"a"),u.call(i,"a"),0!==e.lastIndex||0!==i.lastIndex),s=void 0!==/()??/.exec("")[1];(a||s)&&(f=function(t){var n,r,e,i,f=this;return s&&(r=new RegExp("^"+f.source+"$(?!\\s)",o.call(f))),a&&(n=f.lastIndex),e=u.call(f,t),a&&e&&(f.lastIndex=f.global?e.index+e[0].length:n),s&&e&&e.length>1&&c.call(e[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(e[i]=void 0)}),e}),t.exports=f},function(t,n,r){"use strict";var e=r(87)(!0);t.exports=function(t,n,r){return n+(r?e(t,n).length:1)}},function(t,n,r){var e,i,o,u=r(22),c=r(110),f=r(80),a=r(75),s=r(1),l=s.process,h=s.setImmediate,v=s.clearImmediate,p=s.MessageChannel,g=s.Dispatch,y=0,d={},x=function(){var t=+this;if(d.hasOwnProperty(t)){var n=d[t];delete d[t],n()}},m=function(t){x.call(t.data)};h&&v||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return d[++y]=function(){c("function"==typeof t?t:Function(t),n)},e(y),y},v=function(t){delete d[t]},"process"==r(24)(l)?e=function(t){l.nextTick(u(x,t,1))}:g&&g.now?e=function(t){g.now(u(x,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=m,e=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",m,!1)):e="onreadystatechange"in a("script")?function(t){f.appendChild(a("script")).onreadystatechange=function(){f.removeChild(this),x.call(t)}}:function(t){setTimeout(u(x,t,1),0)}),t.exports={set:h,clear:v}},function(t,n,r){"use strict";var e=r(1),i=r(9),o=r(33),u=r(65),c=r(15),f=r(46),a=r(2),s=r(45),l=r(18),h=r(7),v=r(128),p=r(37).f,g=r(8).f,y=r(95),d=r(41),x="prototype",m="Wrong index!",b=e.ArrayBuffer,S=e.DataView,w=e.Math,_=e.RangeError,E=e.Infinity,O=b,F=w.abs,P=w.pow,M=w.floor,A=w.log,I=w.LN2,j=i?"_b":"buffer",N=i?"_l":"byteLength",T=i?"_o":"byteOffset";function L(t,n,r){var e,i,o,u=new Array(r),c=8*r-n-1,f=(1<<c)-1,a=f>>1,s=23===n?P(2,-24)-P(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for((t=F(t))!=t||t===E?(i=t!=t?1:0,e=f):(e=M(A(t)/I),t*(o=P(2,-e))<1&&(e--,o*=2),(t+=e+a>=1?s/o:s*P(2,1-a))*o>=2&&(e++,o/=2),e+a>=f?(i=0,e=f):e+a>=1?(i=(t*o-1)*P(2,n),e+=a):(i=t*P(2,a-1)*P(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<<n|i,c+=n;c>0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u}function R(t,n,r){var e,i=8*r-n-1,o=(1<<i)-1,u=o>>1,c=i-7,f=r-1,a=t[f--],s=127&a;for(a>>=7;c>0;s=256*s+t[f],f--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[f],f--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:a?-E:E;e+=P(2,n),s-=u}return(a?-1:1)*e*P(2,s-n)}function k(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function C(t){return[255&t]}function D(t){return[255&t,t>>8&255]}function W(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function U(t){return L(t,52,8)}function V(t){return L(t,23,4)}function B(t,n,r){g(t[x],n,{get:function(){return this[r]}})}function G(t,n,r,e){var i=v(+r);if(i+n>t[N])throw _(m);var o=t[j]._b,u=i+t[T],c=o.slice(u,u+n);return e?c:c.reverse()}function z(t,n,r,e,i,o){var u=v(+r);if(u+n>t[N])throw _(m);for(var c=t[j]._b,f=u+t[T],a=e(+i),s=0;s<n;s++)c[f+s]=a[o?s:n-s-1]}if(u.ABV){if(!a(function(){b(1)})||!a(function(){new b(-1)})||a(function(){return new b,new b(1.5),new b(NaN),"ArrayBuffer"!=b.name})){for(var Y,q=(b=function(t){return s(this,b),new O(v(t))})[x]=O[x],$=p(O),K=0;$.length>K;)(Y=$[K++])in b||c(b,Y,O[Y]);o||(q.constructor=b)}var J=new S(new b(2)),X=S[x].setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||f(S[x],{setInt8:function(t,n){X.call(this,t,n<<24>>24)},setUint8:function(t,n){X.call(this,t,n<<24>>24)}},!0)}else b=function(t){s(this,b,"ArrayBuffer");var n=v(t);this._b=y.call(new Array(n),0),this[N]=n},S=function(t,n,r){s(this,S,"DataView"),s(t,b,"DataView");var e=t[N],i=l(n);if(i<0||i>e)throw _("Wrong offset!");if(i+(r=void 0===r?e-i:h(r))>e)throw _("Wrong length!");this[j]=t,this[T]=i,this[N]=r},i&&(B(b,"byteLength","_l"),B(S,"buffer","_b"),B(S,"byteLength","_l"),B(S,"byteOffset","_o")),f(S[x],{getInt8:function(t){return G(this,1,t)[0]<<24>>24},getUint8:function(t){return G(this,1,t)[0]},getInt16:function(t){var n=G(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=G(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return k(G(this,4,t,arguments[1]))},getUint32:function(t){return k(G(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return R(G(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return R(G(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){z(this,1,t,C,n)},setUint8:function(t,n){z(this,1,t,C,n)},setInt16:function(t,n){z(this,2,t,D,n,arguments[2])},setUint16:function(t,n){z(this,2,t,D,n,arguments[2])},setInt32:function(t,n){z(this,4,t,W,n,arguments[2])},setUint32:function(t,n){z(this,4,t,W,n,arguments[2])},setFloat32:function(t,n){z(this,4,t,V,n,arguments[2])},setFloat64:function(t,n){z(this,8,t,U,n,arguments[2])}});d(b,"ArrayBuffer"),d(S,"DataView"),c(S[x],u.VIEW,!0),n.ArrayBuffer=b,n.DataView=S},,function(t,n,r){t.exports=!r(9)&&!r(2)(function(){return 7!=Object.defineProperty(r(75)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(1),i=r(10),o=r(33),u=r(76),c=r(8).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){var e=r(14),i=r(16),o=r(55)(!1),u=r(77)("IE_PROTO");t.exports=function(t,n){var r,c=i(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~o(a,r)||a.push(r));return a}},function(t,n,r){var e=r(8),i=r(3),o=r(34);t.exports=r(9)?Object.defineProperties:function(t,n){i(t);for(var r,u=o(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){var e=r(16),i=r(37).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(e(t))}},function(t,n,r){"use strict";var e=r(34),i=r(56),o=r(51),u=r(12),c=r(50),f=Object.assign;t.exports=!f||r(2)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=f({},t)[r]||Object.keys(f({},n)).join("")!=e})?function(t,n){for(var r=u(t),f=arguments.length,a=1,s=i.f,l=o.f;f>a;)for(var h,v=c(arguments[a++]),p=s?e(v).concat(s(v)):e(v),g=p.length,y=0;g>y;)l.call(v,h=p[y++])&&(r[h]=v[h]);return r}:f},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,r){"use strict";var e=r(23),i=r(4),o=r(110),u=[].slice,c={};t.exports=Function.bind||function(t){var n=e(this),r=u.call(arguments,1),f=function(){var e=r.concat(u.call(arguments));return this instanceof f?function(t,n,r){if(!(n in c)){for(var e=[],i=0;i<n;i++)e[i]="a["+i+"]";c[n]=Function("F,a","return new F("+e.join(",")+")")}return c[n](t,r)}(n,e.length,e):o(n,e,t)};return i(n.prototype)&&(f.prototype=n.prototype),f}},function(t,n){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},function(t,n,r){var e=r(1).parseInt,i=r(57).trim,o=r(82),u=/^[-+]?0[xX]/;t.exports=8!==e(o+"08")||22!==e(o+"0x16")?function(t,n){var r=i(String(t),3);return e(r,n>>>0||(u.test(r)?16:10))}:e},function(t,n,r){var e=r(1).parseFloat,i=r(57).trim;t.exports=1/e(r(82)+"-0")!=-1/0?function(t){var n=i(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){var e=r(24);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){var e=r(4),i=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){"use strict";var e=r(36),i=r(31),o=r(41),u={};r(15)(u,r(5)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},function(t,n,r){var e=r(3);t.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(n){var o=t.return;throw void 0!==o&&e(o.call(t)),n}}},function(t,n,r){var e=r(23),i=r(12),o=r(50),u=r(7);t.exports=function(t,n,r,c,f){e(n);var a=i(t),s=o(a),l=u(a.length),h=f?l-1:0,v=f?-1:1;if(r<2)for(;;){if(h in s){c=s[h],h+=v;break}if(h+=v,f?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;f?h>=0:l>h;h+=v)h in s&&(c=n(c,s[h],h,a));return c}},function(t,n,r){"use strict";var e=r(12),i=r(35),o=r(7);t.exports=[].copyWithin||function(t,n){var r=e(this),u=o(r.length),c=i(t,u),f=i(n,u),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?u:i(a,u))-f,u-c),l=1;for(f<c&&c<f+s&&(l=-1,f+=s-1,c+=s-1);s-- >0;)f in r?r[c]=r[f]:delete r[c],c+=l,f+=l;return r}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(97);r(0)({target:"RegExp",proto:!0,forced:e!==/./.exec},{exec:e})},function(t,n,r){r(9)&&"g"!=/./g.flags&&r(8).f(RegExp.prototype,"flags",{configurable:!0,get:r(59)})},function(t,n,r){"use strict";var e,i,o,u,c=r(33),f=r(1),a=r(22),s=r(52),l=r(0),h=r(4),v=r(23),p=r(45),g=r(62),y=r(53),d=r(99).set,x=r(271)(),m=r(124),b=r(272),S=r(63),w=r(125),_=f.TypeError,E=f.process,O=E&&E.versions,F=O&&O.v8||"",P=f.Promise,M="process"==s(E),A=function(){},I=i=m.f,j=!!function(){try{var t=P.resolve(1),n=(t.constructor={})[r(5)("species")]=function(t){t(A,A)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof n&&0!==F.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(t){}}(),N=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},T=function(t,n){if(!t._n){t._n=!0;var r=t._c;x(function(){for(var e=t._v,i=1==t._s,o=0,u=function(n){var r,o,u,c=i?n.ok:n.fail,f=n.resolve,a=n.reject,s=n.domain;try{c?(i||(2==t._h&&k(t),t._h=1),!0===c?r=e:(s&&s.enter(),r=c(e),s&&(s.exit(),u=!0)),r===n.promise?a(_("Promise-chain cycle")):(o=N(r))?o.call(r,f,a):f(r)):a(e)}catch(t){s&&!u&&s.exit(),a(t)}};r.length>o;)u(r[o++]);t._c=[],t._n=!1,n&&!t._h&&L(t)})}},L=function(t){d.call(f,function(){var n,r,e,i=t._v,o=R(t);if(o&&(n=b(function(){M?E.emit("unhandledRejection",i,t):(r=f.onunhandledrejection)?r({promise:t,reason:i}):(e=f.console)&&e.error&&e.error("Unhandled promise rejection",i)}),t._h=M||R(t)?2:1),t._a=void 0,o&&n.e)throw n.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){d.call(f,function(){var n;M?E.emit("rejectionHandled",t):(n=f.onrejectionhandled)&&n({promise:t,reason:t._v})})},C=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),T(n,!0))},D=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");(n=N(t))?x(function(){var e={_w:r,_d:!1};try{n.call(t,a(D,e,1),a(C,e,1))}catch(t){C.call(e,t)}}):(r._v=t,r._s=1,T(r,!1))}catch(t){C.call({_w:r,_d:!1},t)}}};j||(P=function(t){p(this,P,"Promise","_h"),v(t),e.call(this);try{t(a(D,this,1),a(C,this,1))}catch(t){C.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(46)(P.prototype,{then:function(t,n){var r=I(y(this,P));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=M?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&T(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new e;this.promise=t,this.resolve=a(D,t,1),this.reject=a(C,t,1)},m.f=I=function(t){return t===P||t===u?new o(t):i(t)}),l(l.G+l.W+l.F*!j,{Promise:P}),r(41)(P,"Promise"),r(44)("Promise"),u=r(10).Promise,l(l.S+l.F*!j,"Promise",{reject:function(t){var n=I(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!j),"Promise",{resolve:function(t){return w(c&&this===u?P:this,t)}}),l(l.S+l.F*!(j&&r(58)(function(t){P.all(t).catch(A)})),"Promise",{all:function(t){var n=this,r=I(n),e=r.resolve,i=r.reject,o=b(function(){var r=[],o=0,u=1;g(t,!1,function(t){var c=o++,f=!1;r.push(void 0),u++,n.resolve(t).then(function(t){f||(f=!0,r[c]=t,--u||e(r))},i)}),--u||e(r)});return o.e&&i(o.v),r.promise},race:function(t){var n=this,r=I(n),e=r.reject,i=b(function(){g(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return i.e&&e(i.v),r.promise}})},function(t,n,r){"use strict";var e=r(23);function i(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=e(n),this.reject=e(r)}t.exports.f=function(t){return new i(t)}},function(t,n,r){var e=r(3),i=r(4),o=r(124);t.exports=function(t,n){if(e(t),i(n)&&n.constructor===t)return n;var r=o.f(t);return(0,r.resolve)(n),r.promise}},function(t,n,r){"use strict";var e=r(8).f,i=r(36),o=r(46),u=r(22),c=r(45),f=r(62),a=r(88),s=r(120),l=r(44),h=r(9),v=r(28).fastKey,p=r(39),g=h?"_s":"size",y=function(t,n){var r,e=v(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,a){var s=t(function(t,e){c(t,s,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[g]=0,null!=e&&f(e,r,t[a],t)});return o(s.prototype,{clear:function(){for(var t=p(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var r=p(this,n),e=y(r,t);if(e){var i=e.n,o=e.p;delete r._i[e.i],e.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==e&&(r._f=i),r._l==e&&(r._l=o),r[g]--}return!!e},forEach:function(t){p(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!y(p(this,n),t)}}),h&&e(s.prototype,"size",{get:function(){return p(this,n)[g]}}),s},def:function(t,n,r){var e,i,o=y(t,n);return o?o.v=r:(t._l=o={i:i=v(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,n,r){a(t,n,function(t,r){this._t=p(t,n),this._k=r,this._l=void 0},function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?s(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,s(1))},r?"entries":"values",!r,!0),l(n)}}},function(t,n,r){"use strict";var e=r(46),i=r(28).getWeak,o=r(3),u=r(4),c=r(45),f=r(62),a=r(21),s=r(14),l=r(39),h=a(5),v=a(6),p=0,g=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},d=function(t,n){return h(t.a,function(t){return t[0]===n})};y.prototype={get:function(t){var n=d(this,t);if(n)return n[1]},has:function(t){return!!d(this,t)},set:function(t,n){var r=d(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=v(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,o){var a=t(function(t,e){c(t,a,n,"_i"),t._t=n,t._i=p++,t._l=void 0,null!=e&&f(e,r,t[o],t)});return e(a.prototype,{delete:function(t){if(!u(t))return!1;var r=i(t);return!0===r?g(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function(t){if(!u(t))return!1;var r=i(t);return!0===r?g(l(this,n)).has(t):r&&s(r,this._i)}}),a},def:function(t,n,r){var e=i(o(n),!0);return!0===e?g(t).set(n,r):e[t._i]=r,t},ufstore:g}},function(t,n,r){var e=r(18),i=r(7);t.exports=function(t){if(void 0===t)return 0;var n=e(t),r=i(n);if(n!==r)throw RangeError("Wrong length!");return r}},function(t,n,r){var e=r(37),i=r(56),o=r(3),u=r(1).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(7),i=r(84),o=r(25);t.exports=function(t,n,r,u){var c=String(o(t)),f=c.length,a=void 0===r?" ":String(r),s=e(n);if(s<=f||""==a)return c;var l=s-f,h=i.call(a,Math.ceil(l/a.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},function(t,n,r){var e=r(34),i=r(16),o=r(51).f;t.exports=function(t){return function(n){for(var r,u=i(n),c=e(u),f=c.length,a=0,s=[];f>a;)o.call(u,r=c[a++])&&s.push(t?[r,u[r]]:u[r]);return s}}},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,r){"use strict";(function(t){r(158),r(302),r(304),r(306),r(308),r(310),r(312),r(314),r(316),r(318),r(322),t._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),t._babelPolyfill=!0}).call(this,r(40))},function(t,n,r){r(159),r(162),r(163),r(164),r(165),r(166),r(167),r(168),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187),r(188),r(189),r(190),r(191),r(192),r(193),r(194),r(195),r(196),r(197),r(198),r(199),r(200),r(201),r(202),r(203),r(205),r(206),r(207),r(208),r(209),r(210),r(211),r(212),r(213),r(214),r(215),r(216),r(217),r(218),r(219),r(220),r(221),r(222),r(223),r(224),r(225),r(226),r(227),r(228),r(229),r(230),r(231),r(232),r(233),r(234),r(235),r(236),r(237),r(238),r(240),r(241),r(243),r(244),r(245),r(246),r(247),r(248),r(249),r(252),r(253),r(254),r(255),r(256),r(257),r(258),r(259),r(260),r(261),r(262),r(263),r(264),r(96),r(265),r(121),r(266),r(122),r(267),r(268),r(269),r(270),r(123),r(273),r(274),r(275),r(276),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),t.exports=r(10)},function(t,n,r){"use strict";var e=r(1),i=r(14),o=r(9),u=r(0),c=r(11),f=r(28).KEY,a=r(2),s=r(54),l=r(41),h=r(32),v=r(5),p=r(76),g=r(103),y=r(161),d=r(79),x=r(3),m=r(4),b=r(16),S=r(27),w=r(31),_=r(36),E=r(106),O=r(19),F=r(8),P=r(34),M=O.f,A=F.f,I=E.f,j=e.Symbol,N=e.JSON,T=N&&N.stringify,L=v("_hidden"),R=v("toPrimitive"),k={}.propertyIsEnumerable,C=s("symbol-registry"),D=s("symbols"),W=s("op-symbols"),U=Object.prototype,V="function"==typeof j,B=e.QObject,G=!B||!B.prototype||!B.prototype.findChild,z=o&&a(function(){return 7!=_(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=M(U,n);e&&delete U[n],A(t,n,r),e&&t!==U&&A(U,n,e)}:A,Y=function(t){var n=D[t]=_(j.prototype);return n._k=t,n},q=V&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},$=function(t,n,r){return t===U&&$(W,n,r),x(t),n=S(n,!0),x(r),i(D,n)?(r.enumerable?(i(t,L)&&t[L][n]&&(t[L][n]=!1),r=_(r,{enumerable:w(0,!1)})):(i(t,L)||A(t,L,w(1,{})),t[L][n]=!0),z(t,n,r)):A(t,n,r)},K=function(t,n){x(t);for(var r,e=y(n=b(n)),i=0,o=e.length;o>i;)$(t,r=e[i++],n[r]);return t},J=function(t){var n=k.call(this,t=S(t,!0));return!(this===U&&i(D,t)&&!i(W,t))&&(!(n||!i(this,t)||!i(D,t)||i(this,L)&&this[L][t])||n)},X=function(t,n){if(t=b(t),n=S(n,!0),t!==U||!i(D,n)||i(W,n)){var r=M(t,n);return!r||!i(D,n)||i(t,L)&&t[L][n]||(r.enumerable=!0),r}},H=function(t){for(var n,r=I(b(t)),e=[],o=0;r.length>o;)i(D,n=r[o++])||n==L||n==f||e.push(n);return e},Z=function(t){for(var n,r=t===U,e=I(r?W:b(t)),o=[],u=0;e.length>u;)!i(D,n=e[u++])||r&&!i(U,n)||o.push(D[n]);return o};V||(c((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===U&&n.call(W,r),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),z(this,t,w(1,r))};return o&&G&&z(U,t,{configurable:!0,set:n}),Y(t)}).prototype,"toString",function(){return this._k}),O.f=X,F.f=$,r(37).f=E.f=H,r(51).f=J,r(56).f=Z,o&&!r(33)&&c(U,"propertyIsEnumerable",J,!0),p.f=function(t){return Y(v(t))}),u(u.G+u.W+u.F*!V,{Symbol:j});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Q.length>tt;)v(Q[tt++]);for(var nt=P(v.store),rt=0;nt.length>rt;)g(nt[rt++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return i(C,t+="")?C[t]:C[t]=j(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var n in C)if(C[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),u(u.S+u.F*!V,"Object",{create:function(t,n){return void 0===n?_(t):K(_(t),n)},defineProperty:$,defineProperties:K,getOwnPropertyDescriptor:X,getOwnPropertyNames:H,getOwnPropertySymbols:Z}),N&&u(u.S+u.F*(!V||a(function(){var t=j();return"[null]"!=T([t])||"{}"!=T({a:t})||"{}"!=T(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);if(r=n=e[1],(m(n)||void 0!==t)&&!q(t))return d(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!q(n))return n}),e[1]=n,T.apply(N,e)}}),j.prototype[R]||r(15)(j.prototype,R,j.prototype.valueOf),l(j,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){t.exports=r(54)("native-function-to-string",Function.toString)},function(t,n,r){var e=r(34),i=r(56),o=r(51);t.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),f=o.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n,r){var e=r(0);e(e.S,"Object",{create:r(36)})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(9),"Object",{defineProperty:r(8).f})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(9),"Object",{defineProperties:r(105)})},function(t,n,r){var e=r(16),i=r(19).f;r(20)("getOwnPropertyDescriptor",function(){return function(t,n){return i(e(t),n)}})},function(t,n,r){var e=r(12),i=r(38);r(20)("getPrototypeOf",function(){return function(t){return i(e(t))}})},function(t,n,r){var e=r(12),i=r(34);r(20)("keys",function(){return function(t){return i(e(t))}})},function(t,n,r){r(20)("getOwnPropertyNames",function(){return r(106).f})},function(t,n,r){var e=r(4),i=r(28).onFreeze;r(20)("freeze",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(4),i=r(28).onFreeze;r(20)("seal",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(4),i=r(28).onFreeze;r(20)("preventExtensions",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(4);r(20)("isFrozen",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(4);r(20)("isSealed",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(4);r(20)("isExtensible",function(t){return function(n){return!!e(n)&&(!t||t(n))}})},function(t,n,r){var e=r(0);e(e.S+e.F,"Object",{assign:r(107)})},function(t,n,r){var e=r(0);e(e.S,"Object",{is:r(108)})},function(t,n,r){var e=r(0);e(e.S,"Object",{setPrototypeOf:r(81).set})},function(t,n,r){"use strict";var e=r(52),i={};i[r(5)("toStringTag")]="z",i+""!="[object z]"&&r(11)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(t,n,r){var e=r(0);e(e.P,"Function",{bind:r(109)})},function(t,n,r){var e=r(8).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(9)&&e(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,n,r){"use strict";var e=r(4),i=r(38),o=r(5)("hasInstance"),u=Function.prototype;o in u||r(8).f(u,o,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,r){var e=r(0),i=r(111);e(e.G+e.F*(parseInt!=i),{parseInt:i})},function(t,n,r){var e=r(0),i=r(112);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},function(t,n,r){"use strict";var e=r(1),i=r(14),o=r(24),u=r(83),c=r(27),f=r(2),a=r(37).f,s=r(19).f,l=r(8).f,h=r(57).trim,v=e.Number,p=v,g=v.prototype,y="Number"==o(r(36)(g)),d="trim"in String.prototype,x=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){var r,e,i,o=(n=d?n.trim():h(n,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=n.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,f=n.slice(2),a=0,s=f.length;a<s;a++)if((u=f.charCodeAt(a))<48||u>i)return NaN;return parseInt(f,e)}}return+n};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof v&&(y?f(function(){g.valueOf.call(r)}):"Number"!=o(r))?u(new p(x(n)),r,v):x(n)};for(var m,b=r(9)?a(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;b.length>S;S++)i(p,m=b[S])&&!i(v,m)&&l(v,m,s(p,m));v.prototype=g,g.constructor=v,r(11)(e,"Number",v)}},function(t,n,r){"use strict";var e=r(0),i=r(18),o=r(113),u=r(84),c=1..toFixed,f=Math.floor,a=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*a[r],a[r]=e%1e7,e=f(e/1e7)},h=function(t){for(var n=6,r=0;--n>=0;)r+=a[n],a[n]=f(r/t),r=r%t*1e7},v=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==a[t]){var r=String(a[t]);n=""===n?r:n+u.call("0",7-r.length)+r}return n},p=function(t,n,r){return 0===n?r:n%2==1?p(t,n-1,r*t):p(t*t,n/2,r)};e(e.P+e.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(2)(function(){c.call({})})),"Number",{toFixed:function(t){var n,r,e,c,f=o(this,s),a=i(t),g="",y="0";if(a<0||a>20)throw RangeError(s);if(f!=f)return"NaN";if(f<=-1e21||f>=1e21)return String(f);if(f<0&&(g="-",f=-f),f>1e-21)if(r=(n=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n}(f*p(2,69,1))-69)<0?f*p(2,-n,1):f/p(2,n,1),r*=4503599627370496,(n=52-n)>0){for(l(0,r),e=a;e>=7;)l(1e7,0),e-=7;for(l(p(10,e,1),0),e=n-1;e>=23;)h(1<<23),e-=23;h(1<<e),l(1,1),h(2),y=v()}else l(0,r),l(1<<-n,0),y=v()+u.call("0",a);return y=a>0?g+((c=y.length)<=a?"0."+u.call("0",a-c)+y:y.slice(0,c-a)+"."+y.slice(c-a)):g+y}})},function(t,n,r){"use strict";var e=r(0),i=r(2),o=r(113),u=1..toPrecision;e(e.P+e.F*(i(function(){return"1"!==u.call(1,void 0)})||!i(function(){u.call({})})),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){var e=r(0),i=r(1).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{isInteger:r(114)})},function(t,n,r){var e=r(0);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(0),i=r(114),o=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,r){var e=r(0);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){var e=r(0);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){var e=r(0),i=r(112);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,r){var e=r(0),i=r(111);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,r){var e=r(0),i=r(115),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n,r){var e=r(0),i=Math.asinh;e(e.S+e.F*!(i&&1/i(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,r){var e=r(0),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){var e=r(0),i=r(85);e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(0),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,r){var e=r(0),i=r(86);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n,r){var e=r(0);e(e.S,"Math",{fround:r(204)})},function(t,n,r){var e=r(85),i=Math.pow,o=i(2,-52),u=i(2,-23),c=i(2,127)*(2-u),f=i(2,-126);t.exports=Math.fround||function(t){var n,r,i=Math.abs(t),a=e(t);return i<f?a*(i/f/u+1/o-1/o)*f*u:(r=(n=(1+u/o)*i)-(n-i))>c||r!=r?a*(1/0):a*r}},function(t,n,r){var e=r(0),i=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,u=0,c=arguments.length,f=0;u<c;)f<(r=i(arguments[u++]))?(o=o*(e=f/r)*e+1,f=r):o+=r>0?(e=r/f)*e:r;return f===1/0?1/0:f*Math.sqrt(o)}})},function(t,n,r){var e=r(0),i=Math.imul;e(e.S+e.F*r(2)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,n){var r=+t,e=+n,i=65535&r,o=65535&e;return 0|i*o+((65535&r>>>16)*o+i*(65535&e>>>16)<<16>>>0)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log1p:r(115)})},function(t,n,r){var e=r(0);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(0);e(e.S,"Math",{sign:r(85)})},function(t,n,r){var e=r(0),i=r(86),o=Math.exp;e(e.S+e.F*r(2)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(0),i=r(86),o=Math.exp;e(e.S,"Math",{tanh:function(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){var e=r(0),i=r(35),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(0),i=r(16),o=r(7);e(e.S,"String",{raw:function(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c<e&&u.push(String(arguments[c]));return u.join("")}})},function(t,n,r){"use strict";r(57)("trim",function(t){return function(){return t(this,3)}})},function(t,n,r){"use strict";var e=r(87)(!0);r(88)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){"use strict";var e=r(0),i=r(87)(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(0),i=r(7),o=r(89),u="".endsWith;e(e.P+e.F*r(91)("endsWith"),"String",{endsWith:function(t){var n=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),c=void 0===r?e:Math.min(i(r),e),f=String(t);return u?u.call(n,f,c):n.slice(c-f.length,c)===f}})},function(t,n,r){"use strict";var e=r(0),i=r(89);e(e.P+e.F*r(91)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){var e=r(0);e(e.P,"String",{repeat:r(84)})},function(t,n,r){"use strict";var e=r(0),i=r(7),o=r(89),u="".startsWith;e(e.P+e.F*r(91)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return u?u.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){"use strict";r(13)("anchor",function(t){return function(n){return t(this,"a","name",n)}})},function(t,n,r){"use strict";r(13)("big",function(t){return function(){return t(this,"big","","")}})},function(t,n,r){"use strict";r(13)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,n,r){"use strict";r(13)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,n,r){"use strict";r(13)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,n,r){"use strict";r(13)("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})},function(t,n,r){"use strict";r(13)("fontsize",function(t){return function(n){return t(this,"font","size",n)}})},function(t,n,r){"use strict";r(13)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,n,r){"use strict";r(13)("link",function(t){return function(n){return t(this,"a","href",n)}})},function(t,n,r){"use strict";r(13)("small",function(t){return function(){return t(this,"small","","")}})},function(t,n,r){"use strict";r(13)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,n,r){"use strict";r(13)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,n,r){"use strict";r(13)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,n,r){var e=r(0);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,r){"use strict";var e=r(0),i=r(12),o=r(27);e(e.P+e.F*r(2)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},function(t,n,r){var e=r(0),i=r(239);e(e.P+e.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,r){"use strict";var e=r(2),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=e(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!e(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}:o},function(t,n,r){var e=Date.prototype,i=e.toString,o=e.getTime;new Date(NaN)+""!="Invalid Date"&&r(11)(e,"toString",function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"})},function(t,n,r){var e=r(5)("toPrimitive"),i=Date.prototype;e in i||r(15)(i,e,r(242))},function(t,n,r){"use strict";var e=r(3),i=r(27);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),"number"!=t)}},function(t,n,r){var e=r(0);e(e.S,"Array",{isArray:r(79)})},function(t,n,r){"use strict";var e=r(22),i=r(0),o=r(12),u=r(117),c=r(92),f=r(7),a=r(93),s=r(94);i(i.S+i.F*!r(58)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,i,l,h=o(t),v="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,y=void 0!==g,d=0,x=s(h);if(y&&(g=e(g,p>2?arguments[2]:void 0,2)),null==x||v==Array&&c(x))for(r=new v(n=f(h.length));n>d;d++)a(r,d,y?g(h[d],d):h[d]);else for(l=x.call(h),r=new v;!(i=l.next()).done;d++)a(r,d,y?u(l,g,[i.value,d],!0):i.value);return r.length=d,r}})},function(t,n,r){"use strict";var e=r(0),i=r(93);e(e.S+e.F*r(2)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)i(r,t,arguments[t++]);return r.length=n,r}})},function(t,n,r){"use strict";var e=r(0),i=r(16),o=[].join;e(e.P+e.F*(r(50)!=Object||!r(17)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,r){"use strict";var e=r(0),i=r(80),o=r(24),u=r(35),c=r(7),f=[].slice;e(e.P+e.F*r(2)(function(){i&&f.call(i)}),"Array",{slice:function(t,n){var r=c(this.length),e=o(this);if(n=void 0===n?r:n,"Array"==e)return f.call(this,t,n);for(var i=u(t,r),a=u(n,r),s=c(a-i),l=new Array(s),h=0;h<s;h++)l[h]="String"==e?this.charAt(i+h):this[i+h];return l}})},function(t,n,r){"use strict";var e=r(0),i=r(23),o=r(12),u=r(2),c=[].sort,f=[1,2,3];e(e.P+e.F*(u(function(){f.sort(void 0)})||!u(function(){f.sort(null)})||!r(17)(c)),"Array",{sort:function(t){return void 0===t?c.call(o(this)):c.call(o(this),i(t))}})},function(t,n,r){"use strict";var e=r(0),i=r(21)(0),o=r(17)([].forEach,!0);e(e.P+e.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,n,r){var e=r(251);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(4),i=r(79),o=r(5)("species");t.exports=function(t){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),e(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},function(t,n,r){"use strict";var e=r(0),i=r(21)(1);e(e.P+e.F*!r(17)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(21)(2);e(e.P+e.F*!r(17)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(21)(3);e(e.P+e.F*!r(17)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(21)(4);e(e.P+e.F*!r(17)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(118);e(e.P+e.F*!r(17)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,n,r){"use strict";var e=r(0),i=r(118);e(e.P+e.F*!r(17)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,n,r){"use strict";var e=r(0),i=r(55)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(u||!r(17)(o)),"Array",{indexOf:function(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(16),o=r(18),u=r(7),c=[].lastIndexOf,f=!!c&&1/[1].lastIndexOf(1,-0)<0;e(e.P+e.F*(f||!r(17)(c)),"Array",{lastIndexOf:function(t){if(f)return c.apply(this,arguments)||0;var n=i(this),r=u(n.length),e=r-1;for(arguments.length>1&&(e=Math.min(e,o(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},function(t,n,r){var e=r(0);e(e.P,"Array",{copyWithin:r(119)}),r(43)("copyWithin")},function(t,n,r){var e=r(0);e(e.P,"Array",{fill:r(95)}),r(43)("fill")},function(t,n,r){"use strict";var e=r(0),i=r(21)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),e(e.P+e.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(43)("find")},function(t,n,r){"use strict";var e=r(0),i=r(21)(6),o="findIndex",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(43)(o)},function(t,n,r){r(44)("Array")},function(t,n,r){var e=r(1),i=r(83),o=r(8).f,u=r(37).f,c=r(90),f=r(59),a=e.RegExp,s=a,l=a.prototype,h=/a/g,v=/a/g,p=new a(h)!==h;if(r(9)&&(!p||r(2)(function(){return v[r(5)("match")]=!1,a(h)!=h||a(v)==v||"/a/i"!=a(h,"i")}))){a=function(t,n){var r=this instanceof a,e=c(t),o=void 0===n;return!r&&e&&t.constructor===a&&o?t:i(p?new s(e&&!o?t.source:t,n):s((e=t instanceof a)?t.source:t,e&&o?f.call(t):n),r?this:l,a)};for(var g=function(t){t in a||o(a,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})},y=u(s),d=0;y.length>d;)g(y[d++]);l.constructor=a,a.prototype=l,r(11)(e,"RegExp",a)}r(44)("RegExp")},function(t,n,r){"use strict";r(122);var e=r(3),i=r(59),o=r(9),u=/./.toString,c=function(t){r(11)(RegExp.prototype,"toString",t,!0)};r(2)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?c(function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=u.name&&c(function(){return u.call(this)})},function(t,n,r){"use strict";var e=r(3),i=r(7),o=r(98),u=r(60);r(61)("match",1,function(t,n,r,c){return[function(r){var e=t(this),i=null==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=c(r,t,this);if(n.done)return n.value;var f=e(t),a=String(this);if(!f.global)return u(f,a);var s=f.unicode;f.lastIndex=0;for(var l,h=[],v=0;null!==(l=u(f,a));){var p=String(l[0]);h[v]=p,""===p&&(f.lastIndex=o(a,i(f.lastIndex),s)),v++}return 0===v?null:h}]})},function(t,n,r){"use strict";var e=r(3),i=r(12),o=r(7),u=r(18),c=r(98),f=r(60),a=Math.max,s=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g;r(61)("replace",2,function(t,n,r,p){return[function(e,i){var o=t(this),u=null==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},function(t,n){var i=p(r,t,this,n);if(i.done)return i.value;var l=e(t),h=String(this),v="function"==typeof n;v||(n=String(n));var y=l.global;if(y){var d=l.unicode;l.lastIndex=0}for(var x=[];;){var m=f(l,h);if(null===m)break;if(x.push(m),!y)break;""===String(m[0])&&(l.lastIndex=c(h,o(l.lastIndex),d))}for(var b,S="",w=0,_=0;_<x.length;_++){m=x[_];for(var E=String(m[0]),O=a(s(u(m.index),h.length),0),F=[],P=1;P<m.length;P++)F.push(void 0===(b=m[P])?b:String(b));var M=m.groups;if(v){var A=[E].concat(F,O,h);void 0!==M&&A.push(M);var I=String(n.apply(void 0,A))}else I=g(E,h,O,F,M,n);O>=w&&(S+=h.slice(w,O)+I,w=O+E.length)}return S+h.slice(w)}];function g(t,n,e,o,u,c){var f=e+t.length,a=o.length,s=v;return void 0!==u&&(u=i(u),s=h),r.call(c,s,function(r,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,e);case"'":return n.slice(f);case"<":c=u[i.slice(1,-1)];break;default:var s=+i;if(0===s)return r;if(s>a){var h=l(s/10);return 0===h?r:h<=a?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):r}c=o[s-1]}return void 0===c?"":c})}})},function(t,n,r){"use strict";var e=r(3),i=r(108),o=r(60);r(61)("search",1,function(t,n,r,u){return[function(r){var e=t(this),i=null==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=u(r,t,this);if(n.done)return n.value;var c=e(t),f=String(this),a=c.lastIndex;i(a,0)||(c.lastIndex=0);var s=o(c,f);return i(c.lastIndex,a)||(c.lastIndex=a),null===s?-1:s.index}]})},function(t,n,r){"use strict";var e=r(90),i=r(3),o=r(53),u=r(98),c=r(7),f=r(60),a=r(97),s=r(2),l=Math.min,h=[].push,v=!s(function(){RegExp(4294967295,"y")});r(61)("split",2,function(t,n,r,s){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!e(t))return r.call(i,t,n);for(var o,u,c,f=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,v=void 0===n?4294967295:n>>>0,p=new RegExp(t.source,s+"g");(o=a.call(p,i))&&!((u=p.lastIndex)>l&&(f.push(i.slice(l,o.index)),o.length>1&&o.index<i.length&&h.apply(f,o.slice(1)),c=o[0].length,l=u,f.length>=v));)p.lastIndex===o.index&&p.lastIndex++;return l===i.length?!c&&p.test("")||f.push(""):f.push(i.slice(l)),f.length>v?f.slice(0,v):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:r.call(this,t,n)}:r,[function(r,e){var i=t(this),o=null==r?void 0:r[n];return void 0!==o?o.call(r,i,e):p.call(String(i),r,e)},function(t,n){var e=s(p,t,this,n,p!==r);if(e.done)return e.value;var a=i(t),h=String(this),g=o(a,RegExp),y=a.unicode,d=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(v?"y":"g"),x=new g(v?a:"^(?:"+a.source+")",d),m=void 0===n?4294967295:n>>>0;if(0===m)return[];if(0===h.length)return null===f(x,h)?[h]:[];for(var b=0,S=0,w=[];S<h.length;){x.lastIndex=v?S:0;var _,E=f(x,v?h:h.slice(S));if(null===E||(_=l(c(x.lastIndex+(v?0:S)),h.length))===b)S=u(h,S,y);else{if(w.push(h.slice(b,S)),w.length===m)return w;for(var O=1;O<=E.length-1;O++)if(w.push(E[O]),w.length===m)return w;S=b=_}}return w.push(h.slice(b)),w}]})},function(t,n,r){var e=r(1),i=r(99).set,o=e.MutationObserver||e.WebKitMutationObserver,u=e.process,c=e.Promise,f="process"==r(24)(u);t.exports=function(){var t,n,r,a=function(){var e,i;for(f&&(e=u.domain)&&e.exit();t;){i=t.fn,t=t.next;try{i()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(f)r=function(){u.nextTick(a)};else if(!o||e.navigator&&e.navigator.standalone)if(c&&c.resolve){var s=c.resolve(void 0);r=function(){s.then(a)}}else r=function(){i.call(e,a)};else{var l=!0,h=document.createTextNode("");new o(a).observe(h,{characterData:!0}),r=function(){h.data=l=!l}}return function(e){var i={fn:e,next:void 0};n&&(n.next=i),t||(t=i,r()),n=i}}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,r){"use strict";var e=r(126),i=r(39);t.exports=r(64)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=e.getEntry(i(this,"Map"),t);return n&&n.v},set:function(t,n){return e.def(i(this,"Map"),0===t?0:t,n)}},e,!0)},function(t,n,r){"use strict";var e=r(126),i=r(39);t.exports=r(64)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(i(this,"Set"),t=0===t?0:t,t)}},e)},function(t,n,r){"use strict";var e,i=r(1),o=r(21)(0),u=r(11),c=r(28),f=r(107),a=r(127),s=r(4),l=r(39),h=r(39),v=!i.ActiveXObject&&"ActiveXObject"in i,p=c.getWeak,g=Object.isExtensible,y=a.ufstore,d=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},x={get:function(t){if(s(t)){var n=p(t);return!0===n?y(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return a.def(l(this,"WeakMap"),t,n)}},m=t.exports=r(64)("WeakMap",d,x,a,!0,!0);h&&v&&(f((e=a.getConstructor(d,"WeakMap")).prototype,x),c.NEED=!0,o(["delete","has","get","set"],function(t){var n=m.prototype,r=n[t];u(n,t,function(n,i){if(s(n)&&!g(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return"set"==t?this:o}return r.call(this,n,i)})}))},function(t,n,r){"use strict";var e=r(127),i=r(39);r(64)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(i(this,"WeakSet"),t,!0)}},e,!1,!0)},function(t,n,r){"use strict";var e=r(0),i=r(65),o=r(100),u=r(3),c=r(35),f=r(7),a=r(4),s=r(1).ArrayBuffer,l=r(53),h=o.ArrayBuffer,v=o.DataView,p=i.ABV&&s.isView,g=h.prototype.slice,y=i.VIEW;e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||a(t)&&y in t}}),e(e.P+e.U+e.F*r(2)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,n){if(void 0!==g&&void 0===n)return g.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),i=c(void 0===n?r:n,r),o=new(l(this,h))(f(i-e)),a=new v(this),s=new v(o),p=0;e<i;)s.setUint8(p++,a.getUint8(e++));return o}}),r(44)("ArrayBuffer")},function(t,n,r){var e=r(0);e(e.G+e.W+e.F*!r(65).ABV,{DataView:r(100).DataView})},function(t,n,r){r(26)("Int8",1,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(26)("Uint8",1,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(26)("Uint8",1,function(t){return function(n,r,e){return t(this,n,r,e)}},!0)},function(t,n,r){r(26)("Int16",2,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(26)("Uint16",2,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(26)("Int32",4,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(26)("Uint32",4,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(26)("Float32",4,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(26)("Float64",8,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){var e=r(0),i=r(23),o=r(3),u=(r(1).Reflect||{}).apply,c=Function.apply;e(e.S+e.F*!r(2)(function(){u(function(){})}),"Reflect",{apply:function(t,n,r){var e=i(t),f=o(r);return u?u(e,n,f):c.call(e,n,f)}})},function(t,n,r){var e=r(0),i=r(36),o=r(23),u=r(3),c=r(4),f=r(2),a=r(109),s=(r(1).Reflect||{}).construct,l=f(function(){function t(){}return!(s(function(){},[],t)instanceof t)}),h=!f(function(){s(function(){})});e(e.S+e.F*(l||h),"Reflect",{construct:function(t,n){o(t),u(n);var r=arguments.length<3?t:o(arguments[2]);if(h&&!l)return s(t,n,r);if(t==r){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(a.apply(t,e))}var f=r.prototype,v=i(c(f)?f:Object.prototype),p=Function.apply.call(t,v,n);return c(p)?p:v}})},function(t,n,r){var e=r(8),i=r(0),o=r(3),u=r(27);i(i.S+i.F*r(2)(function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,n,r){o(t),n=u(n,!0),o(r);try{return e.f(t,n,r),!0}catch(t){return!1}}})},function(t,n,r){var e=r(0),i=r(19).f,o=r(3);e(e.S,"Reflect",{deleteProperty:function(t,n){var r=i(o(t),n);return!(r&&!r.configurable)&&delete t[n]}})},function(t,n,r){"use strict";var e=r(0),i=r(3),o=function(t){this._t=i(t),this._i=0;var n,r=this._k=[];for(n in t)r.push(n)};r(116)(o,"Object",function(){var t,n=this._k;do{if(this._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,r){var e=r(19),i=r(38),o=r(14),u=r(0),c=r(4),f=r(3);u(u.S,"Reflect",{get:function t(n,r){var u,a,s=arguments.length<3?n:arguments[2];return f(n)===s?n[r]:(u=e.f(n,r))?o(u,"value")?u.value:void 0!==u.get?u.get.call(s):void 0:c(a=i(n))?t(a,r,s):void 0}})},function(t,n,r){var e=r(19),i=r(0),o=r(3);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(o(t),n)}})},function(t,n,r){var e=r(0),i=r(38),o=r(3);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(0),i=r(3),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{ownKeys:r(129)})},function(t,n,r){var e=r(0),i=r(3),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,r){var e=r(8),i=r(19),o=r(38),u=r(14),c=r(0),f=r(31),a=r(3),s=r(4);c(c.S,"Reflect",{set:function t(n,r,c){var l,h,v=arguments.length<4?n:arguments[3],p=i.f(a(n),r);if(!p){if(s(h=o(n)))return t(h,r,c,v);p=f(0)}if(u(p,"value")){if(!1===p.writable||!s(v))return!1;if(l=i.f(v,r)){if(l.get||l.set||!1===l.writable)return!1;l.value=c,e.f(v,r,l)}else e.f(v,r,f(0,c));return!0}return void 0!==p.set&&(p.set.call(v,c),!0)}})},function(t,n,r){var e=r(0),i=r(81);i&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){r(303),t.exports=r(10).Array.includes},function(t,n,r){"use strict";var e=r(0),i=r(55)(!0);e(e.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(43)("includes")},function(t,n,r){r(305),t.exports=r(10).String.padStart},function(t,n,r){"use strict";var e=r(0),i=r(130),o=r(63),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,r){r(307),t.exports=r(10).String.padEnd},function(t,n,r){"use strict";var e=r(0),i=r(130),o=r(63),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,r){r(309),t.exports=r(76).f("asyncIterator")},function(t,n,r){r(103)("asyncIterator")},function(t,n,r){r(311),t.exports=r(10).Object.getOwnPropertyDescriptors},function(t,n,r){var e=r(0),i=r(129),o=r(16),u=r(19),c=r(93);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r,e=o(t),f=u.f,a=i(e),s={},l=0;a.length>l;)void 0!==(r=f(e,n=a[l++]))&&c(s,n,r);return s}})},function(t,n,r){r(313),t.exports=r(10).Object.values},function(t,n,r){var e=r(0),i=r(131)(!1);e(e.S,"Object",{values:function(t){return i(t)}})},function(t,n,r){r(315),t.exports=r(10).Object.entries},function(t,n,r){var e=r(0),i=r(131)(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},function(t,n,r){"use strict";r(123),r(317),t.exports=r(10).Promise.finally},function(t,n,r){"use strict";var e=r(0),i=r(10),o=r(1),u=r(53),c=r(125);e(e.P+e.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return c(n,t()).then(function(){return r})}:t,r?function(r){return c(n,t()).then(function(){throw r})}:t)}})},function(t,n,r){r(319),r(320),r(321),t.exports=r(10)},function(t,n,r){var e=r(1),i=r(0),o=r(63),u=[].slice,c=/MSIE .\./.test(o),f=function(t){return function(n,r){var e=arguments.length>2,i=!!e&&u.call(arguments,2);return t(e?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,r)}};i(i.G+i.B+i.F*c,{setTimeout:f(e.setTimeout),setInterval:f(e.setInterval)})},function(t,n,r){var e=r(0),i=r(99);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,r){for(var e=r(96),i=r(34),o=r(11),u=r(1),c=r(15),f=r(42),a=r(5),s=a("iterator"),l=a("toStringTag"),h=f.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(v),g=0;g<p.length;g++){var y,d=p[g],x=v[d],m=u[d],b=m&&m.prototype;if(b&&(b[s]||c(b,s,h),b[l]||c(b,l,d),f[d]=h,x))for(y in e)b[y]||o(b,y,e[y],!0)}},function(t,n){!function(n){"use strict";var r,e=Object.prototype,i=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",f=o.toStringTag||"@@toStringTag",a="object"==typeof t,s=n.regeneratorRuntime;if(s)a&&(t.exports=s);else{(s=n.regeneratorRuntime=a?t.exports:{}).wrap=b;var l="suspendedStart",h="suspendedYield",v="executing",p="completed",g={},y={};y[u]=function(){return this};var d=Object.getPrototypeOf,x=d&&d(d(j([])));x&&x!==e&&i.call(x,u)&&(y=x);var m=E.prototype=w.prototype=Object.create(y);_.prototype=m.constructor=E,E.constructor=_,E[f]=_.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===_||"GeneratorFunction"===(n.displayName||n.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,f in t||(t[f]="GeneratorFunction")),t.prototype=Object.create(m),t},s.awrap=function(t){return{__await:t}},O(F.prototype),F.prototype[c]=function(){return this},s.AsyncIterator=F,s.async=function(t,n,r,e){var i=new F(b(t,n,r,e));return s.isGeneratorFunction(n)?i:i.next().then(function(t){return t.done?t.value:i.next()})},O(m),m[f]="Generator",m[u]=function(){return this},m.toString=function(){return"[object Generator]"},s.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},s.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function e(e,i){return c.type="throw",c.arg=t,n.next=e,i&&(n.method="next",n.arg=r),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],c=u.completion;if("root"===u.tryLoc)return e("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),a=i.call(u,"finallyLoc");if(f&&a){if(this.prev<u.catchLoc)return e(u.catchLoc,!0);if(this.prev<u.finallyLoc)return e(u.finallyLoc)}else if(f){if(this.prev<u.catchLoc)return e(u.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return e(u.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&i.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var o=e;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),g},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),g}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;A(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:j(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=r),g}}}function b(t,n,r,e){var i=n&&n.prototype instanceof w?n:w,o=Object.create(i.prototype),u=new I(e||[]);return o._invoke=function(t,n,r){var e=l;return function(i,o){if(e===v)throw new Error("Generator is already running");if(e===p){if("throw"===i)throw o;return N()}for(r.method=i,r.arg=o;;){var u=r.delegate;if(u){var c=P(u,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(e===l)throw e=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e=v;var f=S(t,n,r);if("normal"===f.type){if(e=r.done?p:h,f.arg===g)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(e=p,r.method="throw",r.arg=f.arg)}}}(t,r,u),o}function S(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}function w(){}function _(){}function E(){}function O(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function F(t){var n;this._invoke=function(r,e){function o(){return new Promise(function(n,o){!function n(r,e,o,u){var c=S(t[r],t,e);if("throw"!==c.type){var f=c.arg,a=f.value;return a&&"object"==typeof a&&i.call(a,"__await")?Promise.resolve(a.__await).then(function(t){n("next",t,o,u)},function(t){n("throw",t,o,u)}):Promise.resolve(a).then(function(t){f.value=t,o(f)},function(t){return n("throw",t,o,u)})}u(c.arg)}(r,e,n,o)})}return n=n?n.then(o,o):o()}}function P(t,n){var e=t.iterator[n.method];if(e===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=r,P(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=S(e,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=r),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function M(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function j(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function n(){for(;++e<t.length;)if(i.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=r,n.done=!0,n};return o.next=o}}return{next:N}}function N(){return{value:r,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())}]);
|
1 |
+
!function(t){var n={};function r(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)r.d(e,i,function(n){return t[n]}.bind(null,i));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=164)}([function(t,n,r){var e=r(1),i=r(16),o=r(22),u=r(18),c=r(30),f=function(t,n,r){var a,s,l,h,v=t&f.F,p=t&f.G,g=t&f.S,y=t&f.P,d=t&f.B,x=p?e:g?e[n]||(e[n]={}):(e[n]||{}).prototype,m=p?i:i[n]||(i[n]={}),b=m.prototype||(m.prototype={});for(a in p&&(r=n),r)l=((s=!v&&x&&void 0!==x[a])?x:r)[a],h=d&&s?c(l,e):y&&"function"==typeof l?c(Function.call,l):l,x&&u(x,a,l,t&f.U),m[a]!=l&&o(m,a,h),y&&b[a]!=l&&(b[a]=l)};e.core=i,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(4);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},,function(t,n,r){var e=r(63)("wks"),i=r(41),o=r(1).Symbol,u="function"==typeof o;(t.exports=function(t){return e[t]||(e[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=e},,,function(t,n,r){var e=r(25),i=Math.min;t.exports=function(t){return t>0?i(e(t),9007199254740991):0}},,,,,function(t,n,r){var e=r(3),i=r(111),o=r(35),u=Object.defineProperty;n.f=r(15)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){t.exports=!r(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){var r=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=r)},,function(t,n,r){var e=r(1),i=r(22),o=r(21),u=r(41)("src"),c=r(167),f=(""+c).split("toString");r(16).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var a="function"==typeof r;a&&(o(r,"name")||i(r,"name",n)),t[n]!==r&&(a&&(o(r,u)||i(r,u,t[n]?""+t[n]:f.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n,r){var e=r(33);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(0),i=r(2),o=r(33),u=/"/g,c=function(t,n,r,e){var i=String(o(t)),c="<"+n;return""!==r&&(c+=" "+r+'="'+String(e).replace(u,""")+'"'),c+">"+i+"</"+n+">"};t.exports=function(t,n){var r={};r[t]=n(c),e(e.P+e.F*i(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",r)}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(14),i=r(40);t.exports=r(15)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(59),i=r(33);t.exports=function(t){return e(i(t))}},function(t,n,r){"use strict";var e=r(2);t.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(60),i=r(40),o=r(23),u=r(35),c=r(21),f=r(111),a=Object.getOwnPropertyDescriptor;n.f=r(15)?a:function(t,n){if(t=o(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(0),i=r(16),o=r(2);t.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o(function(){r(1)}),"Object",u)}},function(t,n,r){var e=r(30),i=r(59),o=r(19),u=r(9),c=r(257);t.exports=function(t,n){var r=1==t,f=2==t,a=3==t,s=4==t,l=6==t,h=5==t||l,v=n||c;return function(n,c,p){for(var g,y,d=o(n),x=i(d),m=e(c,p,3),b=u(x.length),S=0,w=r?v(n,b):f?v(n,0):void 0;b>S;S++)if((h||S in x)&&(y=m(g=x[S],S,d),t))if(r)w[S]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return S;case 2:w.push(g)}else if(s)return!1;return l?-1:a||s?s:w}}},,function(t,n,r){var e=r(31);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){"use strict";if(r(15)){var e=r(42),i=r(1),o=r(2),u=r(0),c=r(74),f=r(109),a=r(30),s=r(54),l=r(40),h=r(22),v=r(55),p=r(25),g=r(9),y=r(137),d=r(44),x=r(35),m=r(21),b=r(61),S=r(4),w=r(19),_=r(101),E=r(45),O=r(47),F=r(46).f,P=r(103),M=r(41),A=r(6),I=r(28),j=r(64),N=r(62),T=r(105),L=r(51),R=r(67),k=r(53),C=r(104),D=r(128),W=r(14),U=r(26),V=W.f,B=U.f,G=i.RangeError,z=i.TypeError,Y=i.Uint8Array,q=Array.prototype,$=f.ArrayBuffer,K=f.DataView,J=I(0),X=I(2),H=I(3),Z=I(4),Q=I(5),tt=I(6),nt=j(!0),rt=j(!1),et=T.values,it=T.keys,ot=T.entries,ut=q.lastIndexOf,ct=q.reduce,ft=q.reduceRight,at=q.join,st=q.sort,lt=q.slice,ht=q.toString,vt=q.toLocaleString,pt=A("iterator"),gt=A("toStringTag"),yt=M("typed_constructor"),dt=M("def_constructor"),xt=c.CONSTR,mt=c.TYPED,bt=c.VIEW,St=I(1,function(t,n){return Ft(N(t,t[dt]),n)}),wt=o(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),_t=!!Y&&!!Y.prototype.set&&o(function(){new Y(1).set({})}),Et=function(t,n){var r=p(t);if(r<0||r%n)throw G("Wrong offset!");return r},Ot=function(t){if(S(t)&&mt in t)return t;throw z(t+" is not a typed array!")},Ft=function(t,n){if(!(S(t)&&yt in t))throw z("It is not a typed array constructor!");return new t(n)},Pt=function(t,n){return Mt(N(t,t[dt]),n)},Mt=function(t,n){for(var r=0,e=n.length,i=Ft(t,e);e>r;)i[r]=n[r++];return i},At=function(t,n,r){V(t,n,{get:function(){return this._d[r]}})},It=function(t){var n,r,e,i,o,u,c=w(t),f=arguments.length,s=f>1?arguments[1]:void 0,l=void 0!==s,h=P(c);if(null!=h&&!_(h)){for(u=h.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(l&&f>2&&(s=a(s,arguments[2],2)),n=0,r=g(c.length),i=Ft(this,r);r>n;n++)i[n]=l?s(c[n],n):c[n];return i},jt=function(){for(var t=0,n=arguments.length,r=Ft(this,n);n>t;)r[t]=arguments[t++];return r},Nt=!!Y&&o(function(){vt.call(new Y(1))}),Tt=function(){return vt.apply(Nt?lt.call(Ot(this)):Ot(this),arguments)},Lt={copyWithin:function(t,n){return D.call(Ot(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Ot(this),arguments)},filter:function(t){return Pt(this,X(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){J(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return at.apply(Ot(this),arguments)},lastIndexOf:function(t){return ut.apply(Ot(this),arguments)},map:function(t){return St(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Ot(this),arguments)},reduceRight:function(t){return ft.apply(Ot(this),arguments)},reverse:function(){for(var t,n=Ot(this).length,r=Math.floor(n/2),e=0;e<r;)t=this[e],this[e++]=this[--n],this[n]=t;return this},some:function(t){return H(Ot(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return st.call(Ot(this),t)},subarray:function(t,n){var r=Ot(this),e=r.length,i=d(t,e);return new(N(r,r[dt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,g((void 0===n?e:d(n,e))-i))}},Rt=function(t,n){return Pt(this,lt.call(Ot(this),t,n))},kt=function(t){Ot(this);var n=Et(arguments[1],1),r=this.length,e=w(t),i=g(e.length),o=0;if(i+n>r)throw G("Wrong length!");for(;o<i;)this[n+o]=e[o++]},Ct={entries:function(){return ot.call(Ot(this))},keys:function(){return it.call(Ot(this))},values:function(){return et.call(Ot(this))}},Dt=function(t,n){return S(t)&&t[mt]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Wt=function(t,n){return Dt(t,n=x(n,!0))?l(2,t[n]):B(t,n)},Ut=function(t,n,r){return!(Dt(t,n=x(n,!0))&&S(r)&&m(r,"value"))||m(r,"get")||m(r,"set")||r.configurable||m(r,"writable")&&!r.writable||m(r,"enumerable")&&!r.enumerable?V(t,n,r):(t[n]=r.value,t)};xt||(U.f=Wt,W.f=Ut),u(u.S+u.F*!xt,"Object",{getOwnPropertyDescriptor:Wt,defineProperty:Ut}),o(function(){ht.call({})})&&(ht=vt=function(){return at.call(this)});var Vt=v({},Lt);v(Vt,Ct),h(Vt,pt,Ct.values),v(Vt,{slice:Rt,set:kt,constructor:function(){},toString:ht,toLocaleString:Tt}),At(Vt,"buffer","b"),At(Vt,"byteOffset","o"),At(Vt,"byteLength","l"),At(Vt,"length","e"),V(Vt,gt,{get:function(){return this[mt]}}),t.exports=function(t,n,r,f){var a=t+((f=!!f)?"Clamped":"")+"Array",l="get"+t,v="set"+t,p=i[a],d=p||{},x=p&&O(p),m=!p||!c.ABV,w={},_=p&&p.prototype,P=function(t,r){V(t,r,{get:function(){return function(t,r){var e=t._d;return e.v[l](r*n+e.o,wt)}(this,r)},set:function(t){return function(t,r,e){var i=t._d;f&&(e=(e=Math.round(e))<0?0:e>255?255:255&e),i.v[v](r*n+i.o,e,wt)}(this,r,t)},enumerable:!0})};m?(p=r(function(t,r,e,i){s(t,p,a,"_d");var o,u,c,f,l=0,v=0;if(S(r)){if(!(r instanceof $||"ArrayBuffer"==(f=b(r))||"SharedArrayBuffer"==f))return mt in r?Mt(p,r):It.call(p,r);o=r,v=Et(e,n);var d=r.byteLength;if(void 0===i){if(d%n)throw G("Wrong length!");if((u=d-v)<0)throw G("Wrong length!")}else if((u=g(i)*n)+v>d)throw G("Wrong length!");c=u/n}else c=y(r),o=new $(u=c*n);for(h(t,"_d",{b:o,o:v,l:u,e:c,v:new K(o)});l<c;)P(t,l++)}),_=p.prototype=E(Vt),h(_,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&R(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=r(function(t,r,e,i){var o;return s(t,p,a),S(r)?r instanceof $||"ArrayBuffer"==(o=b(r))||"SharedArrayBuffer"==o?void 0!==i?new d(r,Et(e,n),i):void 0!==e?new d(r,Et(e,n)):new d(r):mt in r?Mt(p,r):It.call(p,r):new d(y(r))}),J(x!==Function.prototype?F(d).concat(F(x)):F(d),function(t){t in p||h(p,t,d[t])}),p.prototype=_,e||(_.constructor=p));var M=_[pt],A=!!M&&("values"==M.name||null==M.name),I=Ct.values;h(p,yt,!0),h(_,mt,a),h(_,bt,!0),h(_,dt,p),(f?new p(1)[gt]==a:gt in _)||V(_,gt,{get:function(){return a}}),w[a]=p,u(u.G+u.W+u.F*(p!=d),w),u(u.S,a,{BYTES_PER_ELEMENT:n}),u(u.S+u.F*o(function(){d.of.call(p,1)}),a,{from:It,of:jt}),"BYTES_PER_ELEMENT"in _||h(_,"BYTES_PER_ELEMENT",n),u(u.P,a,Lt),k(a),u(u.P+u.F*_t,a,{set:kt}),u(u.P+u.F*!A,a,Ct),e||_.toString==ht||(_.toString=ht),u(u.P+u.F*o(function(){new p(1).slice()}),a,{slice:Rt}),u(u.P+u.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){_.toLocaleString.call([1,2])})),a,{toLocaleString:Tt}),L[a]=A?M:I,e||A||h(_,pt,I)}}else t.exports=function(){}},function(t,n,r){var e=r(4);t.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(41)("meta"),i=r(4),o=r(21),u=r(14).f,c=0,f=Object.isExtensible||function(){return!0},a=!r(2)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,e)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[e].i},getWeak:function(t,n){if(!o(t,e)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[e].w},onFreeze:function(t){return a&&l.NEED&&f(t)&&!o(t,e)&&s(t),t}}},,,,function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n){t.exports=!1},function(t,n,r){var e=r(113),i=r(87);t.exports=Object.keys||function(t){return e(t,i)}},function(t,n,r){var e=r(25),i=Math.max,o=Math.min;t.exports=function(t,n){return(t=e(t))<0?i(t+n,0):o(t,n)}},function(t,n,r){var e=r(3),i=r(114),o=r(87),u=r(86)("IE_PROTO"),c=function(){},f=function(){var t,n=r(84)("iframe"),e=o.length;for(n.style.display="none",r(89).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;e--;)delete f.prototype[o[e]];return f()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=f(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(113),i=r(87).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},function(t,n,r){var e=r(21),i=r(19),o=r(86)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){var e=r(4);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){var e=r(14).f,i=r(21),o=r(6)("toStringTag");t.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},function(t,n){t.exports={}},function(t,n,r){var e=r(6)("unscopables"),i=Array.prototype;null==i[e]&&r(22)(i,e,{}),t.exports=function(t){i[e][t]=!0}},function(t,n,r){"use strict";var e=r(1),i=r(14),o=r(15),u=r(6)("species");t.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(18);t.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},,,,function(t,n,r){var e=r(32);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(32),i=r(6)("toStringTag"),o="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?r:o?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,r){var e=r(3),i=r(31),o=r(6)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||null==(r=e(u)[o])?n:i(r)}},function(t,n,r){var e=r(16),i=r(1),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(42)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n,r){var e=r(23),i=r(9),o=r(44);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=i(f.length),s=o(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(0),i=r(33),o=r(2),u=r(91),c="["+u+"]",f=RegExp("^"+c+c+"*"),a=RegExp(c+c+"*$"),s=function(t,n,r){var i={},c=o(function(){return!!u[t]()||"
"!="
"[t]()}),f=i[t]=c?n(l):u[t];r&&(i[r]=f),e(e.P+e.F*c,"String",i)},l=s.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(a,"")),t};t.exports=s},function(t,n,r){var e=r(6)("iterator"),i=!1;try{var o=[7][e]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(t){}return r}},function(t,n,r){"use strict";var e=r(3);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){"use strict";var e=r(61),i=RegExp.prototype.exec;t.exports=function(t,n){var r=t.exec;if("function"==typeof r){var o=r.call(t,n);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==e(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},function(t,n,r){"use strict";r(130);var e=r(18),i=r(22),o=r(2),u=r(33),c=r(6),f=r(106),a=c("species"),s=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,n,r){var h=c(t),v=!o(function(){var n={};return n[h]=function(){return 7},7!=""[t](n)}),p=v?!o(function(){var n=!1,r=/a/;return r.exec=function(){return n=!0,null},"split"===t&&(r.constructor={},r.constructor[a]=function(){return r}),r[h](""),!n}):void 0;if(!v||!p||"replace"===t&&!s||"split"===t&&!l){var g=/./[h],y=r(u,h,""[t],function(t,n,r,e,i){return n.exec===f?v&&!i?{done:!0,value:g.call(n,r,e)}:{done:!0,value:t.call(r,n,e)}:{done:!1}}),d=y[0],x=y[1];e(String.prototype,t,d),i(RegExp.prototype,h,2==n?function(t,n){return x.call(t,this,n)}:function(t){return x.call(t,this)})}}},function(t,n,r){var e=r(30),i=r(126),o=r(101),u=r(3),c=r(9),f=r(103),a={},s={};(n=t.exports=function(t,n,r,l,h){var v,p,g,y,d=h?function(){return t}:f(t),x=e(r,l,n?2:1),m=0;if("function"!=typeof d)throw TypeError(t+" is not iterable!");if(o(d)){for(v=c(t.length);v>m;m++)if((y=n?x(u(p=t[m])[0],p[1]):x(t[m]))===a||y===s)return y}else for(g=d.call(t);!(p=g.next()).done;)if((y=i(g,x,p.value,n))===a||y===s)return y}).BREAK=a,n.RETURN=s},function(t,n,r){var e=r(1).navigator;t.exports=e&&e.userAgent||""},function(t,n,r){"use strict";var e=r(1),i=r(0),o=r(18),u=r(55),c=r(36),f=r(71),a=r(54),s=r(4),l=r(2),h=r(67),v=r(50),p=r(92);t.exports=function(t,n,r,g,y,d){var x=e[t],m=x,b=y?"set":"add",S=m&&m.prototype,w={},_=function(t){var n=S[t];o(S,t,"delete"==t?function(t){return!(d&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(d&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return d&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof m&&(d||S.forEach&&!l(function(){(new m).entries().next()}))){var E=new m,O=E[b](d?{}:-0,1)!=E,F=l(function(){E.has(1)}),P=h(function(t){new m(t)}),M=!d&&l(function(){for(var t=new m,n=5;n--;)t[b](n,n);return!t.has(-0)});P||((m=n(function(n,r){a(n,m,t);var e=p(new x,n,m);return null!=r&&f(r,y,e[b],e),e})).prototype=S,S.constructor=m),(F||M)&&(_("delete"),_("has"),y&&_("get")),(M||O)&&_(b),d&&S.clear&&delete S.clear}else m=g.getConstructor(n,t,y,b),u(m.prototype,r),c.NEED=!0;return v(m,t),w[t]=m,i(i.G+i.W+i.F*(m!=x),w),d||g.setStrong(m,t,y),m}},function(t,n,r){for(var e,i=r(1),o=r(22),u=r(41),c=u("typed_array"),f=u("view"),a=!(!i.ArrayBuffer||!i.DataView),s=a,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=i[h[l++]])?(o(e.prototype,c,!0),o(e.prototype,f,!0)):s=!1;t.exports={ABV:a,CONSTR:s,TYPED:c,VIEW:f}},,,,,,,,,,function(t,n,r){var e=r(4),i=r(1).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,r){n.f=r(6)},function(t,n,r){var e=r(63)("keys"),i=r(41);t.exports=function(t){return e[t]||(e[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(32);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(1).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(4),i=r(3),o=function(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{(e=r(30)(Function.call,r(26).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return o(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:o}},function(t,n){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,n,r){var e=r(4),i=r(90).set;t.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&"function"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},function(t,n,r){"use strict";var e=r(25),i=r(33);t.exports=function(t){var n=String(i(this)),r="",o=e(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,n,r){var e=r(25),i=r(33);t.exports=function(t){return function(n,r){var o,u,c=String(i(n)),f=e(r),a=c.length;return f<0||f>=a?t?"":void 0:(o=c.charCodeAt(f))<55296||o>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):o:t?c.slice(f,f+2):u-56320+(o-55296<<10)+65536}}},function(t,n,r){"use strict";var e=r(42),i=r(0),o=r(18),u=r(22),c=r(51),f=r(125),a=r(50),s=r(47),l=r(6)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,r,p,g,y,d){f(r,n,p);var x,m,b,S=function(t){if(!h&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},w=n+" Iterator",_="values"==g,E=!1,O=t.prototype,F=O[l]||O["@@iterator"]||g&&O[g],P=F||S(g),M=g?_?S("entries"):P:void 0,A="Array"==n&&O.entries||F;if(A&&(b=s(A.call(new t)))!==Object.prototype&&b.next&&(a(b,w,!0),e||"function"==typeof b[l]||u(b,l,v)),_&&F&&"values"!==F.name&&(E=!0,P=function(){return F.call(this)}),e&&!d||!h&&!E&&O[l]||u(O,l,P),c[n]=P,c[w]=v,g)if(x={values:_?P:S("values"),keys:y?P:S("keys"),entries:M},d)for(m in x)m in O||o(O,m,x[m]);else i(i.P+i.F*(h||E),n,x);return x}},function(t,n,r){var e=r(99),i=r(33);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},function(t,n,r){var e=r(4),i=r(32),o=r(6)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,r){var e=r(6)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,r){var e=r(51),i=r(6)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},function(t,n,r){"use strict";var e=r(14),i=r(40);t.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},function(t,n,r){var e=r(61),i=r(6)("iterator"),o=r(51);t.exports=r(16).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,n,r){"use strict";var e=r(19),i=r(44),o=r(9);t.exports=function(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),f=u>2?arguments[2]:void 0,a=void 0===f?r:i(f,r);a>c;)n[c++]=t;return n}},function(t,n,r){"use strict";var e=r(52),i=r(129),o=r(51),u=r(23);t.exports=r(97)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])},"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},function(t,n,r){"use strict";var e,i,o=r(68),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,a=(e=/a/,i=/b*/g,u.call(e,"a"),u.call(i,"a"),0!==e.lastIndex||0!==i.lastIndex),s=void 0!==/()??/.exec("")[1];(a||s)&&(f=function(t){var n,r,e,i,f=this;return s&&(r=new RegExp("^"+f.source+"$(?!\\s)",o.call(f))),a&&(n=f.lastIndex),e=u.call(f,t),a&&e&&(f.lastIndex=f.global?e.index+e[0].length:n),s&&e&&e.length>1&&c.call(e[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(e[i]=void 0)}),e}),t.exports=f},function(t,n,r){"use strict";var e=r(96)(!0);t.exports=function(t,n,r){return n+(r?e(t,n).length:1)}},function(t,n,r){var e,i,o,u=r(30),c=r(119),f=r(89),a=r(84),s=r(1),l=s.process,h=s.setImmediate,v=s.clearImmediate,p=s.MessageChannel,g=s.Dispatch,y=0,d={},x=function(){var t=+this;if(d.hasOwnProperty(t)){var n=d[t];delete d[t],n()}},m=function(t){x.call(t.data)};h&&v||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return d[++y]=function(){c("function"==typeof t?t:Function(t),n)},e(y),y},v=function(t){delete d[t]},"process"==r(32)(l)?e=function(t){l.nextTick(u(x,t,1))}:g&&g.now?e=function(t){g.now(u(x,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=m,e=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",m,!1)):e="onreadystatechange"in a("script")?function(t){f.appendChild(a("script")).onreadystatechange=function(){f.removeChild(this),x.call(t)}}:function(t){setTimeout(u(x,t,1),0)}),t.exports={set:h,clear:v}},function(t,n,r){"use strict";var e=r(1),i=r(15),o=r(42),u=r(74),c=r(22),f=r(55),a=r(2),s=r(54),l=r(25),h=r(9),v=r(137),p=r(46).f,g=r(14).f,y=r(104),d=r(50),x="prototype",m="Wrong index!",b=e.ArrayBuffer,S=e.DataView,w=e.Math,_=e.RangeError,E=e.Infinity,O=b,F=w.abs,P=w.pow,M=w.floor,A=w.log,I=w.LN2,j=i?"_b":"buffer",N=i?"_l":"byteLength",T=i?"_o":"byteOffset";function L(t,n,r){var e,i,o,u=new Array(r),c=8*r-n-1,f=(1<<c)-1,a=f>>1,s=23===n?P(2,-24)-P(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for((t=F(t))!=t||t===E?(i=t!=t?1:0,e=f):(e=M(A(t)/I),t*(o=P(2,-e))<1&&(e--,o*=2),(t+=e+a>=1?s/o:s*P(2,1-a))*o>=2&&(e++,o/=2),e+a>=f?(i=0,e=f):e+a>=1?(i=(t*o-1)*P(2,n),e+=a):(i=t*P(2,a-1)*P(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<<n|i,c+=n;c>0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u}function R(t,n,r){var e,i=8*r-n-1,o=(1<<i)-1,u=o>>1,c=i-7,f=r-1,a=t[f--],s=127&a;for(a>>=7;c>0;s=256*s+t[f],f--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[f],f--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:a?-E:E;e+=P(2,n),s-=u}return(a?-1:1)*e*P(2,s-n)}function k(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function C(t){return[255&t]}function D(t){return[255&t,t>>8&255]}function W(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function U(t){return L(t,52,8)}function V(t){return L(t,23,4)}function B(t,n,r){g(t[x],n,{get:function(){return this[r]}})}function G(t,n,r,e){var i=v(+r);if(i+n>t[N])throw _(m);var o=t[j]._b,u=i+t[T],c=o.slice(u,u+n);return e?c:c.reverse()}function z(t,n,r,e,i,o){var u=v(+r);if(u+n>t[N])throw _(m);for(var c=t[j]._b,f=u+t[T],a=e(+i),s=0;s<n;s++)c[f+s]=a[o?s:n-s-1]}if(u.ABV){if(!a(function(){b(1)})||!a(function(){new b(-1)})||a(function(){return new b,new b(1.5),new b(NaN),"ArrayBuffer"!=b.name})){for(var Y,q=(b=function(t){return s(this,b),new O(v(t))})[x]=O[x],$=p(O),K=0;$.length>K;)(Y=$[K++])in b||c(b,Y,O[Y]);o||(q.constructor=b)}var J=new S(new b(2)),X=S[x].setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||f(S[x],{setInt8:function(t,n){X.call(this,t,n<<24>>24)},setUint8:function(t,n){X.call(this,t,n<<24>>24)}},!0)}else b=function(t){s(this,b,"ArrayBuffer");var n=v(t);this._b=y.call(new Array(n),0),this[N]=n},S=function(t,n,r){s(this,S,"DataView"),s(t,b,"DataView");var e=t[N],i=l(n);if(i<0||i>e)throw _("Wrong offset!");if(i+(r=void 0===r?e-i:h(r))>e)throw _("Wrong length!");this[j]=t,this[T]=i,this[N]=r},i&&(B(b,"byteLength","_l"),B(S,"buffer","_b"),B(S,"byteLength","_l"),B(S,"byteOffset","_o")),f(S[x],{getInt8:function(t){return G(this,1,t)[0]<<24>>24},getUint8:function(t){return G(this,1,t)[0]},getInt16:function(t){var n=G(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=G(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return k(G(this,4,t,arguments[1]))},getUint32:function(t){return k(G(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return R(G(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return R(G(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){z(this,1,t,C,n)},setUint8:function(t,n){z(this,1,t,C,n)},setInt16:function(t,n){z(this,2,t,D,n,arguments[2])},setUint16:function(t,n){z(this,2,t,D,n,arguments[2])},setInt32:function(t,n){z(this,4,t,W,n,arguments[2])},setUint32:function(t,n){z(this,4,t,W,n,arguments[2])},setFloat32:function(t,n){z(this,4,t,V,n,arguments[2])},setFloat64:function(t,n){z(this,8,t,U,n,arguments[2])}});d(b,"ArrayBuffer"),d(S,"DataView"),c(S[x],u.VIEW,!0),n.ArrayBuffer=b,n.DataView=S},,function(t,n,r){t.exports=!r(15)&&!r(2)(function(){return 7!=Object.defineProperty(r(84)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(1),i=r(16),o=r(42),u=r(85),c=r(14).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){var e=r(21),i=r(23),o=r(64)(!1),u=r(86)("IE_PROTO");t.exports=function(t,n){var r,c=i(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~o(a,r)||a.push(r));return a}},function(t,n,r){var e=r(14),i=r(3),o=r(43);t.exports=r(15)?Object.defineProperties:function(t,n){i(t);for(var r,u=o(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){var e=r(23),i=r(46).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(e(t))}},function(t,n,r){"use strict";var e=r(43),i=r(65),o=r(60),u=r(19),c=r(59),f=Object.assign;t.exports=!f||r(2)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=f({},t)[r]||Object.keys(f({},n)).join("")!=e})?function(t,n){for(var r=u(t),f=arguments.length,a=1,s=i.f,l=o.f;f>a;)for(var h,v=c(arguments[a++]),p=s?e(v).concat(s(v)):e(v),g=p.length,y=0;g>y;)l.call(v,h=p[y++])&&(r[h]=v[h]);return r}:f},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,r){"use strict";var e=r(31),i=r(4),o=r(119),u=[].slice,c={};t.exports=Function.bind||function(t){var n=e(this),r=u.call(arguments,1),f=function(){var e=r.concat(u.call(arguments));return this instanceof f?function(t,n,r){if(!(n in c)){for(var e=[],i=0;i<n;i++)e[i]="a["+i+"]";c[n]=Function("F,a","return new F("+e.join(",")+")")}return c[n](t,r)}(n,e.length,e):o(n,e,t)};return i(n.prototype)&&(f.prototype=n.prototype),f}},function(t,n){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},function(t,n,r){var e=r(1).parseInt,i=r(66).trim,o=r(91),u=/^[-+]?0[xX]/;t.exports=8!==e(o+"08")||22!==e(o+"0x16")?function(t,n){var r=i(String(t),3);return e(r,n>>>0||(u.test(r)?16:10))}:e},function(t,n,r){var e=r(1).parseFloat,i=r(66).trim;t.exports=1/e(r(91)+"-0")!=-1/0?function(t){var n=i(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){var e=r(32);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){var e=r(4),i=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){"use strict";var e=r(45),i=r(40),o=r(50),u={};r(22)(u,r(6)("iterator"),function(){return this}),t.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},function(t,n,r){var e=r(3);t.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(n){var o=t.return;throw void 0!==o&&e(o.call(t)),n}}},function(t,n,r){var e=r(31),i=r(19),o=r(59),u=r(9);t.exports=function(t,n,r,c,f){e(n);var a=i(t),s=o(a),l=u(a.length),h=f?l-1:0,v=f?-1:1;if(r<2)for(;;){if(h in s){c=s[h],h+=v;break}if(h+=v,f?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;f?h>=0:l>h;h+=v)h in s&&(c=n(c,s[h],h,a));return c}},function(t,n,r){"use strict";var e=r(19),i=r(44),o=r(9);t.exports=[].copyWithin||function(t,n){var r=e(this),u=o(r.length),c=i(t,u),f=i(n,u),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?u:i(a,u))-f,u-c),l=1;for(f<c&&c<f+s&&(l=-1,f+=s-1,c+=s-1);s-- >0;)f in r?r[c]=r[f]:delete r[c],c+=l,f+=l;return r}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(106);r(0)({target:"RegExp",proto:!0,forced:e!==/./.exec},{exec:e})},function(t,n,r){r(15)&&"g"!=/./g.flags&&r(14).f(RegExp.prototype,"flags",{configurable:!0,get:r(68)})},function(t,n,r){"use strict";var e,i,o,u,c=r(42),f=r(1),a=r(30),s=r(61),l=r(0),h=r(4),v=r(31),p=r(54),g=r(71),y=r(62),d=r(108).set,x=r(278)(),m=r(133),b=r(279),S=r(72),w=r(134),_=f.TypeError,E=f.process,O=E&&E.versions,F=O&&O.v8||"",P=f.Promise,M="process"==s(E),A=function(){},I=i=m.f,j=!!function(){try{var t=P.resolve(1),n=(t.constructor={})[r(6)("species")]=function(t){t(A,A)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof n&&0!==F.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(t){}}(),N=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},T=function(t,n){if(!t._n){t._n=!0;var r=t._c;x(function(){for(var e=t._v,i=1==t._s,o=0,u=function(n){var r,o,u,c=i?n.ok:n.fail,f=n.resolve,a=n.reject,s=n.domain;try{c?(i||(2==t._h&&k(t),t._h=1),!0===c?r=e:(s&&s.enter(),r=c(e),s&&(s.exit(),u=!0)),r===n.promise?a(_("Promise-chain cycle")):(o=N(r))?o.call(r,f,a):f(r)):a(e)}catch(t){s&&!u&&s.exit(),a(t)}};r.length>o;)u(r[o++]);t._c=[],t._n=!1,n&&!t._h&&L(t)})}},L=function(t){d.call(f,function(){var n,r,e,i=t._v,o=R(t);if(o&&(n=b(function(){M?E.emit("unhandledRejection",i,t):(r=f.onunhandledrejection)?r({promise:t,reason:i}):(e=f.console)&&e.error&&e.error("Unhandled promise rejection",i)}),t._h=M||R(t)?2:1),t._a=void 0,o&&n.e)throw n.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){d.call(f,function(){var n;M?E.emit("rejectionHandled",t):(n=f.onrejectionhandled)&&n({promise:t,reason:t._v})})},C=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),T(n,!0))},D=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");(n=N(t))?x(function(){var e={_w:r,_d:!1};try{n.call(t,a(D,e,1),a(C,e,1))}catch(t){C.call(e,t)}}):(r._v=t,r._s=1,T(r,!1))}catch(t){C.call({_w:r,_d:!1},t)}}};j||(P=function(t){p(this,P,"Promise","_h"),v(t),e.call(this);try{t(a(D,this,1),a(C,this,1))}catch(t){C.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(55)(P.prototype,{then:function(t,n){var r=I(y(this,P));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=M?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&T(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new e;this.promise=t,this.resolve=a(D,t,1),this.reject=a(C,t,1)},m.f=I=function(t){return t===P||t===u?new o(t):i(t)}),l(l.G+l.W+l.F*!j,{Promise:P}),r(50)(P,"Promise"),r(53)("Promise"),u=r(16).Promise,l(l.S+l.F*!j,"Promise",{reject:function(t){var n=I(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!j),"Promise",{resolve:function(t){return w(c&&this===u?P:this,t)}}),l(l.S+l.F*!(j&&r(67)(function(t){P.all(t).catch(A)})),"Promise",{all:function(t){var n=this,r=I(n),e=r.resolve,i=r.reject,o=b(function(){var r=[],o=0,u=1;g(t,!1,function(t){var c=o++,f=!1;r.push(void 0),u++,n.resolve(t).then(function(t){f||(f=!0,r[c]=t,--u||e(r))},i)}),--u||e(r)});return o.e&&i(o.v),r.promise},race:function(t){var n=this,r=I(n),e=r.reject,i=b(function(){g(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return i.e&&e(i.v),r.promise}})},function(t,n,r){"use strict";var e=r(31);function i(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=e(n),this.reject=e(r)}t.exports.f=function(t){return new i(t)}},function(t,n,r){var e=r(3),i=r(4),o=r(133);t.exports=function(t,n){if(e(t),i(n)&&n.constructor===t)return n;var r=o.f(t);return(0,r.resolve)(n),r.promise}},function(t,n,r){"use strict";var e=r(14).f,i=r(45),o=r(55),u=r(30),c=r(54),f=r(71),a=r(97),s=r(129),l=r(53),h=r(15),v=r(36).fastKey,p=r(48),g=h?"_s":"size",y=function(t,n){var r,e=v(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,a){var s=t(function(t,e){c(t,s,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[g]=0,null!=e&&f(e,r,t[a],t)});return o(s.prototype,{clear:function(){for(var t=p(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var r=p(this,n),e=y(r,t);if(e){var i=e.n,o=e.p;delete r._i[e.i],e.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==e&&(r._f=i),r._l==e&&(r._l=o),r[g]--}return!!e},forEach:function(t){p(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!y(p(this,n),t)}}),h&&e(s.prototype,"size",{get:function(){return p(this,n)[g]}}),s},def:function(t,n,r){var e,i,o=y(t,n);return o?o.v=r:(t._l=o={i:i=v(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,n,r){a(t,n,function(t,r){this._t=p(t,n),this._k=r,this._l=void 0},function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?s(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,s(1))},r?"entries":"values",!r,!0),l(n)}}},function(t,n,r){"use strict";var e=r(55),i=r(36).getWeak,o=r(3),u=r(4),c=r(54),f=r(71),a=r(28),s=r(21),l=r(48),h=a(5),v=a(6),p=0,g=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},d=function(t,n){return h(t.a,function(t){return t[0]===n})};y.prototype={get:function(t){var n=d(this,t);if(n)return n[1]},has:function(t){return!!d(this,t)},set:function(t,n){var r=d(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=v(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,o){var a=t(function(t,e){c(t,a,n,"_i"),t._t=n,t._i=p++,t._l=void 0,null!=e&&f(e,r,t[o],t)});return e(a.prototype,{delete:function(t){if(!u(t))return!1;var r=i(t);return!0===r?g(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function(t){if(!u(t))return!1;var r=i(t);return!0===r?g(l(this,n)).has(t):r&&s(r,this._i)}}),a},def:function(t,n,r){var e=i(o(n),!0);return!0===e?g(t).set(n,r):e[t._i]=r,t},ufstore:g}},function(t,n,r){var e=r(25),i=r(9);t.exports=function(t){if(void 0===t)return 0;var n=e(t),r=i(n);if(n!==r)throw RangeError("Wrong length!");return r}},function(t,n,r){var e=r(46),i=r(65),o=r(3),u=r(1).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(9),i=r(93),o=r(33);t.exports=function(t,n,r,u){var c=String(o(t)),f=c.length,a=void 0===r?" ":String(r),s=e(n);if(s<=f||""==a)return c;var l=s-f,h=i.call(a,Math.ceil(l/a.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},function(t,n,r){var e=r(43),i=r(23),o=r(60).f;t.exports=function(t){return function(n){for(var r,u=i(n),c=e(u),f=c.length,a=0,s=[];f>a;)o.call(u,r=c[a++])&&s.push(t?[r,u[r]]:u[r]);return s}}},,,,,,,,,,,,,,,,,,,,,,,,function(t,n,r){"use strict";(function(t){r(165),r(309),r(311),r(313),r(315),r(317),r(319),r(321),r(323),r(325),r(329),t._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),t._babelPolyfill=!0}).call(this,r(49))},function(t,n,r){r(166),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187),r(188),r(189),r(190),r(191),r(192),r(193),r(194),r(195),r(196),r(197),r(198),r(199),r(200),r(201),r(202),r(203),r(204),r(205),r(206),r(207),r(208),r(209),r(210),r(212),r(213),r(214),r(215),r(216),r(217),r(218),r(219),r(220),r(221),r(222),r(223),r(224),r(225),r(226),r(227),r(228),r(229),r(230),r(231),r(232),r(233),r(234),r(235),r(236),r(237),r(238),r(239),r(240),r(241),r(242),r(243),r(244),r(245),r(247),r(248),r(250),r(251),r(252),r(253),r(254),r(255),r(256),r(259),r(260),r(261),r(262),r(263),r(264),r(265),r(266),r(267),r(268),r(269),r(270),r(271),r(105),r(272),r(130),r(273),r(131),r(274),r(275),r(276),r(277),r(132),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),t.exports=r(16)},function(t,n,r){"use strict";var e=r(1),i=r(21),o=r(15),u=r(0),c=r(18),f=r(36).KEY,a=r(2),s=r(63),l=r(50),h=r(41),v=r(6),p=r(85),g=r(112),y=r(168),d=r(88),x=r(3),m=r(4),b=r(23),S=r(35),w=r(40),_=r(45),E=r(115),O=r(26),F=r(14),P=r(43),M=O.f,A=F.f,I=E.f,j=e.Symbol,N=e.JSON,T=N&&N.stringify,L=v("_hidden"),R=v("toPrimitive"),k={}.propertyIsEnumerable,C=s("symbol-registry"),D=s("symbols"),W=s("op-symbols"),U=Object.prototype,V="function"==typeof j,B=e.QObject,G=!B||!B.prototype||!B.prototype.findChild,z=o&&a(function(){return 7!=_(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=M(U,n);e&&delete U[n],A(t,n,r),e&&t!==U&&A(U,n,e)}:A,Y=function(t){var n=D[t]=_(j.prototype);return n._k=t,n},q=V&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},$=function(t,n,r){return t===U&&$(W,n,r),x(t),n=S(n,!0),x(r),i(D,n)?(r.enumerable?(i(t,L)&&t[L][n]&&(t[L][n]=!1),r=_(r,{enumerable:w(0,!1)})):(i(t,L)||A(t,L,w(1,{})),t[L][n]=!0),z(t,n,r)):A(t,n,r)},K=function(t,n){x(t);for(var r,e=y(n=b(n)),i=0,o=e.length;o>i;)$(t,r=e[i++],n[r]);return t},J=function(t){var n=k.call(this,t=S(t,!0));return!(this===U&&i(D,t)&&!i(W,t))&&(!(n||!i(this,t)||!i(D,t)||i(this,L)&&this[L][t])||n)},X=function(t,n){if(t=b(t),n=S(n,!0),t!==U||!i(D,n)||i(W,n)){var r=M(t,n);return!r||!i(D,n)||i(t,L)&&t[L][n]||(r.enumerable=!0),r}},H=function(t){for(var n,r=I(b(t)),e=[],o=0;r.length>o;)i(D,n=r[o++])||n==L||n==f||e.push(n);return e},Z=function(t){for(var n,r=t===U,e=I(r?W:b(t)),o=[],u=0;e.length>u;)!i(D,n=e[u++])||r&&!i(U,n)||o.push(D[n]);return o};V||(c((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===U&&n.call(W,r),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),z(this,t,w(1,r))};return o&&G&&z(U,t,{configurable:!0,set:n}),Y(t)}).prototype,"toString",function(){return this._k}),O.f=X,F.f=$,r(46).f=E.f=H,r(60).f=J,r(65).f=Z,o&&!r(42)&&c(U,"propertyIsEnumerable",J,!0),p.f=function(t){return Y(v(t))}),u(u.G+u.W+u.F*!V,{Symbol:j});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Q.length>tt;)v(Q[tt++]);for(var nt=P(v.store),rt=0;nt.length>rt;)g(nt[rt++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return i(C,t+="")?C[t]:C[t]=j(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var n in C)if(C[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),u(u.S+u.F*!V,"Object",{create:function(t,n){return void 0===n?_(t):K(_(t),n)},defineProperty:$,defineProperties:K,getOwnPropertyDescriptor:X,getOwnPropertyNames:H,getOwnPropertySymbols:Z}),N&&u(u.S+u.F*(!V||a(function(){var t=j();return"[null]"!=T([t])||"{}"!=T({a:t})||"{}"!=T(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);if(r=n=e[1],(m(n)||void 0!==t)&&!q(t))return d(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!q(n))return n}),e[1]=n,T.apply(N,e)}}),j.prototype[R]||r(22)(j.prototype,R,j.prototype.valueOf),l(j,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){t.exports=r(63)("native-function-to-string",Function.toString)},function(t,n,r){var e=r(43),i=r(65),o=r(60);t.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),f=o.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n,r){var e=r(0);e(e.S,"Object",{create:r(45)})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(15),"Object",{defineProperty:r(14).f})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(15),"Object",{defineProperties:r(114)})},function(t,n,r){var e=r(23),i=r(26).f;r(27)("getOwnPropertyDescriptor",function(){return function(t,n){return i(e(t),n)}})},function(t,n,r){var e=r(19),i=r(47);r(27)("getPrototypeOf",function(){return function(t){return i(e(t))}})},function(t,n,r){var e=r(19),i=r(43);r(27)("keys",function(){return function(t){return i(e(t))}})},function(t,n,r){r(27)("getOwnPropertyNames",function(){return r(115).f})},function(t,n,r){var e=r(4),i=r(36).onFreeze;r(27)("freeze",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(4),i=r(36).onFreeze;r(27)("seal",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(4),i=r(36).onFreeze;r(27)("preventExtensions",function(t){return function(n){return t&&e(n)?t(i(n)):n}})},function(t,n,r){var e=r(4);r(27)("isFrozen",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(4);r(27)("isSealed",function(t){return function(n){return!e(n)||!!t&&t(n)}})},function(t,n,r){var e=r(4);r(27)("isExtensible",function(t){return function(n){return!!e(n)&&(!t||t(n))}})},function(t,n,r){var e=r(0);e(e.S+e.F,"Object",{assign:r(116)})},function(t,n,r){var e=r(0);e(e.S,"Object",{is:r(117)})},function(t,n,r){var e=r(0);e(e.S,"Object",{setPrototypeOf:r(90).set})},function(t,n,r){"use strict";var e=r(61),i={};i[r(6)("toStringTag")]="z",i+""!="[object z]"&&r(18)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(t,n,r){var e=r(0);e(e.P,"Function",{bind:r(118)})},function(t,n,r){var e=r(14).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(15)&&e(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,n,r){"use strict";var e=r(4),i=r(47),o=r(6)("hasInstance"),u=Function.prototype;o in u||r(14).f(u,o,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,r){var e=r(0),i=r(120);e(e.G+e.F*(parseInt!=i),{parseInt:i})},function(t,n,r){var e=r(0),i=r(121);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},function(t,n,r){"use strict";var e=r(1),i=r(21),o=r(32),u=r(92),c=r(35),f=r(2),a=r(46).f,s=r(26).f,l=r(14).f,h=r(66).trim,v=e.Number,p=v,g=v.prototype,y="Number"==o(r(45)(g)),d="trim"in String.prototype,x=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){var r,e,i,o=(n=d?n.trim():h(n,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=n.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,f=n.slice(2),a=0,s=f.length;a<s;a++)if((u=f.charCodeAt(a))<48||u>i)return NaN;return parseInt(f,e)}}return+n};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof v&&(y?f(function(){g.valueOf.call(r)}):"Number"!=o(r))?u(new p(x(n)),r,v):x(n)};for(var m,b=r(15)?a(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;b.length>S;S++)i(p,m=b[S])&&!i(v,m)&&l(v,m,s(p,m));v.prototype=g,g.constructor=v,r(18)(e,"Number",v)}},function(t,n,r){"use strict";var e=r(0),i=r(25),o=r(122),u=r(93),c=1..toFixed,f=Math.floor,a=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*a[r],a[r]=e%1e7,e=f(e/1e7)},h=function(t){for(var n=6,r=0;--n>=0;)r+=a[n],a[n]=f(r/t),r=r%t*1e7},v=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==a[t]){var r=String(a[t]);n=""===n?r:n+u.call("0",7-r.length)+r}return n},p=function(t,n,r){return 0===n?r:n%2==1?p(t,n-1,r*t):p(t*t,n/2,r)};e(e.P+e.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(2)(function(){c.call({})})),"Number",{toFixed:function(t){var n,r,e,c,f=o(this,s),a=i(t),g="",y="0";if(a<0||a>20)throw RangeError(s);if(f!=f)return"NaN";if(f<=-1e21||f>=1e21)return String(f);if(f<0&&(g="-",f=-f),f>1e-21)if(r=(n=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n}(f*p(2,69,1))-69)<0?f*p(2,-n,1):f/p(2,n,1),r*=4503599627370496,(n=52-n)>0){for(l(0,r),e=a;e>=7;)l(1e7,0),e-=7;for(l(p(10,e,1),0),e=n-1;e>=23;)h(1<<23),e-=23;h(1<<e),l(1,1),h(2),y=v()}else l(0,r),l(1<<-n,0),y=v()+u.call("0",a);return y=a>0?g+((c=y.length)<=a?"0."+u.call("0",a-c)+y:y.slice(0,c-a)+"."+y.slice(c-a)):g+y}})},function(t,n,r){"use strict";var e=r(0),i=r(2),o=r(122),u=1..toPrecision;e(e.P+e.F*(i(function(){return"1"!==u.call(1,void 0)})||!i(function(){u.call({})})),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){var e=r(0),i=r(1).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{isInteger:r(123)})},function(t,n,r){var e=r(0);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(0),i=r(123),o=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,r){var e=r(0);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){var e=r(0);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){var e=r(0),i=r(121);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,r){var e=r(0),i=r(120);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,r){var e=r(0),i=r(124),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n,r){var e=r(0),i=Math.asinh;e(e.S+e.F*!(i&&1/i(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,r){var e=r(0),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){var e=r(0),i=r(94);e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(0),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,r){var e=r(0),i=r(95);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n,r){var e=r(0);e(e.S,"Math",{fround:r(211)})},function(t,n,r){var e=r(94),i=Math.pow,o=i(2,-52),u=i(2,-23),c=i(2,127)*(2-u),f=i(2,-126);t.exports=Math.fround||function(t){var n,r,i=Math.abs(t),a=e(t);return i<f?a*(i/f/u+1/o-1/o)*f*u:(r=(n=(1+u/o)*i)-(n-i))>c||r!=r?a*(1/0):a*r}},function(t,n,r){var e=r(0),i=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,u=0,c=arguments.length,f=0;u<c;)f<(r=i(arguments[u++]))?(o=o*(e=f/r)*e+1,f=r):o+=r>0?(e=r/f)*e:r;return f===1/0?1/0:f*Math.sqrt(o)}})},function(t,n,r){var e=r(0),i=Math.imul;e(e.S+e.F*r(2)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,n){var r=+t,e=+n,i=65535&r,o=65535&e;return 0|i*o+((65535&r>>>16)*o+i*(65535&e>>>16)<<16>>>0)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log1p:r(124)})},function(t,n,r){var e=r(0);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(0);e(e.S,"Math",{sign:r(94)})},function(t,n,r){var e=r(0),i=r(95),o=Math.exp;e(e.S+e.F*r(2)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(0),i=r(95),o=Math.exp;e(e.S,"Math",{tanh:function(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){var e=r(0),i=r(44),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(0),i=r(23),o=r(9);e(e.S,"String",{raw:function(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c<e&&u.push(String(arguments[c]));return u.join("")}})},function(t,n,r){"use strict";r(66)("trim",function(t){return function(){return t(this,3)}})},function(t,n,r){"use strict";var e=r(96)(!0);r(97)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){"use strict";var e=r(0),i=r(96)(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(0),i=r(9),o=r(98),u="".endsWith;e(e.P+e.F*r(100)("endsWith"),"String",{endsWith:function(t){var n=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),c=void 0===r?e:Math.min(i(r),e),f=String(t);return u?u.call(n,f,c):n.slice(c-f.length,c)===f}})},function(t,n,r){"use strict";var e=r(0),i=r(98);e(e.P+e.F*r(100)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){var e=r(0);e(e.P,"String",{repeat:r(93)})},function(t,n,r){"use strict";var e=r(0),i=r(9),o=r(98),u="".startsWith;e(e.P+e.F*r(100)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return u?u.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){"use strict";r(20)("anchor",function(t){return function(n){return t(this,"a","name",n)}})},function(t,n,r){"use strict";r(20)("big",function(t){return function(){return t(this,"big","","")}})},function(t,n,r){"use strict";r(20)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,n,r){"use strict";r(20)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,n,r){"use strict";r(20)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,n,r){"use strict";r(20)("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})},function(t,n,r){"use strict";r(20)("fontsize",function(t){return function(n){return t(this,"font","size",n)}})},function(t,n,r){"use strict";r(20)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,n,r){"use strict";r(20)("link",function(t){return function(n){return t(this,"a","href",n)}})},function(t,n,r){"use strict";r(20)("small",function(t){return function(){return t(this,"small","","")}})},function(t,n,r){"use strict";r(20)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,n,r){"use strict";r(20)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,n,r){"use strict";r(20)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,n,r){var e=r(0);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,r){"use strict";var e=r(0),i=r(19),o=r(35);e(e.P+e.F*r(2)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},function(t,n,r){var e=r(0),i=r(246);e(e.P+e.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,r){"use strict";var e=r(2),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=e(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!e(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}:o},function(t,n,r){var e=Date.prototype,i=e.toString,o=e.getTime;new Date(NaN)+""!="Invalid Date"&&r(18)(e,"toString",function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"})},function(t,n,r){var e=r(6)("toPrimitive"),i=Date.prototype;e in i||r(22)(i,e,r(249))},function(t,n,r){"use strict";var e=r(3),i=r(35);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),"number"!=t)}},function(t,n,r){var e=r(0);e(e.S,"Array",{isArray:r(88)})},function(t,n,r){"use strict";var e=r(30),i=r(0),o=r(19),u=r(126),c=r(101),f=r(9),a=r(102),s=r(103);i(i.S+i.F*!r(67)(function(t){Array.from(t)}),"Array",{from:function(t){var n,r,i,l,h=o(t),v="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,y=void 0!==g,d=0,x=s(h);if(y&&(g=e(g,p>2?arguments[2]:void 0,2)),null==x||v==Array&&c(x))for(r=new v(n=f(h.length));n>d;d++)a(r,d,y?g(h[d],d):h[d]);else for(l=x.call(h),r=new v;!(i=l.next()).done;d++)a(r,d,y?u(l,g,[i.value,d],!0):i.value);return r.length=d,r}})},function(t,n,r){"use strict";var e=r(0),i=r(102);e(e.S+e.F*r(2)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)i(r,t,arguments[t++]);return r.length=n,r}})},function(t,n,r){"use strict";var e=r(0),i=r(23),o=[].join;e(e.P+e.F*(r(59)!=Object||!r(24)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,r){"use strict";var e=r(0),i=r(89),o=r(32),u=r(44),c=r(9),f=[].slice;e(e.P+e.F*r(2)(function(){i&&f.call(i)}),"Array",{slice:function(t,n){var r=c(this.length),e=o(this);if(n=void 0===n?r:n,"Array"==e)return f.call(this,t,n);for(var i=u(t,r),a=u(n,r),s=c(a-i),l=new Array(s),h=0;h<s;h++)l[h]="String"==e?this.charAt(i+h):this[i+h];return l}})},function(t,n,r){"use strict";var e=r(0),i=r(31),o=r(19),u=r(2),c=[].sort,f=[1,2,3];e(e.P+e.F*(u(function(){f.sort(void 0)})||!u(function(){f.sort(null)})||!r(24)(c)),"Array",{sort:function(t){return void 0===t?c.call(o(this)):c.call(o(this),i(t))}})},function(t,n,r){"use strict";var e=r(0),i=r(28)(0),o=r(24)([].forEach,!0);e(e.P+e.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,n,r){var e=r(258);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(4),i=r(88),o=r(6)("species");t.exports=function(t){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),e(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},function(t,n,r){"use strict";var e=r(0),i=r(28)(1);e(e.P+e.F*!r(24)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(28)(2);e(e.P+e.F*!r(24)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(28)(3);e(e.P+e.F*!r(24)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(28)(4);e(e.P+e.F*!r(24)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(127);e(e.P+e.F*!r(24)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,n,r){"use strict";var e=r(0),i=r(127);e(e.P+e.F*!r(24)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,n,r){"use strict";var e=r(0),i=r(64)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(u||!r(24)(o)),"Array",{indexOf:function(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(23),o=r(25),u=r(9),c=[].lastIndexOf,f=!!c&&1/[1].lastIndexOf(1,-0)<0;e(e.P+e.F*(f||!r(24)(c)),"Array",{lastIndexOf:function(t){if(f)return c.apply(this,arguments)||0;var n=i(this),r=u(n.length),e=r-1;for(arguments.length>1&&(e=Math.min(e,o(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},function(t,n,r){var e=r(0);e(e.P,"Array",{copyWithin:r(128)}),r(52)("copyWithin")},function(t,n,r){var e=r(0);e(e.P,"Array",{fill:r(104)}),r(52)("fill")},function(t,n,r){"use strict";var e=r(0),i=r(28)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),e(e.P+e.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(52)("find")},function(t,n,r){"use strict";var e=r(0),i=r(28)(6),o="findIndex",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(52)(o)},function(t,n,r){r(53)("Array")},function(t,n,r){var e=r(1),i=r(92),o=r(14).f,u=r(46).f,c=r(99),f=r(68),a=e.RegExp,s=a,l=a.prototype,h=/a/g,v=/a/g,p=new a(h)!==h;if(r(15)&&(!p||r(2)(function(){return v[r(6)("match")]=!1,a(h)!=h||a(v)==v||"/a/i"!=a(h,"i")}))){a=function(t,n){var r=this instanceof a,e=c(t),o=void 0===n;return!r&&e&&t.constructor===a&&o?t:i(p?new s(e&&!o?t.source:t,n):s((e=t instanceof a)?t.source:t,e&&o?f.call(t):n),r?this:l,a)};for(var g=function(t){t in a||o(a,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})},y=u(s),d=0;y.length>d;)g(y[d++]);l.constructor=a,a.prototype=l,r(18)(e,"RegExp",a)}r(53)("RegExp")},function(t,n,r){"use strict";r(131);var e=r(3),i=r(68),o=r(15),u=/./.toString,c=function(t){r(18)(RegExp.prototype,"toString",t,!0)};r(2)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?c(function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=u.name&&c(function(){return u.call(this)})},function(t,n,r){"use strict";var e=r(3),i=r(9),o=r(107),u=r(69);r(70)("match",1,function(t,n,r,c){return[function(r){var e=t(this),i=null==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=c(r,t,this);if(n.done)return n.value;var f=e(t),a=String(this);if(!f.global)return u(f,a);var s=f.unicode;f.lastIndex=0;for(var l,h=[],v=0;null!==(l=u(f,a));){var p=String(l[0]);h[v]=p,""===p&&(f.lastIndex=o(a,i(f.lastIndex),s)),v++}return 0===v?null:h}]})},function(t,n,r){"use strict";var e=r(3),i=r(19),o=r(9),u=r(25),c=r(107),f=r(69),a=Math.max,s=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g;r(70)("replace",2,function(t,n,r,p){return[function(e,i){var o=t(this),u=null==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},function(t,n){var i=p(r,t,this,n);if(i.done)return i.value;var l=e(t),h=String(this),v="function"==typeof n;v||(n=String(n));var y=l.global;if(y){var d=l.unicode;l.lastIndex=0}for(var x=[];;){var m=f(l,h);if(null===m)break;if(x.push(m),!y)break;""===String(m[0])&&(l.lastIndex=c(h,o(l.lastIndex),d))}for(var b,S="",w=0,_=0;_<x.length;_++){m=x[_];for(var E=String(m[0]),O=a(s(u(m.index),h.length),0),F=[],P=1;P<m.length;P++)F.push(void 0===(b=m[P])?b:String(b));var M=m.groups;if(v){var A=[E].concat(F,O,h);void 0!==M&&A.push(M);var I=String(n.apply(void 0,A))}else I=g(E,h,O,F,M,n);O>=w&&(S+=h.slice(w,O)+I,w=O+E.length)}return S+h.slice(w)}];function g(t,n,e,o,u,c){var f=e+t.length,a=o.length,s=v;return void 0!==u&&(u=i(u),s=h),r.call(c,s,function(r,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,e);case"'":return n.slice(f);case"<":c=u[i.slice(1,-1)];break;default:var s=+i;if(0===s)return r;if(s>a){var h=l(s/10);return 0===h?r:h<=a?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):r}c=o[s-1]}return void 0===c?"":c})}})},function(t,n,r){"use strict";var e=r(3),i=r(117),o=r(69);r(70)("search",1,function(t,n,r,u){return[function(r){var e=t(this),i=null==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=u(r,t,this);if(n.done)return n.value;var c=e(t),f=String(this),a=c.lastIndex;i(a,0)||(c.lastIndex=0);var s=o(c,f);return i(c.lastIndex,a)||(c.lastIndex=a),null===s?-1:s.index}]})},function(t,n,r){"use strict";var e=r(99),i=r(3),o=r(62),u=r(107),c=r(9),f=r(69),a=r(106),s=r(2),l=Math.min,h=[].push,v=!s(function(){RegExp(4294967295,"y")});r(70)("split",2,function(t,n,r,s){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!e(t))return r.call(i,t,n);for(var o,u,c,f=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,v=void 0===n?4294967295:n>>>0,p=new RegExp(t.source,s+"g");(o=a.call(p,i))&&!((u=p.lastIndex)>l&&(f.push(i.slice(l,o.index)),o.length>1&&o.index<i.length&&h.apply(f,o.slice(1)),c=o[0].length,l=u,f.length>=v));)p.lastIndex===o.index&&p.lastIndex++;return l===i.length?!c&&p.test("")||f.push(""):f.push(i.slice(l)),f.length>v?f.slice(0,v):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:r.call(this,t,n)}:r,[function(r,e){var i=t(this),o=null==r?void 0:r[n];return void 0!==o?o.call(r,i,e):p.call(String(i),r,e)},function(t,n){var e=s(p,t,this,n,p!==r);if(e.done)return e.value;var a=i(t),h=String(this),g=o(a,RegExp),y=a.unicode,d=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(v?"y":"g"),x=new g(v?a:"^(?:"+a.source+")",d),m=void 0===n?4294967295:n>>>0;if(0===m)return[];if(0===h.length)return null===f(x,h)?[h]:[];for(var b=0,S=0,w=[];S<h.length;){x.lastIndex=v?S:0;var _,E=f(x,v?h:h.slice(S));if(null===E||(_=l(c(x.lastIndex+(v?0:S)),h.length))===b)S=u(h,S,y);else{if(w.push(h.slice(b,S)),w.length===m)return w;for(var O=1;O<=E.length-1;O++)if(w.push(E[O]),w.length===m)return w;S=b=_}}return w.push(h.slice(b)),w}]})},function(t,n,r){var e=r(1),i=r(108).set,o=e.MutationObserver||e.WebKitMutationObserver,u=e.process,c=e.Promise,f="process"==r(32)(u);t.exports=function(){var t,n,r,a=function(){var e,i;for(f&&(e=u.domain)&&e.exit();t;){i=t.fn,t=t.next;try{i()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(f)r=function(){u.nextTick(a)};else if(!o||e.navigator&&e.navigator.standalone)if(c&&c.resolve){var s=c.resolve(void 0);r=function(){s.then(a)}}else r=function(){i.call(e,a)};else{var l=!0,h=document.createTextNode("");new o(a).observe(h,{characterData:!0}),r=function(){h.data=l=!l}}return function(e){var i={fn:e,next:void 0};n&&(n.next=i),t||(t=i,r()),n=i}}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,r){"use strict";var e=r(135),i=r(48);t.exports=r(73)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=e.getEntry(i(this,"Map"),t);return n&&n.v},set:function(t,n){return e.def(i(this,"Map"),0===t?0:t,n)}},e,!0)},function(t,n,r){"use strict";var e=r(135),i=r(48);t.exports=r(73)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(i(this,"Set"),t=0===t?0:t,t)}},e)},function(t,n,r){"use strict";var e,i=r(1),o=r(28)(0),u=r(18),c=r(36),f=r(116),a=r(136),s=r(4),l=r(48),h=r(48),v=!i.ActiveXObject&&"ActiveXObject"in i,p=c.getWeak,g=Object.isExtensible,y=a.ufstore,d=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},x={get:function(t){if(s(t)){var n=p(t);return!0===n?y(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return a.def(l(this,"WeakMap"),t,n)}},m=t.exports=r(73)("WeakMap",d,x,a,!0,!0);h&&v&&(f((e=a.getConstructor(d,"WeakMap")).prototype,x),c.NEED=!0,o(["delete","has","get","set"],function(t){var n=m.prototype,r=n[t];u(n,t,function(n,i){if(s(n)&&!g(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return"set"==t?this:o}return r.call(this,n,i)})}))},function(t,n,r){"use strict";var e=r(136),i=r(48);r(73)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return e.def(i(this,"WeakSet"),t,!0)}},e,!1,!0)},function(t,n,r){"use strict";var e=r(0),i=r(74),o=r(109),u=r(3),c=r(44),f=r(9),a=r(4),s=r(1).ArrayBuffer,l=r(62),h=o.ArrayBuffer,v=o.DataView,p=i.ABV&&s.isView,g=h.prototype.slice,y=i.VIEW;e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||a(t)&&y in t}}),e(e.P+e.U+e.F*r(2)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,n){if(void 0!==g&&void 0===n)return g.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),i=c(void 0===n?r:n,r),o=new(l(this,h))(f(i-e)),a=new v(this),s=new v(o),p=0;e<i;)s.setUint8(p++,a.getUint8(e++));return o}}),r(53)("ArrayBuffer")},function(t,n,r){var e=r(0);e(e.G+e.W+e.F*!r(74).ABV,{DataView:r(109).DataView})},function(t,n,r){r(34)("Int8",1,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(34)("Uint8",1,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(34)("Uint8",1,function(t){return function(n,r,e){return t(this,n,r,e)}},!0)},function(t,n,r){r(34)("Int16",2,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(34)("Uint16",2,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(34)("Int32",4,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(34)("Uint32",4,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(34)("Float32",4,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){r(34)("Float64",8,function(t){return function(n,r,e){return t(this,n,r,e)}})},function(t,n,r){var e=r(0),i=r(31),o=r(3),u=(r(1).Reflect||{}).apply,c=Function.apply;e(e.S+e.F*!r(2)(function(){u(function(){})}),"Reflect",{apply:function(t,n,r){var e=i(t),f=o(r);return u?u(e,n,f):c.call(e,n,f)}})},function(t,n,r){var e=r(0),i=r(45),o=r(31),u=r(3),c=r(4),f=r(2),a=r(118),s=(r(1).Reflect||{}).construct,l=f(function(){function t(){}return!(s(function(){},[],t)instanceof t)}),h=!f(function(){s(function(){})});e(e.S+e.F*(l||h),"Reflect",{construct:function(t,n){o(t),u(n);var r=arguments.length<3?t:o(arguments[2]);if(h&&!l)return s(t,n,r);if(t==r){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(a.apply(t,e))}var f=r.prototype,v=i(c(f)?f:Object.prototype),p=Function.apply.call(t,v,n);return c(p)?p:v}})},function(t,n,r){var e=r(14),i=r(0),o=r(3),u=r(35);i(i.S+i.F*r(2)(function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,n,r){o(t),n=u(n,!0),o(r);try{return e.f(t,n,r),!0}catch(t){return!1}}})},function(t,n,r){var e=r(0),i=r(26).f,o=r(3);e(e.S,"Reflect",{deleteProperty:function(t,n){var r=i(o(t),n);return!(r&&!r.configurable)&&delete t[n]}})},function(t,n,r){"use strict";var e=r(0),i=r(3),o=function(t){this._t=i(t),this._i=0;var n,r=this._k=[];for(n in t)r.push(n)};r(125)(o,"Object",function(){var t,n=this._k;do{if(this._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,r){var e=r(26),i=r(47),o=r(21),u=r(0),c=r(4),f=r(3);u(u.S,"Reflect",{get:function t(n,r){var u,a,s=arguments.length<3?n:arguments[2];return f(n)===s?n[r]:(u=e.f(n,r))?o(u,"value")?u.value:void 0!==u.get?u.get.call(s):void 0:c(a=i(n))?t(a,r,s):void 0}})},function(t,n,r){var e=r(26),i=r(0),o=r(3);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(o(t),n)}})},function(t,n,r){var e=r(0),i=r(47),o=r(3);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(0),i=r(3),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{ownKeys:r(138)})},function(t,n,r){var e=r(0),i=r(3),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,r){var e=r(14),i=r(26),o=r(47),u=r(21),c=r(0),f=r(40),a=r(3),s=r(4);c(c.S,"Reflect",{set:function t(n,r,c){var l,h,v=arguments.length<4?n:arguments[3],p=i.f(a(n),r);if(!p){if(s(h=o(n)))return t(h,r,c,v);p=f(0)}if(u(p,"value")){if(!1===p.writable||!s(v))return!1;if(l=i.f(v,r)){if(l.get||l.set||!1===l.writable)return!1;l.value=c,e.f(v,r,l)}else e.f(v,r,f(0,c));return!0}return void 0!==p.set&&(p.set.call(v,c),!0)}})},function(t,n,r){var e=r(0),i=r(90);i&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){r(310),t.exports=r(16).Array.includes},function(t,n,r){"use strict";var e=r(0),i=r(64)(!0);e(e.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(52)("includes")},function(t,n,r){r(312),t.exports=r(16).String.padStart},function(t,n,r){"use strict";var e=r(0),i=r(139),o=r(72),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,r){r(314),t.exports=r(16).String.padEnd},function(t,n,r){"use strict";var e=r(0),i=r(139),o=r(72),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,r){r(316),t.exports=r(85).f("asyncIterator")},function(t,n,r){r(112)("asyncIterator")},function(t,n,r){r(318),t.exports=r(16).Object.getOwnPropertyDescriptors},function(t,n,r){var e=r(0),i=r(138),o=r(23),u=r(26),c=r(102);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r,e=o(t),f=u.f,a=i(e),s={},l=0;a.length>l;)void 0!==(r=f(e,n=a[l++]))&&c(s,n,r);return s}})},function(t,n,r){r(320),t.exports=r(16).Object.values},function(t,n,r){var e=r(0),i=r(140)(!1);e(e.S,"Object",{values:function(t){return i(t)}})},function(t,n,r){r(322),t.exports=r(16).Object.entries},function(t,n,r){var e=r(0),i=r(140)(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},function(t,n,r){"use strict";r(132),r(324),t.exports=r(16).Promise.finally},function(t,n,r){"use strict";var e=r(0),i=r(16),o=r(1),u=r(62),c=r(134);e(e.P+e.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return c(n,t()).then(function(){return r})}:t,r?function(r){return c(n,t()).then(function(){throw r})}:t)}})},function(t,n,r){r(326),r(327),r(328),t.exports=r(16)},function(t,n,r){var e=r(1),i=r(0),o=r(72),u=[].slice,c=/MSIE .\./.test(o),f=function(t){return function(n,r){var e=arguments.length>2,i=!!e&&u.call(arguments,2);return t(e?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,r)}};i(i.G+i.B+i.F*c,{setTimeout:f(e.setTimeout),setInterval:f(e.setInterval)})},function(t,n,r){var e=r(0),i=r(108);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,r){for(var e=r(105),i=r(43),o=r(18),u=r(1),c=r(22),f=r(51),a=r(6),s=a("iterator"),l=a("toStringTag"),h=f.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(v),g=0;g<p.length;g++){var y,d=p[g],x=v[d],m=u[d],b=m&&m.prototype;if(b&&(b[s]||c(b,s,h),b[l]||c(b,l,d),f[d]=h,x))for(y in e)b[y]||o(b,y,e[y],!0)}},function(t,n){!function(n){"use strict";var r,e=Object.prototype,i=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",f=o.toStringTag||"@@toStringTag",a="object"==typeof t,s=n.regeneratorRuntime;if(s)a&&(t.exports=s);else{(s=n.regeneratorRuntime=a?t.exports:{}).wrap=b;var l="suspendedStart",h="suspendedYield",v="executing",p="completed",g={},y={};y[u]=function(){return this};var d=Object.getPrototypeOf,x=d&&d(d(j([])));x&&x!==e&&i.call(x,u)&&(y=x);var m=E.prototype=w.prototype=Object.create(y);_.prototype=m.constructor=E,E.constructor=_,E[f]=_.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===_||"GeneratorFunction"===(n.displayName||n.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,f in t||(t[f]="GeneratorFunction")),t.prototype=Object.create(m),t},s.awrap=function(t){return{__await:t}},O(F.prototype),F.prototype[c]=function(){return this},s.AsyncIterator=F,s.async=function(t,n,r,e){var i=new F(b(t,n,r,e));return s.isGeneratorFunction(n)?i:i.next().then(function(t){return t.done?t.value:i.next()})},O(m),m[f]="Generator",m[u]=function(){return this},m.toString=function(){return"[object Generator]"},s.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},s.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function e(e,i){return c.type="throw",c.arg=t,n.next=e,i&&(n.method="next",n.arg=r),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],c=u.completion;if("root"===u.tryLoc)return e("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),a=i.call(u,"finallyLoc");if(f&&a){if(this.prev<u.catchLoc)return e(u.catchLoc,!0);if(this.prev<u.finallyLoc)return e(u.finallyLoc)}else if(f){if(this.prev<u.catchLoc)return e(u.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return e(u.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&i.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var o=e;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),g},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),g}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;A(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:j(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=r),g}}}function b(t,n,r,e){var i=n&&n.prototype instanceof w?n:w,o=Object.create(i.prototype),u=new I(e||[]);return o._invoke=function(t,n,r){var e=l;return function(i,o){if(e===v)throw new Error("Generator is already running");if(e===p){if("throw"===i)throw o;return N()}for(r.method=i,r.arg=o;;){var u=r.delegate;if(u){var c=P(u,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(e===l)throw e=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e=v;var f=S(t,n,r);if("normal"===f.type){if(e=r.done?p:h,f.arg===g)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(e=p,r.method="throw",r.arg=f.arg)}}}(t,r,u),o}function S(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}function w(){}function _(){}function E(){}function O(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function F(t){var n;this._invoke=function(r,e){function o(){return new Promise(function(n,o){!function n(r,e,o,u){var c=S(t[r],t,e);if("throw"!==c.type){var f=c.arg,a=f.value;return a&&"object"==typeof a&&i.call(a,"__await")?Promise.resolve(a.__await).then(function(t){n("next",t,o,u)},function(t){n("throw",t,o,u)}):Promise.resolve(a).then(function(t){f.value=t,o(f)},function(t){return n("throw",t,o,u)})}u(c.arg)}(r,e,n,o)})}return n=n?n.then(o,o):o()}}function P(t,n){var e=t.iterator[n.method];if(e===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=r,P(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=S(e,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=r),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function M(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function j(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function n(){for(;++e<t.length;)if(i.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=r,n.done=!0,n};return o.next=o}}return{next:N}}function N(){return{value:r,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())}]);
|
assets/dist/js/give.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=
|
2 |
/*!
|
3 |
* Float Labels
|
4 |
* @version: 3.3.8
|
5 |
* @author: Paul Ryley (http://geminilabs.io)
|
6 |
* @url: https://pryley.github.io/float-labels.js
|
7 |
* @license: MIT
|
8 |
-
*/!function(n,i,o){"use strict";var a=function(e,t){this.el_=this.isString_(e)?i.querySelectorAll(e):[e],this.config_=[],this.options_=t,this.selectors_=[],this.init_(),this.destroy=function(){this.loop_(function(e){e.removeEventListener("reset",this.events.reset),this.removeClasses_(e)},function(e){this.reset_(e)})},this.rebuild=function(){this.loop_(null,function(e){this.floatLabel_(e,!0)})}};a.prototype={defaults_:{customEvent:null,customLabel:null,customPlaceholder:null,exclude:".no-label",inputRegex:/email|number|password|search|tel|text|url/,prefix:"fl-",prioritize:"label",requiredClass:"required",style:0,transform:"input,select,textarea"},init_:function(){var e=this;e.initEvents_(),e.loop_(function(t,n){var r=e.config_[n].style;t.addEventListener("reset",e.events.reset),t.classList.add(e.prefixed_("form")),r&&t.classList.add(e.prefixed_("style-"+r))},function(t){e.floatLabel_(t)})},initEvents_:function(){this.events={blur:this.onBlur_.bind(this),change:this.onInput_.bind(this),focus:this.onFocus_.bind(this),input:this.onInput_.bind(this),reset:this.onReset_.bind(this)}},addRemove_:function(e){return e?"add":"remove"},build_:function(e){var t=this.getLabel_(e);t&&(e.classList.add(this.prefixed_(e.tagName.toLowerCase())),this.setLabel_(t,e),this.setPlaceholder_(t,e),this.wrapLabel_(t,e),this.handleEvents_(e,"add"),"function"==typeof this.config_[this.current_].customEvent&&this.config_[this.current_].customEvent.call(this,e))},createEl_:function(e,t){var n="string"==typeof e?i.createElement(e):e;for(var r in t=t||{})t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n},extend_:function(){var e=[].slice.call(arguments),t=e[0],n=e.slice(1);return Object.keys(n).forEach(function(e){for(var r in n[e])n[e].hasOwnProperty(r)&&(t[r]=n[e][r])}),t},floatLabel_:function(e,t){if(this.isValidField_(e)){if(this.hasParent_(e)){if(!0!==t)return;this.reset_(e)}this.build_(e)}},getLabel_:function(e){var t='label[for="'+e.getAttribute("id")+'"]',n=this.el_[this.current_].querySelectorAll(t);return n.length>1&&(n=e.parentNode.querySelectorAll(t)),1===n.length&&n[0]},getLabelText_:function(e,t){var n=e.textContent.replace("*","").trim(),r=t.getAttribute("placeholder");return(!n||n&&r&&"placeholder"===this.config_[this.current_].prioritize)&&(n=r),n},handleEvents_:function(e,t){var n=this.events;["blur","input","focus"].forEach(function(r){"input"!==r||"file"!==e.type&&"SELECT"!==e.nodeName||(r="change"),e[t+"EventListener"](r,n[r])})},hasParent_:function(e){return e.parentNode.classList.contains(this.prefixed_("wrap"))},isString_:function(e){return"[object String]"===Object.prototype.toString.call(e)},isValidField_:function(e){var t="INPUT"===e.tagName&&!this.config_[this.current_].inputRegex.test(e.getAttribute("type")),n="SELECT"===e.tagName&&null!==e.getAttribute("multiple");return e.getAttribute("id")&&!t&&!n},loop_:function(e,t){for(var n=0;n<this.el_.length;++n){if(void 0===this.selectors_[n]){var r=this.extend_({},this.defaults_,this.options_,this.el_[n].getAttribute("data-options")),i=":not("+r.exclude.split(/[\s,]+/).join("):not(")+")";this.selectors_[n]=r.transform.replace(/,/g,i+",")+i,this.config_[n]=r}var o=this.el_[n].querySelectorAll(this.selectors_[n]);this.current_=n,"function"==typeof e&&e.call(this,this.el_[n],n);for(var a=0;a<o.length;++a)"function"==typeof t&&t.call(this,o[a],n)}},onBlur_:function(e){e.target.parentNode.classList.remove(this.prefixed_("has-focus"))},onInput_:function(e){e.target.parentNode.classList[this.addRemove_(e.target.value.length)](this.prefixed_("is-active"))},onFocus_:function(e){e.target.parentNode.classList.add(this.prefixed_("has-focus"))},onReset_:function(){setTimeout(this.resetFields_.bind(this))},prefixed_:function(e){return this.config_[this.current_].prefix+e},removeClasses_:function(e){var t=this.config_[this.current_].prefix,n=e.className.split(" ").filter(function(e){return 0!==e.lastIndexOf(t,0)});e.className=n.join(" ").trim()},reset_:function(e){var t=e.parentNode;if(this.hasParent_(e)){for(var n=i.createDocumentFragment();t.firstElementChild;){var r=t.firstElementChild;this.removeClasses_(r),n.appendChild(r)}t.parentNode.replaceChild(n,t),this.resetPlaceholder_(e),this.handleEvents_(e,"remove")}},resetFields_:function(){for(var e=this.el_[this.current_].querySelectorAll(this.selectors_[this.current_]),t=0;t<e.length;++t)e[t].parentNode.classList[this.addRemove_("SELECT"===e[t].tagName&&""!==e[t].value)](this.prefixed_("is-active"))},resetPlaceholder_:function(e){var t=e.getAttribute("data-placeholder");null!==t&&(e.removeAttribute("data-placeholder"),e.setAttribute("placeholder",t))},setLabel_:function(e,t){e.classList.add(this.prefixed_("label")),e.textContent=this.getLabelText_(e,t),"function"==typeof this.config_[this.current_].customLabel&&(e.textContent=this.config_[this.current_].customLabel.call(this,e,t))},setPlaceholder_:function(e,t){var n=t.getAttribute("placeholder");"label"!==this.config_[this.current_].prioritize&&n||(n&&t.setAttribute("data-placeholder",n),n=this.getLabelText_(e,t)),"function"==typeof this.config_[this.current_].customPlaceholder&&(n=this.config_[this.current_].customPlaceholder.call(this,n,t,e)),"SELECT"===t.tagName?this.setSelectPlaceholder_(t,n):t.setAttribute("placeholder",n)},setSelectPlaceholder_:function(e,t){var n=e.firstElementChild;n.hasAttribute("value")&&n.value?(e.insertBefore(new Option(t,""),n),!1===e.options[e.selectedIndex].defaultSelected&&(e.selectedIndex=0)):n.setAttribute("value",""),""===n.textContent&&(n.textContent=t)},wrapLabel_:function(e,t){var n=this.createEl_("div",{class:this.prefixed_("wrap")+" "+this.prefixed_("wrap-"+t.tagName.toLowerCase())});void 0!==t.value&&t.value.length&&n.classList.add(this.prefixed_("is-active")),(null!==t.getAttribute("required")||t.classList.contains(this.config_[this.current_].requiredClass))&&n.classList.add(this.prefixed_("is-required")),t.parentNode.insertBefore(n,t),n.appendChild(e),n.appendChild(t)}},void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}(window,document)},134:function(e,t,n){n(135),e.exports=n(335)},135:function(e,t,n){},136:function(e,t){(function(){var e,t,n,r,i,o,a,s,l,c,u,f,d,p,m,v,g,h,y,b,_,w,C,x,k=[].slice,I=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};(e=window.jQuery||window.Zepto||window.$).payment={},e.payment.fn={},e.fn.payment=function(){var t,n;return n=arguments[0],t=2<=arguments.length?k.call(arguments,1):[],e.payment.fn[n].apply(this,t)},i=/(\d{1,4})/g,e.payment.cards=r=[{type:"maestro",patterns:[5018,502,503,506,56,58,639,6220,67],format:i,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"forbrugsforeningen",patterns:[600],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"dankort",patterns:[5019],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"visa",patterns:[4],format:i,length:[13,16],cvcLength:[3],luhn:!0},{type:"mastercard",patterns:[51,52,53,54,55,22,23,24,25,26,27],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"amex",patterns:[34,37],format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[3,4],luhn:!0},{type:"dinersclub",patterns:[30,36,38,39],format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",patterns:[60,64,65,622],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",patterns:[62,88],format:i,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"jcb",patterns:[35],format:i,length:[16],cvcLength:[3],luhn:!0}],t=function(e){var t,n,i,o,a,s,l;for(e=(e+"").replace(/\D/g,""),i=0,a=r.length;i<a;i++)for(o=0,s=(l=(t=r[i]).patterns).length;o<s;o++)if(n=l[o]+"",e.substr(0,n.length)===n)return t},n=function(e){var t,n,i;for(n=0,i=r.length;n<i;n++)if((t=r[n]).type===e)return t},d=function(e){var t,n,r,i,o,a;for(r=!0,i=0,o=0,a=(n=(e+"").split("").reverse()).length;o<a;o++)t=n[o],t=parseInt(t,10),(r=!r)&&(t*=2),t>9&&(t-=9),i+=t;return i%10==0},f=function(e){var t;return null!=e.prop("selectionStart")&&e.prop("selectionStart")!==e.prop("selectionEnd")||!(null==("undefined"!=typeof document&&null!==document&&null!=(t=document.selection)?t.createRange:void 0)||!document.selection.createRange().text)},C=function(e,t){var n,r,i,o,a;try{r=t.prop("selectionStart")}catch(e){e,r=null}if(o=t.val(),t.val(e),null!==r&&t.is(":focus"))return r===o.length&&(r=e.length),o!==e&&(a=o.slice(r-1,+r+1||9e9),n=e.slice(r-1,+r+1||9e9),i=e[r],/\d/.test(i)&&a===i+" "&&n===" "+i&&(r+=1)),t.prop("selectionStart",r),t.prop("selectionEnd",r)},h=function(e){var t,n,r,i,o,a;for(null==e&&(e=""),"0123456789","0123456789",i="",o=0,a=(t=e.split("")).length;o<a;o++)n=t[o],(r="0123456789".indexOf(n))>-1&&(n="0123456789"[r]),i+=n;return i},g=function(t){var n;return n=e(t.currentTarget),setTimeout(function(){var e;return e=n.val(),e=(e=h(e)).replace(/\D/g,""),C(e,n)})},m=function(t){var n;return n=e(t.currentTarget),setTimeout(function(){var t;return t=n.val(),t=h(t),t=e.payment.formatCardNumber(t),C(t,n)})},s=function(n){var r,i,o,a,s,l,c;if(o=String.fromCharCode(n.which),/^\d+$/.test(o)&&(r=e(n.currentTarget),c=r.val(),i=t(c+o),a=(c.replace(/\D/g,"")+o).length,l=16,i&&(l=i.length[i.length.length-1]),!(a>=l||null!=r.prop("selectionStart")&&r.prop("selectionStart")!==c.length)))return(s=i&&"amex"===i.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/).test(c)?(n.preventDefault(),setTimeout(function(){return r.val(c+" "+o)})):s.test(c+o)?(n.preventDefault(),setTimeout(function(){return r.val(c+o+" ")})):void 0},o=function(t){var n,r;if(n=e(t.currentTarget),r=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s$/.test(r)?(t.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d\s$/,""))})):/\s\d?$/.test(r)?(t.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d$/,""))})):void 0},v=function(t){var n;return n=e(t.currentTarget),setTimeout(function(){var t;return t=n.val(),t=h(t),t=e.payment.formatExpiry(t),C(t,n)})},l=function(t){var n,r,i;if(r=String.fromCharCode(t.which),/^\d+$/.test(r))return n=e(t.currentTarget),i=n.val()+r,/^\d$/.test(i)&&"0"!==i&&"1"!==i?(t.preventDefault(),setTimeout(function(){return n.val("0"+i+" / ")})):/^\d\d$/.test(i)?(t.preventDefault(),setTimeout(function(){var e,t;return e=parseInt(i[0],10),(t=parseInt(i[1],10))>2&&0!==e?n.val("0"+e+" / "+t):n.val(i+" / ")})):void 0},c=function(t){var n,r,i;if(r=String.fromCharCode(t.which),/^\d+$/.test(r))return i=(n=e(t.currentTarget)).val(),/^\d\d$/.test(i)?n.val(i+" / "):void 0},u=function(t){var n,r,i;if("/"===(i=String.fromCharCode(t.which))||" "===i)return r=(n=e(t.currentTarget)).val(),/^\d$/.test(r)&&"0"!==r?n.val("0"+r+" / "):void 0},a=function(t){var n,r;if(n=e(t.currentTarget),r=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s\/\s$/.test(r)?(t.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d\s\/\s$/,""))})):void 0},p=function(t){var n;return n=e(t.currentTarget),setTimeout(function(){var e;return e=n.val(),e=(e=h(e)).replace(/\D/g,"").slice(0,4),C(e,n)})},w=function(e){var t;return!(!e.metaKey&&!e.ctrlKey)||32!==e.which&&(0===e.which||(e.which<33||(t=String.fromCharCode(e.which),!!/[\d\s]/.test(t))))},b=function(n){var r,i,o,a;if(r=e(n.currentTarget),o=String.fromCharCode(n.which),/^\d+$/.test(o)&&!f(r))return a=(r.val()+o).replace(/\D/g,""),(i=t(a))?a.length<=i.length[i.length.length-1]:a.length<=16},_=function(t){var n,r;if(n=e(t.currentTarget),r=String.fromCharCode(t.which),/^\d+$/.test(r)&&!f(n))return!((n.val()+r).replace(/\D/g,"").length>6)&&void 0},y=function(t){var n,r;if(n=e(t.currentTarget),r=String.fromCharCode(t.which),/^\d+$/.test(r)&&!f(n))return(n.val()+r).length<=4},x=function(t){var n,i,o,a,s;if(s=(n=e(t.currentTarget)).val(),a=e.payment.cardType(s)||"unknown",!n.hasClass(a))return i=function(){var e,t,n;for(n=[],e=0,t=r.length;e<t;e++)o=r[e],n.push(o.type);return n}(),n.removeClass("unknown"),n.removeClass(i.join(" ")),n.addClass(a),n.toggleClass("identified","unknown"!==a),n.trigger("payment.cardType",a)},e.payment.fn.formatCardCVC=function(){return this.on("keypress",w),this.on("keypress",y),this.on("paste",p),this.on("change",p),this.on("input",p),this},e.payment.fn.formatCardExpiry=function(){return this.on("keypress",w),this.on("keypress",_),this.on("keypress",l),this.on("keypress",u),this.on("keypress",c),this.on("keydown",a),this.on("change",v),this.on("input",v),this},e.payment.fn.formatCardNumber=function(){return this.on("keypress",w),this.on("keypress",b),this.on("keypress",s),this.on("keydown",o),this.on("keyup",x),this.on("paste",m),this.on("change",m),this.on("input",m),this.on("input",x),this},e.payment.fn.restrictNumeric=function(){return this.on("keypress",w),this.on("paste",g),this.on("change",g),this.on("input",g),this},e.payment.fn.cardExpiryVal=function(){return e.payment.cardExpiryVal(e(this).val())},e.payment.cardExpiryVal=function(e){var t,n,r;return t=(r=e.split(/[\s\/]+/,2))[0],2===(null!=(n=r[1])?n.length:void 0)&&/^\d+$/.test(n)&&(n=(new Date).getFullYear().toString().slice(0,2)+n),{month:t=parseInt(t,10),year:n=parseInt(n,10)}},e.payment.validateCardNumber=function(e){var n,r;return e=(e+"").replace(/\s+|-/g,""),!!/^\d+$/.test(e)&&(!!(n=t(e))&&(r=e.length,I.call(n.length,r)>=0&&(!1===n.luhn||d(e))))},e.payment.validateCardExpiry=function(t,n){var r,i,o;return"object"==typeof t&&"month"in t&&(t=(o=t).month,n=o.year),!(!t||!n)&&(t=e.trim(t),n=e.trim(n),!!/^\d+$/.test(t)&&(!!/^\d+$/.test(n)&&(1<=t&&t<=12&&(2===n.length&&(n=n<70?"20"+n:"19"+n),4===n.length&&(i=new Date(n,t),r=new Date,i.setMonth(i.getMonth()-1),i.setMonth(i.getMonth()+1,1),i>r)))))},e.payment.validateCardCVC=function(t,r){var i,o;return t=e.trim(t),!!/^\d+$/.test(t)&&(null!=(i=n(r))?(o=t.length,I.call(i.cvcLength,o)>=0):t.length>=3&&t.length<=4)},e.payment.cardType=function(e){var n;return e&&(null!=(n=t(e))?n.type:void 0)||null},e.payment.formatCardNumber=function(n){var r,i,o,a;return n=n.replace(/\D/g,""),(r=t(n))?(o=r.length[r.length.length-1],n=n.slice(0,o),r.format.global?null!=(a=n.match(r.format))?a.join(" "):void 0:null!=(i=r.format.exec(n))?(i.shift(),(i=e.grep(i,function(e){return e})).join(" ")):void 0):n},e.payment.formatExpiry=function(e){var t,n,r,i;return(n=e.match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/))?(t=n[1]||"",r=n[2]||"",(i=n[3]||"").length>0?r=" / ":" /"===r?(t=t.substring(0,1),r=""):2===t.length||r.length>0?r=" / ":1===t.length&&"0"!==t&&"1"!==t&&(t="0"+t,r=" / "),t+r+i):""}}).call(this)},137:function(e,t,n){var r=n(30);n(138);var i=n(140),o={transitionDelay:250,blockWith:function(e){var t=r.Deferred(),n=this,a=i(arguments).rest(),s=i(a).first();return s&&s.preventDefault&&s.preventDefault(),r.blockUI({message:null}),setTimeout(function(){var o=e.apply(n,a);i(o).isObject()&&i(o.always).isFunction()?o.always(function(){r.unblockUI()}).then(t.resolve,t.reject):r.unblockUI()},o.transitionDelay),t.promise()},makeBlocked:function(e){return i.wrap(e,o.blockWith)}};e.exports=o},138:function(e,t,n){var r,i,o;
|
9 |
/*!
|
10 |
* jQuery blockUI plugin
|
11 |
* Version 2.70.0-2014.11.23
|
@@ -18,7 +18,7 @@
|
|
18 |
* http://www.gnu.org/licenses/gpl.html
|
19 |
*
|
20 |
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
|
21 |
-
*/!function(){"use strict";function a(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),r=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,n,r,i){var o=e('<div class="growlUI"></div>');t&&o.append("<h1>"+t+"</h1>"),n&&o.append("<h2>"+n+"</h2>"),void 0===r&&(r=3e3);var a=function(t){t=t||{},e.blockUI({message:o,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};a();o.css("opacity");o.mouseover(function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){l(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var o=null,a=[];function s(s,c){var f,m,v=s==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),f=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),m=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,v&&o&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var h=g.jquery?g[0]:g,y={};e(s).data("blockUI.history",y),y.el=h,y.parent=h.parentNode,y.display=h.style.display,y.position=h.style.position,y.parent&&y.parent.removeChild(h)}e(s).data("blockUI.onUnblock",c.onUnblock);var b,_,w,C,x=c.baseZ;b=n||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),_=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&v?(C='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||" ")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):c.theme?(C='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||" ")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):C=v?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',w=e(C),g&&(c.theme?(w.css(m),w.addClass("ui-widget-content")):w.css(f)),c.theme||_.css(c.overlayCSS),_.css("position",v?"fixed":"absolute"),(n||c.forceIframe)&&b.css("opacity",0);var k=[b,_,w],I=e(v?"body":s);e.each(k,function(){this.appendTo(I)}),c.theme&&c.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var j=i&&(!e.support.boxModel||e("object,embed",v?null:s).length>0);if(r||j){if(v&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(r||!e.support.boxModel)&&!v)var S=p(s,"borderTopWidth"),E=p(s,"borderLeftWidth"),O=S?"(0 - "+S+")":0,G=E?"(0 - "+E+")":0;e.each(k,function(e,t){var n=t[0].style;if(n.position="absolute",e<2)v?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),v?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),G&&n.setExpression("left",G),O&&n.setExpression("top",O);else if(c.centerY)v&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!c.centerY&&v){var r="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';n.setExpression("top",r)}})}if(g&&(c.theme?w.find(".ui-widget-content").append(g):w.append(g),(g.jquery||g.nodeType)&&e(g).show()),(n||c.forceIframe)&&c.showOverlay&&b.show(),c.fadeIn){var A=c.onBlock?c.onBlock:t,T=c.showOverlay&&!g?A:t,M=g?A:t;c.showOverlay&&_._fadeIn(c.fadeIn,T),g&&w._fadeIn(c.fadeIn,M)}else c.showOverlay&&_.show(),g&&w.show(),c.onBlock&&c.onBlock.bind(w)();if(u(1,s,c),v?(o=w[0],a=e(c.focusableElements,o),c.focusInput&&setTimeout(d,20)):function(e,t,n){var r=e.parentNode,i=e.style,o=(r.offsetWidth-e.offsetWidth)/2-p(r,"borderLeftWidth"),a=(r.offsetHeight-e.offsetHeight)/2-p(r,"borderTopWidth");t&&(i.left=o>0?o+"px":"0");n&&(i.top=a>0?a+"px":"0")}(w[0],c.centerX,c.centerY),c.timeout){var P=setTimeout(function(){v?e.unblockUI(c):e(s).unblock(c)},c.timeout);e(s).data("blockUI.timeout",P)}}}function l(t,n){var r,i,s=t==window,l=e(t),f=l.data("blockUI.history"),d=l.data("blockUI.timeout");d&&(clearTimeout(d),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),u(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),i=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(i.length>1&&(i[1].style.cursor=n.cursorReset),i.length>2&&(i[2].style.cursor=n.cursorReset)),s&&(o=a=null),n.fadeOut?(r=i.length,i.stop().fadeOut(n.fadeOut,function(){0==--r&&c(i,f,n,t)})):c(i,f,n,t)}function c(t,n,r,i){var o=e(i);if(!o.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof r.onUnblock&&r.onUnblock(i,r);var a=e(document.body),s=a.width(),l=a[0].style.width;a.width(s-1).width(s),a[0].style.width=l}}function u(t,n,r){var i=n==window,a=e(n);if((t||(!i||o)&&(i||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),i&&r.bindEvents&&(!t||r.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,r,f):e(document).unbind(s,f)}}function f(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&o&&t.data.constrainTabKey){var n=a,r=!t.shiftKey&&t.target===n[n.length-1],i=t.shiftKey&&t.target===n[0];if(r||i)return setTimeout(function(){d(i)},10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function d(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function p(t,n){return parseInt(e.css(t,n),10)||0}}n(139).jQuery?(i=[n(30)],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)):a(jQuery)}()},139:function(e,t){(function(t){e.exports=t}).call(this,{})},140:function(e,t,n){(function(e,n){var r;!function(){var i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},o=i._,a=Array.prototype,s=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,u=a.slice,f=s.toString,d=s.hasOwnProperty,p=Array.isArray,m=Object.keys,v=Object.create,g=function(){},h=function(e){return e instanceof h?e:this instanceof h?void(this._wrapped=e):new h(e)};t.nodeType?i._=h:(!n.nodeType&&n.exports&&(t=n.exports=h),t._=h),h.VERSION="1.9.1";var y,b=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}},_=function(e,t,n){return h.iteratee!==y?h.iteratee(e,t):null==e?h.identity:h.isFunction(e)?b(e,t,n):h.isObject(e)&&!h.isArray(e)?h.matcher(e):h.property(e)};h.iteratee=y=function(e,t){return _(e,t,1/0)};var w=function(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}},C=function(e){if(!h.isObject(e))return{};if(v)return v(e);g.prototype=e;var t=new g;return g.prototype=null,t},x=function(e){return function(t){return null==t?void 0:t[e]}},k=function(e,t){return null!=e&&d.call(e,t)},I=function(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0},j=Math.pow(2,53)-1,S=x("length"),E=function(e){var t=S(e);return"number"==typeof t&&t>=0&&t<=j};h.each=h.forEach=function(e,t,n){var r,i;if(t=b(t,n),E(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=h.keys(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e},h.map=h.collect=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o};var O=function(e){return function(t,n,r,i){var o=arguments.length>=3;return function(t,n,r,i){var o=!E(t)&&h.keys(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var l=o?o[s]:s;r=n(r,t[l],l,t)}return r}(t,b(n,i,4),r,o)}};h.reduce=h.foldl=h.inject=O(1),h.reduceRight=h.foldr=O(-1),h.find=h.detect=function(e,t,n){var r=(E(e)?h.findIndex:h.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},h.filter=h.select=function(e,t,n){var r=[];return t=_(t,n),h.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},h.reject=function(e,t,n){return h.filter(e,h.negate(_(t)),n)},h.every=h.all=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0},h.some=h.any=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1},h.contains=h.includes=h.include=function(e,t,n,r){return E(e)||(e=h.values(e)),("number"!=typeof n||r)&&(n=0),h.indexOf(e,t,n)>=0},h.invoke=w(function(e,t,n){var r,i;return h.isFunction(t)?i=t:h.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),h.map(e,function(e){var o=i;if(!o){if(r&&r.length&&(e=I(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})}),h.pluck=function(e,t){return h.map(e,h.property(t))},h.where=function(e,t){return h.filter(e,h.matcher(t))},h.findWhere=function(e,t){return h.find(e,h.matcher(t))},h.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=E(e)?e:h.values(e)).length;s<l;s++)null!=(r=e[s])&&r>o&&(o=r);else t=_(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},h.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=E(e)?e:h.values(e)).length;s<l;s++)null!=(r=e[s])&&r<o&&(o=r);else t=_(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},h.shuffle=function(e){return h.sample(e,1/0)},h.sample=function(e,t,n){if(null==t||n)return E(e)||(e=h.values(e)),e[h.random(e.length-1)];var r=E(e)?h.clone(e):h.values(e),i=S(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=h.random(a,o),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,t)},h.sortBy=function(e,t,n){var r=0;return t=_(t,n),h.pluck(h.map(e,function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var G=function(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=_(r,i),h.each(n,function(t,i){var a=r(t,i,n);e(o,t,a)}),o}};h.groupBy=G(function(e,t,n){k(e,n)?e[n].push(t):e[n]=[t]}),h.indexBy=G(function(e,t,n){e[n]=t}),h.countBy=G(function(e,t,n){k(e,n)?e[n]++:e[n]=1});var A=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;h.toArray=function(e){return e?h.isArray(e)?u.call(e):h.isString(e)?e.match(A):E(e)?h.map(e,h.identity):h.values(e):[]},h.size=function(e){return null==e?0:E(e)?e.length:h.keys(e).length},h.partition=G(function(e,t,n){e[n?0:1].push(t)},!0),h.first=h.head=h.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:h.initial(e,e.length-t)},h.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},h.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:h.rest(e,Math.max(0,e.length-t))},h.rest=h.tail=h.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},h.compact=function(e){return h.filter(e,Boolean)};var T=function(e,t,n,r){for(var i=(r=r||[]).length,o=0,a=S(e);o<a;o++){var s=e[o];if(E(s)&&(h.isArray(s)||h.isArguments(s)))if(t)for(var l=0,c=s.length;l<c;)r[i++]=s[l++];else T(s,t,n,r),i=r.length;else n||(r[i++]=s)}return r};h.flatten=function(e,t){return T(e,t,!1)},h.without=w(function(e,t){return h.difference(e,t)}),h.uniq=h.unique=function(e,t,n,r){h.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=_(n,r));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var l=e[a],c=n?n(l,a,e):l;t&&!n?(a&&o===c||i.push(l),o=c):n?h.contains(o,c)||(o.push(c),i.push(l)):h.contains(i,l)||i.push(l)}return i},h.union=w(function(e){return h.uniq(T(e,!0,!0))}),h.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=S(e);r<i;r++){var o=e[r];if(!h.contains(t,o)){var a;for(a=1;a<n&&h.contains(arguments[a],o);a++);a===n&&t.push(o)}}return t},h.difference=w(function(e,t){return t=T(t,!0,!0),h.filter(e,function(e){return!h.contains(t,e)})}),h.unzip=function(e){for(var t=e&&h.max(e,S).length||0,n=Array(t),r=0;r<t;r++)n[r]=h.pluck(e,r);return n},h.zip=w(h.unzip),h.object=function(e,t){for(var n={},r=0,i=S(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n};var M=function(e){return function(t,n,r){n=_(n,r);for(var i=S(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}};h.findIndex=M(1),h.findLastIndex=M(-1),h.sortedIndex=function(e,t,n,r){for(var i=(n=_(n,r,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o};var P=function(e,t,n){return function(r,i,o){var a=0,s=S(r);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(u.call(r,a,s),h.isNaN))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}};h.indexOf=P(1,h.findIndex,h.sortedIndex),h.lastIndexOf=P(-1,h.findLastIndex),h.range=function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i},h.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(u.call(e,r,r+=t));return n};var L=function(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=C(e.prototype),a=e.apply(o,i);return h.isObject(a)?a:o};h.bind=w(function(e,t,n){if(!h.isFunction(e))throw new TypeError("Bind must be called on a function");var r=w(function(i){return L(e,r,t,this,n.concat(i))});return r}),h.partial=w(function(e,t){var n=h.partial.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return L(e,r,this,this,a)};return r}),h.partial.placeholder=h,h.bindAll=w(function(e,t){var n=(t=T(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=h.bind(e[r],e)}}),h.memoize=function(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return k(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n},h.delay=w(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),h.defer=h.partial(h.delay,h,1),h.throttle=function(e,t,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:h.now(),r=null,a=e.apply(i,o),r||(i=o=null)},c=function(){var c=h.now();s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c},h.debounce=function(e,t,n){var r,i,o=function(t,n){r=null,n&&(i=e.apply(t,n))},a=w(function(a){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(o,t),s&&(i=e.apply(this,a))}else r=h.delay(o,t,this,a);return i});return a.cancel=function(){clearTimeout(r),r=null},a},h.wrap=function(e,t){return h.partial(t,e)},h.negate=function(e){return function(){return!e.apply(this,arguments)}},h.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},h.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},h.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},h.once=h.partial(h.before,2),h.restArguments=w;var N=!{toString:null}.propertyIsEnumerable("toString"),Q=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(e,t){var n=Q.length,r=e.constructor,i=h.isFunction(r)&&r.prototype||s,o="constructor";for(k(e,o)&&!h.contains(t,o)&&t.push(o);n--;)(o=Q[n])in e&&e[o]!==i[o]&&!h.contains(t,o)&&t.push(o)};h.keys=function(e){if(!h.isObject(e))return[];if(m)return m(e);var t=[];for(var n in e)k(e,n)&&t.push(n);return N&&B(e,t),t},h.allKeys=function(e){if(!h.isObject(e))return[];var t=[];for(var n in e)t.push(n);return N&&B(e,t),t},h.values=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},h.mapObject=function(e,t,n){t=_(t,n);for(var r=h.keys(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o},h.pairs=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},h.invert=function(e){for(var t={},n=h.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},h.functions=h.methods=function(e){var t=[];for(var n in e)h.isFunction(e[n])&&t.push(n);return t.sort()};var z=function(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,l=0;l<s;l++){var c=a[l];t&&void 0!==n[c]||(n[c]=o[c])}return n}};h.extend=z(h.allKeys),h.extendOwn=h.assign=z(h.keys),h.findKey=function(e,t,n){t=_(t,n);for(var r,i=h.keys(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r};var U,F,D=function(e,t,n){return t in n};h.pick=w(function(e,t){var n={},r=t[0];if(null==e)return n;h.isFunction(r)?(t.length>1&&(r=b(r,t[1])),t=h.allKeys(e)):(r=D,t=T(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n}),h.omit=w(function(e,t){var n,r=t[0];return h.isFunction(r)?(r=h.negate(r),t.length>1&&(n=t[1])):(t=h.map(T(t,!1,!1),String),r=function(e,n){return!h.contains(t,n)}),h.pick(e,r,n)}),h.defaults=z(h.allKeys,!0),h.create=function(e,t){var n=C(e);return t&&h.extendOwn(n,t),n},h.clone=function(e){return h.isObject(e)?h.isArray(e)?e.slice():h.extend({},e):e},h.tap=function(e,t){return t(e),e},h.isMatch=function(e,t){var n=h.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&F(e,t,n,r)},F=function(e,t,n,r){e instanceof h&&(e=e._wrapped),t instanceof h&&(t=t._wrapped);var i=f.call(e);if(i!==f.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(h.isFunction(a)&&a instanceof a&&h.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),o){if((c=e.length)!==t.length)return!1;for(;c--;)if(!U(e[c],t[c],n,r))return!1}else{var u,d=h.keys(e);if(c=d.length,h.keys(t).length!==c)return!1;for(;c--;)if(u=d[c],!k(t,u)||!U(e[u],t[u],n,r))return!1}return n.pop(),r.pop(),!0},h.isEqual=function(e,t){return U(e,t)},h.isEmpty=function(e){return null==e||(E(e)&&(h.isArray(e)||h.isString(e)||h.isArguments(e))?0===e.length:0===h.keys(e).length)},h.isElement=function(e){return!(!e||1!==e.nodeType)},h.isArray=p||function(e){return"[object Array]"===f.call(e)},h.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},h.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){h["is"+e]=function(t){return f.call(t)==="[object "+e+"]"}}),h.isArguments(arguments)||(h.isArguments=function(e){return k(e,"callee")});var V=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof V&&(h.isFunction=function(e){return"function"==typeof e||!1}),h.isFinite=function(e){return!h.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},h.isNaN=function(e){return h.isNumber(e)&&isNaN(e)},h.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===f.call(e)},h.isNull=function(e){return null===e},h.isUndefined=function(e){return void 0===e},h.has=function(e,t){if(!h.isArray(t))return k(e,t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(null==e||!d.call(e,i))return!1;e=e[i]}return!!n},h.noConflict=function(){return i._=o,this},h.identity=function(e){return e},h.constant=function(e){return function(){return e}},h.noop=function(){},h.property=function(e){return h.isArray(e)?function(t){return I(t,e)}:x(e)},h.propertyOf=function(e){return null==e?function(){}:function(t){return h.isArray(t)?I(e,t):e[t]}},h.matcher=h.matches=function(e){return e=h.extendOwn({},e),function(t){return h.isMatch(t,e)}},h.times=function(e,t,n){var r=Array(Math.max(0,e));t=b(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},h.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},h.now=Date.now||function(){return(new Date).getTime()};var q={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},H=h.invert(q),R=function(e){var t=function(t){return e[t]},n="(?:"+h.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};h.escape=R(q),h.unescape=R(H),h.result=function(e,t,n){h.isArray(t)||(t=[t]);var r=t.length;if(!r)return h.isFunction(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=h.isFunction(o)?o.call(e):o}return e};var $=0;h.uniqueId=function(e){var t=++$+"";return e?e+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var W=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Z=/\\|'|\r|\n|\u2028|\u2029/g,Y=function(e){return"\\"+K[e]};h.template=function(e,t,n){!t&&n&&(t=n),t=h.defaults({},t,h.templateSettings);var r,i=RegExp([(t.escape||W).source,(t.interpolate||W).source,(t.evaluate||W).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(i,function(t,n,r,i,s){return a+=e.slice(o,s).replace(Z,Y),o=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return r.call(this,e,h)},l=t.variable||"obj";return s.source="function("+l+"){\n"+a+"}",s},h.chain=function(e){var t=h(e);return t._chain=!0,t};var J=function(e,t){return e._chain?h(t).chain():t};h.mixin=function(e){return h.each(h.functions(e),function(t){var n=h[t]=e[t];h.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),J(this,n.apply(h,e))}}),h},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=a[e];h.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],J(this,n)}}),h.each(["concat","join","slice"],function(e){var t=a[e];h.prototype[e]=function(){return J(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},h.prototype.valueOf=h.prototype.toJSON=h.prototype.value,h.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return h}.apply(t,[]))||(n.exports=r)}()}).call(this,n(40),n(141)(e))},141:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},142:function(e,t){jQuery(function(e){var t=jQuery("form.give-form"),n=e(document);e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),n.on("change","#give_cc_address input.card_state, #give_cc_address select",function(){var t=e(this),r=t.parents("form");if("card_state"!==t.attr("id")){r.find("#card_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var i={action:"give_get_states",country:t.val(),field_name:"card_state"};e.ajax({type:"POST",data:i,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var t="",i=e.states_label;if(t=void 0!==e.states_found&&!0===e.states_found?e.data:`<input type="text" id="card_state" name="card_state" class="cart-state give-input required" placeholder="${i}" value="${e.default_state}" autocomplete="address-level4"/>`,!1===r.hasClass("float-labels-enabled")){void 0!==e.states_require&&!0===e.states_require?r.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").removeClass("give-hidden"):r.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").addClass("give-hidden");var o=r.find('input[name="card_city"]');void 0!==e.city_require&&!0===e.city_require?(o.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),o.attr("required",!0)):(o.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),o.removeAttr("required"))}else r.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label").text(i);r.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .state-label-text").text(i),r.find('input[name="card_state"], select[name="card_state"]').replaceWith(t),void 0!==e.show_field&&!0===e.show_field?(r.find("p#give-card-state-wrap").removeClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-last"),r.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(r.find("p#give-card-state-wrap").addClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-wide"),r.find("p#give-card-zip-wrap").removeClass("form-row-last")),n.trigger("give_checkout_billing_address_updated",[e,r.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}),n.on("give_gateway_loaded",function(){Give.form.fn.field.formatCreditCard(t)}),n.on("submit","#give_payment_mode",function(){if(!Give.form.fn.getGateway(e(this).closest("form")).length)return alert(Give.fn.getGlobalVar("no_gateway")),!1}),n.on("click","#give-payment-mode-select input",function(){var t,n=e(this).parents("form"),r=n.find("#give-payment-mode-select li"),i=n.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();r.removeClass("give-gateway-option-selected"),r.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),t=Give.form.fn.getGateway(n),n.attr("action",n.attr("action").replace("payment-mode="+i,"payment-mode="+t))}),n.on("focus",".give-donation-amount .give-text-input",function(t){var n=e(this).parents("form");e(this).removeClass("invalid-amount");var r=n.find(".give-final-total-amount").attr("data-total"),i=Give.form.fn.getInfo("decimal_separator",n);e(this).attr("data-amount",Give.fn.unFormatCurrency(r,i)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),n.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),n.find(".give-btn-level-custom").addClass("give-default-level"),n.find(".give-radio-input").prop("checked",!1),n.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),n.find(".give-select-level").prop("selected",!1),n.find(".give-select-level .give-donation-level-custom").prop("selected",!0)}),n.on("blur",".give-donation-amount .give-text-input",function(t,n,r,i){let o=void 0!==n?n:e(this).closest("form"),a=e(this).attr("data-amount"),s=void 0!==r?r:e(this).val(),l=Give.form.fn.getInfo("decimal_separator",o),c=Give.form.fn.getMinimumAmount(o),u=Give.form.fn.getMaximumAmount(o),f=0===s?c:Give.fn.unFormatCurrency(s,l),d=Give.form.fn.formatAmount(f,o,{});if(i=void 0===i?Give.form.fn.getPriceID(o,!0):i,""===f||0===f){let t=e('.give-donation-levels-wrap [data-default="1"]',n);t.length&&(i=t.data("price-id"),s=f=Give.fn.unFormatCurrency(t.val(),l),d=Give.form.fn.formatAmount(f,o,{}))}if(Give.fn.setCache("amount_"+f,i,o),e(this).val(d),Give.form.fn.isValidDonationAmount(o))e(this).removeClass("give-invalid-amount"),o.find(".give-invalid-minimum, .give-invalid-maximum").slideUp(300,function(){e(this).remove()}),Give.form.fn.disable(o,!1);else{e(this).addClass("give-invalid-amount"),Give.form.fn.disable(o,!0);let t=o.find(".give-invalid-minimum"),n=o.find(".give-invalid-maximum");0===t.length&&f<c?Give.notice.fn.renderNotice("bad_minimum",o):f>=c&&t.slideUp(300,function(){e(this).remove()}),0===n.length&&f>u?Give.notice.fn.renderNotice("bad_maximum",o):f<=u&&n.slideUp(300,function(){e(this).remove()})}a!==f&&o.find(".give-final-total-amount").attr("data-total",f).text(Give.fn.formatCurrency(f,{symbol:Give.form.fn.getInfo("currency_symbol",o),position:Give.form.fn.getInfo("currency_position",o)},o)),-1!==i&&(e('input[name="give-price-id"]',o).val(i),o.find(".give-amount-hidden").val(Give.form.fn.formatAmount(f,o,{})),o.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(o,i)),e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in"),e(document).trigger("give_donation_value_updated",[o,f,i])}),n.on("click touchend",".give-donation-level-btn",function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click touchend",".give-radio-input-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("change",".give-select-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click",".give_terms_links",function(t){t.preventDefault();var n=e(this).closest("fieldset");return e("[class^=give_terms-]",n).slideToggle(),e("a.give_terms_links",n).toggle(),!1}),e('label[for^="give-radio-level"]').on("click",function(t){var n=e(this).closest("form").find("#"+e(this).attr("for"));n.length&&(n.trigger("click"),t.preventDefault())})}),jQuery(window).on("load",function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",function(e){var t=jQuery(this),n=t.parents("form.give-form"),r=t.attr("id"),i=n.find(".card-number"),o=n.find(".card-cvc"),a=n.find(".card-expiry"),s=jQuery.payment.cardType(i.val()),l=!1;switch(e.type){case"focusout":r.indexOf("card_number")>-1?(l=!jQuery.payment.validateCardNumber(i.val()),i.toggleError(l)):r.indexOf("card_cvc")>-1?(l=!jQuery.payment.validateCardCVC(o.val(),s),o.toggleError(l)):r.indexOf("card_expiry")>-1&&(l=!jQuery.payment.validateCardExpiry(a.payment("cardExpiryVal")),a.toggleError(l)),Give.form.fn.disable(t.parents("form"),l);break;default:if(t.hasClass("error")&&t.removeClass("error"),r.indexOf("card_number")>-1){var c=n.find(".card-type");null===s?(c.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):c.removeClass().addClass("card-type "+s)}else if(r.indexOf("card_expiry")>-1){var u=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(u.month),n.find(".card-expiry-year").val(u.year)}}})})},143:function(e,t){function n(e,t){var n=jQuery(e).find("#give-payment-mode-select .give-loading-text"),r=jQuery(e).find("#give-amount").val(),i=jQuery(e).find('input[name="give-form-id"]').val(),o=jQuery(e).find('input[name="give-form-id-prefix"]').val();n.fadeIn(),1!=jQuery(e).data()["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),jQuery.post(Give.fn.getGlobalVar("ajaxurl")+"?payment-mode="+t,{action:"give_load_gateway",give_total:r,give_form_id:i,give_form_id_prefix:o,give_payment_mode:t,nonce:Give.form.fn.getNonce(e)},function(t){jQuery(e).unblock(),jQuery(e).find("#give_purchase_form_wrap").html(t),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),jQuery(document).trigger("give_gateway_loaded",[t,jQuery(e).attr("id")])})}
|
22 |
/*!
|
23 |
* Give AJAX JS
|
24 |
*
|
@@ -28,10 +28,10 @@
|
|
28 |
* @copyright: Copyright (c) 2016, GiveWP
|
29 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
30 |
*/
|
31 |
-
jQuery(document).ready(function(e){Give.form.fn.isFormExist()&&(e(".give-loading-text").hide(),e(".give-form").each(function(e,t){let n,r,i,o;t=jQuery(t),(n=Give.form.fn.getNonceInfo(t)).el.attr("data-donor-session")&&(!n.createdInDonorSession&&!Give.donor.fn.hasSession(t)||Give.donor.fn.isLoggedIn())||Give.form.fn.resetAllNonce(t),o=0>(o=(r=1e3*(parseInt(n.el.data("time"))+parseInt(n.el.data("nonce-life"))))-(i=Date.now()))?o:o+100,window.setTimeout(function(){Give.form.fn.resetAllNonce(t)},o)})),e(document).on("click",".give-checkout-login",function(t){var n=e(this),r=e(this).parents("form"),i=e(r).find('[id^="give-checkout-login-register"] .give-loading-text'),o={action:n.data("action"),form_id:e(r).find('[name="give-form-id"]').val()};return i.show(),e.post(Give.fn.getGlobalVar("ajaxurl"),o,function(t){e(r).find("[id^=give-checkout-login-register]").html(t),e(r).find(".give-submit-button-wrap").hide()}).done(function(){i.hide(),give_fl_trigger()}),!1}),e(document).on("click",".give-checkout-register-cancel",function(t){t.preventDefault();var n=e(this),r=e(this).parents("form"),i={action:n.data("action"),form_id:e(r).find('[name="give-form-id"]').val()};e.post(Give.fn.getGlobalVar("ajaxurl"),i,function(t){e(r).find("[id^=give-checkout-login-register]").html(e.parseJSON(t.fields)),e(r).find(".give-submit-button-wrap").show()}).done(function(){give_fl_trigger()})}),e(document).on("click","[id^=give-login-fields] input[type=submit]",function(t){t.preventDefault();var r=e(this).val(),i=e(this).parents("form");e(this).val(Give.fn.getGlobalVar("purchase_loading")),i.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var o={action:"give_process_donation_login",give_ajax:1,give_user_login:i.find("[name=give_user_login]").val(),give_user_pass:i.find("[name=give_user_pass]").val(),give_form_id:i.find("[name=give-form-id]").val()};e.post(Give.fn.getGlobalVar("ajaxurl"),o,function(t){null!=e.trim(typeof t.success)&&1==t.success&&null!=typeof t.data?(i.find(".give_errors").remove(),i.find("#give-payment-mode-select").after(t.data),i.find(".give_notices.give_errors").delay(5e3).slideUp(),Give.form.fn.resetAllNonce(i).then(e=>{n(i,i.find(".give-gateway-option-selected input").val())})):(i.find("[id^=give-login-fields] input[type=submit]").val(r),i.find(".give-loading-animation").fadeOut(),i.find(".give_errors").remove(),i.find("[id^=give-user-login-submit]").before(t.data))})}),e("select#give-gateway, input.give-gateway").on("change",function(t){t.preventDefault();var r=e(this).val();return"0"==r?(console.log("There was a problem loading the selected gateway"),!1):(n(e(this).parents("form"),r),!1)}),e("body").on("click","#give-confirm-email-btn",function(t){var n=e(this),r={action:"give_confirm_email_for_donations_access",email:n.data("email"),nonce:Give.fn.getGlobalVar("ajax_vars").ajaxNonce};return n.text(Give.fn.getGlobalVar("loading")),n.attr("disabled","disabled"),e.post(Give.fn.getGlobalVar("ajaxurl"),r,function(e){"error"===(e=JSON.parse(e)).status?(n.closest("#give_user_history tfoot").hide(),n.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message)):"success"===e.status&&(n.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message),n.hide(),n.closest(".give-security-button-wrap").find("span").show())}),!1}),e("body").on("click touchend",'form.give-form input[name="give-purchase"].give-submit',function(t){var n=e(this),r=n.parents("form.give-form"),i=r.find('input[type="submit"].give-submit + .give-loading-animation');i.fadeIn();var o=r.get(0);if("function"!=typeof o.checkValidity||!1!==o.checkValidity()||(i.fadeOut(),!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")))){t.preventDefault();var a=e(this).val();e(this).val(Give.fn.getGlobalVar("purchase_loading")),Give.form.fn.disable(r,!0),e.post(Give.fn.getGlobalVar("ajaxurl"),r.serialize()+"&action=give_process_donation&give_ajax=true",function(t){"success"==e.trim(t)?(r.find(".give_errors").remove(),e(o).submit(),r.trigger("give_form_validation_passed")):(n.val(a),i.fadeOut(),r.find(".give_errors").remove(),r.find('#give_purchase_submit input[type="submit"].give-submit').before(t),Give.form.fn.disable(r,!1))})}});const t=document.getElementById("give-receipt");if(t){let n={action:"get_receipt",shortcode_atts:t.getAttribute("data-shortcode"),donation_id:t.getAttribute("data-donation-key"),receipt_type:t.getAttribute("data-receipt-type")};n[Give.fn.getGlobalVar("session_cookie_name")]=Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name")),e.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"GET",data:n,success:function(e){t.innerHTML=e}})}})},30:function(e,t){e.exports=jQuery},335:function(e,t,n){"use strict";n.r(t);n(136),n(66),n(137),n(48),n(68);var r=n(47),i=(n(142),n(143),n(101)),o=n.n(i);jQuery(function(e){var t=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),e(".js-give-grid-modal-launcher").magnificPopup({type:"inline",fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide give-modal"}),void 0!==window.csGlobal&&window.jQuery(function(e){window.csGlobal.csHooks.filter("hash_scrolling_allow",function(t,n){return!e(n).hasClass("give-card")&&t})}),t.on("click touchend",".give-disabled",function(e){return e.preventDefault(),!1}),t.on("give_gateway_loaded",function(e,t,n){give_fl_trigger()}),t.on("give_checkout_billing_address_updated",function(t,n,r){e("form#"+r).hasClass("float-labels-enabled")&&give_fl_trigger()}),t.on("click",".give-btn-reveal",function(t){t.preventDefault();var n=e(this),r=e(this).parents("form"),i=e("#give-payment-mode-select"),o="";return n.hide(),e("li",i).length>1&&(o="#give-payment-mode-select, "),r.find(o+"#give_purchase_form_wrap").slideDown(),!1}),t.on("click",".give-btn-modal",function(t){t.preventDefault();var n=e(this).parents("div.give-form-wrap"),r=n.find("form.give-form"),i=r.find("#give-amount"),o=i.val();if(!o||o<=0)return i.focus(),!1;give_open_form_modal(n,r)});var n=jQuery('.give_notice[data-dismiss-type="auto"]');n.length&&n.each(function(t,n){n=e(n),window.setTimeout(function(){n.slideUp()},n.data("dismiss-interval"))}),e("body").on("click",".give-notice-close",function(){e(this).hide(),e(this).closest(".give_notices").slideUp()}),t.on("change","#give_profile_billing_address_wrap #give_address_country",update_profile_state_field),window.addEventListener("pageshow",function(t){if(t.persisted||"string"!==window.performance&&2===window.performance.navigation.type){let t=e("body").find("form.give-form");t.length&&(t[0].reset(),Give.form.fn.resetAllNonce(t))}})}),window.give_open_form_modal=function(e,t){var n="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden, .give-form-title";jQuery.magnificPopup.open({mainClass:Give.fn.getGlobal().magnific_options.main_class,closeOnBgClick:Give.fn.getGlobal().magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,removalDelay:250,items:{src:t,type:"inline"},callbacks:{beforeOpen:function(){jQuery("body").addClass("give-modal-open");var n=jQuery(".give-form-title",e);if(e.hasClass("give-modal")&&!t.data("content"))n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded");else if(e.hasClass("give-display-button-only")&&!t.data("content")){var r=jQuery(".give-form-content-wrap",e),i=jQuery(".give-goal-progress",e),o=jQuery(">.give_error",e),a=jQuery(".give_errors",e);r.length&&!jQuery(".give-form-content-wrap",t).length&&(r.hasClass("give_post_form-content")?t.append(r):t.prepend(r)),a.length&&!jQuery(".give_errors",t).length&&a.each(function(e,n){t.prepend(jQuery(n))}),o.length&&!jQuery(">.give_error",t).length&&o.each(function(e,n){t.prepend(jQuery(n))}),i.length&&!jQuery(".give-goal-progress",t).length&&t.prepend(i),n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded")}},open:function(){var r=jQuery(".mfp-content");r.outerWidth()>=500&&r.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(n=t.children().not(".give-btn-modal")),t.children().not(n).hide()},close:function(){t.removeClass("mfp-hide"),jQuery("body").removeClass("give-modal-open"),t.children().not(n).show()}}})},window.give_fl_trigger=function(){window.give_float_labels=void 0===window.give_float_labels?{}:window.give_float_labels,window.give_float_labels instanceof o.a?window.give_float_labels.rebuild():window.give_float_labels=new o.a(".float-labels-enabled",{exclude:"#give-amount, .give-select-level, [multiple], .give-honeypot",prioritize:"placeholder",prefix:"give-fl-",style:"give"})},window.give_change_html5_form_field_validation_message=function(){var e,t=jQuery(".give-form");t.length&&jQuery.each(t,function(t,n){(e=jQuery("input",n)).length&&jQuery.each(e,function(e,t){t=jQuery(t).get(0),Give.fn.getGlobal().form_translation.hasOwnProperty(t.name)&&(t.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(Give.fn.getGlobal().form_translation[t.name])})})})},window.update_profile_state_field=function(){var e=jQuery(this),t=e.parents("form");if("give_address_country"===e.attr("id")){t.find("#give_address_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var n={action:"give_get_states",country:e.val(),field_name:"give_address_state"};jQuery.ajax({type:"POST",data:n,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var n="",r=e.states_label;n=null!=typeof e.states_found&&1==e.states_found?e.data:'<input type="text" id="give_address_state" name="give_address_state" class="text give-input" placeholder="'+r+'" value="'+e.default_state+'"/>',t.find('input[name="give_address_state"], select[name="give_address_state"]').replaceWith(n),null!=typeof e.show_field&&1==e.show_field?(t.find("p#give-card-state-wrap").removeClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-last"),t.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(t.find("p#give-card-state-wrap").addClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-wide"),t.find("p#give-card-zip-wrap").removeClass("form-row-last"))}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1};n(49);class a{constructor(){window.addEventListener("load",function(){window.addDynamicEventListener(document,"click",".give-donor__read-more",a.readMoreBtnEvent),window.addDynamicEventListener(document,"click",".give-donor__load_more",a.loadMoreBtnEvent)},!1),window.addEventListener("load",function(){a.loadGravatars()})}static readMoreBtnEvent(e){return e.preventDefault(),jQuery.magnificPopup.open({items:{src:e.target.parentNode.parentNode.parentNode.getElementsByClassName("give-donor__comment")[0],type:"inline"},mainClass:"give-modal give-donor-wall-modal",closeOnBgClick:!1}),!1}static loadMoreBtnEvent(e){e.preventDefault();let t=e.target,n=t.parentNode,r=n.getElementsByClassName("give-donor-wall-shortcode-attrs")[0];return jQuery.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"POST",data:{action:"give_get_donor_comments",data:r.getAttribute("data-shortcode")},beforeSend(){t.className+=" give-active",t.setAttribute("disabled","disabled")}}).done(function(e){t.classList.remove("give-active"),t.removeAttribute("disabled","disabled"),e.html.length&&n.getElementsByClassName("give-grid")[0].insertAdjacentHTML("beforeend",e.html),e.shortcode.length&&r.setAttribute("data-shortcode",e.shortcode),e.remaining||t.remove(),a.loadGravatar(r)}),!1}static loadGravatars(){document.querySelectorAll(".give-donor-wall-shortcode-attrs").forEach(function(e,t){a.loadGravatar(e)})}static loadGravatar(e){const t=n(69);let r,i,o,a,s;if(!(a="1"===Give.fn.getParameterByName("show_avatar",decodeURIComponent(e.getAttribute("data-shortcode")))))return!1;(r=e.parentNode.querySelectorAll(".give-grid__item")).forEach(function(e,n){if(!(i=e.querySelector(".give-donor__image")).classList.contains("gravatar-loaded")){if(o=i.getAttribute("data-donor_email"),s="1"===i.getAttribute("data-has-valid-gravatar")){let e=document.createElement("IMG");i.innerHTML="",e.setAttribute("src",t.url(o)),e.setAttribute("width","60"),e.setAttribute("height","60"),i.appendChild(e)}i.className+=" gravatar-loaded"}})}}new a;const{init:s,fn:l,form:c,notice:u,cache:f,donor:d}=r.a;window.Give={init:s,fn:l,form:c,notice:u,cache:f,donor:d}},40:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},47:function(e,t,n){"use strict";var r={fn:{renderNotice:function(e,t){let n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,r,i;if(n=r=i="",t.length)switch(e){case"bad_minimum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==r&&(n=r+" "+Give.fn.formatCurrency(i,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n}}},i={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.addEventListener("load",function(){Give.form.fn.__sendBackToForm()})},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?t:{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())});break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,r){if(!n.length)return!1;switch(e=void 0===e?"data":e){case"nonce":n.find('input[name="give-form-hash"]').val(t)}if(void 0!==r&&!r.length)return!1;switch(e){case"attr":n.attr(r,t);break;default:n.data(r,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,function(t,r){r=r instanceof jQuery?r:jQuery(r);var i=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:r.data("price-id"),amount:Give.fn.unFormatCurrency(r.val(),i)})}),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),r=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),i=Give.fn.getCache("amount_"+r,e)?Give.fn.getCache("amount_"+r,e):-1;return t=void 0===t||t,n.length&&-1===i&&(t?(jQuery.each(n,function(e,t){if(t.amount===r)return i=t.price_id,!1}),-1===i&&this.getMinimumAmount(e)<=r&&this.getMaximumAmount(e)>=r&&this.getMinimumAmount(e)<=r&&(i="custom")):i=jQuery('input[name="give-price-id"]',e).val()),i},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";let t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){let t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)})},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((t,n)=>{jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(r){if(!r.success)return n(r);const i=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",r.data.give_form_hash,e,""),i.length&&i.val(r.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[r.data]),t(r)}).done(function(){Give.form.fn.disable(e,!1)})}))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),r=e.data("price-id");if(void 0===r&&(r=e.find("option:selected").data("price-id")),"custom"===r)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var i=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),i)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,r])},__sendBackToForm:function(){let e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;let n=jQuery("body").find("#give-form-"+e+"-wrap"),r=n.find("form.give-form"),i=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");r.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),r.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");let s=Give.fn.getParameterByName("level-id"),l=r.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):i||o?give_open_form_modal(n,r):a&&(r.find(".give-btn-reveal").hide(),r.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;let t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),r=this.getAmount(e),i=this.getPriceID(e,!0);return 0!==r&&(-1<r&&r>=t&&r<=n||-1!==i)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]})},field:{formatCreditCard:function(e){e.each(function(e,t){var n=(t=jQuery(t)).find(".card-number"),r=t.find(".card-cvc"),i=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),r.payment("formatCardCVC"),i.payment("formatCardExpiry"))})}}}},o={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}};let a={init:function(){let e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)a[e[t]].init&&a[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){let r={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(r={symbol:"",decimal:a.form.fn.getInfo("decimal_separator",n),thousand:a.form.fn.getInfo("thousands_separator",n),precision:a.form.fn.getInfo("number_decimals",n),currency:a.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){let n=parseFloat(e).toFixed(r.precision),i=t.precision?".0":"",o="",a="",s="",l="";(n=(n=accounting.unformat(n,".").toString()).toString()).indexOf(".")>0&&(i=n.substring(n.indexOf("."),n.length)),o=(n=Math.floor(n).toString()).substring(n.length-3),""!==(a=n.substring(0,n.length-3))&&(o=r.thousand+o),l=(s=a.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+o+i).lastIndexOf("."),e=s=s.slice(0,l)+(s.slice(l)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){let n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");let n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){const t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?a.cache["form_"+a.form.fn.getInfo("form-id",n)][e]=t:a.cache[e]=t},getCache:function(e,t){let n,r=a.cache["form_"+a.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":a.cache[e])?"":n},__getCookie:function(e){const t=("; "+document.cookie).split("; "+e+"=");let n="";return 2===t.length&&(n=t.pop().split(";").shift()),n}},cache:{}};a.notice=r,a.form=i,a.donor=o;t.a=a},48:function(e,t,n){var r,i,o;
|
32 |
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
33 |
* http://dimsemenov.com/plugins/magnific-popup/
|
34 |
-
* Copyright (c) 2016 Dmitry Semenov; */i=[n(30)],void 0===(o="function"==typeof(r=function(e){var t,n,r,i,o,a,s=function(){},l=!!window.jQuery,c=e(window),u=function(e,n){t.ev.on("mfp"+e+".mfp",n)},f=function(t,n,r,i){var o=document.createElement("div");return o.className="mfp-"+t,r&&(o.innerHTML=r),i?n&&n.appendChild(o):(o=e(o),n&&o.appendTo(n)),o},d=function(n,r){t.ev.triggerHandler("mfp"+n,r),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(r)?r:[r]))},p=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},m=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),r=e(document),t.popupsCache={}},open:function(n){var i;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(i=0;i<s.length;i++)if((a=s[i]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=i;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],o="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=r,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=f("bg").on("click.mfp",function(){t.close()}),t.wrap=f("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=f("container",t.wrap)),t.contentContainer=f("content"),t.st.preloader&&(t.preloader=f("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(i=0;i<l.length;i++){var m=l[i];m=m.charAt(0).toUpperCase()+m.slice(1),t["init"+m].call(t)}d("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(u("MarkupParse",function(e,t,n,r){n.close_replaceWith=p(r.type)}),o+=" mfp-close-btn-in"):t.wrap.append(p())),t.st.alignTop&&(o+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:r.height(),position:"absolute"}),t.st.enableEscapeKey&&r.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),c.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&t.wrap.addClass(o);var v=t.wH=c.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(v)){var h=t._getScrollbarSize();h&&(g.marginRight=h)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),d("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),r.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(v),d("Open"),n}t.updateItemHTML()},close:function(){t.isOpen&&(d("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){d("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body, html").css("overflow",""):i.overflow="",e("html").css(i)}r.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,d("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*n;t.wrap.css("height",r),t.wH=r}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),d("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var r=n.type;if(d("BeforeChange",[t.currItem?t.currItem.type:"",r]),t.currItem=n,!t.currTemplate[r]){var o=!!t.st[r]&&t.st[r].markup;d("FirstMarkupParse",o),t.currTemplate[r]=!o||e(o)}i&&i!==n.type&&t.container.removeClass("mfp-"+i+"-holder");var a=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](n,t.currTemplate[r]);t.appendContent(a,r),n.preloaded=!0,d("Change",n),i=n.type,t.container.prepend(t.contentContainer),d("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(p()):t.content=e:t.content="",d("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var r,i=t.items[n];if(i.tagName?i={el:e(i)}:(r=i.type,i={data:i,src:i.src}),i.el){for(var o=t.types,a=0;a<o.length;a++)if(i.el.hasClass("mfp-"+o[a])){r=o[a];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=r||t.st.type||"inline",i.index=n,i.parsed=!0,t.items[n]=i,d("ElementParse",i),t.items[n]},addGroup:function(e,n){var r=function(r){r.mfpEl=this,t._openClick(r,e,n)};n||(n={});var i="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(i).on(i,r)):(n.isObj=!1,n.delegate?e.off(i).on(i,n.delegate,r):(n.items=e,e.off(i).on(i,r)))},_openClick:function(n,r,i){var o=void 0!==i.midClick?i.midClick:e.magnificPopup.defaults.midClick;if(o||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var a=void 0!==i.disableOn?i.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(c.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),i.el=e(n.mfpEl),i.delegate&&(i.items=r.find(i.delegate)),t.open(i)}},updateStatus:function(e,r){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),r||"loading"!==e||(r=t.st.tLoading);var i={status:e,text:r};d("UpdateStatus",i),e=i.status,r=i.text,t.preloader.html(r),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var r=t.st.closeOnContentClick,i=t.st.closeOnBgClick;if(r&&i)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(r)return!0}else if(i&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?r.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,r){var i;r.data&&(n=e.extend(r.data,n)),d("MarkupParse",[t,n,r]),e.each(n,function(n,r){if(void 0===r||!1===r)return!0;if((i=n.split("_")).length>1){var o=t.find(".mfp-"+i[0]);if(o.length>0){var a=i[1];"replaceWith"===a?o[0]!==r[0]&&o.replaceWith(r):"img"===a?o.is("img")?o.attr("src",r):o.replaceWith(e("<img>").attr("src",r).attr("class",o.attr("class"))):o.attr(i[1],r)}}else t.find(".mfp-"+n).html(r)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return m(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){m();var r=e(this);if("string"==typeof n)if("open"===n){var i,o=l?r.data("magnificPopup"):r[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?i=o.items[a]:(i=r,o.delegate&&(i=i.find(o.delegate)),i=i.eq(a)),t._openClick({mfpEl:i},r,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?r.data("magnificPopup",n):r[0].magnificPopup=n,t.addGroup(r,n);return r};var v,g,h,y=function(){h&&(g.after(h.addClass(v)).detach(),h=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),u("Close.inline",function(){y()})},getInline:function(n,r){if(y(),n.src){var i=t.st.inline,o=e(n.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(g||(v=i.hiddenClass,g=f(v),v="mfp-"+v),h=o.after(g).detach().removeClass(v)),t.updateStatus("ready")}else t.updateStatus("error",i.tNotFound),o=e("<div>");return n.inlineElement=o,o}return t.updateStatus("ready"),t._parseMarkup(r,{},n),r}}});var b,_=function(){b&&e(document.body).removeClass(b)},w=function(){_(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),b=t.st.ajax.cursor,u("Close.ajax",w),u("BeforeChange.ajax",w)},getAjax:function(n){b&&e(document.body).addClass(b),t.updateStatus("loading");var r=e.extend({url:n.src,success:function(r,i,o){var a={data:r,xhr:o};d("ParseAjax",a),t.appendContent(e(a.data),"ajax"),n.finished=!0,_(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),d("AjaxContentAdded")},error:function(){_(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(r),""}}});var C,x,k=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var r=t.st.image.titleSrc;if(r){if(e.isFunction(r))return r.call(t,n);if(n.el)return n.el.attr(r)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,r=".image";t.types.push("image"),u("Open"+r,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),u("Close"+r,function(){n.cursor&&e(document.body).removeClass(n.cursor),c.off("resize.mfp")}),u("Resize"+r,t.resizeImage),t.isLowIE&&u("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,C&&clearInterval(C),e.isCheckingImgSize=!1,d("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,r=e.img[0],i=function(o){C&&clearInterval(C),C=setInterval(function(){r.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(C),3==++n?i(10):40===n?i(50):100===n&&i(500))},o)};i(1)},getImage:function(n,r){var i=0,o=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,d("ImageLoadComplete")):++i<200?setTimeout(o,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=r.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",o).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(r,{title:k(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(C&&clearInterval(C),n.loadError?(r.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(r.removeClass("mfp-loading"),t.updateStatus("ready")),r):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,r.addClass("mfp-loading"),t.findImageSize(n)),r)}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,r=".zoom";if(n.enabled&&t.supportsTransition){var i,o,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),r="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return i["-webkit-"+o]=i["-moz-"+o]=i["-o-"+o]=i[o]=r,t.css(i),t},l=function(){t.content.css("visibility","visible")};u("BuildControls"+r,function(){if(t._allowZoom()){if(clearTimeout(i),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(o=s(e)).css(t._getOffset()),t.wrap.append(o),i=setTimeout(function(){o.css(t._getOffset(!0)),i=setTimeout(function(){l(),setTimeout(function(){o.remove(),e=o=null,d("ZoomAnimationEnded")},16)},a)},16)}}),u("BeforeClose"+r,function(){if(t._allowZoom()){if(clearTimeout(i),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;o=s(e)}o.css(t._getOffset(!0)),t.wrap.append(o),t.content.css("visibility","hidden"),setTimeout(function(){o.css(t._getOffset())},16)}}),u("Close"+r,function(){t._allowZoom()&&(l(),o&&o.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var r,i=(r=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),o=parseInt(r.css("padding-top"),10),a=parseInt(r.css("padding-bottom"),10);i.top-=e(window).scrollTop()-o;var s={width:r.width(),height:(l?r.innerHeight():r[0].offsetHeight)-a-o};return void 0===x&&(x=void 0!==document.createElement("p").style.MozTransform),x?s["-moz-transform"]=s.transform="translate("+i.left+"px,"+i.top+"px)":(s.left=i.left,s.top=i.top),s}}});var I=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),u("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?I():"iframe"===n&&I(!0))}),u("Close.iframe",function(){I()})},getIframe:function(n,r){var i=n.src,o=t.st.iframe;e.each(o.patterns,function(){if(i.indexOf(this.index)>-1)return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1});var a={};return o.srcAction&&(a[o.srcAction]=i),t._parseMarkup(r,a,n),t.updateStatus("ready"),r}}});var j=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},S=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;o+=" mfp-gallery",u("Open"+i,function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),r.on("keydown"+i,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),u("UpdateStatus"+i,function(e,n){n.text&&(n.text=S(n.text,t.currItem.index,t.items.length))}),u("MarkupParse"+i,function(e,r,i,o){var a=t.items.length;i.counter=a>1?S(n.tCounter,o.index,a):""}),u("BuildControls"+i,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var r=n.arrowMarkup,i=t.arrowLeft=e(r.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),o=t.arrowRight=e(r.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");i.click(function(){t.prev()}),o.click(function(){t.next()}),t.container.append(i.add(o))}}),u("Change"+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),u("Close"+i,function(){r.off(i),t.wrap.off("click"+i),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=j(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=j(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,r=Math.min(n[0],t.items.length),i=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?i:r);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?r:i);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=j(n),!t.items[n].preloaded){var r=t.items[n];r.parsed||(r=t.parseEl(n)),d("LazyLoad",r),"image"===r.type&&(r.img=e('<img class="mfp-img" />').on("load.mfploader",function(){r.hasSize=!0}).on("error.mfploader",function(){r.hasSize=!0,r.loadError=!0,d("LazyLoadError",r)}).attr("src",r.src)),r.preloaded=!0}}}}),e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(u("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),u("ElementParse.retina",function(t,r){r.src=e.replaceSrc(r,n)}))}}}}),m()})?r.apply(t,i):r)||(e.exports=o)},49:function(e,t){!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),e.addDynamicEventListener=function(e,t,n,r,i){e.addEventListener(t,function(e,t){return function(n){n.target&&n.target.matches(e)&&t.apply(this,arguments)}}(n,r),i)}}(window)},66:function(e,t,n){(function(t){e.exports=t.accounting=n(67)}).call(this,n(40))},67:function(e,t,n){
|
35 |
/*!
|
36 |
* accounting.js v0.4.1
|
37 |
* Copyright 2014 Open Exchange Rates
|
@@ -42,4 +42,4 @@ jQuery(document).ready(function(e){Give.form.fn.isFormExist()&&(e(".give-loading
|
|
42 |
* Full details and documentation:
|
43 |
* http://openexchangerates.github.io/accounting.js/
|
44 |
*/
|
45 |
-
!function(n,r){var i={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},o=Array.prototype.map,a=Array.isArray,s=Object.prototype.toString;function l(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function c(e){return a?a(e):"[object Array]"===s.call(e)}function u(e){return e&&"[object Object]"===s.call(e)}function f(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function d(e,t,n){var r,i,a=[];if(!e)return a;if(o&&e.map===o)return e.map(t,n);for(r=0,i=e.length;r<i;r++)a[r]=t.call(n,e[r],r,e);return a}function p(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function m(e){var t=i.settings.currency.format;return"function"==typeof e&&(e=e()),l(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:l(t)?i.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var v=i.unformat=i.parse=function(e,t){if(c(e))return d(e,function(e){return v(e,t)});if("number"==typeof(e=e||0))return e;t=t||i.settings.number.decimal;var n=new RegExp("[^0-9-"+t+"]",["g"]),r=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(r)?0:r},g=i.toFixed=function(e,t){t=p(t,i.settings.number.precision);var n=Math.pow(10,t);return(Math.round(i.unformat(e)*n)/n).toFixed(t)},h=i.formatNumber=i.format=function(e,t,n,r){if(c(e))return d(e,function(e){return h(e,t,n,r)});e=v(e);var o=f(u(t)?t:{precision:t,thousand:n,decimal:r},i.settings.number),a=p(o.precision),s=e<0?"-":"",l=parseInt(g(Math.abs(e||0),a),10)+"",m=l.length>3?l.length%3:0;return s+(m?l.substr(0,m)+o.thousand:"")+l.substr(m).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(a?o.decimal+g(Math.abs(e),a).split(".")[1]:"")},y=i.formatMoney=function(e,t,n,r,o,a){if(c(e))return d(e,function(e){return y(e,t,n,r,o,a)});e=v(e);var s=f(u(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),l=m(s.format);return(e>0?l.pos:e<0?l.neg:l.zero).replace("%s",s.symbol).replace("%v",h(Math.abs(e),p(s.precision),s.thousand,s.decimal))};i.formatColumn=function(e,t,n,r,o,a){if(!e)return[];var s=f(u(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),g=m(s.format),y=g.pos.indexOf("%s")<g.pos.indexOf("%v"),b=0,_=d(e,function(e,t){if(c(e))return i.formatColumn(e,s);var n=((e=v(e))>0?g.pos:e<0?g.neg:g.zero).replace("%s",s.symbol).replace("%v",h(Math.abs(e),p(s.precision),s.thousand,s.decimal));return n.length>b&&(b=n.length),n});return d(_,function(e,t){return l(e)&&e.length<b?y?e.replace(s.symbol,s.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e})},e.exports&&(t=e.exports=i),t.accounting=i}()},68:function(e,t){jQuery.fn.giveHintCss=function(e,t){return this.each(function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var r=n.next("span.give-hint-tooltip-js");if(!r.length){var i=t.label.length?t.label:n.data("hint-aria-label");if(!i.length)return;n.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+i+'"></span>'),(r=n.next()).css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?r.addClass("hint--always"):"hide"===e&&r.removeClass("hint--always")})},jQuery(document).ready(function(e){var t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),r=[],i=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),(r=e.grep(n,function(e){return-1!==e.indexOf("give-icon")})).length&&(r=r.join(" "),t.removeClass(r),t.append('<i class="'+r+'"></i>'))),t.addClass("hint--top"),15<i?t.addClass("hint--large"):7<i&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each(function(t,r){n(r=r instanceof jQuery?r:e(r))}),e("body").on("hover","[data-tooltip]",function(){n(e(this))})})},69:function(e,t,n){e.exports=n(70)},70:function(e,t,n){var r=n(71),i=n(72),o=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function s(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(o)?e:r(e)}function l(e){var t=i.stringify(function(e){var t={},n={protocol:1,format:1};for(var r in e)n[r]||(t[r]=e[r]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var r="//www.gravatar.com/avatar/";t&&t.cdn?(r=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(r=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var i=l(t);return r+s(e)+i},profile_url:function(e,t,n){var r=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)i=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var i=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var o=l(t);return i+s(e)+"."+r+o}}},71:function(e,t,n){var r;!function(i){"use strict";function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,i,a){return o((s=o(o(t,e),o(r,a)))<<(l=i)|s>>>32-l,n);var s,l}function s(e,t,n,r,i,o,s){return a(t&n|~t&r,e,t,i,o,s)}function l(e,t,n,r,i,o,s){return a(t&r|n&~r,e,t,i,o,s)}function c(e,t,n,r,i,o,s){return a(t^n^r,e,t,i,o,s)}function u(e,t,n,r,i,o,s){return a(n^(t|~r),e,t,i,o,s)}function f(e,t){var n,r,i,a,f;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var d=1732584193,p=-271733879,m=-1732584194,v=271733878;for(n=0;n<e.length;n+=16)r=d,i=p,a=m,f=v,d=s(d,p,m,v,e[n],7,-680876936),v=s(v,d,p,m,e[n+1],12,-389564586),m=s(m,v,d,p,e[n+2],17,606105819),p=s(p,m,v,d,e[n+3],22,-1044525330),d=s(d,p,m,v,e[n+4],7,-176418897),v=s(v,d,p,m,e[n+5],12,1200080426),m=s(m,v,d,p,e[n+6],17,-1473231341),p=s(p,m,v,d,e[n+7],22,-45705983),d=s(d,p,m,v,e[n+8],7,1770035416),v=s(v,d,p,m,e[n+9],12,-1958414417),m=s(m,v,d,p,e[n+10],17,-42063),p=s(p,m,v,d,e[n+11],22,-1990404162),d=s(d,p,m,v,e[n+12],7,1804603682),v=s(v,d,p,m,e[n+13],12,-40341101),m=s(m,v,d,p,e[n+14],17,-1502002290),d=l(d,p=s(p,m,v,d,e[n+15],22,1236535329),m,v,e[n+1],5,-165796510),v=l(v,d,p,m,e[n+6],9,-1069501632),m=l(m,v,d,p,e[n+11],14,643717713),p=l(p,m,v,d,e[n],20,-373897302),d=l(d,p,m,v,e[n+5],5,-701558691),v=l(v,d,p,m,e[n+10],9,38016083),m=l(m,v,d,p,e[n+15],14,-660478335),p=l(p,m,v,d,e[n+4],20,-405537848),d=l(d,p,m,v,e[n+9],5,568446438),v=l(v,d,p,m,e[n+14],9,-1019803690),m=l(m,v,d,p,e[n+3],14,-187363961),p=l(p,m,v,d,e[n+8],20,1163531501),d=l(d,p,m,v,e[n+13],5,-1444681467),v=l(v,d,p,m,e[n+2],9,-51403784),m=l(m,v,d,p,e[n+7],14,1735328473),d=c(d,p=l(p,m,v,d,e[n+12],20,-1926607734),m,v,e[n+5],4,-378558),v=c(v,d,p,m,e[n+8],11,-2022574463),m=c(m,v,d,p,e[n+11],16,1839030562),p=c(p,m,v,d,e[n+14],23,-35309556),d=c(d,p,m,v,e[n+1],4,-1530992060),v=c(v,d,p,m,e[n+4],11,1272893353),m=c(m,v,d,p,e[n+7],16,-155497632),p=c(p,m,v,d,e[n+10],23,-1094730640),d=c(d,p,m,v,e[n+13],4,681279174),v=c(v,d,p,m,e[n],11,-358537222),m=c(m,v,d,p,e[n+3],16,-722521979),p=c(p,m,v,d,e[n+6],23,76029189),d=c(d,p,m,v,e[n+9],4,-640364487),v=c(v,d,p,m,e[n+12],11,-421815835),m=c(m,v,d,p,e[n+15],16,530742520),d=u(d,p=c(p,m,v,d,e[n+2],23,-995338651),m,v,e[n],6,-198630844),v=u(v,d,p,m,e[n+7],10,1126891415),m=u(m,v,d,p,e[n+14],15,-1416354905),p=u(p,m,v,d,e[n+5],21,-57434055),d=u(d,p,m,v,e[n+12],6,1700485571),v=u(v,d,p,m,e[n+3],10,-1894986606),m=u(m,v,d,p,e[n+10],15,-1051523),p=u(p,m,v,d,e[n+1],21,-2054922799),d=u(d,p,m,v,e[n+8],6,1873313359),v=u(v,d,p,m,e[n+15],10,-30611744),m=u(m,v,d,p,e[n+6],15,-1560198380),p=u(p,m,v,d,e[n+13],21,1309151649),d=u(d,p,m,v,e[n+4],6,-145523070),v=u(v,d,p,m,e[n+11],10,-1120210379),m=u(m,v,d,p,e[n+2],15,718787259),p=u(p,m,v,d,e[n+9],21,-343485551),d=o(d,r),p=o(p,i),m=o(m,a),v=o(v,f);return[d,p,m,v]}function d(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function m(e){var t,n,r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return r}function v(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return d(f(p(e),8*e.length))}(v(e))}function h(e,t){return function(e,t){var n,r,i=p(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=f(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=f(o.concat(p(t)),512+8*t.length),d(f(a.concat(r),640))}(v(e),v(t))}function y(e,t,n){return t?n?h(t,e):m(h(t,e)):n?g(e):m(g(e))}void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}()},72:function(e,t,n){"use strict";t.decode=t.parse=n(73),t.encode=t.stringify=n(74)},73:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var f,d,p,m,v=e[u].replace(s,"%20"),g=v.indexOf(n);g>=0?(f=v.substr(0,g),d=v.substr(g+1)):(f=v,d=""),p=decodeURIComponent(f),m=decodeURIComponent(d),r(a,p)?i(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},74:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}});
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=143)}({10:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},110:function(e,t,n){var r;
|
2 |
/*!
|
3 |
* Float Labels
|
4 |
* @version: 3.3.8
|
5 |
* @author: Paul Ryley (http://geminilabs.io)
|
6 |
* @url: https://pryley.github.io/float-labels.js
|
7 |
* @license: MIT
|
8 |
+
*/!function(n,i,o){"use strict";var a=function(e,t){this.el_=this.isString_(e)?i.querySelectorAll(e):[e],this.config_=[],this.options_=t,this.selectors_=[],this.init_(),this.destroy=function(){this.loop_(function(e){e.removeEventListener("reset",this.events.reset),this.removeClasses_(e)},function(e){this.reset_(e)})},this.rebuild=function(){this.loop_(null,function(e){this.floatLabel_(e,!0)})}};a.prototype={defaults_:{customEvent:null,customLabel:null,customPlaceholder:null,exclude:".no-label",inputRegex:/email|number|password|search|tel|text|url/,prefix:"fl-",prioritize:"label",requiredClass:"required",style:0,transform:"input,select,textarea"},init_:function(){var e=this;e.initEvents_(),e.loop_(function(t,n){var r=e.config_[n].style;t.addEventListener("reset",e.events.reset),t.classList.add(e.prefixed_("form")),r&&t.classList.add(e.prefixed_("style-"+r))},function(t){e.floatLabel_(t)})},initEvents_:function(){this.events={blur:this.onBlur_.bind(this),change:this.onInput_.bind(this),focus:this.onFocus_.bind(this),input:this.onInput_.bind(this),reset:this.onReset_.bind(this)}},addRemove_:function(e){return e?"add":"remove"},build_:function(e){var t=this.getLabel_(e);t&&(e.classList.add(this.prefixed_(e.tagName.toLowerCase())),this.setLabel_(t,e),this.setPlaceholder_(t,e),this.wrapLabel_(t,e),this.handleEvents_(e,"add"),"function"==typeof this.config_[this.current_].customEvent&&this.config_[this.current_].customEvent.call(this,e))},createEl_:function(e,t){var n="string"==typeof e?i.createElement(e):e;for(var r in t=t||{})t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n},extend_:function(){var e=[].slice.call(arguments),t=e[0],n=e.slice(1);return Object.keys(n).forEach(function(e){for(var r in n[e])n[e].hasOwnProperty(r)&&(t[r]=n[e][r])}),t},floatLabel_:function(e,t){if(this.isValidField_(e)){if(this.hasParent_(e)){if(!0!==t)return;this.reset_(e)}this.build_(e)}},getLabel_:function(e){var t='label[for="'+e.getAttribute("id")+'"]',n=this.el_[this.current_].querySelectorAll(t);return n.length>1&&(n=e.parentNode.querySelectorAll(t)),1===n.length&&n[0]},getLabelText_:function(e,t){var n=e.textContent.replace("*","").trim(),r=t.getAttribute("placeholder");return(!n||n&&r&&"placeholder"===this.config_[this.current_].prioritize)&&(n=r),n},handleEvents_:function(e,t){var n=this.events;["blur","input","focus"].forEach(function(r){"input"!==r||"file"!==e.type&&"SELECT"!==e.nodeName||(r="change"),e[t+"EventListener"](r,n[r])})},hasParent_:function(e){return e.parentNode.classList.contains(this.prefixed_("wrap"))},isString_:function(e){return"[object String]"===Object.prototype.toString.call(e)},isValidField_:function(e){var t="INPUT"===e.tagName&&!this.config_[this.current_].inputRegex.test(e.getAttribute("type")),n="SELECT"===e.tagName&&null!==e.getAttribute("multiple");return e.getAttribute("id")&&!t&&!n},loop_:function(e,t){for(var n=0;n<this.el_.length;++n){if(void 0===this.selectors_[n]){var r=this.extend_({},this.defaults_,this.options_,this.el_[n].getAttribute("data-options")),i=":not("+r.exclude.split(/[\s,]+/).join("):not(")+")";this.selectors_[n]=r.transform.replace(/,/g,i+",")+i,this.config_[n]=r}var o=this.el_[n].querySelectorAll(this.selectors_[n]);this.current_=n,"function"==typeof e&&e.call(this,this.el_[n],n);for(var a=0;a<o.length;++a)"function"==typeof t&&t.call(this,o[a],n)}},onBlur_:function(e){e.target.parentNode.classList.remove(this.prefixed_("has-focus"))},onInput_:function(e){e.target.parentNode.classList[this.addRemove_(e.target.value.length)](this.prefixed_("is-active"))},onFocus_:function(e){e.target.parentNode.classList.add(this.prefixed_("has-focus"))},onReset_:function(){setTimeout(this.resetFields_.bind(this))},prefixed_:function(e){return this.config_[this.current_].prefix+e},removeClasses_:function(e){var t=this.config_[this.current_].prefix,n=e.className.split(" ").filter(function(e){return 0!==e.lastIndexOf(t,0)});e.className=n.join(" ").trim()},reset_:function(e){var t=e.parentNode;if(this.hasParent_(e)){for(var n=i.createDocumentFragment();t.firstElementChild;){var r=t.firstElementChild;this.removeClasses_(r),n.appendChild(r)}t.parentNode.replaceChild(n,t),this.resetPlaceholder_(e),this.handleEvents_(e,"remove")}},resetFields_:function(){for(var e=this.el_[this.current_].querySelectorAll(this.selectors_[this.current_]),t=0;t<e.length;++t)e[t].parentNode.classList[this.addRemove_("SELECT"===e[t].tagName&&""!==e[t].value)](this.prefixed_("is-active"))},resetPlaceholder_:function(e){var t=e.getAttribute("data-placeholder");null!==t&&(e.removeAttribute("data-placeholder"),e.setAttribute("placeholder",t))},setLabel_:function(e,t){e.classList.add(this.prefixed_("label")),e.textContent=this.getLabelText_(e,t),"function"==typeof this.config_[this.current_].customLabel&&(e.textContent=this.config_[this.current_].customLabel.call(this,e,t))},setPlaceholder_:function(e,t){var n=t.getAttribute("placeholder");"label"!==this.config_[this.current_].prioritize&&n||(n&&t.setAttribute("data-placeholder",n),n=this.getLabelText_(e,t)),"function"==typeof this.config_[this.current_].customPlaceholder&&(n=this.config_[this.current_].customPlaceholder.call(this,n,t,e)),"SELECT"===t.tagName?this.setSelectPlaceholder_(t,n):t.setAttribute("placeholder",n)},setSelectPlaceholder_:function(e,t){var n=e.firstElementChild;n.hasAttribute("value")&&n.value?(e.insertBefore(new Option(t,""),n),!1===e.options[e.selectedIndex].defaultSelected&&(e.selectedIndex=0)):n.setAttribute("value",""),""===n.textContent&&(n.textContent=t)},wrapLabel_:function(e,t){var n=this.createEl_("div",{class:this.prefixed_("wrap")+" "+this.prefixed_("wrap-"+t.tagName.toLowerCase())});void 0!==t.value&&t.value.length&&n.classList.add(this.prefixed_("is-active")),(null!==t.getAttribute("required")||t.classList.contains(this.config_[this.current_].requiredClass))&&n.classList.add(this.prefixed_("is-required")),t.parentNode.insertBefore(n,t),n.appendChild(e),n.appendChild(t)}},void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}(window,document)},143:function(e,t,n){n(144),e.exports=n(341)},144:function(e,t,n){},145:function(e,t){(function(){var e,t,n,r,i,o,a,s,l,c,u,f,d,p,m,v,g,h,y,b,_,w,C,x,k=[].slice,I=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};(e=window.jQuery||window.Zepto||window.$).payment={},e.payment.fn={},e.fn.payment=function(){var t,n;return n=arguments[0],t=2<=arguments.length?k.call(arguments,1):[],e.payment.fn[n].apply(this,t)},i=/(\d{1,4})/g,e.payment.cards=r=[{type:"maestro",patterns:[5018,502,503,506,56,58,639,6220,67],format:i,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"forbrugsforeningen",patterns:[600],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"dankort",patterns:[5019],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"visa",patterns:[4],format:i,length:[13,16],cvcLength:[3],luhn:!0},{type:"mastercard",patterns:[51,52,53,54,55,22,23,24,25,26,27],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"amex",patterns:[34,37],format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[3,4],luhn:!0},{type:"dinersclub",patterns:[30,36,38,39],format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",patterns:[60,64,65,622],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",patterns:[62,88],format:i,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"jcb",patterns:[35],format:i,length:[16],cvcLength:[3],luhn:!0}],t=function(e){var t,n,i,o,a,s,l;for(e=(e+"").replace(/\D/g,""),i=0,a=r.length;i<a;i++)for(o=0,s=(l=(t=r[i]).patterns).length;o<s;o++)if(n=l[o]+"",e.substr(0,n.length)===n)return t},n=function(e){var t,n,i;for(n=0,i=r.length;n<i;n++)if((t=r[n]).type===e)return t},d=function(e){var t,n,r,i,o,a;for(r=!0,i=0,o=0,a=(n=(e+"").split("").reverse()).length;o<a;o++)t=n[o],t=parseInt(t,10),(r=!r)&&(t*=2),t>9&&(t-=9),i+=t;return i%10==0},f=function(e){var t;return null!=e.prop("selectionStart")&&e.prop("selectionStart")!==e.prop("selectionEnd")||!(null==("undefined"!=typeof document&&null!==document&&null!=(t=document.selection)?t.createRange:void 0)||!document.selection.createRange().text)},C=function(e,t){var n,r,i,o,a;try{r=t.prop("selectionStart")}catch(e){e,r=null}if(o=t.val(),t.val(e),null!==r&&t.is(":focus"))return r===o.length&&(r=e.length),o!==e&&(a=o.slice(r-1,+r+1||9e9),n=e.slice(r-1,+r+1||9e9),i=e[r],/\d/.test(i)&&a===i+" "&&n===" "+i&&(r+=1)),t.prop("selectionStart",r),t.prop("selectionEnd",r)},h=function(e){var t,n,r,i,o,a;for(null==e&&(e=""),"0123456789","0123456789",i="",o=0,a=(t=e.split("")).length;o<a;o++)n=t[o],(r="0123456789".indexOf(n))>-1&&(n="0123456789"[r]),i+=n;return i},g=function(t){var n;return n=e(t.currentTarget),setTimeout(function(){var e;return e=n.val(),e=(e=h(e)).replace(/\D/g,""),C(e,n)})},m=function(t){var n;return n=e(t.currentTarget),setTimeout(function(){var t;return t=n.val(),t=h(t),t=e.payment.formatCardNumber(t),C(t,n)})},s=function(n){var r,i,o,a,s,l,c;if(o=String.fromCharCode(n.which),/^\d+$/.test(o)&&(r=e(n.currentTarget),c=r.val(),i=t(c+o),a=(c.replace(/\D/g,"")+o).length,l=16,i&&(l=i.length[i.length.length-1]),!(a>=l||null!=r.prop("selectionStart")&&r.prop("selectionStart")!==c.length)))return(s=i&&"amex"===i.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/).test(c)?(n.preventDefault(),setTimeout(function(){return r.val(c+" "+o)})):s.test(c+o)?(n.preventDefault(),setTimeout(function(){return r.val(c+o+" ")})):void 0},o=function(t){var n,r;if(n=e(t.currentTarget),r=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s$/.test(r)?(t.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d\s$/,""))})):/\s\d?$/.test(r)?(t.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d$/,""))})):void 0},v=function(t){var n;return n=e(t.currentTarget),setTimeout(function(){var t;return t=n.val(),t=h(t),t=e.payment.formatExpiry(t),C(t,n)})},l=function(t){var n,r,i;if(r=String.fromCharCode(t.which),/^\d+$/.test(r))return n=e(t.currentTarget),i=n.val()+r,/^\d$/.test(i)&&"0"!==i&&"1"!==i?(t.preventDefault(),setTimeout(function(){return n.val("0"+i+" / ")})):/^\d\d$/.test(i)?(t.preventDefault(),setTimeout(function(){var e,t;return e=parseInt(i[0],10),(t=parseInt(i[1],10))>2&&0!==e?n.val("0"+e+" / "+t):n.val(i+" / ")})):void 0},c=function(t){var n,r,i;if(r=String.fromCharCode(t.which),/^\d+$/.test(r))return i=(n=e(t.currentTarget)).val(),/^\d\d$/.test(i)?n.val(i+" / "):void 0},u=function(t){var n,r,i;if("/"===(i=String.fromCharCode(t.which))||" "===i)return r=(n=e(t.currentTarget)).val(),/^\d$/.test(r)&&"0"!==r?n.val("0"+r+" / "):void 0},a=function(t){var n,r;if(n=e(t.currentTarget),r=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s\/\s$/.test(r)?(t.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d\s\/\s$/,""))})):void 0},p=function(t){var n;return n=e(t.currentTarget),setTimeout(function(){var e;return e=n.val(),e=(e=h(e)).replace(/\D/g,"").slice(0,4),C(e,n)})},w=function(e){var t;return!(!e.metaKey&&!e.ctrlKey)||32!==e.which&&(0===e.which||(e.which<33||(t=String.fromCharCode(e.which),!!/[\d\s]/.test(t))))},b=function(n){var r,i,o,a;if(r=e(n.currentTarget),o=String.fromCharCode(n.which),/^\d+$/.test(o)&&!f(r))return a=(r.val()+o).replace(/\D/g,""),(i=t(a))?a.length<=i.length[i.length.length-1]:a.length<=16},_=function(t){var n,r;if(n=e(t.currentTarget),r=String.fromCharCode(t.which),/^\d+$/.test(r)&&!f(n))return!((n.val()+r).replace(/\D/g,"").length>6)&&void 0},y=function(t){var n,r;if(n=e(t.currentTarget),r=String.fromCharCode(t.which),/^\d+$/.test(r)&&!f(n))return(n.val()+r).length<=4},x=function(t){var n,i,o,a,s;if(s=(n=e(t.currentTarget)).val(),a=e.payment.cardType(s)||"unknown",!n.hasClass(a))return i=function(){var e,t,n;for(n=[],e=0,t=r.length;e<t;e++)o=r[e],n.push(o.type);return n}(),n.removeClass("unknown"),n.removeClass(i.join(" ")),n.addClass(a),n.toggleClass("identified","unknown"!==a),n.trigger("payment.cardType",a)},e.payment.fn.formatCardCVC=function(){return this.on("keypress",w),this.on("keypress",y),this.on("paste",p),this.on("change",p),this.on("input",p),this},e.payment.fn.formatCardExpiry=function(){return this.on("keypress",w),this.on("keypress",_),this.on("keypress",l),this.on("keypress",u),this.on("keypress",c),this.on("keydown",a),this.on("change",v),this.on("input",v),this},e.payment.fn.formatCardNumber=function(){return this.on("keypress",w),this.on("keypress",b),this.on("keypress",s),this.on("keydown",o),this.on("keyup",x),this.on("paste",m),this.on("change",m),this.on("input",m),this.on("input",x),this},e.payment.fn.restrictNumeric=function(){return this.on("keypress",w),this.on("paste",g),this.on("change",g),this.on("input",g),this},e.payment.fn.cardExpiryVal=function(){return e.payment.cardExpiryVal(e(this).val())},e.payment.cardExpiryVal=function(e){var t,n,r;return t=(r=e.split(/[\s\/]+/,2))[0],2===(null!=(n=r[1])?n.length:void 0)&&/^\d+$/.test(n)&&(n=(new Date).getFullYear().toString().slice(0,2)+n),{month:t=parseInt(t,10),year:n=parseInt(n,10)}},e.payment.validateCardNumber=function(e){var n,r;return e=(e+"").replace(/\s+|-/g,""),!!/^\d+$/.test(e)&&(!!(n=t(e))&&(r=e.length,I.call(n.length,r)>=0&&(!1===n.luhn||d(e))))},e.payment.validateCardExpiry=function(t,n){var r,i,o;return"object"==typeof t&&"month"in t&&(t=(o=t).month,n=o.year),!(!t||!n)&&(t=e.trim(t),n=e.trim(n),!!/^\d+$/.test(t)&&(!!/^\d+$/.test(n)&&(1<=t&&t<=12&&(2===n.length&&(n=n<70?"20"+n:"19"+n),4===n.length&&(i=new Date(n,t),r=new Date,i.setMonth(i.getMonth()-1),i.setMonth(i.getMonth()+1,1),i>r)))))},e.payment.validateCardCVC=function(t,r){var i,o;return t=e.trim(t),!!/^\d+$/.test(t)&&(null!=(i=n(r))?(o=t.length,I.call(i.cvcLength,o)>=0):t.length>=3&&t.length<=4)},e.payment.cardType=function(e){var n;return e&&(null!=(n=t(e))?n.type:void 0)||null},e.payment.formatCardNumber=function(n){var r,i,o,a;return n=n.replace(/\D/g,""),(r=t(n))?(o=r.length[r.length.length-1],n=n.slice(0,o),r.format.global?null!=(a=n.match(r.format))?a.join(" "):void 0:null!=(i=r.format.exec(n))?(i.shift(),(i=e.grep(i,function(e){return e})).join(" ")):void 0):n},e.payment.formatExpiry=function(e){var t,n,r,i;return(n=e.match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/))?(t=n[1]||"",r=n[2]||"",(i=n[3]||"").length>0?r=" / ":" /"===r?(t=t.substring(0,1),r=""):2===t.length||r.length>0?r=" / ":1===t.length&&"0"!==t&&"1"!==t&&(t="0"+t,r=" / "),t+r+i):""}}).call(this)},146:function(e,t,n){var r=n(39);n(147);var i=n(149),o={transitionDelay:250,blockWith:function(e){var t=r.Deferred(),n=this,a=i(arguments).rest(),s=i(a).first();return s&&s.preventDefault&&s.preventDefault(),r.blockUI({message:null}),setTimeout(function(){var o=e.apply(n,a);i(o).isObject()&&i(o.always).isFunction()?o.always(function(){r.unblockUI()}).then(t.resolve,t.reject):r.unblockUI()},o.transitionDelay),t.promise()},makeBlocked:function(e){return i.wrap(e,o.blockWith)}};e.exports=o},147:function(e,t,n){var r,i,o;
|
9 |
/*!
|
10 |
* jQuery blockUI plugin
|
11 |
* Version 2.70.0-2014.11.23
|
18 |
* http://www.gnu.org/licenses/gpl.html
|
19 |
*
|
20 |
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
|
21 |
+
*/!function(){"use strict";function a(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),r=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,n,r,i){var o=e('<div class="growlUI"></div>');t&&o.append("<h1>"+t+"</h1>"),n&&o.append("<h2>"+n+"</h2>"),void 0===r&&(r=3e3);var a=function(t){t=t||{},e.blockUI({message:o,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};a();o.css("opacity");o.mouseover(function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){l(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var o=null,a=[];function s(s,c){var f,m,v=s==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),f=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),m=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,v&&o&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var h=g.jquery?g[0]:g,y={};e(s).data("blockUI.history",y),y.el=h,y.parent=h.parentNode,y.display=h.style.display,y.position=h.style.position,y.parent&&y.parent.removeChild(h)}e(s).data("blockUI.onUnblock",c.onUnblock);var b,_,w,C,x=c.baseZ;b=n||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),_=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&v?(C='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||" ")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):c.theme?(C='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||" ")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):C=v?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',w=e(C),g&&(c.theme?(w.css(m),w.addClass("ui-widget-content")):w.css(f)),c.theme||_.css(c.overlayCSS),_.css("position",v?"fixed":"absolute"),(n||c.forceIframe)&&b.css("opacity",0);var k=[b,_,w],I=e(v?"body":s);e.each(k,function(){this.appendTo(I)}),c.theme&&c.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var j=i&&(!e.support.boxModel||e("object,embed",v?null:s).length>0);if(r||j){if(v&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(r||!e.support.boxModel)&&!v)var S=p(s,"borderTopWidth"),E=p(s,"borderLeftWidth"),O=S?"(0 - "+S+")":0,A=E?"(0 - "+E+")":0;e.each(k,function(e,t){var n=t[0].style;if(n.position="absolute",e<2)v?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),v?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),A&&n.setExpression("left",A),O&&n.setExpression("top",O);else if(c.centerY)v&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!c.centerY&&v){var r="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';n.setExpression("top",r)}})}if(g&&(c.theme?w.find(".ui-widget-content").append(g):w.append(g),(g.jquery||g.nodeType)&&e(g).show()),(n||c.forceIframe)&&c.showOverlay&&b.show(),c.fadeIn){var G=c.onBlock?c.onBlock:t,T=c.showOverlay&&!g?G:t,M=g?G:t;c.showOverlay&&_._fadeIn(c.fadeIn,T),g&&w._fadeIn(c.fadeIn,M)}else c.showOverlay&&_.show(),g&&w.show(),c.onBlock&&c.onBlock.bind(w)();if(u(1,s,c),v?(o=w[0],a=e(c.focusableElements,o),c.focusInput&&setTimeout(d,20)):function(e,t,n){var r=e.parentNode,i=e.style,o=(r.offsetWidth-e.offsetWidth)/2-p(r,"borderLeftWidth"),a=(r.offsetHeight-e.offsetHeight)/2-p(r,"borderTopWidth");t&&(i.left=o>0?o+"px":"0");n&&(i.top=a>0?a+"px":"0")}(w[0],c.centerX,c.centerY),c.timeout){var P=setTimeout(function(){v?e.unblockUI(c):e(s).unblock(c)},c.timeout);e(s).data("blockUI.timeout",P)}}}function l(t,n){var r,i,s=t==window,l=e(t),f=l.data("blockUI.history"),d=l.data("blockUI.timeout");d&&(clearTimeout(d),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),u(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),i=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(i.length>1&&(i[1].style.cursor=n.cursorReset),i.length>2&&(i[2].style.cursor=n.cursorReset)),s&&(o=a=null),n.fadeOut?(r=i.length,i.stop().fadeOut(n.fadeOut,function(){0==--r&&c(i,f,n,t)})):c(i,f,n,t)}function c(t,n,r,i){var o=e(i);if(!o.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof r.onUnblock&&r.onUnblock(i,r);var a=e(document.body),s=a.width(),l=a[0].style.width;a.width(s-1).width(s),a[0].style.width=l}}function u(t,n,r){var i=n==window,a=e(n);if((t||(!i||o)&&(i||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),i&&r.bindEvents&&(!t||r.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,r,f):e(document).unbind(s,f)}}function f(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&o&&t.data.constrainTabKey){var n=a,r=!t.shiftKey&&t.target===n[n.length-1],i=t.shiftKey&&t.target===n[0];if(r||i)return setTimeout(function(){d(i)},10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function d(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function p(t,n){return parseInt(e.css(t,n),10)||0}}n(148).jQuery?(i=[n(39)],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)):a(jQuery)}()},148:function(e,t){(function(t){e.exports=t}).call(this,{})},149:function(e,t,n){(function(e,n){var r;!function(){var i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},o=i._,a=Array.prototype,s=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,u=a.slice,f=s.toString,d=s.hasOwnProperty,p=Array.isArray,m=Object.keys,v=Object.create,g=function(){},h=function(e){return e instanceof h?e:this instanceof h?void(this._wrapped=e):new h(e)};t.nodeType?i._=h:(!n.nodeType&&n.exports&&(t=n.exports=h),t._=h),h.VERSION="1.9.1";var y,b=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}},_=function(e,t,n){return h.iteratee!==y?h.iteratee(e,t):null==e?h.identity:h.isFunction(e)?b(e,t,n):h.isObject(e)&&!h.isArray(e)?h.matcher(e):h.property(e)};h.iteratee=y=function(e,t){return _(e,t,1/0)};var w=function(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}},C=function(e){if(!h.isObject(e))return{};if(v)return v(e);g.prototype=e;var t=new g;return g.prototype=null,t},x=function(e){return function(t){return null==t?void 0:t[e]}},k=function(e,t){return null!=e&&d.call(e,t)},I=function(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0},j=Math.pow(2,53)-1,S=x("length"),E=function(e){var t=S(e);return"number"==typeof t&&t>=0&&t<=j};h.each=h.forEach=function(e,t,n){var r,i;if(t=b(t,n),E(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=h.keys(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e},h.map=h.collect=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o};var O=function(e){return function(t,n,r,i){var o=arguments.length>=3;return function(t,n,r,i){var o=!E(t)&&h.keys(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var l=o?o[s]:s;r=n(r,t[l],l,t)}return r}(t,b(n,i,4),r,o)}};h.reduce=h.foldl=h.inject=O(1),h.reduceRight=h.foldr=O(-1),h.find=h.detect=function(e,t,n){var r=(E(e)?h.findIndex:h.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},h.filter=h.select=function(e,t,n){var r=[];return t=_(t,n),h.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},h.reject=function(e,t,n){return h.filter(e,h.negate(_(t)),n)},h.every=h.all=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0},h.some=h.any=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1},h.contains=h.includes=h.include=function(e,t,n,r){return E(e)||(e=h.values(e)),("number"!=typeof n||r)&&(n=0),h.indexOf(e,t,n)>=0},h.invoke=w(function(e,t,n){var r,i;return h.isFunction(t)?i=t:h.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),h.map(e,function(e){var o=i;if(!o){if(r&&r.length&&(e=I(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})}),h.pluck=function(e,t){return h.map(e,h.property(t))},h.where=function(e,t){return h.filter(e,h.matcher(t))},h.findWhere=function(e,t){return h.find(e,h.matcher(t))},h.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=E(e)?e:h.values(e)).length;s<l;s++)null!=(r=e[s])&&r>o&&(o=r);else t=_(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},h.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=E(e)?e:h.values(e)).length;s<l;s++)null!=(r=e[s])&&r<o&&(o=r);else t=_(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},h.shuffle=function(e){return h.sample(e,1/0)},h.sample=function(e,t,n){if(null==t||n)return E(e)||(e=h.values(e)),e[h.random(e.length-1)];var r=E(e)?h.clone(e):h.values(e),i=S(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=h.random(a,o),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,t)},h.sortBy=function(e,t,n){var r=0;return t=_(t,n),h.pluck(h.map(e,function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var A=function(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=_(r,i),h.each(n,function(t,i){var a=r(t,i,n);e(o,t,a)}),o}};h.groupBy=A(function(e,t,n){k(e,n)?e[n].push(t):e[n]=[t]}),h.indexBy=A(function(e,t,n){e[n]=t}),h.countBy=A(function(e,t,n){k(e,n)?e[n]++:e[n]=1});var G=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;h.toArray=function(e){return e?h.isArray(e)?u.call(e):h.isString(e)?e.match(G):E(e)?h.map(e,h.identity):h.values(e):[]},h.size=function(e){return null==e?0:E(e)?e.length:h.keys(e).length},h.partition=A(function(e,t,n){e[n?0:1].push(t)},!0),h.first=h.head=h.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:h.initial(e,e.length-t)},h.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},h.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:h.rest(e,Math.max(0,e.length-t))},h.rest=h.tail=h.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},h.compact=function(e){return h.filter(e,Boolean)};var T=function(e,t,n,r){for(var i=(r=r||[]).length,o=0,a=S(e);o<a;o++){var s=e[o];if(E(s)&&(h.isArray(s)||h.isArguments(s)))if(t)for(var l=0,c=s.length;l<c;)r[i++]=s[l++];else T(s,t,n,r),i=r.length;else n||(r[i++]=s)}return r};h.flatten=function(e,t){return T(e,t,!1)},h.without=w(function(e,t){return h.difference(e,t)}),h.uniq=h.unique=function(e,t,n,r){h.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=_(n,r));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var l=e[a],c=n?n(l,a,e):l;t&&!n?(a&&o===c||i.push(l),o=c):n?h.contains(o,c)||(o.push(c),i.push(l)):h.contains(i,l)||i.push(l)}return i},h.union=w(function(e){return h.uniq(T(e,!0,!0))}),h.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=S(e);r<i;r++){var o=e[r];if(!h.contains(t,o)){var a;for(a=1;a<n&&h.contains(arguments[a],o);a++);a===n&&t.push(o)}}return t},h.difference=w(function(e,t){return t=T(t,!0,!0),h.filter(e,function(e){return!h.contains(t,e)})}),h.unzip=function(e){for(var t=e&&h.max(e,S).length||0,n=Array(t),r=0;r<t;r++)n[r]=h.pluck(e,r);return n},h.zip=w(h.unzip),h.object=function(e,t){for(var n={},r=0,i=S(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n};var M=function(e){return function(t,n,r){n=_(n,r);for(var i=S(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}};h.findIndex=M(1),h.findLastIndex=M(-1),h.sortedIndex=function(e,t,n,r){for(var i=(n=_(n,r,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o};var P=function(e,t,n){return function(r,i,o){var a=0,s=S(r);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(u.call(r,a,s),h.isNaN))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}};h.indexOf=P(1,h.findIndex,h.sortedIndex),h.lastIndexOf=P(-1,h.findLastIndex),h.range=function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i},h.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(u.call(e,r,r+=t));return n};var L=function(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=C(e.prototype),a=e.apply(o,i);return h.isObject(a)?a:o};h.bind=w(function(e,t,n){if(!h.isFunction(e))throw new TypeError("Bind must be called on a function");var r=w(function(i){return L(e,r,t,this,n.concat(i))});return r}),h.partial=w(function(e,t){var n=h.partial.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return L(e,r,this,this,a)};return r}),h.partial.placeholder=h,h.bindAll=w(function(e,t){var n=(t=T(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=h.bind(e[r],e)}}),h.memoize=function(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return k(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n},h.delay=w(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),h.defer=h.partial(h.delay,h,1),h.throttle=function(e,t,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:h.now(),r=null,a=e.apply(i,o),r||(i=o=null)},c=function(){var c=h.now();s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c},h.debounce=function(e,t,n){var r,i,o=function(t,n){r=null,n&&(i=e.apply(t,n))},a=w(function(a){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(o,t),s&&(i=e.apply(this,a))}else r=h.delay(o,t,this,a);return i});return a.cancel=function(){clearTimeout(r),r=null},a},h.wrap=function(e,t){return h.partial(t,e)},h.negate=function(e){return function(){return!e.apply(this,arguments)}},h.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},h.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},h.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},h.once=h.partial(h.before,2),h.restArguments=w;var N=!{toString:null}.propertyIsEnumerable("toString"),Q=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(e,t){var n=Q.length,r=e.constructor,i=h.isFunction(r)&&r.prototype||s,o="constructor";for(k(e,o)&&!h.contains(t,o)&&t.push(o);n--;)(o=Q[n])in e&&e[o]!==i[o]&&!h.contains(t,o)&&t.push(o)};h.keys=function(e){if(!h.isObject(e))return[];if(m)return m(e);var t=[];for(var n in e)k(e,n)&&t.push(n);return N&&B(e,t),t},h.allKeys=function(e){if(!h.isObject(e))return[];var t=[];for(var n in e)t.push(n);return N&&B(e,t),t},h.values=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},h.mapObject=function(e,t,n){t=_(t,n);for(var r=h.keys(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o},h.pairs=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},h.invert=function(e){for(var t={},n=h.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},h.functions=h.methods=function(e){var t=[];for(var n in e)h.isFunction(e[n])&&t.push(n);return t.sort()};var z=function(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,l=0;l<s;l++){var c=a[l];t&&void 0!==n[c]||(n[c]=o[c])}return n}};h.extend=z(h.allKeys),h.extendOwn=h.assign=z(h.keys),h.findKey=function(e,t,n){t=_(t,n);for(var r,i=h.keys(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r};var U,F,D=function(e,t,n){return t in n};h.pick=w(function(e,t){var n={},r=t[0];if(null==e)return n;h.isFunction(r)?(t.length>1&&(r=b(r,t[1])),t=h.allKeys(e)):(r=D,t=T(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n}),h.omit=w(function(e,t){var n,r=t[0];return h.isFunction(r)?(r=h.negate(r),t.length>1&&(n=t[1])):(t=h.map(T(t,!1,!1),String),r=function(e,n){return!h.contains(t,n)}),h.pick(e,r,n)}),h.defaults=z(h.allKeys,!0),h.create=function(e,t){var n=C(e);return t&&h.extendOwn(n,t),n},h.clone=function(e){return h.isObject(e)?h.isArray(e)?e.slice():h.extend({},e):e},h.tap=function(e,t){return t(e),e},h.isMatch=function(e,t){var n=h.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},U=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&F(e,t,n,r)},F=function(e,t,n,r){e instanceof h&&(e=e._wrapped),t instanceof h&&(t=t._wrapped);var i=f.call(e);if(i!==f.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(h.isFunction(a)&&a instanceof a&&h.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),o){if((c=e.length)!==t.length)return!1;for(;c--;)if(!U(e[c],t[c],n,r))return!1}else{var u,d=h.keys(e);if(c=d.length,h.keys(t).length!==c)return!1;for(;c--;)if(u=d[c],!k(t,u)||!U(e[u],t[u],n,r))return!1}return n.pop(),r.pop(),!0},h.isEqual=function(e,t){return U(e,t)},h.isEmpty=function(e){return null==e||(E(e)&&(h.isArray(e)||h.isString(e)||h.isArguments(e))?0===e.length:0===h.keys(e).length)},h.isElement=function(e){return!(!e||1!==e.nodeType)},h.isArray=p||function(e){return"[object Array]"===f.call(e)},h.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},h.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){h["is"+e]=function(t){return f.call(t)==="[object "+e+"]"}}),h.isArguments(arguments)||(h.isArguments=function(e){return k(e,"callee")});var V=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof V&&(h.isFunction=function(e){return"function"==typeof e||!1}),h.isFinite=function(e){return!h.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},h.isNaN=function(e){return h.isNumber(e)&&isNaN(e)},h.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===f.call(e)},h.isNull=function(e){return null===e},h.isUndefined=function(e){return void 0===e},h.has=function(e,t){if(!h.isArray(t))return k(e,t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(null==e||!d.call(e,i))return!1;e=e[i]}return!!n},h.noConflict=function(){return i._=o,this},h.identity=function(e){return e},h.constant=function(e){return function(){return e}},h.noop=function(){},h.property=function(e){return h.isArray(e)?function(t){return I(t,e)}:x(e)},h.propertyOf=function(e){return null==e?function(){}:function(t){return h.isArray(t)?I(e,t):e[t]}},h.matcher=h.matches=function(e){return e=h.extendOwn({},e),function(t){return h.isMatch(t,e)}},h.times=function(e,t,n){var r=Array(Math.max(0,e));t=b(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},h.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},h.now=Date.now||function(){return(new Date).getTime()};var q={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},H=h.invert(q),R=function(e){var t=function(t){return e[t]},n="(?:"+h.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};h.escape=R(q),h.unescape=R(H),h.result=function(e,t,n){h.isArray(t)||(t=[t]);var r=t.length;if(!r)return h.isFunction(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=h.isFunction(o)?o.call(e):o}return e};var W=0;h.uniqueId=function(e){var t=++W+"";return e?e+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var $=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Z=/\\|'|\r|\n|\u2028|\u2029/g,Y=function(e){return"\\"+K[e]};h.template=function(e,t,n){!t&&n&&(t=n),t=h.defaults({},t,h.templateSettings);var r,i=RegExp([(t.escape||$).source,(t.interpolate||$).source,(t.evaluate||$).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(i,function(t,n,r,i,s){return a+=e.slice(o,s).replace(Z,Y),o=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return r.call(this,e,h)},l=t.variable||"obj";return s.source="function("+l+"){\n"+a+"}",s},h.chain=function(e){var t=h(e);return t._chain=!0,t};var J=function(e,t){return e._chain?h(t).chain():t};h.mixin=function(e){return h.each(h.functions(e),function(t){var n=h[t]=e[t];h.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),J(this,n.apply(h,e))}}),h},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=a[e];h.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],J(this,n)}}),h.each(["concat","join","slice"],function(e){var t=a[e];h.prototype[e]=function(){return J(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},h.prototype.valueOf=h.prototype.toJSON=h.prototype.value,h.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return h}.apply(t,[]))||(n.exports=r)}()}).call(this,n(49),n(150)(e))},150:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},151:function(e,t){jQuery(function(e){var t=jQuery("form.give-form"),n=e(document);e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),n.on("change","#give_cc_address input.card_state, #give_cc_address select",function(){var t=e(this),r=t.parents("form");if("card_state"!==t.attr("id")){r.find("#card_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var i={action:"give_get_states",country:t.val(),field_name:"card_state"};e.ajax({type:"POST",data:i,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var t="",i=e.states_label;if(t=void 0!==e.states_found&&!0===e.states_found?e.data:'<input type="text" id="card_state" name="card_state" class="cart-state give-input required" placeholder="'.concat(i,'" value="').concat(e.default_state,'" autocomplete="address-level4"/>'),!1===r.hasClass("float-labels-enabled")){void 0!==e.states_require&&!0===e.states_require?r.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").removeClass("give-hidden"):r.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").addClass("give-hidden");var o=r.find('input[name="card_city"]');void 0!==e.city_require&&!0===e.city_require?(o.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),o.attr("required",!0)):(o.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),o.removeAttr("required"))}else r.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label").text(i);r.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .state-label-text").text(i),r.find('input[name="card_state"], select[name="card_state"]').replaceWith(t),void 0!==e.show_field&&!0===e.show_field?(r.find("p#give-card-state-wrap").removeClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-last"),r.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(r.find("p#give-card-state-wrap").addClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-wide"),r.find("p#give-card-zip-wrap").removeClass("form-row-last")),n.trigger("give_checkout_billing_address_updated",[e,r.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}),n.on("give_gateway_loaded",function(){Give.form.fn.field.formatCreditCard(t)}),n.on("submit","#give_payment_mode",function(){if(!Give.form.fn.getGateway(e(this).closest("form")).length)return alert(Give.fn.getGlobalVar("no_gateway")),!1}),n.on("click","#give-payment-mode-select input",function(){var t,n=e(this).parents("form"),r=n.find("#give-payment-mode-select li"),i=n.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();r.removeClass("give-gateway-option-selected"),r.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),t=Give.form.fn.getGateway(n),n.attr("action",n.attr("action").replace("payment-mode="+i,"payment-mode="+t))}),n.on("focus",".give-donation-amount .give-text-input",function(t){var n=e(this).parents("form");e(this).removeClass("invalid-amount");var r=n.find(".give-final-total-amount").attr("data-total"),i=Give.form.fn.getInfo("decimal_separator",n);e(this).attr("data-amount",Give.fn.unFormatCurrency(r,i)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),n.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),n.find(".give-btn-level-custom").addClass("give-default-level"),n.find(".give-radio-input").prop("checked",!1),n.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),n.find(".give-select-level").prop("selected",!1),n.find(".give-select-level .give-donation-level-custom").prop("selected",!0)}),n.on("blur",".give-donation-amount .give-text-input",function(t,n,r,i){var o=void 0!==n?n:e(this).closest("form"),a=e(this).attr("data-amount"),s=void 0!==r?r:e(this).val(),l=Give.form.fn.getInfo("decimal_separator",o),c=Give.form.fn.getMinimumAmount(o),u=Give.form.fn.getMaximumAmount(o),f=0===s?c:Give.fn.unFormatCurrency(s,l),d=Give.form.fn.formatAmount(f,o,{});if(i=void 0===i?Give.form.fn.getPriceID(o,!0):i,""===f||0===f){var p=e('.give-donation-levels-wrap [data-default="1"]',n);p.length&&(i=p.data("price-id"),s=f=Give.fn.unFormatCurrency(p.val(),l),d=Give.form.fn.formatAmount(f,o,{}))}if(Give.fn.setCache("amount_"+f,i,o),e(this).val(d),Give.form.fn.isValidDonationAmount(o))e(this).removeClass("give-invalid-amount"),o.find(".give-invalid-minimum, .give-invalid-maximum").slideUp(300,function(){e(this).remove()}),Give.form.fn.disable(o,!1);else{e(this).addClass("give-invalid-amount"),Give.form.fn.disable(o,!0);var m=o.find(".give-invalid-minimum"),v=o.find(".give-invalid-maximum");0===m.length&&f<c?Give.notice.fn.renderNotice("bad_minimum",o):f>=c&&m.slideUp(300,function(){e(this).remove()}),0===v.length&&f>u?Give.notice.fn.renderNotice("bad_maximum",o):f<=u&&v.slideUp(300,function(){e(this).remove()})}a!==f&&o.find(".give-final-total-amount").attr("data-total",f).text(Give.fn.formatCurrency(f,{symbol:Give.form.fn.getInfo("currency_symbol",o),position:Give.form.fn.getInfo("currency_position",o)},o)),-1!==i&&(e('input[name="give-price-id"]',o).val(i),o.find(".give-amount-hidden").val(Give.form.fn.formatAmount(f,o,{})),o.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(o,i)),e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in"),e(document).trigger("give_donation_value_updated",[o,f,i])}),n.on("click touchend",".give-donation-level-btn",function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click touchend",".give-radio-input-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("change",".give-select-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),n.on("click",".give_terms_links",function(t){t.preventDefault();var n=e(this).closest("fieldset");return e("[class^=give_terms-]",n).slideToggle(),e("a.give_terms_links",n).toggle(),!1}),e('label[for^="give-radio-level"]').on("click",function(t){var n=e(this).closest("form").find("#"+e(this).attr("for"));n.length&&(n.trigger("click"),t.preventDefault())})}),jQuery(window).on("load",function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",function(e){var t=jQuery(this),n=t.parents("form.give-form"),r=t.attr("id"),i=n.find(".card-number"),o=n.find(".card-cvc"),a=n.find(".card-expiry"),s=jQuery.payment.cardType(i.val()),l=!1;switch(e.type){case"focusout":r.indexOf("card_number")>-1?(l=!jQuery.payment.validateCardNumber(i.val()),i.toggleError(l)):r.indexOf("card_cvc")>-1?(l=!jQuery.payment.validateCardCVC(o.val(),s),o.toggleError(l)):r.indexOf("card_expiry")>-1&&(l=!jQuery.payment.validateCardExpiry(a.payment("cardExpiryVal")),a.toggleError(l)),Give.form.fn.disable(t.parents("form"),l);break;default:if(t.hasClass("error")&&t.removeClass("error"),r.indexOf("card_number")>-1){var c=n.find(".card-type");null===s?(c.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):c.removeClass().addClass("card-type "+s)}else if(r.indexOf("card_expiry")>-1){var u=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(u.month),n.find(".card-expiry-year").val(u.year)}}})})},17:function(e,t,n){"use strict";var r={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,r,i;if(n=r=i="",t.length)switch(e){case"bad_minimum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==r&&(n=r+" "+Give.fn.formatCurrency(i,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n}}},i={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.addEventListener("load",function(){Give.form.fn.__sendBackToForm()})},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?t:{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())});break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,r){if(!n.length)return!1;switch(e=void 0===e?"data":e){case"nonce":n.find('input[name="give-form-hash"]').val(t)}if(void 0!==r&&!r.length)return!1;switch(e){case"attr":n.attr(r,t);break;default:n.data(r,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,function(t,r){r=r instanceof jQuery?r:jQuery(r);var i=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:r.data("price-id"),amount:Give.fn.unFormatCurrency(r.val(),i)})}),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),r=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),i=Give.fn.getCache("amount_"+r,e)?Give.fn.getCache("amount_"+r,e):-1;return t=void 0===t||t,n.length&&-1===i&&(t?(jQuery.each(n,function(e,t){if(t.amount===r)return i=t.price_id,!1}),-1===i&&this.getMinimumAmount(e)<=r&&this.getMaximumAmount(e)>=r&&this.getMinimumAmount(e)<=r&&(i="custom")):i=jQuery('input[name="give-price-id"]',e).val()),i},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)})},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise(function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},function(r){if(!r.success)return n(r);var i=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",r.data.give_form_hash,e,""),i.length&&i.val(r.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[r.data]),t(r)}).done(function(){Give.form.fn.disable(e,!1)})}))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),r=e.data("price-id");if(void 0===r&&(r=e.find("option:selected").data("price-id")),"custom"===r)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var i=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),i)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,r])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),r=n.find("form.give-form"),i=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");r.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),r.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=r.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):i||o?give_open_form_modal(n,r):a&&(r.find(".give-btn-reveal").hide(),r.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),r=this.getAmount(e),i=this.getPriceID(e,!0);return 0!==r&&(-1<r&&r>=t&&r<=n||-1!==i)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]})},field:{formatCreditCard:function(e){e.each(function(e,t){var n=(t=jQuery(t)).find(".card-number"),r=t.find(".card-cvc"),i=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),r.payment("formatCardCVC"),i.payment("formatCardExpiry"))})}}}},o={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},a={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)a[e[t]].init&&a[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var r={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(r={symbol:"",decimal:a.form.fn.getInfo("decimal_separator",n),thousand:a.form.fn.getInfo("thousands_separator",n),precision:a.form.fn.getInfo("number_decimals",n),currency:a.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){var i,o=parseFloat(e).toFixed(r.precision),s=t.precision?".0":"",l="",c="",u="";(o=(o=accounting.unformat(o,".").toString()).toString()).indexOf(".")>0&&(s=o.substring(o.indexOf("."),o.length)),l=(o=Math.floor(o).toString()).substring(o.length-3),""!==(c=o.substring(0,o.length-3))&&(l=r.thousand+l),i=(u=c.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+l+s).lastIndexOf("."),e=u=u.slice(0,i)+(u.slice(i)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?a.cache["form_"+a.form.fn.getInfo("form-id",n)][e]=t:a.cache[e]=t},getCache:function(e,t){var n,r=a.cache["form_"+a.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":a.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n}},cache:{}};a.notice=r,a.form=i,a.donor=o;t.a=a},341:function(e,t,n){"use strict";n.r(t);n(145),n(75),n(146),n(56),n(77);var r=n(17),i=(n(151),n(10)),o=n.n(i);function a(e,t){var n=jQuery(e).find("#give-payment-mode-select .give-loading-text"),r=jQuery(e).find("#give-amount").val(),i=jQuery(e).find('input[name="give-form-id"]').val(),o=jQuery(e).find('input[name="give-form-id-prefix"]').val();n.fadeIn(),1!=jQuery(e).data()["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),jQuery.post(Give.fn.getGlobalVar("ajaxurl")+"?payment-mode="+t,{action:"give_load_gateway",give_total:r,give_form_id:i,give_form_id_prefix:o,give_payment_mode:t,nonce:Give.form.fn.getNonce(e)},function(t){jQuery(e).unblock(),jQuery(e).find("#give_purchase_form_wrap").html(t),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),jQuery(document).trigger("give_gateway_loaded",[t,jQuery(e).attr("id")])})}
|
22 |
/*!
|
23 |
* Give AJAX JS
|
24 |
*
|
28 |
* @copyright: Copyright (c) 2016, GiveWP
|
29 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
30 |
*/
|
31 |
+
jQuery(document).ready(function(e){Give.form.fn.isFormExist()&&(e(".give-loading-text").hide(),e(".give-form").each(function(e,t){var n,r;t=jQuery(t),(n=Give.form.fn.getNonceInfo(t)).el.attr("data-donor-session")&&(!n.createdInDonorSession&&!Give.donor.fn.hasSession(t)||Give.donor.fn.isLoggedIn())||Give.form.fn.resetAllNonce(t),r=0>(r=1e3*(parseInt(n.el.data("time"))+parseInt(n.el.data("nonce-life")))-Date.now())?r:r+100,window.setTimeout(function(){Give.form.fn.resetAllNonce(t)},r)})),e(document).on("click",".give-checkout-login",function(t){var n=e(this),r=e(this).parents("form"),i=e(r).find('[id^="give-checkout-login-register"] .give-loading-text'),o={action:n.data("action"),form_id:e(r).find('[name="give-form-id"]').val()};return i.show(),e.post(Give.fn.getGlobalVar("ajaxurl"),o,function(t){e(r).find("[id^=give-checkout-login-register]").html(t),e(r).find(".give-submit-button-wrap").hide()}).done(function(){i.hide(),give_fl_trigger()}),!1}),e(document).on("click",".give-checkout-register-cancel",function(t){t.preventDefault();var n=e(this),r=e(this).parents("form"),i={action:n.data("action"),form_id:e(r).find('[name="give-form-id"]').val()};e.post(Give.fn.getGlobalVar("ajaxurl"),i,function(t){e(r).find("[id^=give-checkout-login-register]").html(e.parseJSON(t.fields)),e(r).find(".give-submit-button-wrap").show()}).done(function(){give_fl_trigger()})}),e(document).on("click","[id^=give-login-fields] input[type=submit]",function(t){t.preventDefault();var n=e(this).val(),r=e(this).parents("form");e(this).val(Give.fn.getGlobalVar("purchase_loading")),r.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var i={action:"give_process_donation_login",give_ajax:1,give_user_login:r.find("[name=give_user_login]").val(),give_user_pass:r.find("[name=give_user_pass]").val(),give_form_id:r.find("[name=give-form-id]").val()};e.post(Give.fn.getGlobalVar("ajaxurl"),i,function(t){null!=e.trim(o()(t.success))&&1==t.success&&null!=o()(t.data)?(r.find(".give_errors").remove(),r.find("#give-payment-mode-select").after(t.data),r.find(".give_notices.give_errors").delay(5e3).slideUp(),Give.form.fn.resetAllNonce(r).then(function(e){a(r,r.find(".give-gateway-option-selected input").val())})):(r.find("[id^=give-login-fields] input[type=submit]").val(n),r.find(".give-loading-animation").fadeOut(),r.find(".give_errors").remove(),r.find("[id^=give-user-login-submit]").before(t.data))})}),e("select#give-gateway, input.give-gateway").on("change",function(t){t.preventDefault();var n=e(this).val();return"0"==n?(console.log("There was a problem loading the selected gateway"),!1):(a(e(this).parents("form"),n),!1)}),e("body").on("click","#give-confirm-email-btn",function(t){var n=e(this),r={action:"give_confirm_email_for_donations_access",email:n.data("email"),nonce:Give.fn.getGlobalVar("ajax_vars").ajaxNonce};return n.text(Give.fn.getGlobalVar("loading")),n.attr("disabled","disabled"),e.post(Give.fn.getGlobalVar("ajaxurl"),r,function(e){"error"===(e=JSON.parse(e)).status?(n.closest("#give_user_history tfoot").hide(),n.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message)):"success"===e.status&&(n.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message),n.hide(),n.closest(".give-security-button-wrap").find("span").show())}),!1}),e("body").on("click touchend",'form.give-form input[name="give-purchase"].give-submit',function(t){var n=e(this),r=n.parents("form.give-form"),i=r.find('input[type="submit"].give-submit + .give-loading-animation');i.fadeIn();var o=r.get(0);if("function"!=typeof o.checkValidity||!1!==o.checkValidity()||(i.fadeOut(),!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")))){t.preventDefault();var a=e(this).val();e(this).val(Give.fn.getGlobalVar("purchase_loading")),Give.form.fn.disable(r,!0),e.post(Give.fn.getGlobalVar("ajaxurl"),r.serialize()+"&action=give_process_donation&give_ajax=true",function(t){"success"==e.trim(t)?(r.find(".give_errors").remove(),e(o).submit(),r.trigger("give_form_validation_passed")):(n.val(a),i.fadeOut(),r.find(".give_errors").remove(),r.find('#give_purchase_submit input[type="submit"].give-submit').before(t),Give.form.fn.disable(r,!1))})}});var t=document.getElementById("give-receipt");if(t){var n={action:"get_receipt",shortcode_atts:t.getAttribute("data-shortcode"),donation_id:t.getAttribute("data-donation-key"),receipt_type:t.getAttribute("data-receipt-type")};n[Give.fn.getGlobalVar("session_cookie_name")]=Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name")),e.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"GET",data:n,success:function(e){t.innerHTML=e}})}});var s=n(110),l=n.n(s);jQuery(function(e){var t=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),e(".js-give-grid-modal-launcher").magnificPopup({type:"inline",fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide give-modal"}),void 0!==window.csGlobal&&window.jQuery(function(e){window.csGlobal.csHooks.filter("hash_scrolling_allow",function(t,n){return!e(n).hasClass("give-card")&&t})}),t.on("click touchend",".give-disabled",function(e){return e.preventDefault(),!1}),t.on("give_gateway_loaded",function(e,t,n){give_fl_trigger()}),t.on("give_checkout_billing_address_updated",function(t,n,r){e("form#"+r).hasClass("float-labels-enabled")&&give_fl_trigger()}),t.on("click",".give-btn-reveal",function(t){t.preventDefault();var n=e(this),r=e(this).parents("form"),i=e("#give-payment-mode-select"),o="";return n.hide(),e("li",i).length>1&&(o="#give-payment-mode-select, "),r.find(o+"#give_purchase_form_wrap").slideDown(),!1}),t.on("click",".give-btn-modal",function(t){t.preventDefault();var n=e(this).parents("div.give-form-wrap"),r=n.find("form.give-form"),i=r.find("#give-amount"),o=i.val();if(!o||o<=0)return i.focus(),!1;give_open_form_modal(n,r)});var n=jQuery('.give_notice[data-dismiss-type="auto"]');n.length&&n.each(function(t,n){n=e(n),window.setTimeout(function(){n.slideUp()},n.data("dismiss-interval"))}),e("body").on("click",".give-notice-close",function(){e(this).hide(),e(this).closest(".give_notices").slideUp()}),t.on("change","#give_profile_billing_address_wrap #give_address_country",update_profile_state_field),window.addEventListener("pageshow",function(t){if(t.persisted||o()("undefined")!==window.performance&&2===window.performance.navigation.type){var n=e("body").find("form.give-form");n.length&&(n[0].reset(),Give.form.fn.resetAllNonce(n))}})}),window.give_open_form_modal=function(e,t){var n="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden, .give-form-title";jQuery.magnificPopup.open({mainClass:Give.fn.getGlobal().magnific_options.main_class,closeOnBgClick:Give.fn.getGlobal().magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,removalDelay:250,items:{src:t,type:"inline"},callbacks:{beforeOpen:function(){jQuery("body").addClass("give-modal-open");var n=jQuery(".give-form-title",e);if(e.hasClass("give-modal")&&!t.data("content"))n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded");else if(e.hasClass("give-display-button-only")&&!t.data("content")){var r=jQuery(".give-form-content-wrap",e),i=jQuery(".give-goal-progress",e),o=jQuery(">.give_error",e),a=jQuery(".give_errors",e);r.length&&!jQuery(".give-form-content-wrap",t).length&&(r.hasClass("give_post_form-content")?t.append(r):t.prepend(r)),a.length&&!jQuery(".give_errors",t).length&&a.each(function(e,n){t.prepend(jQuery(n))}),o.length&&!jQuery(">.give_error",t).length&&o.each(function(e,n){t.prepend(jQuery(n))}),i.length&&!jQuery(".give-goal-progress",t).length&&t.prepend(i),n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded")}},open:function(){var r=jQuery(".mfp-content");r.outerWidth()>=500&&r.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(n=t.children().not(".give-btn-modal")),t.children().not(n).hide()},close:function(){t.removeClass("mfp-hide"),jQuery("body").removeClass("give-modal-open"),t.children().not(n).show()}}})},window.give_fl_trigger=function(){window.give_float_labels=void 0===window.give_float_labels?{}:window.give_float_labels,window.give_float_labels instanceof l.a?window.give_float_labels.rebuild():window.give_float_labels=new l.a(".float-labels-enabled",{exclude:"#give-amount, .give-select-level, [multiple], .give-honeypot",prioritize:"placeholder",prefix:"give-fl-",style:"give"})},window.give_change_html5_form_field_validation_message=function(){var e,t=jQuery(".give-form");t.length&&jQuery.each(t,function(t,n){(e=jQuery("input",n)).length&&jQuery.each(e,function(e,t){t=jQuery(t).get(0),Give.fn.getGlobal().form_translation.hasOwnProperty(t.name)&&(t.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(Give.fn.getGlobal().form_translation[t.name])})})})},window.update_profile_state_field=function(){var e=jQuery(this),t=e.parents("form");if("give_address_country"===e.attr("id")){t.find("#give_address_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var n={action:"give_get_states",country:e.val(),field_name:"give_address_state"};jQuery.ajax({type:"POST",data:n,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var n="",r=e.states_label;n=null!=o()(e.states_found)&&1==e.states_found?e.data:'<input type="text" id="give_address_state" name="give_address_state" class="text give-input" placeholder="'+r+'" value="'+e.default_state+'"/>',t.find('input[name="give_address_state"], select[name="give_address_state"]').replaceWith(n),null!=o()(e.show_field)&&1==e.show_field?(t.find("p#give-card-state-wrap").removeClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-last"),t.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(t.find("p#give-card-state-wrap").addClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-wide"),t.find("p#give-card-zip-wrap").removeClass("form-row-last"))}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1};var c=n(5),u=n.n(c),f=n(8),d=n.n(f),p=(n(57),new(function(){function e(){u()(this,e),window.addEventListener("load",function(){window.addDynamicEventListener(document,"click",".give-donor__read-more",e.readMoreBtnEvent),window.addDynamicEventListener(document,"click",".give-donor__load_more",e.loadMoreBtnEvent)},!1),window.addEventListener("load",function(){e.loadGravatars()})}return d()(e,null,[{key:"readMoreBtnEvent",value:function(e){return e.preventDefault(),jQuery.magnificPopup.open({items:{src:e.target.parentNode.parentNode.parentNode.getElementsByClassName("give-donor__comment")[0],type:"inline"},mainClass:"give-modal give-donor-wall-modal",closeOnBgClick:!1}),!1}},{key:"loadMoreBtnEvent",value:function(t){t.preventDefault();var n=t.target,r=n.parentNode,i=r.getElementsByClassName("give-donor-wall-shortcode-attrs")[0];return jQuery.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"POST",data:{action:"give_get_donor_comments",data:i.getAttribute("data-shortcode")},beforeSend:function(){n.className+=" give-active",n.setAttribute("disabled","disabled")}}).done(function(t){n.classList.remove("give-active"),n.removeAttribute("disabled","disabled"),t.html.length&&r.getElementsByClassName("give-grid")[0].insertAdjacentHTML("beforeend",t.html),t.shortcode.length&&i.setAttribute("data-shortcode",t.shortcode),t.remaining||n.remove(),e.loadGravatar(i)}),!1}},{key:"loadGravatars",value:function(){Array.from(document.querySelectorAll(".give-donor-wall-shortcode-attrs")).forEach(function(t,n){e.loadGravatar(t)})}},{key:"loadGravatar",value:function(e){var t,r,i=n(78);if(!("1"===Give.fn.getParameterByName("show_avatar",decodeURIComponent(e.getAttribute("data-shortcode")))))return!1;Array.from(e.parentNode.querySelectorAll(".give-grid__item")).forEach(function(e,n){if(!(t=e.querySelector(".give-donor__image")).classList.contains("gravatar-loaded")){if(r=t.getAttribute("data-donor_email"),"1"===t.getAttribute("data-has-valid-gravatar")){var o=document.createElement("IMG");t.innerHTML="",o.setAttribute("src",i.url(r)),o.setAttribute("width","60"),o.setAttribute("height","60"),t.appendChild(o)}t.className+=" gravatar-loaded"}})}}]),e}()),r.a.init),m=r.a.fn,v=r.a.form,g=r.a.notice,h=r.a.cache,y=r.a.donor;window.Give={init:p,fn:m,form:v,notice:g,cache:h,donor:y}},39:function(e,t){e.exports=jQuery},49:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},5:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},56:function(e,t,n){var r,i,o;
|
32 |
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
33 |
* http://dimsemenov.com/plugins/magnific-popup/
|
34 |
+
* Copyright (c) 2016 Dmitry Semenov; */i=[n(39)],void 0===(o="function"==typeof(r=function(e){var t,n,r,i,o,a,s=function(){},l=!!window.jQuery,c=e(window),u=function(e,n){t.ev.on("mfp"+e+".mfp",n)},f=function(t,n,r,i){var o=document.createElement("div");return o.className="mfp-"+t,r&&(o.innerHTML=r),i?n&&n.appendChild(o):(o=e(o),n&&o.appendTo(n)),o},d=function(n,r){t.ev.triggerHandler("mfp"+n,r),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(r)?r:[r]))},p=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},m=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),r=e(document),t.popupsCache={}},open:function(n){var i;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(i=0;i<s.length;i++)if((a=s[i]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=i;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],o="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=r,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=f("bg").on("click.mfp",function(){t.close()}),t.wrap=f("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=f("container",t.wrap)),t.contentContainer=f("content"),t.st.preloader&&(t.preloader=f("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(i=0;i<l.length;i++){var m=l[i];m=m.charAt(0).toUpperCase()+m.slice(1),t["init"+m].call(t)}d("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(u("MarkupParse",function(e,t,n,r){n.close_replaceWith=p(r.type)}),o+=" mfp-close-btn-in"):t.wrap.append(p())),t.st.alignTop&&(o+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:r.height(),position:"absolute"}),t.st.enableEscapeKey&&r.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),c.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&t.wrap.addClass(o);var v=t.wH=c.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(v)){var h=t._getScrollbarSize();h&&(g.marginRight=h)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),d("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),r.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(v),d("Open"),n}t.updateItemHTML()},close:function(){t.isOpen&&(d("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){d("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body, html").css("overflow",""):i.overflow="",e("html").css(i)}r.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,d("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*n;t.wrap.css("height",r),t.wH=r}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),d("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var r=n.type;if(d("BeforeChange",[t.currItem?t.currItem.type:"",r]),t.currItem=n,!t.currTemplate[r]){var o=!!t.st[r]&&t.st[r].markup;d("FirstMarkupParse",o),t.currTemplate[r]=!o||e(o)}i&&i!==n.type&&t.container.removeClass("mfp-"+i+"-holder");var a=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](n,t.currTemplate[r]);t.appendContent(a,r),n.preloaded=!0,d("Change",n),i=n.type,t.container.prepend(t.contentContainer),d("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(p()):t.content=e:t.content="",d("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var r,i=t.items[n];if(i.tagName?i={el:e(i)}:(r=i.type,i={data:i,src:i.src}),i.el){for(var o=t.types,a=0;a<o.length;a++)if(i.el.hasClass("mfp-"+o[a])){r=o[a];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=r||t.st.type||"inline",i.index=n,i.parsed=!0,t.items[n]=i,d("ElementParse",i),t.items[n]},addGroup:function(e,n){var r=function(r){r.mfpEl=this,t._openClick(r,e,n)};n||(n={});var i="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(i).on(i,r)):(n.isObj=!1,n.delegate?e.off(i).on(i,n.delegate,r):(n.items=e,e.off(i).on(i,r)))},_openClick:function(n,r,i){var o=void 0!==i.midClick?i.midClick:e.magnificPopup.defaults.midClick;if(o||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var a=void 0!==i.disableOn?i.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(c.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),i.el=e(n.mfpEl),i.delegate&&(i.items=r.find(i.delegate)),t.open(i)}},updateStatus:function(e,r){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),r||"loading"!==e||(r=t.st.tLoading);var i={status:e,text:r};d("UpdateStatus",i),e=i.status,r=i.text,t.preloader.html(r),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var r=t.st.closeOnContentClick,i=t.st.closeOnBgClick;if(r&&i)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(r)return!0}else if(i&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?r.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,r){var i;r.data&&(n=e.extend(r.data,n)),d("MarkupParse",[t,n,r]),e.each(n,function(n,r){if(void 0===r||!1===r)return!0;if((i=n.split("_")).length>1){var o=t.find(".mfp-"+i[0]);if(o.length>0){var a=i[1];"replaceWith"===a?o[0]!==r[0]&&o.replaceWith(r):"img"===a?o.is("img")?o.attr("src",r):o.replaceWith(e("<img>").attr("src",r).attr("class",o.attr("class"))):o.attr(i[1],r)}}else t.find(".mfp-"+n).html(r)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return m(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){m();var r=e(this);if("string"==typeof n)if("open"===n){var i,o=l?r.data("magnificPopup"):r[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?i=o.items[a]:(i=r,o.delegate&&(i=i.find(o.delegate)),i=i.eq(a)),t._openClick({mfpEl:i},r,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?r.data("magnificPopup",n):r[0].magnificPopup=n,t.addGroup(r,n);return r};var v,g,h,y=function(){h&&(g.after(h.addClass(v)).detach(),h=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),u("Close.inline",function(){y()})},getInline:function(n,r){if(y(),n.src){var i=t.st.inline,o=e(n.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(g||(v=i.hiddenClass,g=f(v),v="mfp-"+v),h=o.after(g).detach().removeClass(v)),t.updateStatus("ready")}else t.updateStatus("error",i.tNotFound),o=e("<div>");return n.inlineElement=o,o}return t.updateStatus("ready"),t._parseMarkup(r,{},n),r}}});var b,_=function(){b&&e(document.body).removeClass(b)},w=function(){_(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),b=t.st.ajax.cursor,u("Close.ajax",w),u("BeforeChange.ajax",w)},getAjax:function(n){b&&e(document.body).addClass(b),t.updateStatus("loading");var r=e.extend({url:n.src,success:function(r,i,o){var a={data:r,xhr:o};d("ParseAjax",a),t.appendContent(e(a.data),"ajax"),n.finished=!0,_(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),d("AjaxContentAdded")},error:function(){_(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(r),""}}});var C,x,k=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var r=t.st.image.titleSrc;if(r){if(e.isFunction(r))return r.call(t,n);if(n.el)return n.el.attr(r)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,r=".image";t.types.push("image"),u("Open"+r,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),u("Close"+r,function(){n.cursor&&e(document.body).removeClass(n.cursor),c.off("resize.mfp")}),u("Resize"+r,t.resizeImage),t.isLowIE&&u("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,C&&clearInterval(C),e.isCheckingImgSize=!1,d("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,r=e.img[0],i=function(o){C&&clearInterval(C),C=setInterval(function(){r.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(C),3==++n?i(10):40===n?i(50):100===n&&i(500))},o)};i(1)},getImage:function(n,r){var i=0,o=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,d("ImageLoadComplete")):++i<200?setTimeout(o,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=r.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",o).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(r,{title:k(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(C&&clearInterval(C),n.loadError?(r.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(r.removeClass("mfp-loading"),t.updateStatus("ready")),r):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,r.addClass("mfp-loading"),t.findImageSize(n)),r)}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,r=".zoom";if(n.enabled&&t.supportsTransition){var i,o,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),r="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return i["-webkit-"+o]=i["-moz-"+o]=i["-o-"+o]=i[o]=r,t.css(i),t},l=function(){t.content.css("visibility","visible")};u("BuildControls"+r,function(){if(t._allowZoom()){if(clearTimeout(i),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(o=s(e)).css(t._getOffset()),t.wrap.append(o),i=setTimeout(function(){o.css(t._getOffset(!0)),i=setTimeout(function(){l(),setTimeout(function(){o.remove(),e=o=null,d("ZoomAnimationEnded")},16)},a)},16)}}),u("BeforeClose"+r,function(){if(t._allowZoom()){if(clearTimeout(i),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;o=s(e)}o.css(t._getOffset(!0)),t.wrap.append(o),t.content.css("visibility","hidden"),setTimeout(function(){o.css(t._getOffset())},16)}}),u("Close"+r,function(){t._allowZoom()&&(l(),o&&o.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var r,i=(r=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),o=parseInt(r.css("padding-top"),10),a=parseInt(r.css("padding-bottom"),10);i.top-=e(window).scrollTop()-o;var s={width:r.width(),height:(l?r.innerHeight():r[0].offsetHeight)-a-o};return void 0===x&&(x=void 0!==document.createElement("p").style.MozTransform),x?s["-moz-transform"]=s.transform="translate("+i.left+"px,"+i.top+"px)":(s.left=i.left,s.top=i.top),s}}});var I=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),u("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?I():"iframe"===n&&I(!0))}),u("Close.iframe",function(){I()})},getIframe:function(n,r){var i=n.src,o=t.st.iframe;e.each(o.patterns,function(){if(i.indexOf(this.index)>-1)return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1});var a={};return o.srcAction&&(a[o.srcAction]=i),t._parseMarkup(r,a,n),t.updateStatus("ready"),r}}});var j=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},S=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;o+=" mfp-gallery",u("Open"+i,function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),r.on("keydown"+i,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),u("UpdateStatus"+i,function(e,n){n.text&&(n.text=S(n.text,t.currItem.index,t.items.length))}),u("MarkupParse"+i,function(e,r,i,o){var a=t.items.length;i.counter=a>1?S(n.tCounter,o.index,a):""}),u("BuildControls"+i,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var r=n.arrowMarkup,i=t.arrowLeft=e(r.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),o=t.arrowRight=e(r.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");i.click(function(){t.prev()}),o.click(function(){t.next()}),t.container.append(i.add(o))}}),u("Change"+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),u("Close"+i,function(){r.off(i),t.wrap.off("click"+i),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=j(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=j(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,r=Math.min(n[0],t.items.length),i=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?i:r);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?r:i);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=j(n),!t.items[n].preloaded){var r=t.items[n];r.parsed||(r=t.parseEl(n)),d("LazyLoad",r),"image"===r.type&&(r.img=e('<img class="mfp-img" />').on("load.mfploader",function(){r.hasSize=!0}).on("error.mfploader",function(){r.hasSize=!0,r.loadError=!0,d("LazyLoadError",r)}).attr("src",r.src)),r.preloaded=!0}}}}),e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(u("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),u("ElementParse.retina",function(t,r){r.src=e.replaceSrc(r,n)}))}}}}),m()})?r.apply(t,i):r)||(e.exports=o)},57:function(e,t){!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),e.addDynamicEventListener=function(e,t,n,r,i){e.addEventListener(t,function(e,t){return function(n){n.target&&n.target.matches(e)&&t.apply(this,arguments)}}(n,r),i)}}(window)},75:function(e,t,n){(function(t){e.exports=t.accounting=n(76)}).call(this,n(49))},76:function(e,t,n){
|
35 |
/*!
|
36 |
* accounting.js v0.4.1
|
37 |
* Copyright 2014 Open Exchange Rates
|
42 |
* Full details and documentation:
|
43 |
* http://openexchangerates.github.io/accounting.js/
|
44 |
*/
|
45 |
+
!function(n,r){var i={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},o=Array.prototype.map,a=Array.isArray,s=Object.prototype.toString;function l(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function c(e){return a?a(e):"[object Array]"===s.call(e)}function u(e){return e&&"[object Object]"===s.call(e)}function f(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function d(e,t,n){var r,i,a=[];if(!e)return a;if(o&&e.map===o)return e.map(t,n);for(r=0,i=e.length;r<i;r++)a[r]=t.call(n,e[r],r,e);return a}function p(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function m(e){var t=i.settings.currency.format;return"function"==typeof e&&(e=e()),l(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:l(t)?i.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var v=i.unformat=i.parse=function(e,t){if(c(e))return d(e,function(e){return v(e,t)});if("number"==typeof(e=e||0))return e;t=t||i.settings.number.decimal;var n=new RegExp("[^0-9-"+t+"]",["g"]),r=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(r)?0:r},g=i.toFixed=function(e,t){t=p(t,i.settings.number.precision);var n=Math.pow(10,t);return(Math.round(i.unformat(e)*n)/n).toFixed(t)},h=i.formatNumber=i.format=function(e,t,n,r){if(c(e))return d(e,function(e){return h(e,t,n,r)});e=v(e);var o=f(u(t)?t:{precision:t,thousand:n,decimal:r},i.settings.number),a=p(o.precision),s=e<0?"-":"",l=parseInt(g(Math.abs(e||0),a),10)+"",m=l.length>3?l.length%3:0;return s+(m?l.substr(0,m)+o.thousand:"")+l.substr(m).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(a?o.decimal+g(Math.abs(e),a).split(".")[1]:"")},y=i.formatMoney=function(e,t,n,r,o,a){if(c(e))return d(e,function(e){return y(e,t,n,r,o,a)});e=v(e);var s=f(u(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),l=m(s.format);return(e>0?l.pos:e<0?l.neg:l.zero).replace("%s",s.symbol).replace("%v",h(Math.abs(e),p(s.precision),s.thousand,s.decimal))};i.formatColumn=function(e,t,n,r,o,a){if(!e)return[];var s=f(u(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),g=m(s.format),y=g.pos.indexOf("%s")<g.pos.indexOf("%v"),b=0,_=d(e,function(e,t){if(c(e))return i.formatColumn(e,s);var n=((e=v(e))>0?g.pos:e<0?g.neg:g.zero).replace("%s",s.symbol).replace("%v",h(Math.abs(e),p(s.precision),s.thousand,s.decimal));return n.length>b&&(b=n.length),n});return d(_,function(e,t){return l(e)&&e.length<b?y?e.replace(s.symbol,s.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e})},e.exports&&(t=e.exports=i),t.accounting=i}()},77:function(e,t){jQuery.fn.giveHintCss=function(e,t){return this.each(function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var r=n.next("span.give-hint-tooltip-js");if(!r.length){var i=t.label.length?t.label:n.data("hint-aria-label");if(!i.length)return;n.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+i+'"></span>'),(r=n.next()).css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?r.addClass("hint--always"):"hide"===e&&r.removeClass("hint--always")})},jQuery(document).ready(function(e){var t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),r=[],i=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),(r=e.grep(n,function(e){return-1!==e.indexOf("give-icon")})).length&&(r=r.join(" "),t.removeClass(r),t.append('<i class="'+r+'"></i>'))),t.addClass("hint--top"),15<i?t.addClass("hint--large"):7<i&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each(function(t,r){n(r=r instanceof jQuery?r:e(r))}),e("body").on("hover","[data-tooltip]",function(){n(e(this))})})},78:function(e,t,n){e.exports=n(79)},79:function(e,t,n){var r=n(80),i=n(81),o=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function s(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(o)?e:r(e)}function l(e){var t=i.stringify(function(e){var t={},n={protocol:1,format:1};for(var r in e)n[r]||(t[r]=e[r]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var r="//www.gravatar.com/avatar/";t&&t.cdn?(r=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(r=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var i=l(t);return r+s(e)+i},profile_url:function(e,t,n){var r=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)i=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var i=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var o=l(t);return i+s(e)+"."+r+o}}},8:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},80:function(e,t,n){var r;!function(i){"use strict";function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,i,a){return o((s=o(o(t,e),o(r,a)))<<(l=i)|s>>>32-l,n);var s,l}function s(e,t,n,r,i,o,s){return a(t&n|~t&r,e,t,i,o,s)}function l(e,t,n,r,i,o,s){return a(t&r|n&~r,e,t,i,o,s)}function c(e,t,n,r,i,o,s){return a(t^n^r,e,t,i,o,s)}function u(e,t,n,r,i,o,s){return a(n^(t|~r),e,t,i,o,s)}function f(e,t){var n,r,i,a,f;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var d=1732584193,p=-271733879,m=-1732584194,v=271733878;for(n=0;n<e.length;n+=16)r=d,i=p,a=m,f=v,d=s(d,p,m,v,e[n],7,-680876936),v=s(v,d,p,m,e[n+1],12,-389564586),m=s(m,v,d,p,e[n+2],17,606105819),p=s(p,m,v,d,e[n+3],22,-1044525330),d=s(d,p,m,v,e[n+4],7,-176418897),v=s(v,d,p,m,e[n+5],12,1200080426),m=s(m,v,d,p,e[n+6],17,-1473231341),p=s(p,m,v,d,e[n+7],22,-45705983),d=s(d,p,m,v,e[n+8],7,1770035416),v=s(v,d,p,m,e[n+9],12,-1958414417),m=s(m,v,d,p,e[n+10],17,-42063),p=s(p,m,v,d,e[n+11],22,-1990404162),d=s(d,p,m,v,e[n+12],7,1804603682),v=s(v,d,p,m,e[n+13],12,-40341101),m=s(m,v,d,p,e[n+14],17,-1502002290),d=l(d,p=s(p,m,v,d,e[n+15],22,1236535329),m,v,e[n+1],5,-165796510),v=l(v,d,p,m,e[n+6],9,-1069501632),m=l(m,v,d,p,e[n+11],14,643717713),p=l(p,m,v,d,e[n],20,-373897302),d=l(d,p,m,v,e[n+5],5,-701558691),v=l(v,d,p,m,e[n+10],9,38016083),m=l(m,v,d,p,e[n+15],14,-660478335),p=l(p,m,v,d,e[n+4],20,-405537848),d=l(d,p,m,v,e[n+9],5,568446438),v=l(v,d,p,m,e[n+14],9,-1019803690),m=l(m,v,d,p,e[n+3],14,-187363961),p=l(p,m,v,d,e[n+8],20,1163531501),d=l(d,p,m,v,e[n+13],5,-1444681467),v=l(v,d,p,m,e[n+2],9,-51403784),m=l(m,v,d,p,e[n+7],14,1735328473),d=c(d,p=l(p,m,v,d,e[n+12],20,-1926607734),m,v,e[n+5],4,-378558),v=c(v,d,p,m,e[n+8],11,-2022574463),m=c(m,v,d,p,e[n+11],16,1839030562),p=c(p,m,v,d,e[n+14],23,-35309556),d=c(d,p,m,v,e[n+1],4,-1530992060),v=c(v,d,p,m,e[n+4],11,1272893353),m=c(m,v,d,p,e[n+7],16,-155497632),p=c(p,m,v,d,e[n+10],23,-1094730640),d=c(d,p,m,v,e[n+13],4,681279174),v=c(v,d,p,m,e[n],11,-358537222),m=c(m,v,d,p,e[n+3],16,-722521979),p=c(p,m,v,d,e[n+6],23,76029189),d=c(d,p,m,v,e[n+9],4,-640364487),v=c(v,d,p,m,e[n+12],11,-421815835),m=c(m,v,d,p,e[n+15],16,530742520),d=u(d,p=c(p,m,v,d,e[n+2],23,-995338651),m,v,e[n],6,-198630844),v=u(v,d,p,m,e[n+7],10,1126891415),m=u(m,v,d,p,e[n+14],15,-1416354905),p=u(p,m,v,d,e[n+5],21,-57434055),d=u(d,p,m,v,e[n+12],6,1700485571),v=u(v,d,p,m,e[n+3],10,-1894986606),m=u(m,v,d,p,e[n+10],15,-1051523),p=u(p,m,v,d,e[n+1],21,-2054922799),d=u(d,p,m,v,e[n+8],6,1873313359),v=u(v,d,p,m,e[n+15],10,-30611744),m=u(m,v,d,p,e[n+6],15,-1560198380),p=u(p,m,v,d,e[n+13],21,1309151649),d=u(d,p,m,v,e[n+4],6,-145523070),v=u(v,d,p,m,e[n+11],10,-1120210379),m=u(m,v,d,p,e[n+2],15,718787259),p=u(p,m,v,d,e[n+9],21,-343485551),d=o(d,r),p=o(p,i),m=o(m,a),v=o(v,f);return[d,p,m,v]}function d(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function m(e){var t,n,r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return r}function v(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return d(f(p(e),8*e.length))}(v(e))}function h(e,t){return function(e,t){var n,r,i=p(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=f(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=f(o.concat(p(t)),512+8*t.length),d(f(a.concat(r),640))}(v(e),v(t))}function y(e,t,n){return t?n?h(t,e):m(h(t,e)):n?g(e):m(g(e))}void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}()},81:function(e,t,n){"use strict";t.decode=t.parse=n(82),t.encode=t.stringify=n(83)},82:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var f,d,p,m,v=e[u].replace(s,"%20"),g=v.indexOf(n);g>=0?(f=v.substr(0,g),d=v.substr(g+1)):(f=v,d=""),p=decodeURIComponent(f),m=decodeURIComponent(d),r(a,p)?i(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},83:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}});
|
assets/dist/js/gutenberg.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(l){if(t[l])return t[l].exports;var a=t[l]={i:l,l:!1,exports:{}};return e[l].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(l,a,function(t){return e[t]}.bind(null,a));return l},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=333)}({133:function(e,t){e.exports=lodash},29:function(e,t,n){var l=n(324);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){l(e,t,n[t])})}return e}},323:function(e,t,n){},324:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},325:function(e,t,n){},326:function(e,t,n){},333:function(e,t,n){"use strict";n.r(t);n(323);var l=function({size:e="24px",color:t,className:n}){let l;switch(t){case"white":l="#FFFFFF";break;case"grey":l="#555d66";break;default:l="#66BB6A"}return wp.element.createElement("svg",{id:"Layer_1",width:e,height:e,className:n,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"100 0 404 400"},wp.element.createElement("g",{id:"Layer_2"},wp.element.createElement("circle",{fill:l,cx:"300",cy:"200",r:"200"}),wp.element.createElement("defs",null,wp.element.createElement("circle",{id:"SVGID_1_",cx:"300",cy:"200",r:"200"})),wp.element.createElement("clippath",{id:"SVGID_2_"},wp.element.createElement("use",{xlinkHref:"#SVGID_1_",overflow:"visible"})),wp.element.createElement("path",{clipPath:"url(#SVGID_2_)",fill:"#FFF",d:"M328.5,214.2c0.8,1.8,2.5,3.3,2.5,3.3c35.4,4.3,85.5-0.5,123.7-5.6 c-21.9,47.1-61.1,78.4-96.9,78.4c-67.4,0-119.3-81.7-119.3-81.7c20.9-18.3,55.2-78.4,104.8-78.4s71.2,27.2,71.2,27.2l5.6-8.9 c0,0-23.2-81.2-88.8-81.2S195.9,175.1,155.2,199.7c0,0,56,132.8,178.6,132.8c102.8,0,128.8-98.2,133.6-122.6 c13.7-2,25.2-4.1,32.6-5.3c2.5-5.6,5.3-15.5,3.3-28.8c-41,15.8-103.1,33.6-175.8,33.6C327.2,209.4,327.5,212,328.5,214.2z"})))};var a={id:{type:"number"},prevId:{type:"number"},displayStyle:{type:"string",default:"onpage"},continueButtonTitle:{type:"string",default:""},showTitle:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},contentDisplay:{type:"boolean",default:!0},showContent:{type:"string",default:"above"}},o=n(29),r=n.n(o),s=n(133);function m(){return wpApiSettings.root.replace("/wp-json/","")}const{__:i}=wp.i18n;var c=()=>wp.element.createElement("p",{className:"give-blank-slate__help"},"Need help ? Get started with ",wp.element.createElement("a",{href:"http://docs.givewp.com/give101/",target:"_blank",rel:"noopener noreferrer"},i("Give 101")));n(325);var p=()=>wp.element.createElement("div",{className:"placeholder-animation"},wp.element.createElement("div",{className:"timeline-wrapper"},wp.element.createElement("div",{className:"timeline-item"},wp.element.createElement("div",{className:"animated-background"},wp.element.createElement("div",{className:"layer label layer-4"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap small"}),wp.element.createElement("div",{className:"layer h2 layer-5"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap medium"}),wp.element.createElement("div",{className:"layer label layer-6"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap small"}),wp.element.createElement("div",{className:"layer h2 layer-7"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap medium"}),wp.element.createElement("div",{className:"layer-gap medium"}),wp.element.createElement("div",{className:"layer h1 layer-8"},wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"}))))));const{__:d}=wp.i18n;var u=e=>{const{noIcon:t,isLoader:n,title:a,description:o,children:r,helpLink:s}=e,m=wp.element.createElement(p,null),i=wp.element.createElement("div",{className:"block-loaded"},!!a&&wp.element.createElement("h2",{className:"give-blank-slate__heading"},a),!!o&&wp.element.createElement("p",{className:"give-blank-slate__message"},o),r,!!s&&wp.element.createElement(c,null));return wp.element.createElement("div",{className:"give-blank-slate"},!t&&wp.element.createElement(l,{size:"80",className:"give-blank-slate__image"}),n?m:i)};const{__:w}=wp.i18n,{Button:g}=wp.components;var v=()=>wp.element.createElement(u,{title:w("No donation forms found."),description:w("The first step towards accepting online donations is to create a form."),helpLink:!0},wp.element.createElement(g,{isPrimary:!0,isLarge:!0,className:"give-blank-slate__cta",href:`${m()}/wp-admin/post-new.php?post_type=give_forms`},w("Create Donation Form")));const{__:h}=wp.i18n,{withSelect:b}=wp.data,{SelectControl:y,Button:E,Placeholder:f,Spinner:C}=wp.components,_={value:"0",label:h("-- Select Form --")};var S=b(e=>({forms:e("core").getEntityRecords("postType","give_forms")}))(({forms:e,attributes:t,setAttributes:n})=>{const{prevId:l}=t,a=()=>{let t=[];return Object(s.isUndefined)(e)||(t=e.map(({id:e,title:{rendered:t}})=>({value:e,label:""===t?`${e} : ${h("No form title")}`:t}))),t.unshift(_),t},o=e=>{n({id:Number(e)})},r=()=>{n({id:Number(l)}),n({prevId:void 0})};let i;return i=e?e&&0===e.length?wp.element.createElement(v,null):wp.element.createElement(u,{title:h("Give Donation form")},wp.element.createElement(y,{className:"give-blank-slate__select",options:a(),onChange:o}),wp.element.createElement(E,{isPrimary:!0,isLarge:!0,href:`${m()}/wp-admin/post-new.php?post_type=give_forms`},h("Add New Form"))," ",l&&wp.element.createElement(E,{isLarge:!0,onClick:r},h("Cancel"))):wp.element.createElement(f,null,wp.element.createElement(C,null))});const{__:N}=wp.i18n,T={};T.displayStyles=[{value:"onpage",label:N("Full Form")},{value:"modal",label:N("Modal")},{value:"reveal",label:N("Reveal")},{value:"button",label:N("One Button Launch")}],T.contentPosition=[{value:"above",label:N("Above")},{value:"below",label:N("Below")}];var k=T;const{__:D}=wp.i18n,{InspectorControls:x}=wp.editor,{PanelBody:F,SelectControl:P,ToggleControl:B,TextControl:I}=wp.components,{Component:G}=wp.element;var A=class extends G{constructor(e){super(e),this.state={continueButtonTitle:this.props.attributes.continueButtonTitle},this.saveSetting=this.saveSetting.bind(this),this.saveState=this.saveState.bind(this)}saveSetting(e,t){this.props.setAttributes({[e]:t})}saveState(e,t){this.setState({[e]:t})}render(){const{displayStyle:e,showTitle:t,showGoal:n,showContent:l,contentDisplay:a}=this.props.attributes;return wp.element.createElement(x,{key:"inspector"},wp.element.createElement(F,{title:D("Display")},wp.element.createElement(P,{label:D("Form Format"),name:"displayStyle",value:e,options:k.displayStyles,onChange:e=>this.saveSetting("displayStyle",e)}),"reveal"===e&&wp.element.createElement(I,{name:"continueButtonTitle",label:D("Continue Button Title"),value:this.state.continueButtonTitle,onChange:e=>this.saveState("continueButtonTitle",e),onBlur:e=>this.saveSetting("continueButtonTitle",e.target.value)})),wp.element.createElement(F,{title:D("Settings")},wp.element.createElement(B,{label:D("Title"),name:"showTitle",checked:!!t,onChange:e=>this.saveSetting("showTitle",e)}),wp.element.createElement(B,{label:D("Goal"),name:"showGoal",checked:!!n,onChange:e=>this.saveSetting("showGoal",e)}),wp.element.createElement(B,{label:D("Content"),name:"contentDisplay",checked:!!a,onChange:e=>this.saveSetting("contentDisplay",e)}),a&&wp.element.createElement(P,{label:D("Content Position"),name:"showContent",value:l,options:k.contentPosition,onChange:e=>this.saveSetting("showContent",e)})))}};n(326);const{__:O}=wp.i18n;var M=e=>{return wp.element.createElement("div",{className:"give-block-controls"},wp.element.createElement("div",{className:"control-popup"},wp.element.createElement("div",{className:"control-button change-form",onClick:()=>{e.setAttributes({prevId:e.attributes.id}),e.setAttributes({id:0})}},wp.element.createElement("div",null,wp.element.createElement("span",{className:"dashicons dashicons-image-rotate"}),wp.element.createElement("span",null,O("Change Form")))),wp.element.createElement("a",{className:"control-button edit-form",href:`${m()}/wp-admin/post.php?post=${e.attributes.id}&action=edit`,target:"_blank",rel:"noopener noreferrer",tooltip:O("Edit donation form")},wp.element.createElement("div",null,wp.element.createElement("span",{className:"dashicons dashicons-edit"}),wp.element.createElement("span",null,O("Edit Form"))))))};const{ServerSideRender:L}=wp.components;var j=e=>{const{attributes:t,isSelected:n,className:l}=e,{id:a}=t;let o;return o=a?wp.element.createElement("div",{className:n?`${l} isSelected`:l},wp.element.createElement(A,r()({},e)),wp.element.createElement(M,r()({},e)),wp.element.createElement(L,{block:"give/donation-form",attributes:t})):wp.element.createElement(S,r()({},e))};const{__:q}=wp.i18n,{registerBlockType:R}=wp.blocks;R("give/donation-form",{title:q("Give Form"),description:q("The Give Donation Form block inserts an existing donation form into the page. Each form's presentation can be customized below."),category:"give",icon:wp.element.createElement(l,{color:"grey"}),keywords:[q("donation")],supports:{html:!1},attributes:a,edit:j,save:()=>null});var z={formsPerPage:{type:"string",default:"12"},formIDs:{type:"string",default:""},excludedFormIDs:{type:"string",default:""},orderBy:{type:"string",default:"date"},order:{type:"string",default:"DESC"},categories:{type:"string",default:""},tags:{type:"string",default:""},columns:{type:"string",default:"best-fit"},showTitle:{type:"boolean",default:!0},showExcerpt:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},showFeaturedImage:{type:"boolean",default:!0},displayType:{type:"string",default:"redirect"}};const{__:$}=wp.i18n,V={};V.orderBy=[{value:"date",label:$("Date Created")},{value:"name",label:$("Form Name")},{value:"amount_donated",label:$("Amount Donated")},{value:"number_donations",label:$("Number of Donations")},{value:"menu_order",label:$("Menu Order")},{value:"post__in",label:$("Provided Form IDs")},{value:"closest_to_goal",label:$("Closest To Goal")}],V.order=[{value:"DESC",label:$("Descending")},{value:"ASC",label:$("Ascending")}],V.columns=[{value:"best-fit",label:$("Best Fit")},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"}],V.displayType=[{value:"redirect",label:$("Redirect")},{value:"modal",label:$("Modal")}];var W=V;const{__:H}=wp.i18n,{InspectorControls:U}=wp.editor,{PanelBody:X,SelectControl:J,ToggleControl:K,TextControl:Q}=wp.components;var Y=({attributes:e,setAttributes:t})=>{const{formsPerPage:n,formIDs:l,excludedFormIDs:a,orderBy:o,order:r,categories:s,tags:m,columns:i,showTitle:c,showExcerpt:p,showGoal:d,showFeaturedImage:u,displayType:w}=e,g=(e,n)=>{t({[e]:n})};return wp.element.createElement(U,{key:"inspector"},wp.element.createElement(X,{title:H("Form Grid Settings")},wp.element.createElement(Q,{name:"formsPerPage",label:H("Forms Per Page"),value:n,onChange:e=>g("formsPerPage",e)}),wp.element.createElement(Q,{name:"formIDs",label:H("Form IDs"),value:l,onChange:e=>g("formIDs",e)}),wp.element.createElement(Q,{name:"excludedFormIDs",label:H("Excluded Form IDs"),value:a,onChange:e=>g("excludedFormIDs",e)}),wp.element.createElement(J,{label:H("Order By"),name:"orderBy",value:o,options:W.orderBy,onChange:e=>g("orderBy",e)}),wp.element.createElement(J,{label:H("Order"),name:"order",value:r,options:W.order,onChange:e=>g("order",e)}),wp.element.createElement(Q,{name:"categories",label:H("Categories"),value:s,onChange:e=>g("categories",e)}),wp.element.createElement(Q,{name:"tags",label:H("Tags"),value:m,onChange:e=>g("tags",e)}),wp.element.createElement(J,{label:H("Columns"),name:"columns",value:i,options:W.columns,onChange:e=>g("columns",e)}),wp.element.createElement(K,{name:"showTitle",label:H("Show Title"),checked:!!c,onChange:e=>g("showTitle",e)}),wp.element.createElement(K,{name:"showExcerpt",label:H("Show Excerpt"),checked:!!p,onChange:e=>g("showExcerpt",e)}),wp.element.createElement(K,{name:"showGoal",label:H("Show Goal"),checked:!!d,onChange:e=>g("showGoal",e)}),wp.element.createElement(K,{name:"showFeaturedImage",label:H("Show Featured Image"),checked:!!u,onChange:e=>g("showFeaturedImage",e)}),wp.element.createElement(J,{label:H("Display Type"),name:"displayType",value:w,options:W.displayType,onChange:e=>g("displayType",e)})))};const{__:Z}=wp.i18n,{Fragment:ee}=wp.element,{ServerSideRender:te}=wp.components,{withSelect:ne}=wp.data;var le=ne(e=>({forms:e("core").getEntityRecords("postType","give_forms")}))(e=>{const{attributes:t}=e;return wp.element.createElement(ee,null,wp.element.createElement(Y,r()({},e)),wp.element.createElement(te,{block:"give/donation-form-grid",attributes:t}))});const{__:ae}=wp.i18n,{registerBlockType:oe}=wp.blocks;oe("give/donation-form-grid",{title:ae("Give Donation Form Grid"),description:ae("The Give Donation Form Grid block insert an existing donation form into the page. Each form's presentation can be customized below."),category:"give",icon:wp.element.createElement(l,{color:"grey"}),keywords:[ae("donation"),ae("grid")],supports:{html:!1},attributes:z,edit:le,save:()=>null});const{__:re}=wp.i18n;var se={donorsPerPage:{type:"string",default:"12"},formID:{type:"string",default:"0"},orderBy:{type:"string",default:"post_date"},order:{type:"string",default:"DESC"},paged:{type:"string",default:"1"},columns:{type:"string",default:"best-fit"},showAvatar:{type:"boolean",default:!0},showName:{type:"boolean",default:!0},showTotal:{type:"boolean",default:!0},showDate:{type:"boolean",default:!0},showComments:{type:"boolean",default:!0},showAnonymous:{type:"boolean",default:!0},onlyComments:{type:"boolean",default:!1},commentLength:{type:"string",default:"140"},readMoreText:{type:"string",default:re("Read more")},loadMoreText:{type:"string",default:re("Load more")},avatarSize:{type:"string",default:"60"}};const{__:me}=wp.i18n,ie={};ie.columns=[{value:"best-fit",label:me("Best Fit")},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"}],ie.order=[{value:"DESC",label:me("Descending")},{value:"ASC",label:me("Ascending")}],ie.orderBy=[{value:"donation_amount",label:me("Donation Amount")},{value:"post_date",label:me("Date Created")}];var ce=ie;const{__:pe}=wp.i18n,{InspectorControls:de}=wp.editor,{PanelBody:ue,SelectControl:we,ToggleControl:ge,TextControl:ve}=wp.components;var he=({attributes:e,setAttributes:t})=>{const{donorsPerPage:n,formID:l,orderBy:a,order:o,columns:r,showAvatar:s,showName:m,showTotal:i,showDate:c,showComments:p,showAnonymous:d,onlyComments:u,commentLength:w,readMoreText:g,loadMoreText:v}=e,h=(e,n)=>{t({[e]:n})};return wp.element.createElement(de,{key:"inspector"},wp.element.createElement(ue,{title:pe("Donor Wall Settings")},wp.element.createElement(ve,{name:"donorsPerPage",label:pe("Donors Per Page"),value:n,onChange:e=>h("donorsPerPage",e)}),wp.element.createElement(ve,{name:"formID",label:pe("Form ID"),value:l,onChange:e=>h("formID",e)}),wp.element.createElement(we,{label:pe("Order By"),name:"orderBy",value:a,options:ce.orderBy,onChange:e=>h("orderBy",e)}),wp.element.createElement(we,{label:pe("Order"),name:"order",value:o,options:ce.order,onChange:e=>h("order",e)}),wp.element.createElement(we,{label:pe("Columns"),name:"columns",value:r,options:ce.columns,onChange:e=>h("columns",e)}),wp.element.createElement(ge,{name:"showAvatar",label:pe("Show Avatar"),checked:!!s,onChange:e=>h("showAvatar",e)}),wp.element.createElement(ge,{name:"showName",label:pe("Show Name"),checked:!!m,onChange:e=>h("showName",e)}),wp.element.createElement(ge,{name:"showTotal",label:pe("Show Total"),checked:!!i,onChange:e=>h("showTotal",e)}),wp.element.createElement(ge,{name:"showDate",label:pe("Show Time"),checked:!!c,onChange:e=>h("showDate",e)}),wp.element.createElement(ge,{name:"showComments",label:pe("Show Comments"),checked:!!p,onChange:e=>h("showComments",e)}),wp.element.createElement(ge,{name:"showAnonymous",label:pe("Show Anonymous"),checked:!!d,onChange:e=>h("showAnonymous",e)}),wp.element.createElement(ge,{name:"onlyComments",label:pe("Only Donors with Comments"),checked:!!u,onChange:e=>h("onlyComments",e)}),wp.element.createElement(ve,{name:"commentLength",label:pe("Comment Length"),value:w,onChange:e=>h("commentLength",e)}),wp.element.createElement(ve,{name:"readMoreText",label:pe("Read More Text"),value:g,onChange:e=>h("readMoreText",e)}),wp.element.createElement(ve,{name:"loadMoreText",label:pe("Load More Text"),value:v,onChange:e=>h("loadMoreText",e)})))};const{Fragment:be}=wp.element,{ServerSideRender:ye}=wp.components;var Ee=e=>{const{attributes:t}=e;return wp.element.createElement(be,null,wp.element.createElement(he,r()({},e)),wp.element.createElement(ye,{block:"give/donor-wall",attributes:t}))};const{__:fe}=wp.i18n,{registerBlockType:Ce}=wp.blocks;Ce("give/donor-wall",{title:fe("Give Donor Wall"),description:fe("The Give Donor Wall block inserts an existing donation form into the page. Each form's presentation can be customized below."),category:"give",icon:wp.element.createElement(l,{color:"grey"}),keywords:[fe("donation"),fe("wall")],supports:{html:!1},attributes:se,edit:Ee,save:()=>null})}});
|
1 |
+
!function(e){var t={};function n(l){if(t[l])return t[l].exports;var a=t[l]={i:l,l:!1,exports:{}};return e[l].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(l,a,function(t){return e[t]}.bind(null,a));return l},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=339)}({10:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=l=function(e){return n(e)}:e.exports=l=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},l(t)}e.exports=l},11:function(e,t,n){var l=n(10),a=n(29);e.exports=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?a(e):t}},12:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},13:function(e,t,n){var l=n(58);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}},142:function(e,t){e.exports=lodash},29:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},330:function(e,t,n){},331:function(e,t,n){},332:function(e,t,n){},339:function(e,t,n){"use strict";n.r(t);n(330);var l=function(e){var t,n=e.size,l=void 0===n?"24px":n,a=e.color,o=e.className;switch(a){case"white":t="#FFFFFF";break;case"grey":t="#555d66";break;default:t="#66BB6A"}return wp.element.createElement("svg",{id:"Layer_1",width:l,height:l,className:o,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"100 0 404 400"},wp.element.createElement("g",{id:"Layer_2"},wp.element.createElement("circle",{fill:t,cx:"300",cy:"200",r:"200"}),wp.element.createElement("defs",null,wp.element.createElement("circle",{id:"SVGID_1_",cx:"300",cy:"200",r:"200"})),wp.element.createElement("clippath",{id:"SVGID_2_"},wp.element.createElement("use",{xlinkHref:"#SVGID_1_",overflow:"visible"})),wp.element.createElement("path",{clipPath:"url(#SVGID_2_)",fill:"#FFF",d:"M328.5,214.2c0.8,1.8,2.5,3.3,2.5,3.3c35.4,4.3,85.5-0.5,123.7-5.6 c-21.9,47.1-61.1,78.4-96.9,78.4c-67.4,0-119.3-81.7-119.3-81.7c20.9-18.3,55.2-78.4,104.8-78.4s71.2,27.2,71.2,27.2l5.6-8.9 c0,0-23.2-81.2-88.8-81.2S195.9,175.1,155.2,199.7c0,0,56,132.8,178.6,132.8c102.8,0,128.8-98.2,133.6-122.6 c13.7-2,25.2-4.1,32.6-5.3c2.5-5.6,5.3-15.5,3.3-28.8c-41,15.8-103.1,33.6-175.8,33.6C327.2,209.4,327.5,212,328.5,214.2z"})))},a={id:{type:"number"},prevId:{type:"number"},displayStyle:{type:"string",default:"onpage"},continueButtonTitle:{type:"string",default:""},showTitle:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},contentDisplay:{type:"boolean",default:!0},showContent:{type:"string",default:"above"}},o=n(38),r=n.n(o),i=n(142);function m(){return wpApiSettings.root.replace("/wp-json/","")}var c=wp.i18n.__,s=function(){return wp.element.createElement("p",{className:"give-blank-slate__help"},"Need help ? Get started with ",wp.element.createElement("a",{href:"http://docs.givewp.com/give101/",target:"_blank",rel:"noopener noreferrer"},c("Give 101")))},u=(n(331),function(){return wp.element.createElement("div",{className:"placeholder-animation"},wp.element.createElement("div",{className:"timeline-wrapper"},wp.element.createElement("div",{className:"timeline-item"},wp.element.createElement("div",{className:"animated-background"},wp.element.createElement("div",{className:"layer label layer-4"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap small"}),wp.element.createElement("div",{className:"layer h2 layer-5"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap medium"}),wp.element.createElement("div",{className:"layer label layer-6"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap small"}),wp.element.createElement("div",{className:"layer h2 layer-7"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap medium"}),wp.element.createElement("div",{className:"layer-gap medium"}),wp.element.createElement("div",{className:"layer h1 layer-8"},wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"}))))))}),p=(wp.i18n.__,function(e){var t=e.noIcon,n=e.isLoader,a=e.title,o=e.description,r=e.children,i=e.helpLink,m=wp.element.createElement(u,null),c=wp.element.createElement("div",{className:"block-loaded"},!!a&&wp.element.createElement("h2",{className:"give-blank-slate__heading"},a),!!o&&wp.element.createElement("p",{className:"give-blank-slate__message"},o),r,!!i&&wp.element.createElement(s,null));return wp.element.createElement("div",{className:"give-blank-slate"},!t&&wp.element.createElement(l,{size:"80",className:"give-blank-slate__image"}),n?m:c)}),d=wp.i18n.__,w=wp.components.Button,f=function(){return wp.element.createElement(p,{title:d("No donation forms found."),description:d("The first step towards accepting online donations is to create a form."),helpLink:!0},wp.element.createElement(w,{isPrimary:!0,isLarge:!0,className:"give-blank-slate__cta",href:"".concat(m(),"/wp-admin/post-new.php?post_type=give_forms")},d("Create Donation Form")))},y=wp.i18n.__,b=wp.data.withSelect,v=wp.components,g=v.SelectControl,h=v.Button,E=v.Placeholder,C=v.Spinner,_={value:"0",label:y("-- Select Form --")},S=b(function(e){return{forms:e("core").getEntityRecords("postType","give_forms")}})(function(e){var t,n=e.forms,l=e.attributes,a=e.setAttributes,o=l.prevId;return n?n&&0===n.length?wp.element.createElement(f,null):wp.element.createElement(p,{title:y("Give Donation form")},wp.element.createElement(g,{className:"give-blank-slate__select",options:(t=[],Object(i.isUndefined)(n)||(t=n.map(function(e){var t=e.id,n=e.title.rendered;return{value:t,label:""===n?"".concat(t," : ").concat(y("No form title")):n}})),t.unshift(_),t),onChange:function(e){a({id:Number(e)})}}),wp.element.createElement(h,{isPrimary:!0,isLarge:!0,href:"".concat(m(),"/wp-admin/post-new.php?post_type=give_forms")},y("Add New Form"))," ",o&&wp.element.createElement(h,{isLarge:!0,onClick:function(){a({id:Number(o)}),a({prevId:void 0})}},y("Cancel"))):wp.element.createElement(E,null,wp.element.createElement(C,null))}),N=n(37),T=n.n(N),k=n(5),x=n.n(k),D=n(8),P=n.n(D),F=n(11),B=n.n(F),I=n(12),O=n.n(I),G=n(29),A=n.n(G),j=n(13),M=n.n(j),L=wp.i18n.__,q={};q.displayStyles=[{value:"onpage",label:L("Full Form")},{value:"modal",label:L("Modal")},{value:"reveal",label:L("Reveal")},{value:"button",label:L("One Button Launch")}],q.contentPosition=[{value:"above",label:L("Above")},{value:"below",label:L("Below")}];var R=q,z=wp.i18n.__,V=wp.editor.InspectorControls,W=wp.components,H=W.PanelBody,U=W.SelectControl,X=W.ToggleControl,J=W.TextControl,K=function(e){function t(e){var n;return x()(this,t),(n=B()(this,O()(t).call(this,e))).state={continueButtonTitle:n.props.attributes.continueButtonTitle},n.saveSetting=n.saveSetting.bind(A()(n)),n.saveState=n.saveState.bind(A()(n)),n}return M()(t,e),P()(t,[{key:"saveSetting",value:function(e,t){this.props.setAttributes(T()({},e,t))}},{key:"saveState",value:function(e,t){this.setState(T()({},e,t))}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.displayStyle,l=t.showTitle,a=t.showGoal,o=t.showContent,r=t.contentDisplay;return wp.element.createElement(V,{key:"inspector"},wp.element.createElement(H,{title:z("Display")},wp.element.createElement(U,{label:z("Form Format"),name:"displayStyle",value:n,options:R.displayStyles,onChange:function(t){return e.saveSetting("displayStyle",t)}}),"reveal"===n&&wp.element.createElement(J,{name:"continueButtonTitle",label:z("Continue Button Title"),value:this.state.continueButtonTitle,onChange:function(t){return e.saveState("continueButtonTitle",t)},onBlur:function(t){return e.saveSetting("continueButtonTitle",t.target.value)}})),wp.element.createElement(H,{title:z("Settings")},wp.element.createElement(X,{label:z("Title"),name:"showTitle",checked:!!l,onChange:function(t){return e.saveSetting("showTitle",t)}}),wp.element.createElement(X,{label:z("Goal"),name:"showGoal",checked:!!a,onChange:function(t){return e.saveSetting("showGoal",t)}}),wp.element.createElement(X,{label:z("Content"),name:"contentDisplay",checked:!!r,onChange:function(t){return e.saveSetting("contentDisplay",t)}}),r&&wp.element.createElement(U,{label:z("Content Position"),name:"showContent",value:o,options:R.contentPosition,onChange:function(t){return e.saveSetting("showContent",t)}})))}}]),t}(wp.element.Component),Q=(n(332),wp.i18n.__),Y=function(e){return wp.element.createElement("div",{className:"give-block-controls"},wp.element.createElement("div",{className:"control-popup"},wp.element.createElement("div",{className:"control-button change-form",onClick:function(){e.setAttributes({prevId:e.attributes.id}),e.setAttributes({id:0})}},wp.element.createElement("div",null,wp.element.createElement("span",{className:"dashicons dashicons-image-rotate"}),wp.element.createElement("span",null,Q("Change Form")))),wp.element.createElement("a",{className:"control-button edit-form",href:"".concat(m(),"/wp-admin/post.php?post=").concat(e.attributes.id,"&action=edit"),target:"_blank",rel:"noopener noreferrer",tooltip:Q("Edit donation form")},wp.element.createElement("div",null,wp.element.createElement("span",{className:"dashicons dashicons-edit"}),wp.element.createElement("span",null,Q("Edit Form"))))))},Z=wp.components.ServerSideRender,$=function(e){var t=e.attributes,n=e.isSelected,l=e.className;return t.id?wp.element.createElement("div",{className:n?"".concat(l," isSelected"):l},wp.element.createElement(K,r()({},e)),wp.element.createElement(Y,r()({},e)),wp.element.createElement(Z,{block:"give/donation-form",attributes:t})):wp.element.createElement(S,r()({},e))},ee=wp.i18n.__,te=((0,wp.blocks.registerBlockType)("give/donation-form",{title:ee("Give Form"),description:ee("The Give Donation Form block inserts an existing donation form into the page. Each form's presentation can be customized below."),category:"give",icon:wp.element.createElement(l,{color:"grey"}),keywords:[ee("donation")],supports:{html:!1},attributes:a,edit:$,save:function(){return null}}),{formsPerPage:{type:"string",default:"12"},formIDs:{type:"string",default:""},excludedFormIDs:{type:"string",default:""},orderBy:{type:"string",default:"date"},order:{type:"string",default:"DESC"},categories:{type:"string",default:""},tags:{type:"string",default:""},columns:{type:"string",default:"best-fit"},showTitle:{type:"boolean",default:!0},showExcerpt:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},showFeaturedImage:{type:"boolean",default:!0},displayType:{type:"string",default:"redirect"}}),ne=wp.i18n.__,le={};le.orderBy=[{value:"date",label:ne("Date Created")},{value:"name",label:ne("Form Name")},{value:"amount_donated",label:ne("Amount Donated")},{value:"number_donations",label:ne("Number of Donations")},{value:"menu_order",label:ne("Menu Order")},{value:"post__in",label:ne("Provided Form IDs")},{value:"closest_to_goal",label:ne("Closest To Goal")}],le.order=[{value:"DESC",label:ne("Descending")},{value:"ASC",label:ne("Ascending")}],le.columns=[{value:"best-fit",label:ne("Best Fit")},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"}],le.displayType=[{value:"redirect",label:ne("Redirect")},{value:"modal",label:ne("Modal")}];var ae=le,oe=wp.i18n.__,re=wp.editor.InspectorControls,ie=wp.components,me=ie.PanelBody,ce=ie.SelectControl,se=ie.ToggleControl,ue=ie.TextControl,pe=function(e){var t=e.attributes,n=e.setAttributes,l=t.formsPerPage,a=t.formIDs,o=t.excludedFormIDs,r=t.orderBy,i=t.order,m=t.categories,c=t.tags,s=t.columns,u=t.showTitle,p=t.showExcerpt,d=t.showGoal,w=t.showFeaturedImage,f=t.displayType,y=function(e,t){n(T()({},e,t))};return wp.element.createElement(re,{key:"inspector"},wp.element.createElement(me,{title:oe("Form Grid Settings")},wp.element.createElement(ue,{name:"formsPerPage",label:oe("Forms Per Page"),value:l,onChange:function(e){return y("formsPerPage",e)}}),wp.element.createElement(ue,{name:"formIDs",label:oe("Form IDs"),value:a,onChange:function(e){return y("formIDs",e)}}),wp.element.createElement(ue,{name:"excludedFormIDs",label:oe("Excluded Form IDs"),value:o,onChange:function(e){return y("excludedFormIDs",e)}}),wp.element.createElement(ce,{label:oe("Order By"),name:"orderBy",value:r,options:ae.orderBy,onChange:function(e){return y("orderBy",e)}}),wp.element.createElement(ce,{label:oe("Order"),name:"order",value:i,options:ae.order,onChange:function(e){return y("order",e)}}),wp.element.createElement(ue,{name:"categories",label:oe("Categories"),value:m,onChange:function(e){return y("categories",e)}}),wp.element.createElement(ue,{name:"tags",label:oe("Tags"),value:c,onChange:function(e){return y("tags",e)}}),wp.element.createElement(ce,{label:oe("Columns"),name:"columns",value:s,options:ae.columns,onChange:function(e){return y("columns",e)}}),wp.element.createElement(se,{name:"showTitle",label:oe("Show Title"),checked:!!u,onChange:function(e){return y("showTitle",e)}}),wp.element.createElement(se,{name:"showExcerpt",label:oe("Show Excerpt"),checked:!!p,onChange:function(e){return y("showExcerpt",e)}}),wp.element.createElement(se,{name:"showGoal",label:oe("Show Goal"),checked:!!d,onChange:function(e){return y("showGoal",e)}}),wp.element.createElement(se,{name:"showFeaturedImage",label:oe("Show Featured Image"),checked:!!w,onChange:function(e){return y("showFeaturedImage",e)}}),wp.element.createElement(ce,{label:oe("Display Type"),name:"displayType",value:f,options:ae.displayType,onChange:function(e){return y("displayType",e)}})))},de=(wp.i18n.__,wp.element.Fragment),we=wp.components.ServerSideRender,fe=(0,wp.data.withSelect)(function(e){return{forms:e("core").getEntityRecords("postType","give_forms")}})(function(e){var t=e.attributes;return wp.element.createElement(de,null,wp.element.createElement(pe,r()({},e)),wp.element.createElement(we,{block:"give/donation-form-grid",attributes:t}))}),ye=wp.i18n.__,be=((0,wp.blocks.registerBlockType)("give/donation-form-grid",{title:ye("Give Donation Form Grid"),description:ye("The Give Donation Form Grid block insert an existing donation form into the page. Each form's presentation can be customized below."),category:"give",icon:wp.element.createElement(l,{color:"grey"}),keywords:[ye("donation"),ye("grid")],supports:{html:!1},attributes:te,edit:fe,save:function(){return null}}),wp.i18n.__),ve={donorsPerPage:{type:"string",default:"12"},formID:{type:"string",default:"0"},orderBy:{type:"string",default:"post_date"},order:{type:"string",default:"DESC"},paged:{type:"string",default:"1"},columns:{type:"string",default:"best-fit"},showAvatar:{type:"boolean",default:!0},showName:{type:"boolean",default:!0},showTotal:{type:"boolean",default:!0},showDate:{type:"boolean",default:!0},showComments:{type:"boolean",default:!0},showAnonymous:{type:"boolean",default:!0},onlyComments:{type:"boolean",default:!1},commentLength:{type:"string",default:"140"},readMoreText:{type:"string",default:be("Read more")},loadMoreText:{type:"string",default:be("Load more")},avatarSize:{type:"string",default:"60"}},ge=wp.i18n.__,he={};he.columns=[{value:"best-fit",label:ge("Best Fit")},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"}],he.order=[{value:"DESC",label:ge("Descending")},{value:"ASC",label:ge("Ascending")}],he.orderBy=[{value:"donation_amount",label:ge("Donation Amount")},{value:"post_date",label:ge("Date Created")}];var Ee=he,Ce=wp.i18n.__,_e=wp.editor.InspectorControls,Se=wp.components,Ne=Se.PanelBody,Te=Se.SelectControl,ke=Se.ToggleControl,xe=Se.TextControl,De=function(e){var t=e.attributes,n=e.setAttributes,l=t.donorsPerPage,a=t.formID,o=t.orderBy,r=t.order,i=t.columns,m=t.showAvatar,c=t.showName,s=t.showTotal,u=t.showDate,p=t.showComments,d=t.showAnonymous,w=t.onlyComments,f=t.commentLength,y=t.readMoreText,b=t.loadMoreText,v=function(e,t){n(T()({},e,t))};return wp.element.createElement(_e,{key:"inspector"},wp.element.createElement(Ne,{title:Ce("Donor Wall Settings")},wp.element.createElement(xe,{name:"donorsPerPage",label:Ce("Donors Per Page"),value:l,onChange:function(e){return v("donorsPerPage",e)}}),wp.element.createElement(xe,{name:"formID",label:Ce("Form ID"),value:a,onChange:function(e){return v("formID",e)}}),wp.element.createElement(Te,{label:Ce("Order By"),name:"orderBy",value:o,options:Ee.orderBy,onChange:function(e){return v("orderBy",e)}}),wp.element.createElement(Te,{label:Ce("Order"),name:"order",value:r,options:Ee.order,onChange:function(e){return v("order",e)}}),wp.element.createElement(Te,{label:Ce("Columns"),name:"columns",value:i,options:Ee.columns,onChange:function(e){return v("columns",e)}}),wp.element.createElement(ke,{name:"showAvatar",label:Ce("Show Avatar"),checked:!!m,onChange:function(e){return v("showAvatar",e)}}),wp.element.createElement(ke,{name:"showName",label:Ce("Show Name"),checked:!!c,onChange:function(e){return v("showName",e)}}),wp.element.createElement(ke,{name:"showTotal",label:Ce("Show Total"),checked:!!s,onChange:function(e){return v("showTotal",e)}}),wp.element.createElement(ke,{name:"showDate",label:Ce("Show Time"),checked:!!u,onChange:function(e){return v("showDate",e)}}),wp.element.createElement(ke,{name:"showComments",label:Ce("Show Comments"),checked:!!p,onChange:function(e){return v("showComments",e)}}),wp.element.createElement(ke,{name:"showAnonymous",label:Ce("Show Anonymous"),checked:!!d,onChange:function(e){return v("showAnonymous",e)}}),wp.element.createElement(ke,{name:"onlyComments",label:Ce("Only Donors with Comments"),checked:!!w,onChange:function(e){return v("onlyComments",e)}}),wp.element.createElement(xe,{name:"commentLength",label:Ce("Comment Length"),value:f,onChange:function(e){return v("commentLength",e)}}),wp.element.createElement(xe,{name:"readMoreText",label:Ce("Read More Text"),value:y,onChange:function(e){return v("readMoreText",e)}}),wp.element.createElement(xe,{name:"loadMoreText",label:Ce("Load More Text"),value:b,onChange:function(e){return v("loadMoreText",e)}})))},Pe=wp.element.Fragment,Fe=wp.components.ServerSideRender,Be=function(e){var t=e.attributes;return wp.element.createElement(Pe,null,wp.element.createElement(De,r()({},e)),wp.element.createElement(Fe,{block:"give/donor-wall",attributes:t}))},Ie=wp.i18n.__;(0,wp.blocks.registerBlockType)("give/donor-wall",{title:Ie("Give Donor Wall"),description:Ie("The Give Donor Wall block inserts an existing donation form into the page. Each form's presentation can be customized below."),category:"give",icon:wp.element.createElement(l,{color:"grey"}),keywords:[Ie("donation"),Ie("wall")],supports:{html:!1},attributes:ve,edit:Be,save:function(){return null}})},37:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},38:function(e,t,n){var l=n(37);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){l(e,t,n[t])})}return e}},5:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},58:function(e,t){function n(t,l){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,l)}e.exports=n},8:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}e.exports=function(e,t,l){return t&&n(e.prototype,t),l&&n(e,l),e}}});
|
assets/dist/js/plugin-deactivation-survey.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=
|
2 |
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
3 |
* http://dimsemenov.com/plugins/magnific-popup/
|
4 |
-
* Copyright (c) 2016 Dmitry Semenov; */o=[n(30)],void 0===(r="function"==typeof(i=function(e){var t,n,i,o,r,a,s=function(){},c=!!window.jQuery,l=e(window),d=function(e,n){t.ev.on("mfp"+e+".mfp",n)},p=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},u=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},f=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},m=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(o=0;o<s.length;o++)if((a=s[o]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=p("bg").on("click.mfp",function(){t.close()}),t.wrap=p("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=p("container",t.wrap)),t.contentContainer=p("content"),t.st.preloader&&(t.preloader=p("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(o=0;o<c.length;o++){var m=c[o];m=m.charAt(0).toUpperCase()+m.slice(1),t["init"+m].call(t)}u("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(d("MarkupParse",function(e,t,n,i){n.close_replaceWith=f(i.type)}),r+=" mfp-close-btn-in"):t.wrap.append(f())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:l.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),l.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var g=t.wH=l.height(),v={};if(t.fixedContentPos&&t._hasScrollBar(g)){var h=t._getScrollbarSize();h&&(v.marginRight=h)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):v.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),u("BuildControls"),e("html").css(v),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(g),u("Open"),n}t.updateItemHTML()},close:function(){t.isOpen&&(u("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){u("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,u("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||l.height();t.fixedContentPos||t.wrap.css("height",t.wH),u("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(u("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var r=!!t.st[i]&&t.st[i].markup;u("FirstMarkupParse",r),t.currTemplate[i]=!r||e(r)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,u("Change",n),o=n.type,t.container.prepend(t.contentContainer),u("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(f()):t.content=e:t.content="",u("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){i=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,u("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){var r=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(r||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(l.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};u("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||l.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),u("MarkupParse",[t,n,i]),e.each(n,function(n,i){if(void 0===i||!1===i)return!0;if((o=n.split("_")).length>1){var r=t.find(".mfp-"+o[0]);if(r.length>0){var a=o[1];"replaceWith"===a?r[0]!==i[0]&&r.replaceWith(i):"img"===a?r.is("img")?r.attr("src",i):r.replaceWith(e("<img>").attr("src",i).attr("class",r.attr("class"))):r.attr(o[1],i)}}else t.find(".mfp-"+n).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return m(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){m();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=c?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),c?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var g,v,h,y=function(){h&&(v.after(h.addClass(g)).detach(),h=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),d("Close.inline",function(){y()})},getInline:function(n,i){if(y(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(v||(g=o.hiddenClass,v=p(g),g="mfp-"+g),h=r.after(v).detach().removeClass(g)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var C,b=function(){C&&e(document.body).removeClass(C)},w=function(){b(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),C=t.st.ajax.cursor,d("Close.ajax",w),d("BeforeChange.ajax",w)},getAjax:function(n){C&&e(document.body).addClass(C),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};u("ParseAjax",a),t.appendContent(e(a.data),"ajax"),n.finished=!0,b(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),u("AjaxContentAdded")},error:function(){b(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var x,_,k=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),d("Open"+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),d("Close"+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),l.off("resize.mfp")}),d("Resize"+i,t.resizeImage),t.isLowIE&&d("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,x&&clearInterval(x),e.isCheckingImgSize=!1,u("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){x&&clearInterval(x),x=setInterval(function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(x),3==++n?o(10):40===n?o(50):100===n&&o(500))},r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,u("ImageLoadComplete")):++o<200?setTimeout(r,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,c=i.find(".mfp-img");if(c.length){var l=document.createElement("img");l.className="mfp-img",n.el&&n.el.find("img").length&&(l.alt=n.el.find("img").attr("alt")),n.img=e(l).on("load.mfploader",r).on("error.mfploader",a),l.src=n.src,c.is("img")&&(n.img=n.img.clone()),(l=n.img[0]).naturalWidth>0?n.hasSize=!0:l.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:k(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(x&&clearInterval(x),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},c=function(){t.content.css("visibility","visible")};d("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void c();(r=s(e)).css(t._getOffset()),t.wrap.append(r),o=setTimeout(function(){r.css(t._getOffset(!0)),o=setTimeout(function(){c(),setTimeout(function(){r.remove(),e=r=null,u("ZoomAnimationEnded")},16)},a)},16)}}),d("BeforeClose"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;r=s(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),d("Close"+i,function(){t._allowZoom()&&(c(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(c?i.innerHeight():i[0].offsetHeight)-a-r};return void 0===_&&(_=void 0!==document.createElement("p").style.MozTransform),_?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var P=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),d("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?P():"iframe"===n&&P(!0))}),d("Close.iframe",function(){P()})},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var I=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},S=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;r+=" mfp-gallery",d("Open"+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),d("UpdateStatus"+o,function(e,n){n.text&&(n.text=S(n.text,t.currItem.index,t.items.length))}),d("MarkupParse"+o,function(e,i,o,r){var a=t.items.length;o.counter=a>1?S(n.tCounter,r.index,a):""}),d("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),r=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");o.click(function(){t.prev()}),r.click(function(){t.next()}),t.container.append(o.add(r))}}),d("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),d("Close"+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=I(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=I(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=I(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),u("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,u("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}}),e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(d("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),d("ElementParse.retina",function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),m()})?i.apply(t,o):i)||(e.exports=r)},49:function(e,t){!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),e.addDynamicEventListener=function(e,t,n,i,o){e.addEventListener(t,function(e,t){return function(n){n.target&&n.target.matches(e)&&t.apply(this,arguments)}}(n,i),o)}}(window)},6:function(e,t,n){"use strict";n.r(t),n.d(t,"GiveModal",function(){return i}),n.d(t,"GiveErrorAlert",function(){return o}),n.d(t,"GiveWarningAlert",function(){return r}),n.d(t,"GiveNoticeAlert",function(){return a}),n.d(t,"GiveSuccessAlert",function(){return s}),n.d(t,"GiveConfirmModal",function(){return c}),n.d(t,"GiveFormModal",function(){return l});n(48),n(49);class i{constructor(e){if(i===this.constructor)throw new Error("Abstract classes can't be instantiated.");this.config=Object.assign({type:"",triggerSelector:"",externalPlugin:"magnificPopup",classes:{modalWrapper:""},modalContent:{}},e),this.config.mainClass=`${this.config.mainClass?this.config.mainClass:""} modal-fade-slide`.trim()}init(){this.setupTemplate(),this.popupConfig(),this.__setupClickEvent()}getTemplate(){let e='<div class="give-hidden"></div>';return this.config.type.length&&(e=`<div class="give-modal give-modal--zoom ${this.config.classes.modalWrapper?`${this.config.classes.modalWrapper}`.trim():""}">\n\n\t\t\t\t<div class="give-modal__body">\n\t\t\t\t\t${this.config.modalContent.title?`<h2 class="give-modal__title">${this.config.modalContent.title}</h2>`:""}\n\t\t\t\t\t${this.config.modalContent.desc?`<p class="give-modal__description">${this.config.modalContent.desc}</p>`:""}\n\t\t\t\t</div>\n\t\n\t\t\t\t<div class="give-modal__controls">\n\n\t\t\t\t\t${"form"===this.config.type?'<div class="spinner"></div>':""}\n\t\t\t\t\t${"form"===this.config.type?`<a class="give-modal--additional-link" href="${this.config.modalContent.link}">${this.config.modalContent.link_text}</a>`:""}\n\n\t\t\t\t\t<button class="give-button give-button--secondary give-popup-close-button">\n\t\t\t\t\t\t${this.config.modalContent.cancelBtnTitle?this.config.modalContent.cancelBtnTitle:"confirm"===this.config.type?Give.fn.getGlobalVar("cancel"):Give.fn.getGlobalVar("close")}\n\t\t\t\t\t</button>\n\n\t\t\t\t\t${"confirm"!==this.config.type&&"form"!==this.config.type?"":`<button class="give-button give-button--primary give-popup-${this.config.type}-button">\n\n\t\t\t\t\t\t${this.config.modalContent.confirmBtnTitle?this.config.modalContent.confirmBtnTitle:Give.fn.getGlobalVar("confirm")}\n\t\t\t\t\t</button>`}\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t</div>`),e}setupTemplate(){this.config.template=this.getTemplate()}__setupClickEvent(){this.config.triggerSelector.length&&jQuery(this.config.triggerSelector).magnificPopup(this.config)}popupConfig(){"magnificPopup"===this.config.externalPlugin&&(this.config.items=this.config.items||{src:this.config.template,type:"inline"},this.config.removalDelay=300,this.config.fixedContentPos=!0,this.config.fixedBgPos=!0,this.config.alignTop=!0,this.config.showCloseBtn=!1,this.config.closeOnBgClick=!1,this.config.enableEscapeKey=!0,this.config.focus=".give-popup-close-button")}static __closePopup(e){e.preventDefault(),jQuery.magnificPopup.instance.close()}render(){switch(this.config.externalPlugin){case"magnificPopup":this.config.triggerSelector||jQuery.magnificPopup.open(this.config)}return this}}class o extends i{constructor(e){e.type="alert",super(e),this.config.classes.modalWrapper="give-modal--error",this.init()}}class r extends i{constructor(e){e.type="alert",super(e),this.config.classes.modalWrapper="give-modal--warning",this.init()}}class a extends i{constructor(e){e.type="alert",super(e),this.config.classes.modalWrapper="give-modal--notice",this.init()}}class s extends i{constructor(e){e.type="alert",super(e),this.config.classes.modalWrapper="give-modal--success",this.init()}}class c extends i{constructor(e){e.type="confirm",super(e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(this.config.classes.modalWrapper=e.modalWrapper),this.init()}static __confirmPopup(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&(jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el}),jQuery.magnificPopup.close())}}class l extends i{constructor(e){e.type="form",super(e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(this.config.classes.modalWrapper=e.modalWrapper),this.init()}static __submitPopup(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el})}}window.addDynamicEventListener(document,"click",".give-popup-close-button",i.__closePopup,{}),window.addDynamicEventListener(document,"click",".give-popup-confirm-button",c.__confirmPopup,{}),window.addDynamicEventListener(document,"click",".give-popup-form-button",l.__submitPopup,{})}});
|
1 |
+
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=336)}({10:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=i=function(e){return n(e)}:e.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},i(t)}e.exports=i},11:function(e,t,n){var i=n(10),o=n(29);e.exports=function(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?o(e):t}},12:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},13:function(e,t,n){var i=n(58);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},29:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},336:function(e,t,n){n(337),e.exports=n(338)},337:function(e,t,n){},338:function(e,t,n){"use strict";n.r(t);var i=n(5),o=n.n(i),r=n(8),a=n.n(r),s=n(7);new(function(){function e(){o()(this,e),window.addEventListener("load",function(){window.addDynamicEventListener(document,"click",'tr[data-slug="give"] .deactivate a',e.deactivateGive),window.addDynamicEventListener(document,"click",'input[name="give-survey-radios"]',e.toggleAdditionalFields)})}return a()(e,null,[{key:"deactivateGive",value:function(t){t.preventDefault(),window.deactivationLink=t.target.href,jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"give_deactivation_popup"}}).done(function(t){new s.GiveFormModal({classes:{modalWrapper:"deactivation-survey-wrap"},modalContent:{desc:t.html,cancelBtnTitle:give_vars.cancel,confirmBtnTitle:give_vars.submit_and_deactivate,link:window.deactivationLink,link_text:give_vars.skip_and_deactivate},successConfirm:function(){var t=document.querySelectorAll(".deactivation-error"),n=document.querySelectorAll('input[name="give-survey-radios"]:checked'),i=document.querySelectorAll(".deactivation-survey-form"),o=!0;t.length>0&&(o=!1),0===n.length&&0===t.length&&(i[0].innerHTML+='\n\t\t\t\t\t\t\t<div class="notice notice-error deactivation-error">\n\t\t\t\t\t\t\t\t'.concat(give_vars.deactivation_no_option_selected,"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t"),o=!1);var r="";if(n.length>0&&null!==n[0].parentNode.nextElementSibling)if(0<(r=n[0].parentNode.nextElementSibling.querySelectorAll("input, textarea")).length&&!r[0].value&&0===t.length){var a=document.createElement("div");a.setAttribute("class","notice notice-error deactivation-error");var s=document.createTextNode(give_vars.please_fill_field);a.appendChild(s),i[0].appendChild(a),o=!1}else 0<r.length&&r[0].value&&0!==t.length&&(t[0].parentNode.removeChild(t[0]),o=!0);if(o){var c=jQuery(".deactivation-survey-form").serialize();jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"deactivation_form_submit","form-data":c,nonce:give_vars.nonce},beforeSend:function(){document.querySelectorAll(".give-modal__controls .spinner")[0].style.display="block"}}).done(function(t){t.success&&(t.data.delete_data?e.deleteAllData(1,c):(jQuery.magnificPopup.close(),window.location.replace(window.deactivationLink)))})}}}).render()})}},{key:"deleteAllData",value:function(t,n){jQuery.ajax({url:ajaxurl,type:"POST",data:{form:n,action:"give_do_ajax_export",step:t},dataType:"json"}).done(function(t){!0===t.success||t.error?!0===t.success&&(jQuery.magnificPopup.close(),window.location.replace(window.deactivationLink)):e.deleteAllData(parseInt(t.step),n)})}},{key:"toggleAdditionalFields",value:function(e){var t=document.querySelectorAll(".deactivation-error"),n=document.querySelectorAll(".give-survey-extra-field");(t.length>0&&t[0].parentNode.removeChild(t[0]),n.forEach(function(e){e.style.display="none",e.querySelectorAll("input, textarea")[0].setAttribute("disabled","disabled")}),null!==e.target.parentNode.nextElementSibling)&&(e.target.parentNode.nextElementSibling.style.display="block",e.target.parentNode.nextElementSibling.querySelectorAll("input, textarea")[0].removeAttribute("disabled"))}}]),e}())},39:function(e,t){e.exports=jQuery},5:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},56:function(e,t,n){var i,o,r;
|
2 |
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
3 |
* http://dimsemenov.com/plugins/magnific-popup/
|
4 |
+
* Copyright (c) 2016 Dmitry Semenov; */o=[n(39)],void 0===(r="function"==typeof(i=function(e){var t,n,i,o,r,a,s=function(){},c=!!window.jQuery,l=e(window),u=function(e,n){t.ev.on("mfp"+e+".mfp",n)},p=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},d=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},f=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},m=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(o=0;o<s.length;o++)if((a=s[o]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=p("bg").on("click.mfp",function(){t.close()}),t.wrap=p("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=p("container",t.wrap)),t.contentContainer=p("content"),t.st.preloader&&(t.preloader=p("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(o=0;o<c.length;o++){var m=c[o];m=m.charAt(0).toUpperCase()+m.slice(1),t["init"+m].call(t)}d("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(u("MarkupParse",function(e,t,n,i){n.close_replaceWith=f(i.type)}),r+=" mfp-close-btn-in"):t.wrap.append(f())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:l.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),l.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var g=t.wH=l.height(),v={};if(t.fixedContentPos&&t._hasScrollBar(g)){var h=t._getScrollbarSize();h&&(v.marginRight=h)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):v.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),d("BuildControls"),e("html").css(v),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(g),d("Open"),n}t.updateItemHTML()},close:function(){t.isOpen&&(d("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){d("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,d("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||l.height();t.fixedContentPos||t.wrap.css("height",t.wH),d("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(d("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var r=!!t.st[i]&&t.st[i].markup;d("FirstMarkupParse",r),t.currTemplate[i]=!r||e(r)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,d("Change",n),o=n.type,t.container.prepend(t.contentContainer),d("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(f()):t.content=e:t.content="",d("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){i=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,d("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){var r=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(r||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(l.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};d("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||l.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),d("MarkupParse",[t,n,i]),e.each(n,function(n,i){if(void 0===i||!1===i)return!0;if((o=n.split("_")).length>1){var r=t.find(".mfp-"+o[0]);if(r.length>0){var a=o[1];"replaceWith"===a?r[0]!==i[0]&&r.replaceWith(i):"img"===a?r.is("img")?r.attr("src",i):r.replaceWith(e("<img>").attr("src",i).attr("class",r.attr("class"))):r.attr(o[1],i)}}else t.find(".mfp-"+n).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return m(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){m();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=c?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),c?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var g,v,h,y=function(){h&&(v.after(h.addClass(g)).detach(),h=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),u("Close.inline",function(){y()})},getInline:function(n,i){if(y(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(v||(g=o.hiddenClass,v=p(g),g="mfp-"+g),h=r.after(v).detach().removeClass(g)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var b,C=function(){b&&e(document.body).removeClass(b)},w=function(){C(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),b=t.st.ajax.cursor,u("Close.ajax",w),u("BeforeChange.ajax",w)},getAjax:function(n){b&&e(document.body).addClass(b),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};d("ParseAjax",a),t.appendContent(e(a.data),"ajax"),n.finished=!0,C(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),d("AjaxContentAdded")},error:function(){C(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var x,_,k=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),u("Open"+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),u("Close"+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),l.off("resize.mfp")}),u("Resize"+i,t.resizeImage),t.isLowIE&&u("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,x&&clearInterval(x),e.isCheckingImgSize=!1,d("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){x&&clearInterval(x),x=setInterval(function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(x),3==++n?o(10):40===n?o(50):100===n&&o(500))},r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,d("ImageLoadComplete")):++o<200?setTimeout(r,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,c=i.find(".mfp-img");if(c.length){var l=document.createElement("img");l.className="mfp-img",n.el&&n.el.find("img").length&&(l.alt=n.el.find("img").attr("alt")),n.img=e(l).on("load.mfploader",r).on("error.mfploader",a),l.src=n.src,c.is("img")&&(n.img=n.img.clone()),(l=n.img[0]).naturalWidth>0?n.hasSize=!0:l.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:k(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(x&&clearInterval(x),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},c=function(){t.content.css("visibility","visible")};u("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void c();(r=s(e)).css(t._getOffset()),t.wrap.append(r),o=setTimeout(function(){r.css(t._getOffset(!0)),o=setTimeout(function(){c(),setTimeout(function(){r.remove(),e=r=null,d("ZoomAnimationEnded")},16)},a)},16)}}),u("BeforeClose"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;r=s(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),u("Close"+i,function(){t._allowZoom()&&(c(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(c?i.innerHeight():i[0].offsetHeight)-a-r};return void 0===_&&(_=void 0!==document.createElement("p").style.MozTransform),_?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var S=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),u("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?S():"iframe"===n&&S(!0))}),u("Close.iframe",function(){S()})},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var P=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},I=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;r+=" mfp-gallery",u("Open"+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),u("UpdateStatus"+o,function(e,n){n.text&&(n.text=I(n.text,t.currItem.index,t.items.length))}),u("MarkupParse"+o,function(e,i,o,r){var a=t.items.length;o.counter=a>1?I(n.tCounter,r.index,a):""}),u("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),r=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");o.click(function(){t.prev()}),r.click(function(){t.next()}),t.container.append(o.add(r))}}),u("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),u("Close"+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=P(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=P(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=P(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),d("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,d("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}}),e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(u("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),u("ElementParse.retina",function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),m()})?i.apply(t,o):i)||(e.exports=r)},57:function(e,t){!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),e.addDynamicEventListener=function(e,t,n,i,o){e.addEventListener(t,function(e,t){return function(n){n.target&&n.target.matches(e)&&t.apply(this,arguments)}}(n,i),o)}}(window)},58:function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,i)}e.exports=n},7:function(e,t,n){"use strict";n.r(t),n.d(t,"GiveModal",function(){return f}),n.d(t,"GiveErrorAlert",function(){return m}),n.d(t,"GiveWarningAlert",function(){return g}),n.d(t,"GiveNoticeAlert",function(){return v}),n.d(t,"GiveSuccessAlert",function(){return h}),n.d(t,"GiveConfirmModal",function(){return y}),n.d(t,"GiveFormModal",function(){return b});var i=n(11),o=n.n(i),r=n(12),a=n.n(r),s=n(13),c=n.n(s),l=n(5),u=n.n(l),p=n(8),d=n.n(p),f=(n(56),n(57),function(){function e(t){if(u()(this,e),e===this.constructor)throw new Error("Abstract classes can't be instantiated.");this.config=Object.assign({type:"",triggerSelector:"",externalPlugin:"magnificPopup",classes:{modalWrapper:""},modalContent:{}},t),this.config.mainClass="".concat(this.config.mainClass?this.config.mainClass:""," modal-fade-slide").trim()}return d()(e,[{key:"init",value:function(){this.setupTemplate(),this.popupConfig(),this.__setupClickEvent()}},{key:"getTemplate",value:function(){var e='<div class="give-hidden"></div>';return this.config.type.length&&(e='<div class="give-modal give-modal--zoom '.concat(this.config.classes.modalWrapper?"".concat(this.config.classes.modalWrapper).trim():"",'">\n\n\t\t\t\t<div class="give-modal__body">\n\t\t\t\t\t').concat(this.config.modalContent.title?'<h2 class="give-modal__title">'.concat(this.config.modalContent.title,"</h2>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.desc?'<p class="give-modal__description">'.concat(this.config.modalContent.desc,"</p>"):"",'\n\t\t\t\t</div>\n\t\n\t\t\t\t<div class="give-modal__controls">\n\n\t\t\t\t\t').concat("form"===this.config.type?'<div class="spinner"></div>':"","\n\t\t\t\t\t").concat("form"===this.config.type?'<a class="give-modal--additional-link" href="'.concat(this.config.modalContent.link,'">').concat(this.config.modalContent.link_text,"</a>"):"",'\n\n\t\t\t\t\t<button class="give-button give-button--secondary give-popup-close-button">\n\t\t\t\t\t\t').concat(this.config.modalContent.cancelBtnTitle?this.config.modalContent.cancelBtnTitle:"confirm"===this.config.type?Give.fn.getGlobalVar("cancel"):Give.fn.getGlobalVar("close"),"\n\t\t\t\t\t</button>\n\n\t\t\t\t\t").concat("confirm"!==this.config.type&&"form"!==this.config.type?"":'<button class="give-button give-button--primary give-popup-'.concat(this.config.type,'-button">\n\n\t\t\t\t\t\t').concat(this.config.modalContent.confirmBtnTitle?this.config.modalContent.confirmBtnTitle:Give.fn.getGlobalVar("confirm"),"\n\t\t\t\t\t</button>"),"\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t</div>")),e}},{key:"setupTemplate",value:function(){this.config.template=this.getTemplate()}},{key:"__setupClickEvent",value:function(){this.config.triggerSelector.length&&jQuery(this.config.triggerSelector).magnificPopup(this.config)}},{key:"popupConfig",value:function(){"magnificPopup"===this.config.externalPlugin&&(this.config.items=this.config.items||{src:this.config.template,type:"inline"},this.config.removalDelay=300,this.config.fixedContentPos=!0,this.config.fixedBgPos=!0,this.config.alignTop=!0,this.config.showCloseBtn=!1,this.config.closeOnBgClick=!1,this.config.enableEscapeKey=!0,this.config.focus=".give-popup-close-button")}},{key:"render",value:function(){switch(this.config.externalPlugin){case"magnificPopup":this.config.triggerSelector||jQuery.magnificPopup.open(this.config)}return this}}],[{key:"__closePopup",value:function(e){e.preventDefault(),jQuery.magnificPopup.instance.close()}}]),e}()),m=function(e){function t(e){var n;return u()(this,t),e.type="alert",(n=o()(this,a()(t).call(this,e))).config.classes.modalWrapper="give-modal--error",n.init(),n}return c()(t,e),t}(f),g=function(e){function t(e){var n;return u()(this,t),e.type="alert",(n=o()(this,a()(t).call(this,e))).config.classes.modalWrapper="give-modal--warning",n.init(),n}return c()(t,e),t}(f),v=function(e){function t(e){var n;return u()(this,t),e.type="alert",(n=o()(this,a()(t).call(this,e))).config.classes.modalWrapper="give-modal--notice",n.init(),n}return c()(t,e),t}(f),h=function(e){function t(e){var n;return u()(this,t),e.type="alert",(n=o()(this,a()(t).call(this,e))).config.classes.modalWrapper="give-modal--success",n.init(),n}return c()(t,e),t}(f),y=function(e){function t(e){var n;return u()(this,t),e.type="confirm",n=o()(this,a()(t).call(this,e)),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(n.config.classes.modalWrapper=e.modalWrapper),n.init(),n}return c()(t,e),d()(t,null,[{key:"__confirmPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&(jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el}),jQuery.magnificPopup.close())}}]),t}(f),b=function(e){function t(e){var n;return u()(this,t),e.type="form",n=o()(this,a()(t).call(this,e)),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(n.config.classes.modalWrapper=e.modalWrapper),n.init(),n}return c()(t,e),d()(t,null,[{key:"__submitPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el})}}]),t}(f);window.addDynamicEventListener(document,"click",".give-popup-close-button",f.__closePopup,{}),window.addDynamicEventListener(document,"click",".give-popup-confirm-button",y.__confirmPopup,{}),window.addDynamicEventListener(document,"click",".give-popup-form-button",b.__submitPopup,{})},8:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}});
|
give.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: GiveWP
|
7 |
* Author URI: https://givewp.com/
|
8 |
-
* Version: 2.4.
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
*
|
@@ -426,7 +426,7 @@ if ( ! class_exists( 'Give' ) ) :
|
|
426 |
|
427 |
// Plugin version.
|
428 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
429 |
-
define( 'GIVE_VERSION', '2.4.
|
430 |
}
|
431 |
|
432 |
// Plugin Root File.
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: GiveWP
|
7 |
* Author URI: https://givewp.com/
|
8 |
+
* Version: 2.4.4
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
*
|
426 |
|
427 |
// Plugin version.
|
428 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
429 |
+
define( 'GIVE_VERSION', '2.4.4' );
|
430 |
}
|
431 |
|
432 |
// Plugin Root File.
|
includes/admin/class-admin-settings.php
CHANGED
@@ -1116,12 +1116,12 @@ if ( ! class_exists( 'Give_Admin_Settings' ) ) :
|
|
1116 |
}
|
1117 |
|
1118 |
// Check fo setting tab.
|
1119 |
-
if ( ! empty( $tab ) ) {
|
1120 |
$is_setting_page = ( $tab === give_get_current_setting_tab() );
|
1121 |
}
|
1122 |
|
1123 |
// Check fo setting section.
|
1124 |
-
if ( ! empty( $section ) ) {
|
1125 |
$is_setting_page = ( $section === give_get_current_setting_section() );
|
1126 |
}
|
1127 |
|
1116 |
}
|
1117 |
|
1118 |
// Check fo setting tab.
|
1119 |
+
if ( ! empty( $tab ) && isset( $_GET['tab'] ) ) {
|
1120 |
$is_setting_page = ( $tab === give_get_current_setting_tab() );
|
1121 |
}
|
1122 |
|
1123 |
// Check fo setting section.
|
1124 |
+
if ( ! empty( $section ) && isset( $_GET['section'] ) ) {
|
1125 |
$is_setting_page = ( $section === give_get_current_setting_section() );
|
1126 |
}
|
1127 |
|
includes/admin/emails/abstract-email-notification.php
CHANGED
@@ -132,10 +132,12 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
132 |
$this->config['has_preview_header'] = $this->config['has_preview'] && $this->config['has_preview_header'] ? true : false;
|
133 |
|
134 |
// Set email content type
|
135 |
-
$this->config['content_type'] = empty( $this->config['content_type'] ) || ! in_array(
|
136 |
-
'
|
137 |
-
|
138 |
-
|
|
|
|
|
139 |
? Give()->emails->get_content_type()
|
140 |
: $this->config['content_type'];
|
141 |
$this->config['content_type'] = give_get_option( Give_Email_Setting_Field::get_prefix( $this ) . 'email_content_type', $this->config['content_type'] );
|
@@ -178,12 +180,12 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
178 |
*/
|
179 |
private function setup_filters() {
|
180 |
// Do not setup filters if not admin.
|
181 |
-
if( ! is_admin() ){
|
182 |
return;
|
183 |
}
|
184 |
|
185 |
// Apply filter only for current email notification section.
|
186 |
-
if ( give_get_current_setting_section() === $this->config['id'] ) {
|
187 |
// Initialize email context for email notification.
|
188 |
$this->config['email_tag_context'] = apply_filters(
|
189 |
"give_{$this->config['id']}_email_tag_context",
|
@@ -193,7 +195,7 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
193 |
}
|
194 |
|
195 |
// Setup setting fields.
|
196 |
-
if( $this->config['show_on_emails_setting_page'] ) {
|
197 |
add_filter( 'give_get_settings_emails', array( $this, 'add_setting_fields' ), 10, 2 );
|
198 |
}
|
199 |
|
@@ -206,12 +208,12 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
206 |
);
|
207 |
}
|
208 |
|
209 |
-
if( $this->config['has_recipient_field'] ) {
|
210 |
add_action(
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
);
|
216 |
}
|
217 |
|
@@ -326,7 +328,7 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
326 |
*/
|
327 |
public function add_metabox_setting_field( $settings, $form_id ) {
|
328 |
|
329 |
-
if( Give_Email_Notification_Util::is_email_notification_active( $this ) ) {
|
330 |
$settings[] = array(
|
331 |
'id' => $this->config['id'],
|
332 |
'title' => $this->config['label'],
|
@@ -368,12 +370,11 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
368 |
public function get_recipient( $form_id = null ) {
|
369 |
if ( empty( $this->recipient_email ) && $this->config['has_recipient_field'] ) {
|
370 |
$this->recipient_email = Give_Email_Notification_Util::get_value(
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
);
|
375 |
|
376 |
-
|
377 |
/**
|
378 |
* Filter the admin notice emails.
|
379 |
*
|
@@ -567,7 +568,7 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
567 |
$email_template = give_get_meta( $form_id, '_give_email_template', true );
|
568 |
$email_template = Give_Email_Notification_Util::get_value(
|
569 |
$this,
|
570 |
-
Give_Email_Setting_Field::get_prefix( $this, $form_id ) .'email_template',
|
571 |
$form_id,
|
572 |
! empty( $email_template ) && Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ?
|
573 |
$email_template :
|
@@ -627,7 +628,8 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
627 |
}
|
628 |
}
|
629 |
|
630 |
-
if ( count( $email_tags ) && $formatted ) :
|
|
|
631 |
<ul class="give-email-tags-wrap">
|
632 |
<?php foreach ( $email_tags as $email_tag ) : ?>
|
633 |
<li class="give_<?php echo $email_tag['tag']; ?>_tag">
|
@@ -781,7 +783,6 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
781 |
? absint( $email_tag_args['form_id'] )
|
782 |
: ( ! empty( $email_tag_args['payment_id'] ) ? give_get_payment_form_id( $email_tag_args['payment_id'] ) : null );
|
783 |
|
784 |
-
|
785 |
// Do not send email if notification is disable.
|
786 |
if ( ! Give_Email_Notification_Util::is_email_notification_active( $this, $form_id ) ) {
|
787 |
return false;
|
@@ -865,33 +866,41 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
865 |
$this->config['preview_email_tags_values'] = wp_parse_args(
|
866 |
$this->config['preview_email_tags_values'],
|
867 |
array(
|
868 |
-
'name'
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
)
|
880 |
-
'
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
'
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
'
|
893 |
-
'
|
894 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
895 |
'billing_address' => $payment_id ? give_email_tag_billing_address( array( 'payment_id' => $payment_id ) ) : '',
|
896 |
'email_access_link' => sprintf(
|
897 |
'<a href="%1$s">%2$s</a>',
|
@@ -906,11 +915,11 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
906 |
'donation_history_link' => sprintf(
|
907 |
'<a href="%1$s">%2$s</a>',
|
908 |
add_query_arg(
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
__( 'View your donation history »', 'give' )
|
915 |
),
|
916 |
'reset_password_link' => $user_id ? give_email_tag_reset_password_link( array( 'user_id' => $user_id ), $payment_id ) : '',
|
@@ -955,19 +964,20 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
955 |
* @param $form_meta_key
|
956 |
* @param $form_meta_value
|
957 |
* @param $post_id
|
958 |
-
*
|
959 |
*/
|
960 |
public function validate_form_recipient_field_value( $form_meta_key, $form_meta_value, $post_id ) {
|
961 |
// Get valid emails.
|
962 |
-
$new_form_meta_value = array_filter(
|
963 |
-
|
964 |
-
|
|
|
|
|
965 |
|
966 |
// Remove duplicate emails from array.
|
967 |
$email_arr = array();
|
968 |
foreach ( $new_form_meta_value as $index => $email ) {
|
969 |
-
if( in_array( $email['email'], $email_arr
|
970 |
-
unset( $new_form_meta_value[$index] );
|
971 |
continue;
|
972 |
}
|
973 |
|
@@ -980,7 +990,7 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
980 |
// Set default recipient.
|
981 |
$form_meta_value = array(
|
982 |
array(
|
983 |
-
'email' => get_bloginfo( 'admin_email' )
|
984 |
),
|
985 |
);
|
986 |
|
@@ -993,7 +1003,7 @@ if ( ! class_exists( 'Give_Email_Notification' ) ) :
|
|
993 |
$update = true;
|
994 |
}
|
995 |
|
996 |
-
if( $update ) {
|
997 |
give_update_meta( $post_id, $form_meta_key, $form_meta_value );
|
998 |
}
|
999 |
}
|
132 |
$this->config['has_preview_header'] = $this->config['has_preview'] && $this->config['has_preview_header'] ? true : false;
|
133 |
|
134 |
// Set email content type
|
135 |
+
$this->config['content_type'] = empty( $this->config['content_type'] ) || ! in_array(
|
136 |
+
$this->config['content_type'], array(
|
137 |
+
'text/html',
|
138 |
+
'text/plain',
|
139 |
+
)
|
140 |
+
)
|
141 |
? Give()->emails->get_content_type()
|
142 |
: $this->config['content_type'];
|
143 |
$this->config['content_type'] = give_get_option( Give_Email_Setting_Field::get_prefix( $this ) . 'email_content_type', $this->config['content_type'] );
|
180 |
*/
|
181 |
private function setup_filters() {
|
182 |
// Do not setup filters if not admin.
|
183 |
+
if ( ! is_admin() ) {
|
184 |
return;
|
185 |
}
|
186 |
|
187 |
// Apply filter only for current email notification section.
|
188 |
+
if ( isset( $_GET['section'] ) && give_get_current_setting_section() === $this->config['id'] ) {
|
189 |
// Initialize email context for email notification.
|
190 |
$this->config['email_tag_context'] = apply_filters(
|
191 |
"give_{$this->config['id']}_email_tag_context",
|
195 |
}
|
196 |
|
197 |
// Setup setting fields.
|
198 |
+
if ( $this->config['show_on_emails_setting_page'] ) {
|
199 |
add_filter( 'give_get_settings_emails', array( $this, 'add_setting_fields' ), 10, 2 );
|
200 |
}
|
201 |
|
208 |
);
|
209 |
}
|
210 |
|
211 |
+
if ( $this->config['has_recipient_field'] ) {
|
212 |
add_action(
|
213 |
+
"give_save__give_{$this->config['id']}_recipient",
|
214 |
+
array( $this, 'validate_form_recipient_field_value' ),
|
215 |
+
10,
|
216 |
+
3
|
217 |
);
|
218 |
}
|
219 |
|
328 |
*/
|
329 |
public function add_metabox_setting_field( $settings, $form_id ) {
|
330 |
|
331 |
+
if ( Give_Email_Notification_Util::is_email_notification_active( $this ) ) {
|
332 |
$settings[] = array(
|
333 |
'id' => $this->config['id'],
|
334 |
'title' => $this->config['label'],
|
370 |
public function get_recipient( $form_id = null ) {
|
371 |
if ( empty( $this->recipient_email ) && $this->config['has_recipient_field'] ) {
|
372 |
$this->recipient_email = Give_Email_Notification_Util::get_value(
|
373 |
+
$this,
|
374 |
+
Give_Email_Setting_Field::get_prefix( $this, $form_id ) . 'recipient',
|
375 |
+
$form_id
|
376 |
);
|
377 |
|
|
|
378 |
/**
|
379 |
* Filter the admin notice emails.
|
380 |
*
|
568 |
$email_template = give_get_meta( $form_id, '_give_email_template', true );
|
569 |
$email_template = Give_Email_Notification_Util::get_value(
|
570 |
$this,
|
571 |
+
Give_Email_Setting_Field::get_prefix( $this, $form_id ) . 'email_template',
|
572 |
$form_id,
|
573 |
! empty( $email_template ) && Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ?
|
574 |
$email_template :
|
628 |
}
|
629 |
}
|
630 |
|
631 |
+
if ( count( $email_tags ) && $formatted ) :
|
632 |
+
ob_start() ?>
|
633 |
<ul class="give-email-tags-wrap">
|
634 |
<?php foreach ( $email_tags as $email_tag ) : ?>
|
635 |
<li class="give_<?php echo $email_tag['tag']; ?>_tag">
|
783 |
? absint( $email_tag_args['form_id'] )
|
784 |
: ( ! empty( $email_tag_args['payment_id'] ) ? give_get_payment_form_id( $email_tag_args['payment_id'] ) : null );
|
785 |
|
|
|
786 |
// Do not send email if notification is disable.
|
787 |
if ( ! Give_Email_Notification_Util::is_email_notification_active( $this, $form_id ) ) {
|
788 |
return false;
|
866 |
$this->config['preview_email_tags_values'] = wp_parse_args(
|
867 |
$this->config['preview_email_tags_values'],
|
868 |
array(
|
869 |
+
'name' => give_email_tag_first_name(
|
870 |
+
array(
|
871 |
+
'payment_id' => $payment_id,
|
872 |
+
'user_id' => $user_id,
|
873 |
+
)
|
874 |
+
),
|
875 |
+
'fullname' => give_email_tag_fullname(
|
876 |
+
array(
|
877 |
+
'payment_id' => $payment_id,
|
878 |
+
'user_id' => $user_id,
|
879 |
+
)
|
880 |
+
),
|
881 |
+
'username' => give_email_tag_username(
|
882 |
+
array(
|
883 |
+
'payment_id' => $payment_id,
|
884 |
+
'user_id' => $user_id,
|
885 |
+
)
|
886 |
+
),
|
887 |
+
'user_email' => give_email_tag_user_email(
|
888 |
+
array(
|
889 |
+
'payment_id' => $payment_id,
|
890 |
+
'user_id' => $user_id,
|
891 |
+
)
|
892 |
+
),
|
893 |
+
'payment_total' => $payment_id ? give_email_tag_payment_total( array( 'payment_id' => $payment_id ) ) : give_currency_filter( '10.50' ),
|
894 |
+
'amount' => $payment_id ? give_email_tag_amount( array( 'payment_id' => $payment_id ) ) : give_currency_filter( '10.50' ),
|
895 |
+
'price' => $payment_id ? give_email_tag_price( array( 'payment_id' => $payment_id ) ) : give_currency_filter( '10.50' ),
|
896 |
+
'payment_method' => $payment_id ? give_email_tag_payment_method( array( 'payment_id' => $payment_id ) ) : __( 'PayPal', 'give' ),
|
897 |
+
'payment_id' => $payment_id ? $payment_id : rand( 2000, 2050 ),
|
898 |
+
'receipt_link_url' => $receipt_link_url,
|
899 |
+
'receipt_link' => $receipt_link,
|
900 |
+
'date' => $payment_id ? date( give_date_format(), strtotime( $payment->date ) ) : date( give_date_format(), current_time( 'timestamp' ) ),
|
901 |
+
'donation' => $payment_id ? give_email_tag_donation( array( 'payment_id' => $payment_id ) ) : esc_html__( 'Sample Donation Form Title', 'give' ),
|
902 |
+
'form_title' => $payment_id ? give_email_tag_form_title( array( 'payment_id' => $payment_id ) ) : esc_html__( 'Sample Donation Form Title - Sample Donation Level', 'give' ),
|
903 |
+
'sitename' => $payment_id ? give_email_tag_sitename( array( 'payment_id' => $payment_id ) ) : get_bloginfo( 'name' ),
|
904 |
'billing_address' => $payment_id ? give_email_tag_billing_address( array( 'payment_id' => $payment_id ) ) : '',
|
905 |
'email_access_link' => sprintf(
|
906 |
'<a href="%1$s">%2$s</a>',
|
915 |
'donation_history_link' => sprintf(
|
916 |
'<a href="%1$s">%2$s</a>',
|
917 |
add_query_arg(
|
918 |
+
array(
|
919 |
+
'give_nl' => uniqid(),
|
920 |
+
),
|
921 |
+
give_get_history_page_uri()
|
922 |
+
),
|
923 |
__( 'View your donation history »', 'give' )
|
924 |
),
|
925 |
'reset_password_link' => $user_id ? give_email_tag_reset_password_link( array( 'user_id' => $user_id ), $payment_id ) : '',
|
964 |
* @param $form_meta_key
|
965 |
* @param $form_meta_value
|
966 |
* @param $post_id
|
|
|
967 |
*/
|
968 |
public function validate_form_recipient_field_value( $form_meta_key, $form_meta_value, $post_id ) {
|
969 |
// Get valid emails.
|
970 |
+
$new_form_meta_value = array_filter(
|
971 |
+
$form_meta_value, function ( $value ) {
|
972 |
+
return ! empty( $value['email'] ) && is_email( $value['email'] );
|
973 |
+
}
|
974 |
+
);
|
975 |
|
976 |
// Remove duplicate emails from array.
|
977 |
$email_arr = array();
|
978 |
foreach ( $new_form_meta_value as $index => $email ) {
|
979 |
+
if ( in_array( $email['email'], $email_arr ) ) {
|
980 |
+
unset( $new_form_meta_value[ $index ] );
|
981 |
continue;
|
982 |
}
|
983 |
|
990 |
// Set default recipient.
|
991 |
$form_meta_value = array(
|
992 |
array(
|
993 |
+
'email' => get_bloginfo( 'admin_email' ),
|
994 |
),
|
995 |
);
|
996 |
|
1003 |
$update = true;
|
1004 |
}
|
1005 |
|
1006 |
+
if ( $update ) {
|
1007 |
give_update_meta( $post_id, $form_meta_key, $form_meta_value );
|
1008 |
}
|
1009 |
}
|
includes/admin/emails/class-email-notifications.php
CHANGED
@@ -38,7 +38,7 @@ class Give_Email_Notifications {
|
|
38 |
*
|
39 |
* @since 2.0
|
40 |
* @access private
|
41 |
-
*
|
42 |
*/
|
43 |
private function __construct() {
|
44 |
}
|
@@ -76,7 +76,7 @@ class Give_Email_Notifications {
|
|
76 |
add_filter( 'give_metabox_form_data_settings', array( $this, 'add_metabox_setting_fields' ), 10, 2 );
|
77 |
add_action( 'init', array( $this, 'preview_email' ) );
|
78 |
add_action( 'init', array( $this, 'send_preview_email' ) );
|
79 |
-
add_action( '
|
80 |
|
81 |
/* @var Give_Email_Notification $email */
|
82 |
foreach ( $this->get_email_notifications() as $email ) {
|
38 |
*
|
39 |
* @since 2.0
|
40 |
* @access private
|
41 |
+
* Give_Email_Notifications constructor.
|
42 |
*/
|
43 |
private function __construct() {
|
44 |
}
|
76 |
add_filter( 'give_metabox_form_data_settings', array( $this, 'add_metabox_setting_fields' ), 10, 2 );
|
77 |
add_action( 'init', array( $this, 'preview_email' ) );
|
78 |
add_action( 'init', array( $this, 'send_preview_email' ) );
|
79 |
+
add_action( 'admin_init', array( $this, 'validate_settings' ) );
|
80 |
|
81 |
/* @var Give_Email_Notification $email */
|
82 |
foreach ( $this->get_email_notifications() as $email ) {
|
includes/class-give-donate-form.php
CHANGED
@@ -644,7 +644,7 @@ class Give_Donate_Form {
|
|
644 |
} elseif ( 'donors' === $goal_format ) {
|
645 |
$this->goal = give_get_meta( $this->ID, '_give_number_of_donor_goal', true );
|
646 |
|
647 |
-
} elseif( 'amount'
|
648 |
$this->goal = give_get_meta( $this->ID, '_give_set_goal', true );
|
649 |
}
|
650 |
}
|
644 |
} elseif ( 'donors' === $goal_format ) {
|
645 |
$this->goal = give_get_meta( $this->ID, '_give_number_of_donor_goal', true );
|
646 |
|
647 |
+
} elseif( in_array( $goal_format, array( 'amount', 'percentage' ) ) ) {
|
648 |
$this->goal = give_get_meta( $this->ID, '_give_set_goal', true );
|
649 |
}
|
650 |
}
|
includes/class-give-scripts.php
CHANGED
@@ -152,7 +152,7 @@ class Give_Scripts {
|
|
152 |
|
153 |
// Plugin page script
|
154 |
if ( 'plugins.php' === $pagenow ) {
|
155 |
-
$this->
|
156 |
}
|
157 |
|
158 |
// Give Admin Only.
|
@@ -179,7 +179,7 @@ class Give_Scripts {
|
|
179 |
* @since 2.2.0
|
180 |
* @access private
|
181 |
*/
|
182 |
-
private function
|
183 |
wp_enqueue_style( 'plugin-deactivation-survey-css' );
|
184 |
wp_enqueue_script( 'plugin-deactivation-survey-js' );
|
185 |
|
152 |
|
153 |
// Plugin page script
|
154 |
if ( 'plugins.php' === $pagenow ) {
|
155 |
+
$this->plugin_enqueue_scripts();
|
156 |
}
|
157 |
|
158 |
// Give Admin Only.
|
179 |
* @since 2.2.0
|
180 |
* @access private
|
181 |
*/
|
182 |
+
private function plugin_enqueue_scripts() {
|
183 |
wp_enqueue_style( 'plugin-deactivation-survey-css' );
|
184 |
wp_enqueue_script( 'plugin-deactivation-survey-js' );
|
185 |
|
includes/emails/class-give-email-tags.php
CHANGED
@@ -1628,7 +1628,7 @@ function __give_render_metadata_email_tag( $content, $tag_args ) {
|
|
1628 |
// Bailout.
|
1629 |
if ( ! isset( $tag_args['payment_id'] ) ) {
|
1630 |
$replace[] = '';
|
1631 |
-
continue;
|
1632 |
}
|
1633 |
|
1634 |
$meta_data = give_get_meta( absint( $tag_args['payment_id'] ), $meta_name, true, '' );
|
1628 |
// Bailout.
|
1629 |
if ( ! isset( $tag_args['payment_id'] ) ) {
|
1630 |
$replace[] = '';
|
1631 |
+
continue 2;
|
1632 |
}
|
1633 |
|
1634 |
$meta_data = give_get_meta( absint( $tag_args['payment_id'] ), $meta_name, true, '' );
|
includes/libraries/tcpdf/CHANGELOG.TXT
CHANGED
@@ -1,5 +1,17 @@
|
|
1 |
-
|
2 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
6.2.13 (2016-06-10)
|
5 |
- IMPORTANT: A new version of this library is under development at https://github.com/tecnickcom/tc-lib-pdf and as a consequence this version will not receive any additional development or support. This version should be considered obsolete, new projects should use the new version as soon it will become stable.
|
1 |
+
6.2.25
|
2 |
+
- Fix support for image URLs.
|
3 |
+
|
4 |
+
6.2.24
|
5 |
+
- Support remote urls when checking if file exists.
|
6 |
+
|
7 |
+
6.2.23
|
8 |
+
- Simplify file_exists function.
|
9 |
+
|
10 |
+
6.2.22
|
11 |
+
- Fix for security vulnerability: Using the phar:// wrapper it was possible to trigger the unserialization of user provided data.
|
12 |
+
|
13 |
+
6.2.19
|
14 |
+
- Merge various fixes for PHP 7.3 compatibility and security.
|
15 |
|
16 |
6.2.13 (2016-06-10)
|
17 |
- IMPORTANT: A new version of this library is under development at https://github.com/tecnickcom/tc-lib-pdf and as a consequence this version will not receive any additional development or support. This version should be considered obsolete, new projects should use the new version as soon it will become stable.
|
includes/libraries/tcpdf/composer.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "tecnickcom/tcpdf",
|
3 |
-
"version": "6.2.
|
4 |
"homepage": "http://www.tcpdf.org/",
|
5 |
"type": "library",
|
6 |
"description": "TCPDF is a PHP class for generating PDF documents and barcodes.",
|
1 |
{
|
2 |
"name": "tecnickcom/tcpdf",
|
3 |
+
"version": "6.2.26",
|
4 |
"homepage": "http://www.tcpdf.org/",
|
5 |
"type": "library",
|
6 |
"description": "TCPDF is a PHP class for generating PDF documents and barcodes.",
|
includes/libraries/tcpdf/include/sRGB.icc
CHANGED
Binary file
|
includes/libraries/tcpdf/include/tcpdf_fonts.php
CHANGED
@@ -70,7 +70,7 @@ class TCPDF_FONTS {
|
|
70 |
* @public static
|
71 |
*/
|
72 |
public static function addTTFfont($fontfile, $fonttype='', $enc='', $flags=32, $outpath='', $platid=3, $encid=1, $addcbbox=false, $link=false) {
|
73 |
-
if (!file_exists($fontfile)) {
|
74 |
// Could not find file
|
75 |
return false;
|
76 |
}
|
@@ -95,7 +95,7 @@ class TCPDF_FONTS {
|
|
95 |
$outpath = self::_getfontpath();
|
96 |
}
|
97 |
// check if this font already exist
|
98 |
-
if (@file_exists($outpath.$font_name.'.php')) {
|
99 |
// this font already exist (delete it from fonts folder to rebuild it)
|
100 |
return $font_name;
|
101 |
}
|
@@ -1543,11 +1543,11 @@ class TCPDF_FONTS {
|
|
1543 |
public static function getFontFullPath($file, $fontdir=false) {
|
1544 |
$fontfile = '';
|
1545 |
// search files on various directories
|
1546 |
-
if (($fontdir !== false) AND @file_exists($fontdir.$file)) {
|
1547 |
$fontfile = $fontdir.$file;
|
1548 |
-
} elseif (@file_exists(self::_getfontpath().$file)) {
|
1549 |
$fontfile = self::_getfontpath().$file;
|
1550 |
-
} elseif (@file_exists($file)) {
|
1551 |
$fontfile = $file;
|
1552 |
}
|
1553 |
return $fontfile;
|
@@ -2003,7 +2003,11 @@ class TCPDF_FONTS {
|
|
2003 |
$chars = str_split($str);
|
2004 |
$carr = array_map('ord', $chars);
|
2005 |
}
|
2006 |
-
$currentfont['subsetchars']
|
|
|
|
|
|
|
|
|
2007 |
return $carr;
|
2008 |
}
|
2009 |
|
70 |
* @public static
|
71 |
*/
|
72 |
public static function addTTFfont($fontfile, $fonttype='', $enc='', $flags=32, $outpath='', $platid=3, $encid=1, $addcbbox=false, $link=false) {
|
73 |
+
if (!TCPDF_STATIC::file_exists($fontfile)) {
|
74 |
// Could not find file
|
75 |
return false;
|
76 |
}
|
95 |
$outpath = self::_getfontpath();
|
96 |
}
|
97 |
// check if this font already exist
|
98 |
+
if (@TCPDF_STATIC::file_exists($outpath.$font_name.'.php')) {
|
99 |
// this font already exist (delete it from fonts folder to rebuild it)
|
100 |
return $font_name;
|
101 |
}
|
1543 |
public static function getFontFullPath($file, $fontdir=false) {
|
1544 |
$fontfile = '';
|
1545 |
// search files on various directories
|
1546 |
+
if (($fontdir !== false) AND @TCPDF_STATIC::file_exists($fontdir.$file)) {
|
1547 |
$fontfile = $fontdir.$file;
|
1548 |
+
} elseif (@TCPDF_STATIC::file_exists(self::_getfontpath().$file)) {
|
1549 |
$fontfile = self::_getfontpath().$file;
|
1550 |
+
} elseif (@TCPDF_STATIC::file_exists($file)) {
|
1551 |
$fontfile = $file;
|
1552 |
}
|
1553 |
return $fontfile;
|
2003 |
$chars = str_split($str);
|
2004 |
$carr = array_map('ord', $chars);
|
2005 |
}
|
2006 |
+
if (is_array($currentfont['subsetchars']) && is_array($carr)) {
|
2007 |
+
$currentfont['subsetchars'] += array_fill_keys($carr, true);
|
2008 |
+
} else {
|
2009 |
+
$currentfont['subsetchars'] = array_merge($currentfont['subsetchars'], $carr);
|
2010 |
+
}
|
2011 |
return $carr;
|
2012 |
}
|
2013 |
|
includes/libraries/tcpdf/include/tcpdf_images.php
CHANGED
@@ -161,12 +161,8 @@ class TCPDF_IMAGES {
|
|
161 |
*/
|
162 |
public static function _parsejpeg($file) {
|
163 |
// check if is a local file
|
164 |
-
if (!@file_exists($file)) {
|
165 |
-
|
166 |
-
$tfile = str_replace(' ', '%20', $file);
|
167 |
-
if (@file_exists($tfile)) {
|
168 |
-
$file = $tfile;
|
169 |
-
}
|
170 |
}
|
171 |
$a = getimagesize($file);
|
172 |
if (empty($a)) {
|
161 |
*/
|
162 |
public static function _parsejpeg($file) {
|
163 |
// check if is a local file
|
164 |
+
if (!@TCPDF_STATIC::file_exists($file)) {
|
165 |
+
return false;
|
|
|
|
|
|
|
|
|
166 |
}
|
167 |
$a = getimagesize($file);
|
168 |
if (empty($a)) {
|
includes/libraries/tcpdf/include/tcpdf_static.php
CHANGED
@@ -55,7 +55,7 @@ class TCPDF_STATIC {
|
|
55 |
* Current TCPDF version.
|
56 |
* @private static
|
57 |
*/
|
58 |
-
private static $tcpdf_version = '6.2.
|
59 |
|
60 |
/**
|
61 |
* String alias for total number of pages.
|
@@ -1774,39 +1774,6 @@ class TCPDF_STATIC {
|
|
1774 |
return $angle;
|
1775 |
}
|
1776 |
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
1780 |
-
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
// ====================================================================================================================
|
1794 |
-
// REIMPLEMENTED
|
1795 |
-
// ====================================================================================================================
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
|
1805 |
-
|
1806 |
-
|
1807 |
-
|
1808 |
-
|
1809 |
-
|
1810 |
/**
|
1811 |
* Split string by a regular expression.
|
1812 |
* This is a wrapper for the preg_split function to avoid the bug: https://bugs.php.net/bug.php?id=45850
|
@@ -1854,6 +1821,49 @@ class TCPDF_STATIC {
|
|
1854 |
return fopen($filename, $mode);
|
1855 |
}
|
1856 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1857 |
/**
|
1858 |
* Reads entire file into a string.
|
1859 |
* The file can be also an URL.
|
@@ -1914,8 +1924,10 @@ class TCPDF_STATIC {
|
|
1914 |
}
|
1915 |
//
|
1916 |
$alt = array_unique($alt);
|
1917 |
-
//var_dump($alt);exit;//DEBUG
|
1918 |
foreach ($alt as $path) {
|
|
|
|
|
|
|
1919 |
$ret = @file_get_contents($path);
|
1920 |
if ($ret !== false) {
|
1921 |
return $ret;
|
@@ -1949,8 +1961,6 @@ class TCPDF_STATIC {
|
|
1949 |
return false;
|
1950 |
}
|
1951 |
|
1952 |
-
|
1953 |
-
|
1954 |
/**
|
1955 |
* Get ULONG from string (Big Endian 32-bit unsigned integer).
|
1956 |
* @param $str (string) string from where to extract value
|
55 |
* Current TCPDF version.
|
56 |
* @private static
|
57 |
*/
|
58 |
+
private static $tcpdf_version = '6.2.26';
|
59 |
|
60 |
/**
|
61 |
* String alias for total number of pages.
|
1774 |
return $angle;
|
1775 |
}
|
1776 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1777 |
/**
|
1778 |
* Split string by a regular expression.
|
1779 |
* This is a wrapper for the preg_split function to avoid the bug: https://bugs.php.net/bug.php?id=45850
|
1821 |
return fopen($filename, $mode);
|
1822 |
}
|
1823 |
|
1824 |
+
/**
|
1825 |
+
* Check if the URL exist.
|
1826 |
+
* @param url (string) URL to check.
|
1827 |
+
* @return Returns TRUE if the URL exists; FALSE otherwise.
|
1828 |
+
* @public static
|
1829 |
+
*/
|
1830 |
+
public static function url_exists($url) {
|
1831 |
+
$crs = curl_init();
|
1832 |
+
curl_setopt($crs, CURLOPT_URL, $url);
|
1833 |
+
curl_setopt($crs, CURLOPT_NOBODY, true);
|
1834 |
+
curl_setopt($crs, CURLOPT_FAILONERROR, true);
|
1835 |
+
if ((ini_get('open_basedir') == '') && (!ini_get('safe_mode'))) {
|
1836 |
+
curl_setopt($crs, CURLOPT_FOLLOWLOCATION, true);
|
1837 |
+
}
|
1838 |
+
curl_setopt($crs, CURLOPT_CONNECTTIMEOUT, 5);
|
1839 |
+
curl_setopt($crs, CURLOPT_TIMEOUT, 30);
|
1840 |
+
curl_setopt($crs, CURLOPT_SSL_VERIFYPEER, false);
|
1841 |
+
curl_setopt($crs, CURLOPT_SSL_VERIFYHOST, false);
|
1842 |
+
curl_setopt($crs, CURLOPT_USERAGENT, 'tc-lib-file');
|
1843 |
+
curl_exec($crs);
|
1844 |
+
$code = curl_getinfo($crs, CURLINFO_HTTP_CODE);
|
1845 |
+
curl_close($crs);
|
1846 |
+
return ($code == 200);
|
1847 |
+
}
|
1848 |
+
|
1849 |
+
/**
|
1850 |
+
* Wrapper for file_exists.
|
1851 |
+
* Checks whether a file or directory exists.
|
1852 |
+
* Only allows some protocols and local files.
|
1853 |
+
* @param filename (string) Path to the file or directory.
|
1854 |
+
* @return Returns TRUE if the file or directory specified by filename exists; FALSE otherwise.
|
1855 |
+
* @public static
|
1856 |
+
*/
|
1857 |
+
public static function file_exists($filename) {
|
1858 |
+
if (preg_match('|^https?://|', $filename) == 1) {
|
1859 |
+
return self::url_exists($filename);
|
1860 |
+
}
|
1861 |
+
if (strpos($filename, '://')) {
|
1862 |
+
return false; // only support http and https wrappers for security reasons
|
1863 |
+
}
|
1864 |
+
return @file_exists($filename);
|
1865 |
+
}
|
1866 |
+
|
1867 |
/**
|
1868 |
* Reads entire file into a string.
|
1869 |
* The file can be also an URL.
|
1924 |
}
|
1925 |
//
|
1926 |
$alt = array_unique($alt);
|
|
|
1927 |
foreach ($alt as $path) {
|
1928 |
+
if (!self::file_exists($path)) {
|
1929 |
+
return false;
|
1930 |
+
}
|
1931 |
$ret = @file_get_contents($path);
|
1932 |
if ($ret !== false) {
|
1933 |
return $ret;
|
1961 |
return false;
|
1962 |
}
|
1963 |
|
|
|
|
|
1964 |
/**
|
1965 |
* Get ULONG from string (Big Endian 32-bit unsigned integer).
|
1966 |
* @param $str (string) string from where to extract value
|
includes/libraries/tcpdf/tcpdf.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
//============================================================+
|
3 |
// File name : tcpdf.php
|
4 |
-
// Version : 6.2.
|
5 |
// Begin : 2002-08-03
|
6 |
-
// Last Update :
|
7 |
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
|
8 |
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
|
9 |
// -------------------------------------------------------------------
|
10 |
-
// Copyright (C) 2002-
|
11 |
//
|
12 |
// This file is part of TCPDF software library.
|
13 |
//
|
@@ -104,7 +104,7 @@
|
|
104 |
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
|
105 |
* @package com.tecnick.tcpdf
|
106 |
* @author Nicola Asuni
|
107 |
-
* @version 6.2.
|
108 |
*/
|
109 |
|
110 |
// TCPDF configuration
|
@@ -128,8 +128,11 @@ require_once(dirname(__FILE__).'/include/tcpdf_static.php');
|
|
128 |
* TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br>
|
129 |
* @package com.tecnick.tcpdf
|
130 |
* @brief PHP class for generating PDF documents without requiring external extensions.
|
131 |
-
* @version 6.2.
|
132 |
* @author Nicola Asuni - info@tecnick.com
|
|
|
|
|
|
|
133 |
*/
|
134 |
class TCPDF {
|
135 |
|
@@ -1994,10 +1997,6 @@ class TCPDF {
|
|
1994 |
* @since 1.53.0.TC016
|
1995 |
*/
|
1996 |
public function __destruct() {
|
1997 |
-
// restore internal encoding
|
1998 |
-
if (isset($this->internal_encoding) AND !empty($this->internal_encoding)) {
|
1999 |
-
mb_internal_encoding($this->internal_encoding);
|
2000 |
-
}
|
2001 |
// cleanup
|
2002 |
$this->_destroy(true);
|
2003 |
}
|
@@ -4257,7 +4256,7 @@ class TCPDF {
|
|
4257 |
// true when the font style variation is missing
|
4258 |
$missing_style = false;
|
4259 |
// search and include font file
|
4260 |
-
if (TCPDF_STATIC::empty_string($fontfile) OR (!@file_exists($fontfile))) {
|
4261 |
// build a standard filenames for specified font
|
4262 |
$tmp_fontfile = str_replace(' ', '', $family).strtolower($style).'.php';
|
4263 |
$fontfile = TCPDF_FONTS::getFontFullPath($tmp_fontfile, $fontdir);
|
@@ -4269,7 +4268,7 @@ class TCPDF {
|
|
4269 |
}
|
4270 |
}
|
4271 |
// include font file
|
4272 |
-
if (!TCPDF_STATIC::empty_string($fontfile) AND (@file_exists($fontfile))) {
|
4273 |
include($fontfile);
|
4274 |
} else {
|
4275 |
$this->Error('Could not include font definition file: '.$family.'');
|
@@ -4453,6 +4452,7 @@ class TCPDF {
|
|
4453 |
* @see SetFont()
|
4454 |
*/
|
4455 |
public function SetFontSize($size, $out=true) {
|
|
|
4456 |
// font size in points
|
4457 |
$this->FontSizePt = $size;
|
4458 |
// font size in user units
|
@@ -4809,19 +4809,19 @@ class TCPDF {
|
|
4809 |
$this->PageAnnots[$page][] = array('n' => ++$this->n, 'x' => $x, 'y' => $y, 'w' => $w, 'h' => $h, 'txt' => $text, 'opt' => $opt, 'numspaces' => $spaces);
|
4810 |
if (!$this->pdfa_mode) {
|
4811 |
if ((($opt['Subtype'] == 'FileAttachment') OR ($opt['Subtype'] == 'Sound')) AND (!TCPDF_STATIC::empty_string($opt['FS']))
|
4812 |
-
AND (@file_exists($opt['FS']) OR TCPDF_STATIC::isValidURL($opt['FS']))
|
4813 |
AND (!isset($this->embeddedfiles[basename($opt['FS'])]))) {
|
4814 |
$this->embeddedfiles[basename($opt['FS'])] = array('f' => ++$this->n, 'n' => ++$this->n, 'file' => $opt['FS']);
|
4815 |
}
|
4816 |
}
|
4817 |
// Add widgets annotation's icons
|
4818 |
-
if (isset($opt['mk']['i']) AND @file_exists($opt['mk']['i'])) {
|
4819 |
$this->Image($opt['mk']['i'], '', '', 10, 10, '', '', '', false, 300, '', false, false, 0, false, true);
|
4820 |
}
|
4821 |
-
if (isset($opt['mk']['ri']) AND @file_exists($opt['mk']['ri'])) {
|
4822 |
$this->Image($opt['mk']['ri'], '', '', 0, 0, '', '', '', false, 300, '', false, false, 0, false, true);
|
4823 |
}
|
4824 |
-
if (isset($opt['mk']['ix']) AND @file_exists($opt['mk']['ix'])) {
|
4825 |
$this->Image($opt['mk']['ix'], '', '', 0, 0, '', '', '', false, 300, '', false, false, 0, false, true);
|
4826 |
}
|
4827 |
}
|
@@ -5769,10 +5769,9 @@ class TCPDF {
|
|
5769 |
$this->resetLastH();
|
5770 |
}
|
5771 |
if (!TCPDF_STATIC::empty_string($y)) {
|
5772 |
-
$this->SetY($y);
|
5773 |
-
} else {
|
5774 |
-
$y = $this->GetY();
|
5775 |
}
|
|
|
5776 |
$resth = 0;
|
5777 |
if (($h > 0) AND $this->inPageBody() AND (($y + $h + $mc_margin['T'] + $mc_margin['B']) > $this->PageBreakTrigger)) {
|
5778 |
// spit cell in more pages/columns
|
@@ -6845,13 +6844,9 @@ class TCPDF {
|
|
6845 |
$file = substr($file, 1);
|
6846 |
$exurl = $file;
|
6847 |
}
|
6848 |
-
// check if
|
6849 |
-
if (!@file_exists($file)) {
|
6850 |
-
|
6851 |
-
$tfile = str_replace(' ', '%20', $file);
|
6852 |
-
if (@file_exists($tfile)) {
|
6853 |
-
$file = $tfile;
|
6854 |
-
}
|
6855 |
}
|
6856 |
if (($imsize = @getimagesize($file)) === FALSE) {
|
6857 |
if (in_array($file, $this->imagekeys)) {
|
@@ -7750,6 +7745,10 @@ class TCPDF {
|
|
7750 |
* @since 4.5.016 (2009-02-24)
|
7751 |
*/
|
7752 |
public function _destroy($destroyall=false, $preserve_objcopy=false) {
|
|
|
|
|
|
|
|
|
7753 |
if ($destroyall AND !$preserve_objcopy) {
|
7754 |
// remove all temporary files
|
7755 |
$tmpfiles = glob(K_PATH_CACHE.'__tcpdf_'.$this->file_id.'_*');
|
@@ -9648,7 +9647,7 @@ class TCPDF {
|
|
9648 |
protected function _putcatalog() {
|
9649 |
// put XMP
|
9650 |
$xmpobj = $this->_putXMP();
|
9651 |
-
// if required, add standard
|
9652 |
if ($this->pdfa_mode OR $this->force_srgb) {
|
9653 |
$iccobj = $this->_newobj();
|
9654 |
$icc = file_get_contents(dirname(__FILE__).'/include/sRGB.icc');
|
@@ -17783,7 +17782,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
|
17783 |
// justify block
|
17784 |
if (!TCPDF_STATIC::empty_string($this->lispacer)) {
|
17785 |
$this->lispacer = '';
|
17786 |
-
|
17787 |
}
|
17788 |
preg_match('/([0-9\.\+\-]*)[\s]([0-9\.\+\-]*)[\s]([0-9\.\+\-]*)[\s]('.$strpiece[1][0].')[\s](re)([\s]*)/x', $pmid, $xmatches);
|
17789 |
if (!isset($xmatches[1])) {
|
@@ -18318,7 +18317,8 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
|
18318 |
}
|
18319 |
// text
|
18320 |
$this->htmlvspace = 0;
|
18321 |
-
|
|
|
18322 |
// reverse spaces order
|
18323 |
$lsp = ''; // left spaces
|
18324 |
$rsp = ''; // right spaces
|
@@ -18333,7 +18333,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
|
18333 |
if ($newline) {
|
18334 |
if (!$this->premode) {
|
18335 |
$prelen = strlen($dom[$key]['value']);
|
18336 |
-
if ($this->isRTLTextDir()) {
|
18337 |
// right trim except non-breaking space
|
18338 |
$dom[$key]['value'] = $this->stringRightTrim($dom[$key]['value']);
|
18339 |
} else {
|
@@ -18817,100 +18817,122 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
|
18817 |
break;
|
18818 |
}
|
18819 |
case 'img': {
|
18820 |
-
if (
|
18821 |
-
|
18822 |
-
|
18823 |
-
|
18824 |
-
|
18825 |
-
|
18826 |
-
|
18827 |
-
|
18828 |
-
|
18829 |
-
if (!
|
18830 |
-
|
18831 |
-
|
18832 |
-
|
18833 |
-
|
18834 |
-
|
18835 |
-
|
18836 |
-
|
18837 |
-
|
18838 |
-
$tag['attribute']['align'] = 'bottom';
|
18839 |
-
//}
|
18840 |
-
switch($tag['attribute']['align']) {
|
18841 |
-
case 'top': {
|
18842 |
-
$align = 'T';
|
18843 |
-
break;
|
18844 |
-
}
|
18845 |
-
case 'middle': {
|
18846 |
-
$align = 'M';
|
18847 |
-
break;
|
18848 |
-
}
|
18849 |
-
case 'bottom': {
|
18850 |
-
$align = 'B';
|
18851 |
-
break;
|
18852 |
}
|
18853 |
-
|
18854 |
-
|
18855 |
-
|
|
|
|
|
|
|
|
|
|
|
18856 |
}
|
18857 |
}
|
18858 |
-
|
18859 |
-
$
|
18860 |
-
|
18861 |
-
|
18862 |
-
|
18863 |
-
|
18864 |
-
|
18865 |
-
|
18866 |
-
|
18867 |
-
|
18868 |
-
|
18869 |
-
|
18870 |
-
|
18871 |
-
|
18872 |
-
|
18873 |
-
|
18874 |
-
|
18875 |
-
|
18876 |
-
|
18877 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18878 |
}
|
|
|
|
|
18879 |
}
|
18880 |
}
|
18881 |
-
|
18882 |
-
|
18883 |
-
|
18884 |
-
|
18885 |
-
|
18886 |
-
|
18887 |
-
|
18888 |
-
|
18889 |
-
|
18890 |
-
|
18891 |
-
|
18892 |
-
|
18893 |
-
|
18894 |
-
|
18895 |
-
|
18896 |
-
|
18897 |
-
|
18898 |
-
|
18899 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
18900 |
}
|
18901 |
-
|
18902 |
-
|
18903 |
-
|
18904 |
-
|
18905 |
-
|
18906 |
-
|
18907 |
-
|
18908 |
-
break;
|
18909 |
-
}
|
18910 |
-
case 'B': {
|
18911 |
-
$this->y = $this->img_rb_y - ($this->getCellHeight($tag['fontsize'] / $this->k) - ($this->getFontDescent($tag['fontname'], $tag['fontstyle'], $tag['fontsize']) * $this->cell_height_ratio));
|
18912 |
-
break;
|
18913 |
-
}
|
18914 |
}
|
18915 |
}
|
18916 |
break;
|
@@ -24206,9 +24228,12 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
|
24206 |
}
|
24207 |
$img = urldecode($img);
|
24208 |
$testscrtype = @parse_url($img);
|
24209 |
-
if (
|
24210 |
// convert URL to server path
|
24211 |
$img = str_replace(K_PATH_URL, K_PATH_MAIN, $img);
|
|
|
|
|
|
|
24212 |
}
|
24213 |
}
|
24214 |
// get image type
|
1 |
<?php
|
2 |
//============================================================+
|
3 |
// File name : tcpdf.php
|
4 |
+
// Version : 6.2.26
|
5 |
// Begin : 2002-08-03
|
6 |
+
// Last Update : 2018-09-14
|
7 |
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
|
8 |
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
|
9 |
// -------------------------------------------------------------------
|
10 |
+
// Copyright (C) 2002-2018 Nicola Asuni - Tecnick.com LTD
|
11 |
//
|
12 |
// This file is part of TCPDF software library.
|
13 |
//
|
104 |
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
|
105 |
* @package com.tecnick.tcpdf
|
106 |
* @author Nicola Asuni
|
107 |
+
* @version 6.2.26
|
108 |
*/
|
109 |
|
110 |
// TCPDF configuration
|
128 |
* TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br>
|
129 |
* @package com.tecnick.tcpdf
|
130 |
* @brief PHP class for generating PDF documents without requiring external extensions.
|
131 |
+
* @version 6.2.26
|
132 |
* @author Nicola Asuni - info@tecnick.com
|
133 |
+
* @IgnoreAnnotation("protected")
|
134 |
+
* @IgnoreAnnotation("public")
|
135 |
+
* @IgnoreAnnotation("pre")
|
136 |
*/
|
137 |
class TCPDF {
|
138 |
|
1997 |
* @since 1.53.0.TC016
|
1998 |
*/
|
1999 |
public function __destruct() {
|
|
|
|
|
|
|
|
|
2000 |
// cleanup
|
2001 |
$this->_destroy(true);
|
2002 |
}
|
4256 |
// true when the font style variation is missing
|
4257 |
$missing_style = false;
|
4258 |
// search and include font file
|
4259 |
+
if (TCPDF_STATIC::empty_string($fontfile) OR (!@TCPDF_STATIC::file_exists($fontfile))) {
|
4260 |
// build a standard filenames for specified font
|
4261 |
$tmp_fontfile = str_replace(' ', '', $family).strtolower($style).'.php';
|
4262 |
$fontfile = TCPDF_FONTS::getFontFullPath($tmp_fontfile, $fontdir);
|
4268 |
}
|
4269 |
}
|
4270 |
// include font file
|
4271 |
+
if (!TCPDF_STATIC::empty_string($fontfile) AND (@TCPDF_STATIC::file_exists($fontfile))) {
|
4272 |
include($fontfile);
|
4273 |
} else {
|
4274 |
$this->Error('Could not include font definition file: '.$family.'');
|
4452 |
* @see SetFont()
|
4453 |
*/
|
4454 |
public function SetFontSize($size, $out=true) {
|
4455 |
+
$size = (float)$size;
|
4456 |
// font size in points
|
4457 |
$this->FontSizePt = $size;
|
4458 |
// font size in user units
|
4809 |
$this->PageAnnots[$page][] = array('n' => ++$this->n, 'x' => $x, 'y' => $y, 'w' => $w, 'h' => $h, 'txt' => $text, 'opt' => $opt, 'numspaces' => $spaces);
|
4810 |
if (!$this->pdfa_mode) {
|
4811 |
if ((($opt['Subtype'] == 'FileAttachment') OR ($opt['Subtype'] == 'Sound')) AND (!TCPDF_STATIC::empty_string($opt['FS']))
|
4812 |
+
AND (@TCPDF_STATIC::file_exists($opt['FS']) OR TCPDF_STATIC::isValidURL($opt['FS']))
|
4813 |
AND (!isset($this->embeddedfiles[basename($opt['FS'])]))) {
|
4814 |
$this->embeddedfiles[basename($opt['FS'])] = array('f' => ++$this->n, 'n' => ++$this->n, 'file' => $opt['FS']);
|
4815 |
}
|
4816 |
}
|
4817 |
// Add widgets annotation's icons
|
4818 |
+
if (isset($opt['mk']['i']) AND @TCPDF_STATIC::file_exists($opt['mk']['i'])) {
|
4819 |
$this->Image($opt['mk']['i'], '', '', 10, 10, '', '', '', false, 300, '', false, false, 0, false, true);
|
4820 |
}
|
4821 |
+
if (isset($opt['mk']['ri']) AND @TCPDF_STATIC::file_exists($opt['mk']['ri'])) {
|
4822 |
$this->Image($opt['mk']['ri'], '', '', 0, 0, '', '', '', false, 300, '', false, false, 0, false, true);
|
4823 |
}
|
4824 |
+
if (isset($opt['mk']['ix']) AND @TCPDF_STATIC::file_exists($opt['mk']['ix'])) {
|
4825 |
$this->Image($opt['mk']['ix'], '', '', 0, 0, '', '', '', false, 300, '', false, false, 0, false, true);
|
4826 |
}
|
4827 |
}
|
5769 |
$this->resetLastH();
|
5770 |
}
|
5771 |
if (!TCPDF_STATIC::empty_string($y)) {
|
5772 |
+
$this->SetY($y); // set y in order to convert negative y values to positive ones
|
|
|
|
|
5773 |
}
|
5774 |
+
$y = $this->GetY();
|
5775 |
$resth = 0;
|
5776 |
if (($h > 0) AND $this->inPageBody() AND (($y + $h + $mc_margin['T'] + $mc_margin['B']) > $this->PageBreakTrigger)) {
|
5777 |
// spit cell in more pages/columns
|
6844 |
$file = substr($file, 1);
|
6845 |
$exurl = $file;
|
6846 |
}
|
6847 |
+
// check if file exist and it is valid
|
6848 |
+
if (!@TCPDF_STATIC::file_exists($file)) {
|
6849 |
+
return false;
|
|
|
|
|
|
|
|
|
6850 |
}
|
6851 |
if (($imsize = @getimagesize($file)) === FALSE) {
|
6852 |
if (in_array($file, $this->imagekeys)) {
|
7745 |
* @since 4.5.016 (2009-02-24)
|
7746 |
*/
|
7747 |
public function _destroy($destroyall=false, $preserve_objcopy=false) {
|
7748 |
+
// restore internal encoding
|
7749 |
+
if (isset($this->internal_encoding) AND !empty($this->internal_encoding)) {
|
7750 |
+
mb_internal_encoding($this->internal_encoding);
|
7751 |
+
}
|
7752 |
if ($destroyall AND !$preserve_objcopy) {
|
7753 |
// remove all temporary files
|
7754 |
$tmpfiles = glob(K_PATH_CACHE.'__tcpdf_'.$this->file_id.'_*');
|
9647 |
protected function _putcatalog() {
|
9648 |
// put XMP
|
9649 |
$xmpobj = $this->_putXMP();
|
9650 |
+
// if required, add standard sRGB ICC colour profile
|
9651 |
if ($this->pdfa_mode OR $this->force_srgb) {
|
9652 |
$iccobj = $this->_newobj();
|
9653 |
$icc = file_get_contents(dirname(__FILE__).'/include/sRGB.icc');
|
17782 |
// justify block
|
17783 |
if (!TCPDF_STATIC::empty_string($this->lispacer)) {
|
17784 |
$this->lispacer = '';
|
17785 |
+
break;
|
17786 |
}
|
17787 |
preg_match('/([0-9\.\+\-]*)[\s]([0-9\.\+\-]*)[\s]([0-9\.\+\-]*)[\s]('.$strpiece[1][0].')[\s](re)([\s]*)/x', $pmid, $xmatches);
|
17788 |
if (!isset($xmatches[1])) {
|
18317 |
}
|
18318 |
// text
|
18319 |
$this->htmlvspace = 0;
|
18320 |
+
$isRTLString = preg_match(TCPDF_FONT_DATA::$uni_RE_PATTERN_RTL, $dom[$key]['value']) || preg_match(TCPDF_FONT_DATA::$uni_RE_PATTERN_ARABIC, $dom[$key]['value']);
|
18321 |
+
if ((!$this->premode) AND $this->isRTLTextDir() AND !$isRTLString) {
|
18322 |
// reverse spaces order
|
18323 |
$lsp = ''; // left spaces
|
18324 |
$rsp = ''; // right spaces
|
18333 |
if ($newline) {
|
18334 |
if (!$this->premode) {
|
18335 |
$prelen = strlen($dom[$key]['value']);
|
18336 |
+
if ($this->isRTLTextDir() AND !$isRTLString) {
|
18337 |
// right trim except non-breaking space
|
18338 |
$dom[$key]['value'] = $this->stringRightTrim($dom[$key]['value']);
|
18339 |
} else {
|
18817 |
break;
|
18818 |
}
|
18819 |
case 'img': {
|
18820 |
+
if (empty($tag['attribute']['src'])) {
|
18821 |
+
break;
|
18822 |
+
}
|
18823 |
+
$imgsrc = $tag['attribute']['src'];
|
18824 |
+
if ($imgsrc[0] === '@') {
|
18825 |
+
// data stream
|
18826 |
+
$imgsrc = '@'.base64_decode(substr($imgsrc, 1));
|
18827 |
+
$type = '';
|
18828 |
+
} else {
|
18829 |
+
if (($imgsrc[0] === '/') AND !empty($_SERVER['DOCUMENT_ROOT']) AND ($_SERVER['DOCUMENT_ROOT'] != '/')) {
|
18830 |
+
// fix image path
|
18831 |
+
$findroot = strpos($imgsrc, $_SERVER['DOCUMENT_ROOT']);
|
18832 |
+
if (($findroot === false) OR ($findroot > 1)) {
|
18833 |
+
if (substr($_SERVER['DOCUMENT_ROOT'], -1) == '/') {
|
18834 |
+
$imgsrc = substr($_SERVER['DOCUMENT_ROOT'], 0, -1).$imgsrc;
|
18835 |
+
} else {
|
18836 |
+
$imgsrc = $_SERVER['DOCUMENT_ROOT'].$imgsrc;
|
18837 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18838 |
}
|
18839 |
+
$imgsrc = urldecode($imgsrc);
|
18840 |
+
$testscrtype = @parse_url($imgsrc);
|
18841 |
+
if (empty($testscrtype['query'])) {
|
18842 |
+
// convert URL to server path
|
18843 |
+
$imgsrc = str_replace(K_PATH_URL, K_PATH_MAIN, $imgsrc);
|
18844 |
+
} elseif (preg_match('|^https?://|', $imgsrc) !== 1) {
|
18845 |
+
// convert URL to server path
|
18846 |
+
$imgsrc = str_replace(K_PATH_MAIN, K_PATH_URL, $imgsrc);
|
18847 |
}
|
18848 |
}
|
18849 |
+
// get image type
|
18850 |
+
$type = TCPDF_IMAGES::getImageFileType($imgsrc);
|
18851 |
+
}
|
18852 |
+
if (!isset($tag['width'])) {
|
18853 |
+
$tag['width'] = 0;
|
18854 |
+
}
|
18855 |
+
if (!isset($tag['height'])) {
|
18856 |
+
$tag['height'] = 0;
|
18857 |
+
}
|
18858 |
+
//if (!isset($tag['attribute']['align'])) {
|
18859 |
+
// the only alignment supported is "bottom"
|
18860 |
+
// further development is required for other modes.
|
18861 |
+
$tag['attribute']['align'] = 'bottom';
|
18862 |
+
//}
|
18863 |
+
switch($tag['attribute']['align']) {
|
18864 |
+
case 'top': {
|
18865 |
+
$align = 'T';
|
18866 |
+
break;
|
18867 |
+
}
|
18868 |
+
case 'middle': {
|
18869 |
+
$align = 'M';
|
18870 |
+
break;
|
18871 |
+
}
|
18872 |
+
case 'bottom': {
|
18873 |
+
$align = 'B';
|
18874 |
+
break;
|
18875 |
+
}
|
18876 |
+
default: {
|
18877 |
+
$align = 'B';
|
18878 |
+
break;
|
18879 |
+
}
|
18880 |
+
}
|
18881 |
+
$prevy = $this->y;
|
18882 |
+
$xpos = $this->x;
|
18883 |
+
$imglink = '';
|
18884 |
+
if (isset($this->HREF['url']) AND !TCPDF_STATIC::empty_string($this->HREF['url'])) {
|
18885 |
+
$imglink = $this->HREF['url'];
|
18886 |
+
if ($imglink[0] == '#') {
|
18887 |
+
// convert url to internal link
|
18888 |
+
$lnkdata = explode(',', $imglink);
|
18889 |
+
if (isset($lnkdata[0])) {
|
18890 |
+
$page = intval(substr($lnkdata[0], 1));
|
18891 |
+
if (empty($page) OR ($page <= 0)) {
|
18892 |
+
$page = $this->page;
|
18893 |
+
}
|
18894 |
+
if (isset($lnkdata[1]) AND (strlen($lnkdata[1]) > 0)) {
|
18895 |
+
$lnky = floatval($lnkdata[1]);
|
18896 |
+
} else {
|
18897 |
+
$lnky = 0;
|
18898 |
}
|
18899 |
+
$imglink = $this->AddLink();
|
18900 |
+
$this->SetLink($imglink, $lnky, $page);
|
18901 |
}
|
18902 |
}
|
18903 |
+
}
|
18904 |
+
$border = 0;
|
18905 |
+
if (isset($tag['border']) AND !empty($tag['border'])) {
|
18906 |
+
// currently only support 1 (frame) or a combination of 'LTRB'
|
18907 |
+
$border = $tag['border'];
|
18908 |
+
}
|
18909 |
+
$iw = '';
|
18910 |
+
if (isset($tag['width'])) {
|
18911 |
+
$iw = $this->getHTMLUnitToUnits($tag['width'], ($tag['fontsize'] / $this->k), 'px', false);
|
18912 |
+
}
|
18913 |
+
$ih = '';
|
18914 |
+
if (isset($tag['height'])) {
|
18915 |
+
$ih = $this->getHTMLUnitToUnits($tag['height'], ($tag['fontsize'] / $this->k), 'px', false);
|
18916 |
+
}
|
18917 |
+
if (($type == 'eps') OR ($type == 'ai')) {
|
18918 |
+
$this->ImageEps($imgsrc, $xpos, $this->y, $iw, $ih, $imglink, true, $align, '', $border, true);
|
18919 |
+
} elseif ($type == 'svg') {
|
18920 |
+
$this->ImageSVG($imgsrc, $xpos, $this->y, $iw, $ih, $imglink, $align, '', $border, true);
|
18921 |
+
} else {
|
18922 |
+
$this->Image($imgsrc, $xpos, $this->y, $iw, $ih, '', $imglink, $align, false, 300, '', false, false, $border, false, false, true);
|
18923 |
+
}
|
18924 |
+
switch($align) {
|
18925 |
+
case 'T': {
|
18926 |
+
$this->y = $prevy;
|
18927 |
+
break;
|
18928 |
}
|
18929 |
+
case 'M': {
|
18930 |
+
$this->y = (($this->img_rb_y + $prevy - ($this->getCellHeight($tag['fontsize'] / $this->k))) / 2);
|
18931 |
+
break;
|
18932 |
+
}
|
18933 |
+
case 'B': {
|
18934 |
+
$this->y = $this->img_rb_y - ($this->getCellHeight($tag['fontsize'] / $this->k) - ($this->getFontDescent($tag['fontname'], $tag['fontstyle'], $tag['fontsize']) * $this->cell_height_ratio));
|
18935 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
18936 |
}
|
18937 |
}
|
18938 |
break;
|
24228 |
}
|
24229 |
$img = urldecode($img);
|
24230 |
$testscrtype = @parse_url($img);
|
24231 |
+
if (empty($testscrtype['query'])) {
|
24232 |
// convert URL to server path
|
24233 |
$img = str_replace(K_PATH_URL, K_PATH_MAIN, $img);
|
24234 |
+
} elseif (preg_match('|^https?://|', $img) !== 1) {
|
24235 |
+
// convert server path to URL
|
24236 |
+
$img = str_replace(K_PATH_MAIN, K_PATH_URL, $img);
|
24237 |
}
|
24238 |
}
|
24239 |
// get image type
|
languages/give.pot
CHANGED
@@ -93,7 +93,7 @@ msgstr[1] ""
|
|
93 |
msgid "PayPal Standard"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: includes/class-give-cache-setting.php:228, includes/admin/emails/abstract-email-notification.php:
|
97 |
msgid "PayPal"
|
98 |
msgstr ""
|
99 |
|
@@ -6071,7 +6071,7 @@ msgstr ""
|
|
6071 |
msgid "Date"
|
6072 |
msgstr ""
|
6073 |
|
6074 |
-
#: templates/history-donations.php:69, templates/shortcode-receipt.php:41, includes/admin/admin-actions.php:820, includes/admin/donors/class-donor-table.php:64, includes/admin/emails/abstract-email-notification.php:
|
6075 |
msgid "Donor"
|
6076 |
msgstr ""
|
6077 |
|
@@ -8088,7 +8088,7 @@ msgstr ""
|
|
8088 |
msgid "The Donor Comment that was submitted with the donation."
|
8089 |
msgstr ""
|
8090 |
|
8091 |
-
#: includes/emails/class-give-email-tags.php:1268, includes/admin/emails/abstract-email-notification.php:
|
8092 |
msgid "View your donation history »"
|
8093 |
msgstr ""
|
8094 |
|
@@ -8189,11 +8189,11 @@ msgstr ""
|
|
8189 |
msgid "User - Donor Profile Disconnection"
|
8190 |
msgstr ""
|
8191 |
|
8192 |
-
#: includes/emails/template.php:84, includes/admin/emails/abstract-email-notification.php:
|
8193 |
msgid "Sample Donation Form Title"
|
8194 |
msgstr ""
|
8195 |
|
8196 |
-
#: includes/emails/template.php:85, includes/admin/emails/abstract-email-notification.php:
|
8197 |
msgid "Sample Donation Form Title - Sample Donation Level"
|
8198 |
msgstr ""
|
8199 |
|
@@ -9247,11 +9247,11 @@ msgstr ""
|
|
9247 |
msgid "Are you sure you want to delete this donor?"
|
9248 |
msgstr ""
|
9249 |
|
9250 |
-
#: includes/admin/emails/abstract-email-notification.php:
|
9251 |
msgid "You can not edit notification status from here."
|
9252 |
msgstr ""
|
9253 |
|
9254 |
-
#: includes/admin/emails/abstract-email-notification.php:
|
9255 |
msgid "Sample Donor Comment"
|
9256 |
msgstr ""
|
9257 |
|
93 |
msgid "PayPal Standard"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: includes/class-give-cache-setting.php:228, includes/admin/emails/abstract-email-notification.php:896
|
97 |
msgid "PayPal"
|
98 |
msgstr ""
|
99 |
|
6071 |
msgid "Date"
|
6072 |
msgstr ""
|
6073 |
|
6074 |
+
#: templates/history-donations.php:69, templates/shortcode-receipt.php:41, includes/admin/admin-actions.php:820, includes/admin/donors/class-donor-table.php:64, includes/admin/emails/abstract-email-notification.php:152, includes/admin/emails/class-donation-receipt-email.php:46, includes/admin/emails/class-donor-note-email.php:45, includes/admin/emails/class-donor-register-email.php:40, includes/admin/emails/class-email-access-email.php:42, includes/admin/reports/class-donor-reports-table.php:66
|
6075 |
msgid "Donor"
|
6076 |
msgstr ""
|
6077 |
|
8088 |
msgid "The Donor Comment that was submitted with the donation."
|
8089 |
msgstr ""
|
8090 |
|
8091 |
+
#: includes/emails/class-give-email-tags.php:1268, includes/admin/emails/abstract-email-notification.php:913, includes/admin/emails/abstract-email-notification.php:923
|
8092 |
msgid "View your donation history »"
|
8093 |
msgstr ""
|
8094 |
|
8189 |
msgid "User - Donor Profile Disconnection"
|
8190 |
msgstr ""
|
8191 |
|
8192 |
+
#: includes/emails/template.php:84, includes/admin/emails/abstract-email-notification.php:901
|
8193 |
msgid "Sample Donation Form Title"
|
8194 |
msgstr ""
|
8195 |
|
8196 |
+
#: includes/emails/template.php:85, includes/admin/emails/abstract-email-notification.php:902
|
8197 |
msgid "Sample Donation Form Title - Sample Donation Level"
|
8198 |
msgstr ""
|
8199 |
|
9247 |
msgid "Are you sure you want to delete this donor?"
|
9248 |
msgstr ""
|
9249 |
|
9250 |
+
#: includes/admin/emails/abstract-email-notification.php:157
|
9251 |
msgid "You can not edit notification status from here."
|
9252 |
msgstr ""
|
9253 |
|
9254 |
+
#: includes/admin/emails/abstract-email-notification.php:933
|
9255 |
msgid "Sample Donor Comment"
|
9256 |
msgstr ""
|
9257 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: donation, donations, donation plugin, wordpress donation plugin, givewp, g
|
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.1
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.4.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -207,6 +207,13 @@ Use Give for donations, and let WooCommerce or WP eCommerce or the like handle y
|
|
207 |
|
208 |
== Changelog ==
|
209 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
= 2.4.3: March 13th, 2019 =
|
211 |
* Fix: Ensure when a donation form's "Registration" option is set to "Login" that it does not appear incorrectly as optional on the donation form. [#4045](https://github.com/impress-org/give/issues/4045)
|
212 |
* Fix: Prevent a PHP warning from displaying in the System Info window due to new host detection login in the previous release. [#4041](https://github.com/impress-org/give/issues/4041)
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.1
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.4.4
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
207 |
|
208 |
== Changelog ==
|
209 |
|
210 |
+
= 2.4.4: March 20th, 2019 =
|
211 |
+
* Fix: Resolved a regression where percentage based goals were not displaying their progress correctly. [#4049](https://github.com/impress-org/give/issues/4049)
|
212 |
+
* Fix: Resolved a regression in `2.4.3` where IE10/11 browsers had issues with donating with multi-level donation forms. [#4048](https://github.com/impress-org/give/issues/4048)
|
213 |
+
* Fix: Corrected a PHP Warning on servers running PHP 7.3.3 within the email tags settings section. [#4044](https://github.com/impress-org/give/issues/4044)
|
214 |
+
* Fix: Resolved conflict with iTheme's Sync plugin. [#3989](https://github.com/impress-org/give/issues/3989)
|
215 |
+
* Fix: Updated the backwards compatibile TCPDF version used by older plugin versions to the latest version. [#4054](https://github.com/impress-org/give/issues/4054)
|
216 |
+
|
217 |
= 2.4.3: March 13th, 2019 =
|
218 |
* Fix: Ensure when a donation form's "Registration" option is set to "Login" that it does not appear incorrectly as optional on the donation form. [#4045](https://github.com/impress-org/give/issues/4045)
|
219 |
* Fix: Prevent a PHP warning from displaying in the System Info window due to new host detection login in the previous release. [#4041](https://github.com/impress-org/give/issues/4041)
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitafa383377279c7db672f4a54e59e166a::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit48981779358af6ba2335366eec58f9ea
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitafa383377279c7db672f4a54e59e166a
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitafa383377279c7db672f4a54e59e166a', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitafa383377279c7db672f4a54e59e166a', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitafa383377279c7db672f4a54e59e166a::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'C' =>
|
@@ -40,9 +40,9 @@ class ComposerStaticInit48981779358af6ba2335366eec58f9ea
|
|
40 |
public static function getInitializer(ClassLoader $loader)
|
41 |
{
|
42 |
return \Closure::bind(function () use ($loader) {
|
43 |
-
$loader->prefixLengthsPsr4 =
|
44 |
-
$loader->prefixDirsPsr4 =
|
45 |
-
$loader->classMap =
|
46 |
|
47 |
}, null, ClassLoader::class);
|
48 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitafa383377279c7db672f4a54e59e166a
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'C' =>
|
40 |
public static function getInitializer(ClassLoader $loader)
|
41 |
{
|
42 |
return \Closure::bind(function () use ($loader) {
|
43 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitafa383377279c7db672f4a54e59e166a::$prefixLengthsPsr4;
|
44 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitafa383377279c7db672f4a54e59e166a::$prefixDirsPsr4;
|
45 |
+
$loader->classMap = ComposerStaticInitafa383377279c7db672f4a54e59e166a::$classMap;
|
46 |
|
47 |
}, null, ClassLoader::class);
|
48 |
}
|