hello.pledge.to Open in urlscan Pro
54.201.64.174  Public Scan

Submitted URL: http://hello.pledge.to/assets/widget-auto.js
Effective URL: https://hello.pledge.to/assets/widget-auto.js
Submission: On July 01 via manual from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},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,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="//assets.pledge.to/packs/",r(r.s=1168)}({1168:function(t,e,r){"use strict";r.r(e);var n=r(153),i=r.n(n),a=r(5),o=r(333),s=r(498),u=r(347),c=document.currentScript||document.querySelector("#plg-widget-auto"),h=Object(o.a)(c.src).origin,d=function(t){if(!t.getAttribute("data-embed-code-inserted")){t.setAttribute("data-embed-code-inserted","1");var e={partner_key:t.dataset.partnerKey,external_id:t.dataset.itemId||t.dataset.externalId,ein:t.dataset.ein},r="".concat(h,"/widgets/auto/donate_or_search?").concat(Object(s.a)(e));a.b.get(r,(function(e){var r=e.widget_type,n=e.identifier,i=document.createElement("div");i.className="plg-".concat(r),i.setAttribute("data-partner-key",t.dataset.partnerKey),i.setAttribute("data-".concat(Object(u.c)(n)),t.dataset[Object(u.a)(n)]),"search"==r?i.setAttribute("data-search-to-donate","true"):"ein"==n&&i.setAttribute("data-x-original-item-id",t.dataset.itemId),t.appendChild(i)}))}},l=function(){var t=".plg-auto-donate-or-search";document.querySelectorAll(t).forEach(d),new i.a({callback:function(t){t[0].added.forEach(d)},queries:[{element:t}]})};"loading"==document.readyState?document.addEventListener("DOMContentLoaded",l):setTimeout(l,1)},127:function(t,e,r){var n=r(229),i=r(337);t.exports=r(96)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},128:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},153:function(t,e){var r,n=this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n};if(void 0===(r="undefined"!==typeof WebKitMutationObserver?WebKitMutationObserver:MutationObserver))throw console.error("DOM Mutation Observers are required."),console.error("https://developer.mozilla.org/en-US/docs/DOM/MutationObserver"),Error("DOM Mutation Observers are required");var i,a=function(){function t(){this.nodes=[],this.values=[]}return t.prototype.isIndex=function(t){return+t===t>>>0},t.prototype.nodeId=function(e){var r=e[t.ID_PROP];return r||(r=e[t.ID_PROP]=t.nextId_++),r},t.prototype.set=function(t,e){var r=this.nodeId(t);this.nodes[r]=t,this.values[r]=e},t.prototype.get=function(t){var e=this.nodeId(t);return this.values[e]},t.prototype.has=function(t){return this.nodeId(t)in this.nodes},t.prototype.delete=function(t){var e=this.nodeId(t);delete this.nodes[e],this.values[e]=void 0},t.prototype.keys=function(){var t=[];for(var e in this.nodes)this.isIndex(e)&&t.push(this.nodes[e]);return t},t.ID_PROP="__mutation_summary_node_map_id__",t.nextId_=1,t}();!function(t){t[t.STAYED_OUT=0]="STAYED_OUT",t[t.ENTERED=1]="ENTERED",t[t.STAYED_IN=2]="STAYED_IN",t[t.REPARENTED=3]="REPARENTED",t[t.REORDERED=4]="REORDERED",t[t.EXITED=5]="EXITED"}(i||(i={}));var o=function(){function t(t,e,r,n,i,a,o,s){void 0===e&&(e=!1),void 0===r&&(r=!1),void 0===n&&(n=!1),void 0===i&&(i=null),void 0===a&&(a=!1),void 0===o&&(o=null),void 0===s&&(s=null),this.node=t,this.childList=e,this.attributes=r,this.characterData=n,this.oldParentNode=i,this.added=a,this.attributeOldValues=o,this.characterDataOldValue=s,this.isCaseInsensitive=this.node.nodeType===Node.ELEMENT_NODE&&this.node instanceof HTMLElement&&this.node.ownerDocument instanceof HTMLDocument}return t.prototype.getAttributeOldValue=function(t){if(this.attributeOldValues)return this.isCaseInsensitive&&(t=t.toLowerCase()),this.attributeOldValues[t]},t.prototype.getAttributeNamesMutated=function(){var t=[];if(!this.attributeOldValues)return t;for(var e in this.attributeOldValues)t.push(e);return t},t.prototype.attributeMutated=function(t,e){this.attributes=!0,this.attributeOldValues=this.attributeOldValues||{},t in this.attributeOldValues||(this.attributeOldValues[t]=e)},t.prototype.characterDataMutated=function(t){this.characterData||(this.characterData=!0,this.characterDataOldValue=t)},t.prototype.removedFromParent=function(t){this.childList=!0,this.added||this.oldParentNode?this.added=!1:this.oldParentNode=t},t.prototype.insertedIntoParent=function(){this.childList=!0,this.added=!0},t.prototype.getOldParent=function(){if(this.childList){if(this.oldParentNode)return this.oldParentNode;if(this.added)return null}return this.node.parentNode},t}(),s=function(){this.added=new a,this.removed=new a,this.maybeMoved=new a,this.oldPrevious=new a,this.moved=void 0},u=function(t){function e(e,r){t.call(this),this.rootNode=e,this.reachableCache=void 0,this.wasReachableCache=void 0,this.anyParentsChanged=!1,this.anyAttributesChanged=!1,this.anyCharacterDataChanged=!1;for(var n=0;n<r.length;n++){var i=r[n];switch(i.type){case"childList":this.anyParentsChanged=!0;for(var a=0;a<i.removedNodes.length;a++){var o=i.removedNodes[a];this.getChange(o).removedFromParent(i.target)}for(a=0;a<i.addedNodes.length;a++){o=i.addedNodes[a];this.getChange(o).insertedIntoParent()}break;case"attributes":this.anyAttributesChanged=!0,this.getChange(i.target).attributeMutated(i.attributeName,i.oldValue);break;case"characterData":this.anyCharacterDataChanged=!0,this.getChange(i.target).characterDataMutated(i.oldValue)}}}return n(e,t),e.prototype.getChange=function(t){var e=this.get(t);return e||(e=new o(t),this.set(t,e)),e},e.prototype.getOldParent=function(t){var e=this.get(t);return e?e.getOldParent():t.parentNode},e.prototype.getIsReachable=function(t){if(t===this.rootNode)return!0;if(!t)return!1;this.reachableCache=this.reachableCache||new a;var e=this.reachableCache.get(t);return void 0===e&&(e=this.getIsReachable(t.parentNode),this.reachableCache.set(t,e)),e},e.prototype.getWasReachable=function(t){if(t===this.rootNode)return!0;if(!t)return!1;this.wasReachableCache=this.wasReachableCache||new a;var e=this.wasReachableCache.get(t);return void 0===e&&(e=this.getWasReachable(this.getOldParent(t)),this.wasReachableCache.set(t,e)),e},e.prototype.reachabilityChange=function(t){return this.getIsReachable(t)?this.getWasReachable(t)?i.STAYED_IN:i.ENTERED:this.getWasReachable(t)?i.EXITED:i.STAYED_OUT},e}(a),c=function(){function t(t,e,r,n,i){this.rootNode=t,this.mutations=e,this.selectors=r,this.calcReordered=n,this.calcOldPreviousSibling=i,this.treeChanges=new u(t,e),this.entered=[],this.exited=[],this.stayedIn=new a,this.visited=new a,this.childListChangeMap=void 0,this.characterDataOnly=void 0,this.matchCache=void 0,this.processMutations()}return t.prototype.processMutations=function(){if(this.treeChanges.anyParentsChanged||this.treeChanges.anyAttributesChanged)for(var t=this.treeChanges.keys(),e=0;e<t.length;e++)this.visitNode(t[e],void 0)},t.prototype.visitNode=function(t,e){if(!this.visited.has(t)){this.visited.set(t,!0);var r=this.treeChanges.get(t),n=e;if((r&&r.childList||void 0==n)&&(n=this.treeChanges.reachabilityChange(t)),n!==i.STAYED_OUT){if(this.matchabilityChange(t),n===i.ENTERED)this.entered.push(t);else if(n===i.EXITED)this.exited.push(t),this.ensureHasOldPreviousSiblingIfNeeded(t);else if(n===i.STAYED_IN){var a=i.STAYED_IN;r&&r.childList&&(r.oldParentNode!==t.parentNode?(a=i.REPARENTED,this.ensureHasOldPreviousSiblingIfNeeded(t)):this.calcReordered&&this.wasReordered(t)&&(a=i.REORDERED)),this.stayedIn.set(t,a)}if(n!==i.STAYED_IN)for(var o=t.firstChild;o;o=o.nextSibling)this.visitNode(o,n)}}},t.prototype.ensureHasOldPreviousSiblingIfNeeded=function(t){if(this.calcOldPreviousSibling){this.processChildlistChanges();var e=t.parentNode,r=this.treeChanges.get(t);r&&r.oldParentNode&&(e=r.oldParentNode);var n=this.childListChangeMap.get(e);n||(n=new s,this.childListChangeMap.set(e,n)),n.oldPrevious.has(t)||n.oldPrevious.set(t,t.previousSibling)}},t.prototype.getChanged=function(t,e,r){this.selectors=e,this.characterDataOnly=r;for(var n=0;n<this.entered.length;n++){var a=this.entered[n];(u=this.matchabilityChange(a))!==i.ENTERED&&u!==i.STAYED_IN||t.added.push(a)}var o=this.stayedIn.keys();for(n=0;n<o.length;n++){a=o[n];if((u=this.matchabilityChange(a))===i.ENTERED)t.added.push(a);else if(u===i.EXITED)t.removed.push(a);else if(u===i.STAYED_IN&&(t.reparented||t.reordered)){var s=this.stayedIn.get(a);t.reparented&&s===i.REPARENTED?t.reparented.push(a):t.reordered&&s===i.REORDERED&&t.reordered.push(a)}}for(n=0;n<this.exited.length;n++){var u;a=this.exited[n];(u=this.matchabilityChange(a))!==i.EXITED&&u!==i.STAYED_IN||t.removed.push(a)}},t.prototype.getOldParentNode=function(t){var e=this.treeChanges.get(t);if(e&&e.childList)return e.oldParentNode?e.oldParentNode:null;var r=this.treeChanges.reachabilityChange(t);if(r===i.STAYED_OUT||r===i.ENTERED)throw Error("getOldParentNode requested on invalid node.");return t.parentNode},t.prototype.getOldPreviousSibling=function(t){var e=t.parentNode,r=this.treeChanges.get(t);r&&r.oldParentNode&&(e=r.oldParentNode);var n=this.childListChangeMap.get(e);if(!n)throw Error("getOldPreviousSibling requested on invalid node.");return n.oldPrevious.get(t)},t.prototype.getOldAttribute=function(t,e){var r=this.treeChanges.get(t);if(!r||!r.attributes)throw Error("getOldAttribute requested on invalid node.");var n=r.getAttributeOldValue(e);if(void 0===n)throw Error("getOldAttribute requested for unchanged attribute name.");return n},t.prototype.attributeChangedNodes=function(t){if(!this.treeChanges.anyAttributesChanged)return{};var e,r;if(t){e={},r={};for(var n=0;n<t.length;n++){e[l=t[n]]=!0,r[l.toLowerCase()]=l}}var a={},o=this.treeChanges.keys();for(n=0;n<o.length;n++){var s=o[n],u=this.treeChanges.get(s);if(u.attributes&&(i.STAYED_IN===this.treeChanges.reachabilityChange(s)&&i.STAYED_IN===this.matchabilityChange(s)))for(var c=s,h=u.getAttributeNamesMutated(),d=0;d<h.length;d++){var l=h[d];if(!e||e[l]||u.isCaseInsensitive&&r[l])u.getAttributeOldValue(l)!==c.getAttribute(l)&&(r&&u.isCaseInsensitive&&(l=r[l]),a[l]=a[l]||[],a[l].push(c))}}return a},t.prototype.getOldCharacterData=function(t){var e=this.treeChanges.get(t);if(!e||!e.characterData)throw Error("getOldCharacterData requested on invalid node.");return e.characterDataOldValue},t.prototype.getCharacterDataChanged=function(){if(!this.treeChanges.anyCharacterDataChanged)return[];for(var t=this.treeChanges.keys(),e=[],r=0;r<t.length;r++){var n=t[r];if(i.STAYED_IN===this.treeChanges.reachabilityChange(n)){var a=this.treeChanges.get(n);a.characterData&&n.textContent!=a.characterDataOldValue&&e.push(n)}}return e},t.prototype.computeMatchabilityChange=function(t,e){this.matchCache||(this.matchCache=[]),this.matchCache[t.uid]||(this.matchCache[t.uid]=new a);var r=this.matchCache[t.uid],n=r.get(e);return void 0===n&&(n=t.matchabilityChange(e,this.treeChanges.get(e)),r.set(e,n)),n},t.prototype.matchabilityChange=function(t){var e=this;if(this.characterDataOnly)switch(t.nodeType){case Node.COMMENT_NODE:case Node.TEXT_NODE:return i.STAYED_IN;default:return i.STAYED_OUT}if(!this.selectors)return i.STAYED_IN;if(t.nodeType!==Node.ELEMENT_NODE)return i.STAYED_OUT;for(var r=t,n=this.selectors.map((function(t){return e.computeMatchabilityChange(t,r)})),a=i.STAYED_OUT,o=0;a!==i.STAYED_IN&&o<n.length;){switch(n[o]){case i.STAYED_IN:a=i.STAYED_IN;break;case i.ENTERED:a=a===i.EXITED?i.STAYED_IN:i.ENTERED;break;case i.EXITED:a=a===i.ENTERED?i.STAYED_IN:i.EXITED}o++}return a},t.prototype.getChildlistChange=function(t){var e=this.childListChangeMap.get(t);return e||(e=new s,this.childListChangeMap.set(t,e)),e},t.prototype.processChildlistChanges=function(){if(!this.childListChangeMap){this.childListChangeMap=new a;for(var t=0;t<this.mutations.length;t++){var e=function(t,e){!t||n.oldPrevious.has(t)||n.added.has(t)||n.maybeMoved.has(t)||e&&(n.added.has(e)||n.maybeMoved.has(e))||n.oldPrevious.set(t,e)},r=this.mutations[t];if("childList"==r.type&&(this.treeChanges.reachabilityChange(r.target)===i.STAYED_IN||this.calcOldPreviousSibling)){for(var n=this.getChildlistChange(r.target),o=r.previousSibling,s=0;s<r.removedNodes.length;s++){e(u=r.removedNodes[s],o),n.added.has(u)?n.added.delete(u):(n.removed.set(u,!0),n.maybeMoved.delete(u)),o=u}e(r.nextSibling,o);for(s=0;s<r.addedNodes.length;s++){var u=r.addedNodes[s];n.removed.has(u)?(n.removed.delete(u),n.maybeMoved.set(u,!0)):n.added.set(u,!0)}}}}},t.prototype.wasReordered=function(t){if(!this.treeChanges.anyParentsChanged)return!1;this.processChildlistChanges();var e=t.parentNode,r=this.treeChanges.get(t);r&&r.oldParentNode&&(e=r.oldParentNode);var n=this.childListChangeMap.get(e);if(!n)return!1;if(n.moved)return n.moved.get(t);n.moved=new a;var i=new a;function o(t){if(!t)return!1;if(!n.maybeMoved.has(t))return!1;var e=n.moved.get(t);return void 0!==e||(i.has(t)?e=!0:(i.set(t,!0),e=function(t){if(u.has(t))return u.get(t);var e=t.previousSibling;for(;e&&(n.added.has(e)||o(e));)e=e.previousSibling;return u.set(t,e),e}(t)!==function t(e){var r=s.get(e);if(void 0!==r)return r;r=n.oldPrevious.get(e);for(;r&&(n.removed.has(r)||o(r));)r=t(r);void 0===r&&(r=e.previousSibling);return s.set(e,r),r}(t)),i.has(t)?(i.delete(t),n.moved.set(t,e)):e=n.moved.get(t)),e}var s=new a;var u=new a;return n.maybeMoved.keys().forEach(o),n.moved.get(t)},t}(),h=function(){function t(t,e){var r=this;if(this.projection=t,this.added=[],this.removed=[],this.reparented=e.all||e.element||e.characterData?[]:void 0,this.reordered=e.all?[]:void 0,t.getChanged(this,e.elementFilter,e.characterData),e.all||e.attribute||e.attributeList){var n=e.attribute?[e.attribute]:e.attributeList,i=t.attributeChangedNodes(n);e.attribute?this.valueChanged=i[e.attribute]||[]:(this.attributeChanged=i,e.attributeList&&e.attributeList.forEach((function(t){r.attributeChanged.hasOwnProperty(t)||(r.attributeChanged[t]=[])})))}if(e.all||e.characterData){var a=t.getCharacterDataChanged();e.characterData?this.valueChanged=a:this.characterDataChanged=a}this.reordered&&(this.getOldPreviousSibling=t.getOldPreviousSibling.bind(t))}return t.prototype.getOldParentNode=function(t){return this.projection.getOldParentNode(t)},t.prototype.getOldAttribute=function(t,e){return this.projection.getOldAttribute(t,e)},t.prototype.getOldCharacterData=function(t){return this.projection.getOldCharacterData(t)},t.prototype.getOldPreviousSibling=function(t){return this.projection.getOldPreviousSibling(t)},t}(),d=/[a-zA-Z_]+/,l=/[a-zA-Z0-9_\-]+/;function f(t){return'"'+t.replace(/"/,'\\"')+'"'}var p=function(){function t(){}return t.prototype.matches=function(t){if(null===t)return!1;if(void 0===this.attrValue)return!0;if(!this.contains)return this.attrValue==t;for(var e=t.split(" "),r=0;r<e.length;r++)if(this.attrValue===e[r])return!0;return!1},t.prototype.toString=function(){return"class"===this.attrName&&this.contains?"."+this.attrValue:"id"!==this.attrName||this.contains?this.contains?"["+this.attrName+"~="+f(this.attrValue)+"]":"attrValue"in this?"["+this.attrName+"="+f(this.attrValue)+"]":"["+this.attrName+"]":"#"+this.attrValue},t}(),v=function(){function t(){this.uid=t.nextUid++,this.qualifiers=[]}var e;return Object.defineProperty(t.prototype,"caseInsensitiveTagName",{get:function(){return this.tagName.toUpperCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectorString",{get:function(){return this.tagName+this.qualifiers.join("")},enumerable:!0,configurable:!0}),t.prototype.isMatching=function(e){return e[t.matchesSelector](this.selectorString)},t.prototype.wasMatching=function(t,e,r){if(!e||!e.attributes)return r;var n=e.isCaseInsensitive?this.caseInsensitiveTagName:this.tagName;if("*"!==n&&n!==t.tagName)return!1;for(var i=[],a=!1,o=0;o<this.qualifiers.length;o++){var s=this.qualifiers[o],u=e.getAttributeOldValue(s.attrName);i.push(u),a=a||void 0!==u}if(!a)return r;for(o=0;o<this.qualifiers.length;o++){s=this.qualifiers[o];if(void 0===(u=i[o])&&(u=t.getAttribute(s.attrName)),!s.matches(u))return!1}return!0},t.prototype.matchabilityChange=function(t,e){var r=this.isMatching(t);return r?this.wasMatching(t,e,r)?i.STAYED_IN:i.ENTERED:this.wasMatching(t,e,r)?i.EXITED:i.STAYED_OUT},t.parseSelectors=function(e){var r,n,i=[];function a(){r&&(n&&(r.qualifiers.push(n),n=void 0),i.push(r)),r=new t}function o(){n&&r.qualifiers.push(n),n=new p}for(var s,u=/\s/,c="Invalid or unsupported selector syntax.",h=1,f=0;f<e.length;){var v=e[f++];switch(h){case 1:if(v.match(d)){a(),r.tagName=v,h=2;break}if("*"==v){a(),r.tagName="*",h=3;break}if("."==v){a(),o(),r.tagName="*",n.attrName="class",n.contains=!0,h=4;break}if("#"==v){a(),o(),r.tagName="*",n.attrName="id",h=4;break}if("["==v){a(),o(),r.tagName="*",n.attrName="",h=6;break}if(v.match(u))break;throw Error(c);case 2:if(v.match(l)){r.tagName+=v;break}if("."==v){o(),n.attrName="class",n.contains=!0,h=4;break}if("#"==v){o(),n.attrName="id",h=4;break}if("["==v){o(),n.attrName="",h=6;break}if(v.match(u)){h=14;break}if(","==v){h=1;break}throw Error(c);case 3:if("."==v){o(),n.attrName="class",n.contains=!0,h=4;break}if("#"==v){o(),n.attrName="id",h=4;break}if("["==v){o(),n.attrName="",h=6;break}if(v.match(u)){h=14;break}if(","==v){h=1;break}throw Error(c);case 4:if(v.match(d)){n.attrValue=v,h=5;break}throw Error(c);case 5:if(v.match(l)){n.attrValue+=v;break}if("."==v){o(),n.attrName="class",n.contains=!0,h=4;break}if("#"==v){o(),n.attrName="id",h=4;break}if("["==v){o(),h=6;break}if(v.match(u)){h=14;break}if(","==v){h=1;break}throw Error(c);case 6:if(v.match(d)){n.attrName=v,h=7;break}if(v.match(u))break;throw Error(c);case 7:if(v.match(l)){n.attrName+=v;break}if(v.match(u)){h=8;break}if("~"==v){n.contains=!0,h=9;break}if("="==v){n.attrValue="",h=11;break}if("]"==v){h=3;break}throw Error(c);case 8:if("~"==v){n.contains=!0,h=9;break}if("="==v){n.attrValue="",h=11;break}if("]"==v){h=3;break}if(v.match(u))break;throw Error(c);case 9:if("="==v){n.attrValue="",h=11;break}throw Error(c);case 10:if("]"==v){h=3;break}if(v.match(u))break;throw Error(c);case 11:if(v.match(u))break;if('"'==v||"'"==v){s=v,h=13;break}n.attrValue+=v,h=12;break;case 12:if(v.match(u)){h=10;break}if("]"==v){h=3;break}if("'"==v||'"'==v)throw Error(c);n.attrValue+=v;break;case 13:if(v==s){h=10;break}n.attrValue+=v;break;case 14:if(v.match(u))break;if(","==v){h=1;break}throw Error(c)}}switch(h){case 1:case 2:case 3:case 5:case 14:a();break;default:throw Error(c)}if(!i.length)throw Error(c);return i},t.nextUid=1,t.matchesSelector="function"===typeof(e=document.createElement("div")).webkitMatchesSelector?"webkitMatchesSelector":"function"===typeof e.mozMatchesSelector?"mozMatchesSelector":"function"===typeof e.msMatchesSelector?"msMatchesSelector":"matchesSelector",t}(),b=/^([a-zA-Z:_]+[a-zA-Z0-9_\-:\.]*)$/;function g(t){if("string"!=typeof t)throw Error("Invalid request opion. attribute must be a non-zero length string.");if(!(t=t.trim()))throw Error("Invalid request opion. attribute must be a non-zero length string.");if(!t.match(b))throw Error("Invalid request option. invalid attribute name: "+t);return t}function m(t){if(!t.trim().length)throw Error("Invalid request option: elementAttributes must contain at least one attribute.");for(var e={},r={},n=t.split(/\s+/),i=0;i<n.length;i++){if(a=n[i]){var a,o=(a=g(a)).toLowerCase();if(e[o])throw Error("Invalid request option: observing multiple case variations of the same attribute is not supported.");r[a]=!0,e[o]=!0}}return Object.keys(r)}var y=function(){function t(e){var n=this;this.connected=!1,this.options=t.validateOptions(e),this.observerOptions=t.createObserverOptions(this.options.queries),this.root=this.options.rootNode,this.callback=this.options.callback,this.elementFilter=Array.prototype.concat.apply([],this.options.queries.map((function(t){return t.elementFilter?t.elementFilter:[]}))),this.elementFilter.length||(this.elementFilter=void 0),this.calcReordered=this.options.queries.some((function(t){return t.all})),this.queryValidators=[],t.createQueryValidator&&(this.queryValidators=this.options.queries.map((function(e){return t.createQueryValidator(n.root,e)}))),this.observer=new r((function(t){n.observerCallback(t)})),this.reconnect()}return t.createObserverOptions=function(t){var e,r={childList:!0,subtree:!0};function n(t){r.attributes&&!e||(r.attributes=!0,r.attributeOldValue=!0,t?(e=e||{},t.forEach((function(t){e[t]=!0,e[t.toLowerCase()]=!0}))):e=void 0)}return t.forEach((function(t){if(t.characterData)return r.characterData=!0,void(r.characterDataOldValue=!0);if(t.all)return n(),r.characterData=!0,void(r.characterDataOldValue=!0);if(t.attribute)n([t.attribute.trim()]);else{var e=function(t){var e={};return t.forEach((function(t){t.qualifiers.forEach((function(t){e[t.attrName]=!0}))})),Object.keys(e)}(t.elementFilter).concat(t.attributeList||[]);e.length&&n(e)}})),e&&(r.attributeFilter=Object.keys(e)),r},t.validateOptions=function(e){for(var r in e)if(!(r in t.optionKeys))throw Error("Invalid option: "+r);if("function"!==typeof e.callback)throw Error("Invalid options: callback is required and must be a function");if(!e.queries||!e.queries.length)throw Error("Invalid options: queries must contain at least one query request object.");for(var n={callback:e.callback,rootNode:e.rootNode||document,observeOwnChanges:!!e.observeOwnChanges,oldPreviousSibling:!!e.oldPreviousSibling,queries:[]},i=0;i<e.queries.length;i++){var a=e.queries[i];if(a.all){if(Object.keys(a).length>1)throw Error("Invalid request option. all has no options.");n.queries.push({all:!0})}else if("attribute"in a){if((s={attribute:g(a.attribute)}).elementFilter=v.parseSelectors("*["+s.attribute+"]"),Object.keys(a).length>1)throw Error("Invalid request option. attribute has no options.");n.queries.push(s)}else if("element"in a){var o=Object.keys(a).length,s={element:a.element,elementFilter:v.parseSelectors(a.element)};if(a.hasOwnProperty("elementAttributes")&&(s.attributeList=m(a.elementAttributes),o--),o>1)throw Error("Invalid request option. element only allows elementAttributes option.");n.queries.push(s)}else{if(!a.characterData)throw Error("Invalid request option. Unknown query request.");if(Object.keys(a).length>1)throw Error("Invalid request option. characterData has no options.");n.queries.push({characterData:!0})}}return n},t.prototype.createSummaries=function(t){if(!t||!t.length)return[];for(var e=new c(this.root,t,this.elementFilter,this.calcReordered,this.options.oldPreviousSibling),r=[],n=0;n<this.options.queries.length;n++)r.push(new h(e,this.options.queries[n]));return r},t.prototype.checkpointQueryValidators=function(){this.queryValidators.forEach((function(t){t&&t.recordPreviousState()}))},t.prototype.runQueryValidators=function(t){this.queryValidators.forEach((function(e,r){e&&e.validate(t[r])}))},t.prototype.changesToReport=function(t){return t.some((function(t){if(["added","removed","reordered","reparented","valueChanged","characterDataChanged"].some((function(e){return t[e]&&t[e].length})))return!0;if(t.attributeChanged&&Object.keys(t.attributeChanged).some((function(e){return!!t.attributeChanged[e].length})))return!0;return!1}))},t.prototype.observerCallback=function(t){this.options.observeOwnChanges||this.observer.disconnect();var e=this.createSummaries(t);this.runQueryValidators(e),this.options.observeOwnChanges&&this.checkpointQueryValidators(),this.changesToReport(e)&&this.callback(e),!this.options.observeOwnChanges&&this.connected&&(this.checkpointQueryValidators(),this.observer.observe(this.root,this.observerOptions))},t.prototype.reconnect=function(){if(this.connected)throw Error("Already connected");this.observer.observe(this.root,this.observerOptions),this.connected=!0,this.checkpointQueryValidators()},t.prototype.takeSummaries=function(){if(!this.connected)throw Error("Not connected");var t=this.createSummaries(this.observer.takeRecords());return this.changesToReport(t)?t:void 0},t.prototype.disconnect=function(){var t=this.takeSummaries();return this.observer.disconnect(),this.connected=!1,t},t.NodeMap=a,t.parseElementFilter=v.parseSelectors,t.optionKeys={callback:!0,queries:!0,rootNode:!0,oldPreviousSibling:!0,observeOwnChanges:!0},t}();t.exports=y},154:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},221:function(t,e,r){var n=r(342);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},225:function(t,e,r){var n=r(74);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},229:function(t,e,r){var n=r(225),i=r(343),a=r(338),o=Object.defineProperty;e.f=r(96)?Object.defineProperty:function(t,e,r){if(n(t),e=a(e,!0),n(r),i)try{return o(t,e,r)}catch(s){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},230:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},232:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},233:function(t,e,r){var n=r(73),i=r(51),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(339)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},266:function(t,e,r){var n=r(51),i=r(127),a=r(232),o=r(230)("src"),s=r(348),u=(""+s).split("toString");r(73).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,r,s){var c="function"==typeof r;c&&(a(r,"name")||i(r,"name",e)),t[e]!==r&&(c&&(a(r,o)||i(r,o,t[e]?""+t[e]:u.join(String(e)))),t===n?t[e]=r:s?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[o]||s.call(this)}))},267:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},333:function(t,e,r){"use strict";e.a=function(t){if("function"==typeof URL)return new URL(t,location);var e=document.createElement("a"),r={};return e.href=t,["hash","hostname","href","password","pathname","protocol","search","username"].forEach((function(t){return Object.defineProperty(r,t,{get:function(){return e[t]},set:function(r){return e[t]=r},enumerable:!0})})),Object.defineProperty(r,"port",{get:function(){return e.port=={"http:":"80","https:":"443"}[e.protocol]?"":e.port},set:function(t){return e.port=t},enumerable:!0}),Object.defineProperty(r,"host",{get:function(){return this.port?e.host:e.hostname},set:function(t){return e.host=t},enumerable:!0}),Object.defineProperty(r,"origin",{get:function(){return e.protocol+"//"+this.host},enumerable:!0}),r}},337:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},338:function(t,e,r){var n=r(74);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},339:function(t,e){t.exports=!1},341:function(t,e,r){var n=r(74),i=r(51).document,a=n(i)&&n(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},342:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},343:function(t,e,r){t.exports=!r(96)&&!r(128)((function(){return 7!=Object.defineProperty(r(341)("div"),"a",{get:function(){return 7}}).a}))},347:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return a}));r(372),r(373);var n=function(t){var e=t.codePointAt(0),r=e>65535?2:1;return String.fromCodePoint(e).toUpperCase()+t.slice(r)},i=function(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")},a=function(t){return t.replace(/[\W_]+([a-z])/gi,(function(t,e){return e.toUpperCase()}))}},348:function(t,e,r){t.exports=r(233)("native-function-to-string",Function.toString)},363:function(t,e,r){var n=r(154),i=Math.max,a=Math.min;t.exports=function(t,e){return(t=n(t))<0?i(t+e,0):a(t,e)}},364:function(t,e,r){var n=r(154),i=r(267);t.exports=function(t){return function(e,r){var a,o,s=String(i(e)),u=n(r),c=s.length;return u<0||u>=c?t?"":void 0:(a=s.charCodeAt(u))<55296||a>56319||u+1===c||(o=s.charCodeAt(u+1))<56320||o>57343?t?s.charAt(u):a:t?s.slice(u,u+2):o-56320+(a-55296<<10)+65536}}},372:function(t,e,r){"use strict";var n=r(72),i=r(364)(!1);n(n.P,"String",{codePointAt:function(t){return i(this,t)}})},373:function(t,e,r){var n=r(72),i=r(363),a=String.fromCharCode,o=String.fromCodePoint;n(n.S+n.F*(!!o&&1!=o.length),"String",{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},498:function(t,e,r){"use strict";e.a=function(t){return Object.keys(t).map((function(e){return[encodeURIComponent(e),encodeURIComponent(t[e])].join("=")})).join("&")}},5:function(t,e,r){"use strict";function n(t){return(n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new FormData,i=arguments.length>2?arguments[2]:void 0;return Object.keys(e).forEach((function(a){var o=e[a];if(null!=o){var s=Array.isArray(e)?"":a,u=i?"".concat(i,"[").concat(s,"]"):s;o instanceof Blob?r.append(u,o,o.name):"object"==n(o)?t(o,r,u):r.append(u,o)}})),r},a=r(6);function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){s(t,e,r[e])}))}return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}r.d(e,"a",(function(){return p}));var c=function(t){var e=t.success,r=t.failure,n=t.headers;return o({},u(t,["success","failure","headers"]),{success:function(t){return e(t&&JSON.parse(t))},failure:r&&function(t,e){return r(t,Object(a.a)(e))},headers:o({Accept:"application/json"},n)})},h={json:function(t){var e,r,n,i=t.params,a=t.headers,s=u(t,["params","headers"]);return c(o({},s,{url:(e=s,r=e.method,n=e.url,"GET"!=r.toUpperCase()||/^(https?:)?\/\//.test(n)?n:[n,"_xhr_".concat(Date.now(),"=1")].join(n.indexOf("?")>-1?"&":"?")),params:i&&JSON.stringify(i),headers:o({"Content-Type":"application/json"},a)}))},jsonUpload:function(t){var e=t.params,r=u(t,["params"]);return c(o({},r,{params:i(e)}))}},d=function(t){var e=t.recipe,r=void 0===e?"json":e,n=u(t,["recipe"]),i=new XMLHttpRequest,a=function(t){return h[t]||(t&&console.warn("Invalid ajax recipe: ".concat(t,". Falling back to null")),function(t){return t})}(r)(n),o=a.method,s=a.url,c=a.params,d=a.success,l=a.failure,f=a.headers,p=void 0===f?{}:f;return p["X-Requested-With"]="XMLHttpRequest",i.onreadystatechange=function(){4===i.readyState&&(i.status>=200&&i.status<300||304===i.status?d(i.responseText):l&&l(i,i.responseText))},i.open(o.toUpperCase(),s),Object.keys(p).forEach((function(t){return i.setRequestHeader(t,p[t])})),i.send(c||null),i},l=["get","delete"],f=["post","put","patch"],p=function(t){l.forEach((function(e){return t[e]=function(r,n,i,a){return t(o({method:e,url:r,success:n,failure:i},a))}})),f.forEach((function(e){return t[e]=function(r,n,i,a,s){return t(o({method:e,url:r,params:n,success:i,failure:a},s))}}))};p(d);e.b=d},51:function(t,e){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)},6:function(t,e,r){"use strict";e.a=function(t){try{return JSON.parse(t)}catch(e){return t}}},72:function(t,e,r){var n=r(51),i=r(73),a=r(127),o=r(266),s=r(221),u=function(t,e,r){var c,h,d,l,f=t&u.F,p=t&u.G,v=t&u.S,b=t&u.P,g=t&u.B,m=p?n:v?n[e]||(n[e]={}):(n[e]||{}).prototype,y=p?i:i[e]||(i[e]={}),E=y.prototype||(y.prototype={});for(c in p&&(r=e),r)d=((h=!f&&m&&void 0!==m[c])?m:r)[c],l=g&&h?s(d,n):b&&"function"==typeof d?s(Function.call,d):d,m&&o(m,c,d,t&u.U),y[c]!=d&&a(y,c,l),b&&E[c]!=d&&(E[c]=d)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},73:function(t,e){var r=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=r)},74:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},96:function(t,e,r){t.exports=!r(128)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))}});
//# sourceMappingURL=widget-auto-7f4eac10b76dbc125e69.js.map