wp_back/wp-content/plugins/wordpress-seo/js/dist/externals/helpers.js
2024-05-20 15:37:46 +03:00

30 lines
48 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

window.yoast=window.yoast||{},window.yoast.helpers=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=400)}({0:function(t,e){t.exports=window.yoast.propTypes},1:function(t,e){t.exports=window.wp.element},12:function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t.exports.default=t.exports,t.exports.__esModule=!0,n.apply(this,arguments)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},181:function(t,e,n){(function(e){(function(){"use strict";var e=this;function n(t){return"string"==typeof t}function r(t,e,n){return t.call.apply(t.bind,arguments)}function o(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function i(t,e,n){return(i=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?r:o).apply(null,arguments)}function a(t){var e=st;function n(){}n.prototype=e.prototype,t.G=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.F=function(t,n,r){for(var o=Array(arguments.length-2),i=2;i<arguments.length;i++)o[i-2]=arguments[i];return e.prototype[n].apply(t,o)}}var s=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function u(t,e){return-1!=t.indexOf(e)}function c(t,e){return t<e?-1:t>e?1:0}var l,f=Array.prototype.indexOf?function(t,e,n){return Array.prototype.indexOf.call(t,e,n)}:function(t,e,r){if(r=null==r?0:0>r?Math.max(0,t.length+r):r,n(t))return n(e)&&1==e.length?t.indexOf(e,r):-1;for(;r<t.length;r++)if(r in t&&t[r]===e)return r;return-1},h=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,r){for(var o=t.length,i=n(t)?t.split(""):t,a=0;a<o;a++)a in i&&e.call(r,i[a],a,t)},p=Array.prototype.filter?function(t,e,n){return Array.prototype.filter.call(t,e,n)}:function(t,e,r){for(var o=t.length,i=[],a=0,s=n(t)?t.split(""):t,u=0;u<o;u++)if(u in s){var c=s[u];e.call(r,c,u,t)&&(i[a++]=c)}return i},d=Array.prototype.reduce?function(t,e,n,r){return r&&(e=i(e,r)),Array.prototype.reduce.call(t,e,n)}:function(t,e,n,r){var o=n;return h(t,(function(n,i){o=e.call(r,o,n,i,t)})),o},y=Array.prototype.some?function(t,e,n){return Array.prototype.some.call(t,e,n)}:function(t,e,r){for(var o=t.length,i=n(t)?t.split(""):t,a=0;a<o;a++)if(a in i&&e.call(r,i[a],a,t))return!0;return!1};function g(t,e,n){return 2>=arguments.length?Array.prototype.slice.call(t,e):Array.prototype.slice.call(t,e,n)}t:{var b=e.navigator;if(b){var m=b.userAgent;if(m){l=m;break t}}l=""}var w,v,E=u(l,"Opera")||u(l,"OPR"),x=u(l,"Trident")||u(l,"MSIE"),T=u(l,"Edge"),N=u(l,"Gecko")&&!(u(l.toLowerCase(),"webkit")&&!u(l,"Edge"))&&!(u(l,"Trident")||u(l,"MSIE"))&&!u(l,"Edge"),_=u(l.toLowerCase(),"webkit")&&!u(l,"Edge");function O(){var t=e.document;return t?t.documentMode:void 0}t:{var j="",R=(v=l,N?/rv\:([^\);]+)(\)|;)/.exec(v):T?/Edge\/([\d\.]+)/.exec(v):x?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(v):_?/WebKit\/(\S+)/.exec(v):E?/(?:Version)[ \/]?(\S+)/.exec(v):void 0);if(R&&(j=R?R[1]:""),x){var P=O();if(null!=P&&P>parseFloat(j)){w=String(P);break t}}w=j}var A={};function S(t){if(!A[t]){for(var e=0,n=s(String(w)).split("."),r=s(String(t)).split("."),o=Math.max(n.length,r.length),i=0;0==e&&i<o;i++){var a=n[i]||"",u=r[i]||"",l=/(\d*)(\D*)/g,f=/(\d*)(\D*)/g;do{var h=l.exec(a)||["","",""],p=f.exec(u)||["","",""];if(0==h[0].length&&0==p[0].length)break;e=c(0==h[1].length?0:parseInt(h[1],10),0==p[1].length?0:parseInt(p[1],10))||c(0==h[2].length,0==p[2].length)||c(h[2],p[2])}while(0==e)}A[t]=0<=e}}var D=e.document,I=D&&x?O()||("CSS1Compat"==D.compatMode?parseInt(w,10):5):void 0,B=x&&!(9<=Number(I)),k=x&&!(8<=Number(I));function C(t,e,n,r){this.a=t,this.nodeName=n,this.nodeValue=r,this.nodeType=2,this.parentNode=this.ownerElement=e}function U(t,e){var n=k&&"href"==e.nodeName?t.getAttribute(e.nodeName,2):e.nodeValue;return new C(e,t,e.nodeName,n)}function F(t){var e=null;if(1==(n=t.nodeType)&&(e=null==(e=null==(e=t.textContent)||null==e?t.innerText:e)||null==e?"":e),"string"!=typeof e)if(B&&"title"==t.nodeName.toLowerCase()&&1==n)e=t.text;else if(9==n||1==n){t=9==n?t.documentElement:t.firstChild;var n=0,r=[];for(e="";t;){do{1!=t.nodeType&&(e+=t.nodeValue),B&&"title"==t.nodeName.toLowerCase()&&(e+=t.text),r[n++]=t}while(t=t.firstChild);for(;n&&!(t=r[--n].nextSibling););}}else e=t.nodeValue;return""+e}function M(t,e,n){if(null===e)return!0;try{if(!t.getAttribute)return!1}catch(t){return!1}return k&&"class"==e&&(e="className"),null==n?!!t.getAttribute(e):t.getAttribute(e,2)==n}function L(t,e,r,o,i){return(B?Y:H).call(null,t,e,n(r)?r:null,n(o)?o:null,i||new J)}function Y(t,e,n,r,o){if(t instanceof kt||8==t.b||n&&null===t.b){var i=e.all;if(!i)return o;if("*"!=(t=G(t))&&!(i=e.getElementsByTagName(t)))return o;if(n){for(var a=[],s=0;e=i[s++];)M(e,n,r)&&a.push(e);i=a}for(s=0;e=i[s++];)"*"==t&&"!"==e.tagName||et(o,e);return o}return V(t,e,n,r,o),o}function H(t,e,n,r,o){return e.getElementsByName&&r&&"name"==n&&!x?(e=e.getElementsByName(r),h(e,(function(e){t.a(e)&&et(o,e)}))):e.getElementsByClassName&&r&&"class"==n?(e=e.getElementsByClassName(r),h(e,(function(e){e.className==r&&t.a(e)&&et(o,e)}))):t instanceof Ot?V(t,e,n,r,o):e.getElementsByTagName&&(e=e.getElementsByTagName(t.f()),h(e,(function(t){M(t,n,r)&&et(o,t)}))),o}function $(t,e,n,r,o){var i;if((t instanceof kt||8==t.b||n&&null===t.b)&&(i=e.childNodes)){var a=G(t);return"*"==a||(i=p(i,(function(t){return t.tagName&&t.tagName.toLowerCase()==a})))?(n&&(i=p(i,(function(t){return M(t,n,r)}))),h(i,(function(t){"*"==a&&("!"==t.tagName||"*"==a&&1!=t.nodeType)||et(o,t)})),o):o}return q(t,e,n,r,o)}function q(t,e,n,r,o){for(e=e.firstChild;e;e=e.nextSibling)M(e,n,r)&&t.a(e)&&et(o,e);return o}function V(t,e,n,r,o){for(e=e.firstChild;e;e=e.nextSibling)M(e,n,r)&&t.a(e)&&et(o,e),V(t,e,n,r,o)}function G(t){if(t instanceof Ot){if(8==t.b)return"!";if(null===t.b)return"*"}return t.f()}function z(t,e){if(!t||!e)return!1;if(t.contains&&1==e.nodeType)return t==e||t.contains(e);if(void 0!==t.compareDocumentPosition)return t==e||!!(16&t.compareDocumentPosition(e));for(;e&&t!=e;)e=e.parentNode;return e==t}function X(t,n){if(t==n)return 0;if(t.compareDocumentPosition)return 2&t.compareDocumentPosition(n)?1:-1;if(x&&!(9<=Number(I))){if(9==t.nodeType)return-1;if(9==n.nodeType)return 1}if("sourceIndex"in t||t.parentNode&&"sourceIndex"in t.parentNode){var r=1==t.nodeType,o=1==n.nodeType;if(r&&o)return t.sourceIndex-n.sourceIndex;var i=t.parentNode,a=n.parentNode;return i==a?Q(t,n):!r&&z(i,n)?-1*W(t,n):!o&&z(a,t)?W(n,t):(r?t.sourceIndex:i.sourceIndex)-(o?n.sourceIndex:a.sourceIndex)}return(r=(o=9==t.nodeType?t:t.ownerDocument||t.document).createRange()).selectNode(t),r.collapse(!0),(o=o.createRange()).selectNode(n),o.collapse(!0),r.compareBoundaryPoints(e.Range.START_TO_END,o)}function W(t,e){var n=t.parentNode;if(n==e)return-1;for(var r=e;r.parentNode!=n;)r=r.parentNode;return Q(r,t)}function Q(t,e){for(var n=e;n=n.previousSibling;)if(n==t)return-1;return 1}function J(){this.b=this.a=null,this.l=0}function K(t){this.node=t,this.a=this.b=null}function Z(t,e){if(!t.a)return e;if(!e.a)return t;for(var n=t.a,r=e.a,o=null,i=null,a=0;n&&r;){i=n.node;var s=r.node;i==s||i instanceof C&&s instanceof C&&i.a==s.a?(i=n,n=n.a,r=r.a):0<X(n.node,r.node)?(i=r,r=r.a):(i=n,n=n.a),(i.b=o)?o.a=i:t.a=i,o=i,a++}for(i=n||r;i;)i.b=o,o=o.a=i,a++,i=i.a;return t.b=o,t.l=a,t}function tt(t,e){var n=new K(e);n.a=t.a,t.b?t.a.b=n:t.a=t.b=n,t.a=n,t.l++}function et(t,e){var n=new K(e);n.b=t.b,t.a?t.b.a=n:t.a=t.b=n,t.b=n,t.l++}function nt(t){return(t=t.a)?t.node:null}function rt(t){return(t=nt(t))?F(t):""}function ot(t,e){return new it(t,!!e)}function it(t,e){this.f=t,this.b=(this.c=e)?t.b:t.a,this.a=null}function at(t){var e=t.b;if(null==e)return null;var n=t.a=e;return t.b=t.c?e.b:e.a,n.node}function st(t){this.i=t,this.b=this.g=!1,this.f=null}function ut(t){return"\n "+t.toString().split("\n").join("\n ")}function ct(t,e){t.g=e}function lt(t,e){t.b=e}function ft(t,e){var n=t.a(e);return n instanceof J?+rt(n):+n}function ht(t,e){var n=t.a(e);return n instanceof J?rt(n):""+n}function pt(t,e){var n=t.a(e);return n instanceof J?!!n.l:!!n}function dt(t,e,n){st.call(this,t.i),this.c=t,this.h=e,this.o=n,this.g=e.g||n.g,this.b=e.b||n.b,this.c==wt&&(n.b||n.g||4==n.i||0==n.i||!e.f?e.b||e.g||4==e.i||0==e.i||!n.f||(this.f={name:n.f.name,s:e}):this.f={name:e.f.name,s:n})}function yt(t,e,n,r,o){var i;if(e=e.a(r),n=n.a(r),e instanceof J&&n instanceof J){for(r=at(e=ot(e));r;r=at(e))for(i=at(o=ot(n));i;i=at(o))if(t(F(r),F(i)))return!0;return!1}if(e instanceof J||n instanceof J){e instanceof J?(o=e,r=n):(o=n,r=e);for(var a=typeof r,s=at(i=ot(o));s;s=at(i)){switch(a){case"number":s=+F(s);break;case"boolean":s=!!F(s);break;case"string":s=F(s);break;default:throw Error("Illegal primitive type for comparison.")}if(o==e&&t(s,r)||o==n&&t(r,s))return!0}return!1}return o?"boolean"==typeof e||"boolean"==typeof n?t(!!e,!!n):"number"==typeof e||"number"==typeof n?t(+e,+n):t(e,n):t(+e,+n)}function gt(t,e,n,r){this.a=t,this.w=e,this.i=n,this.m=r}!N&&!x||x&&9<=Number(I)||N&&S("1.9.1"),x&&S("9"),a(dt),dt.prototype.a=function(t){return this.c.m(this.h,this.o,t)},dt.prototype.toString=function(){return"Binary Expression: "+this.c+ut(this.h)+ut(this.o)},gt.prototype.toString=function(){return this.a};var bt={};function mt(t,e,n,r){if(bt.hasOwnProperty(t))throw Error("Binary operator already created: "+t);return t=new gt(t,e,n,r),bt[t.toString()]=t}mt("div",6,1,(function(t,e,n){return ft(t,n)/ft(e,n)})),mt("mod",6,1,(function(t,e,n){return ft(t,n)%ft(e,n)})),mt("*",6,1,(function(t,e,n){return ft(t,n)*ft(e,n)})),mt("+",5,1,(function(t,e,n){return ft(t,n)+ft(e,n)})),mt("-",5,1,(function(t,e,n){return ft(t,n)-ft(e,n)})),mt("<",4,2,(function(t,e,n){return yt((function(t,e){return t<e}),t,e,n)})),mt(">",4,2,(function(t,e,n){return yt((function(t,e){return t>e}),t,e,n)})),mt("<=",4,2,(function(t,e,n){return yt((function(t,e){return t<=e}),t,e,n)})),mt(">=",4,2,(function(t,e,n){return yt((function(t,e){return t>=e}),t,e,n)}));var wt=mt("=",3,2,(function(t,e,n){return yt((function(t,e){return t==e}),t,e,n,!0)}));function vt(t,e,n){this.a=t,this.b=e||1,this.f=n||1}function Et(t,e){if(e.a.length&&4!=t.i)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");st.call(this,t.i),this.c=t,this.h=e,this.g=t.g,this.b=t.b}function xt(t,e){if(e.length<t.A)throw Error("Function "+t.j+" expects at least"+t.A+" arguments, "+e.length+" given");if(null!==t.v&&e.length>t.v)throw Error("Function "+t.j+" expects at most "+t.v+" arguments, "+e.length+" given");t.B&&h(e,(function(e,n){if(4!=e.i)throw Error("Argument "+n+" to function "+t.j+" is not of type Nodeset: "+e)})),st.call(this,t.i),this.h=t,this.c=e,ct(this,t.g||y(e,(function(t){return t.g}))),lt(this,t.D&&!e.length||t.C&&!!e.length||y(e,(function(t){return t.b})))}function Tt(t,e,n,r,o,i,a,s,u){this.j=t,this.i=e,this.g=n,this.D=r,this.C=o,this.m=i,this.A=a,this.v=void 0!==s?s:a,this.B=!!u}mt("!=",3,2,(function(t,e,n){return yt((function(t,e){return t!=e}),t,e,n,!0)})),mt("and",2,2,(function(t,e,n){return pt(t,n)&&pt(e,n)})),mt("or",1,2,(function(t,e,n){return pt(t,n)||pt(e,n)})),a(Et),Et.prototype.a=function(t){return t=this.c.a(t),Ht(this.h,t)},Et.prototype.toString=function(){return"Filter:"+ut(this.c)+ut(this.h)},a(xt),xt.prototype.a=function(t){return this.h.m.apply(null,function(t){return Array.prototype.concat.apply(Array.prototype,arguments)}(t,this.c))},xt.prototype.toString=function(){var t="Function: "+this.h;if(this.c.length){var e=d(this.c,(function(t,e){return t+ut(e)}),"Arguments:");t+=ut(e)}return t},Tt.prototype.toString=function(){return this.j};var Nt={};function _t(t,e,n,r,o,i,a,s){if(Nt.hasOwnProperty(t))throw Error("Function already created: "+t+".");Nt[t]=new Tt(t,e,n,r,!1,o,i,a,s)}function Ot(t,e){switch(this.h=t,this.c=void 0!==e?e:null,this.b=null,t){case"comment":this.b=8;break;case"text":this.b=3;break;case"processing-instruction":this.b=7;break;case"node":break;default:throw Error("Unexpected argument")}}function jt(t){return"comment"==t||"text"==t||"processing-instruction"==t||"node"==t}function Rt(t){this.b=t,this.a=0}_t("boolean",2,!1,!1,(function(t,e){return pt(e,t)}),1),_t("ceiling",1,!1,!1,(function(t,e){return Math.ceil(ft(e,t))}),1),_t("concat",3,!1,!1,(function(t,e){return d(g(arguments,1),(function(e,n){return e+ht(n,t)}),"")}),2,null),_t("contains",2,!1,!1,(function(t,e,n){return u(ht(e,t),ht(n,t))}),2),_t("count",1,!1,!1,(function(t,e){return e.a(t).l}),1,1,!0),_t("false",2,!1,!1,(function(){return!1}),0),_t("floor",1,!1,!1,(function(t,e){return Math.floor(ft(e,t))}),1),_t("id",4,!1,!1,(function(t,e){var r=9==(o=t.a).nodeType?o:o.ownerDocument,o=ht(e,t).split(/\s+/),i=[];h(o,(function(t){!(t=function(t){if(B){var e=r.all[t];if(e){if(e.nodeType&&t==e.id)return e;if(e.length)return function(t,e){var r;t:{r=t.length;for(var o=n(t)?t.split(""):t,i=0;i<r;i++)if(i in o&&e.call(void 0,o[i],i,t)){r=i;break t}r=-1}return 0>r?null:n(t)?t.charAt(r):t[r]}(e,(function(e){return t==e.id}))}return null}return r.getElementById(t)}(t))||0<=f(i,t)||i.push(t)})),i.sort(X);var a=new J;return h(i,(function(t){et(a,t)})),a}),1),_t("lang",2,!1,!1,(function(){return!1}),1),_t("last",1,!0,!1,(function(t){if(1!=arguments.length)throw Error("Function last expects ()");return t.f}),0),_t("local-name",3,!1,!0,(function(t,e){var n=e?nt(e.a(t)):t.a;return n?n.localName||n.nodeName.toLowerCase():""}),0,1,!0),_t("name",3,!1,!0,(function(t,e){var n=e?nt(e.a(t)):t.a;return n?n.nodeName.toLowerCase():""}),0,1,!0),_t("namespace-uri",3,!0,!1,(function(){return""}),0,1,!0),_t("normalize-space",3,!1,!0,(function(t,e){return(e?ht(e,t):F(t.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")}),0,1),_t("not",2,!1,!1,(function(t,e){return!pt(e,t)}),1),_t("number",1,!1,!0,(function(t,e){return e?ft(e,t):+F(t.a)}),0,1),_t("position",1,!0,!1,(function(t){return t.b}),0),_t("round",1,!1,!1,(function(t,e){return Math.round(ft(e,t))}),1),_t("starts-with",2,!1,!1,(function(t,e,n){return e=ht(e,t),t=ht(n,t),0==e.lastIndexOf(t,0)}),2),_t("string",3,!1,!0,(function(t,e){return e?ht(e,t):F(t.a)}),0,1),_t("string-length",1,!1,!0,(function(t,e){return(e?ht(e,t):F(t.a)).length}),0,1),_t("substring",3,!1,!1,(function(t,e,n,r){if(n=ft(n,t),isNaN(n)||1/0==n||-1/0==n)return"";if(r=r?ft(r,t):1/0,isNaN(r)||-1/0===r)return"";n=Math.round(n)-1;var o=Math.max(n,0);return t=ht(e,t),1/0==r?t.substring(o):t.substring(o,n+Math.round(r))}),2,3),_t("substring-after",3,!1,!1,(function(t,e,n){return e=ht(e,t),t=ht(n,t),-1==(n=e.indexOf(t))?"":e.substring(n+t.length)}),2),_t("substring-before",3,!1,!1,(function(t,e,n){return e=ht(e,t),t=ht(n,t),-1==(t=e.indexOf(t))?"":e.substring(0,t)}),2),_t("sum",1,!1,!1,(function(t,e){for(var n=ot(e.a(t)),r=0,o=at(n);o;o=at(n))r+=+F(o);return r}),1,1,!0),_t("translate",3,!1,!1,(function(t,e,n,r){e=ht(e,t),n=ht(n,t);var o=ht(r,t);for(t={},r=0;r<n.length;r++){var i=n.charAt(r);i in t||(t[i]=o.charAt(r))}for(n="",r=0;r<e.length;r++)n+=(i=e.charAt(r))in t?t[i]:i;return n}),3),_t("true",2,!1,!1,(function(){return!0}),0),Ot.prototype.a=function(t){return null===this.b||this.b==t.nodeType},Ot.prototype.f=function(){return this.h},Ot.prototype.toString=function(){var t="Kind Test: "+this.h;return null===this.c||(t+=ut(this.c)),t};var Pt=/\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g,At=/^\s/;function St(t,e){return t.b[t.a+(e||0)]}function Dt(t){return t.b[t.a++]}function It(t){return t.b.length<=t.a}function Bt(t){st.call(this,3),this.c=t.substring(1,t.length-1)}function kt(t,e){var n;this.j=t.toLowerCase(),n="*"==this.j?"*":"http://www.w3.org/1999/xhtml",this.c=e?e.toLowerCase():n}function Ct(t,e){if(st.call(this,t.i),this.h=t,this.c=e,this.g=t.g,this.b=t.b,1==this.c.length){var n=this.c[0];n.u||n.c!=zt||"*"!=(n=n.o).f()&&(this.f={name:n.f(),s:null})}}function Ut(){st.call(this,4)}function Ft(){st.call(this,4)}function Mt(t){return"/"==t||"//"==t}function Lt(t){st.call(this,4),this.c=t,ct(this,y(this.c,(function(t){return t.g}))),lt(this,y(this.c,(function(t){return t.b})))}function Yt(t,e){this.a=t,this.b=!!e}function Ht(t,e,n){for(n=n||0;n<t.a.length;n++)for(var r,o=t.a[n],i=ot(e),a=e.l,s=0;r=at(i);s++){var u=t.b?a-s:s+1;if("number"==typeof(r=o.a(new vt(r,u,a))))u=u==r;else if("string"==typeof r||"boolean"==typeof r)u=!!r;else{if(!(r instanceof J))throw Error("Predicate.evaluate returned an unexpected type.");u=0<r.l}if(!u){if(r=(u=i).f,!(l=u.a))throw Error("Next must be called at least once before remove.");var c=l.b,l=l.a;c?c.a=l:r.a=l,l?l.b=c:r.b=c,r.l--,u.a=null}}return e}function $t(t,e,n,r){st.call(this,4),this.c=t,this.o=e,this.h=n||new Yt([]),this.u=!!r,e=0<(e=this.h).a.length?e.a[0].f:null,t.b&&e&&(t=e.name,t=B?t.toLowerCase():t,this.f={name:t,s:e.s});t:{for(t=this.h,e=0;e<t.a.length;e++)if((n=t.a[e]).g||1==n.i||0==n.i){t=!0;break t}t=!1}this.g=t}function qt(t,e,n,r){this.j=t,this.f=e,this.a=n,this.b=r}a(Bt),Bt.prototype.a=function(){return this.c},Bt.prototype.toString=function(){return"Literal: "+this.c},kt.prototype.a=function(t){var e=t.nodeType;return!(1!=e&&2!=e||(e=void 0!==t.localName?t.localName:t.nodeName,"*"!=this.j&&this.j!=e.toLowerCase()||"*"!=this.c&&this.c!=(t.namespaceURI?t.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")))},kt.prototype.f=function(){return this.j},kt.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.c?"":this.c+":")+this.j},a(Ct),a(Ut),Ut.prototype.a=function(t){var e=new J;return 9==(t=t.a).nodeType?et(e,t):et(e,t.ownerDocument),e},Ut.prototype.toString=function(){return"Root Helper Expression"},a(Ft),Ft.prototype.a=function(t){var e=new J;return et(e,t.a),e},Ft.prototype.toString=function(){return"Context Helper Expression"},Ct.prototype.a=function(t){var e=this.h.a(t);if(!(e instanceof J))throw Error("Filter expression must evaluate to nodeset.");for(var n=0,r=(t=this.c).length;n<r&&e.l;n++){var o,i=t[n],a=ot(e,i.c.a);if(i.g||i.c!=Qt)if(i.g||i.c!=Kt)for(o=at(a),e=i.a(new vt(o));null!=(o=at(a));)e=Z(e,o=i.a(new vt(o)));else o=at(a),e=i.a(new vt(o));else{for(o=at(a);(e=at(a))&&(!o.contains||o.contains(e))&&8&e.compareDocumentPosition(o);o=e);e=i.a(new vt(o))}}return e},Ct.prototype.toString=function(){var t;if(t="Path Expression:"+ut(this.h),this.c.length){var e=d(this.c,(function(t,e){return t+ut(e)}),"Steps:");t+=ut(e)}return t},a(Lt),Lt.prototype.a=function(t){var e=new J;return h(this.c,(function(n){if(!((n=n.a(t))instanceof J))throw Error("Path expression must evaluate to NodeSet.");e=Z(e,n)})),e},Lt.prototype.toString=function(){return d(this.c,(function(t,e){return t+ut(e)}),"Union Expression:")},Yt.prototype.toString=function(){return d(this.a,(function(t,e){return t+ut(e)}),"Predicates:")},a($t),$t.prototype.a=function(t){var e=t.a,n=null,r=null,o=null,i=0;if((n=this.f)&&(r=n.name,o=n.s?ht(n.s,t):null,i=1),this.u)if(this.g||this.c!=Xt)if(e=at(t=ot(new $t(Wt,new Ot("node")).a(t))))for(n=this.m(e,r,o,i);null!=(e=at(t));)n=Z(n,this.m(e,r,o,i));else n=new J;else n=L(this.o,e,r,o),n=Ht(this.h,n,i);else n=this.m(t.a,r,o,i);return n},$t.prototype.m=function(t,e,n,r){return t=this.c.f(this.o,t,e,n),Ht(this.h,t,r)},$t.prototype.toString=function(){var t;if(t="Step:"+ut("Operator: "+(this.u?"//":"/")),this.c.j&&(t+=ut("Axis: "+this.c)),t+=ut(this.o),this.h.a.length){var e=d(this.h.a,(function(t,e){return t+ut(e)}),"Predicates:");t+=ut(e)}return t},qt.prototype.toString=function(){return this.j};var Vt={};function Gt(t,e,n,r){if(Vt.hasOwnProperty(t))throw Error("Axis already created: "+t);return e=new qt(t,e,n,!!r),Vt[t]=e}Gt("ancestor",(function(t,e){for(var n=new J,r=e;r=r.parentNode;)t.a(r)&&tt(n,r);return n}),!0),Gt("ancestor-or-self",(function(t,e){var n=new J,r=e;do{t.a(r)&&tt(n,r)}while(r=r.parentNode);return n}),!0);var zt=Gt("attribute",(function(t,e){var n=new J;if("style"==(i=t.f())&&B&&e.style)return et(n,new C(e.style,e,"style",e.style.cssText)),n;var r=e.attributes;if(r)if(t instanceof Ot&&null===t.b||"*"==i)for(var o,i=0;o=r[i];i++)B?o.nodeValue&&et(n,U(e,o)):et(n,o);else(o=r.getNamedItem(i))&&(B?o.nodeValue&&et(n,U(e,o)):et(n,o));return n}),!1),Xt=Gt("child",(function(t,e,r,o,i){return(B?$:q).call(null,t,e,n(r)?r:null,n(o)?o:null,i||new J)}),!1,!0);Gt("descendant",L,!1,!0);var Wt=Gt("descendant-or-self",(function(t,e,n,r){var o=new J;return M(e,n,r)&&t.a(e)&&et(o,e),L(t,e,n,r,o)}),!1,!0),Qt=Gt("following",(function(t,e,n,r){var o=new J;do{for(var i=e;i=i.nextSibling;)M(i,n,r)&&t.a(i)&&et(o,i),o=L(t,i,n,r,o)}while(e=e.parentNode);return o}),!1,!0);Gt("following-sibling",(function(t,e){for(var n=new J,r=e;r=r.nextSibling;)t.a(r)&&et(n,r);return n}),!1),Gt("namespace",(function(){return new J}),!1);var Jt=Gt("parent",(function(t,e){var n=new J;if(9==e.nodeType)return n;if(2==e.nodeType)return et(n,e.ownerElement),n;var r=e.parentNode;return t.a(r)&&et(n,r),n}),!1),Kt=Gt("preceding",(function(t,e,n,r){var o=new J,i=[];do{i.unshift(e)}while(e=e.parentNode);for(var a=1,s=i.length;a<s;a++){var u=[];for(e=i[a];e=e.previousSibling;)u.unshift(e);for(var c=0,l=u.length;c<l;c++)M(e=u[c],n,r)&&t.a(e)&&et(o,e),o=L(t,e,n,r,o)}return o}),!0,!0);Gt("preceding-sibling",(function(t,e){for(var n=new J,r=e;r=r.previousSibling;)t.a(r)&&tt(n,r);return n}),!0);var Zt=Gt("self",(function(t,e){var n=new J;return t.a(e)&&et(n,e),n}),!1);function te(t){st.call(this,1),this.c=t,this.g=t.g,this.b=t.b}function ee(t){st.call(this,1),this.c=t}function ne(t,e){this.a=t,this.b=e}function re(t){for(var e,n=[];;){oe(t,"Missing right hand side of binary expression."),e=fe(t);var r=Dt(t.a);if(!r)break;var o=(r=bt[r]||null)&&r.w;if(!o){t.a.a--;break}for(;n.length&&o<=n[n.length-1].w;)e=new dt(n.pop(),n.pop(),e);n.push(e,r)}for(;n.length;)e=new dt(n.pop(),n.pop(),e);return e}function oe(t,e){if(It(t.a))throw Error(e)}function ie(t,e){var n=Dt(t.a);if(n!=e)throw Error("Bad token, expected: "+e+" got: "+n)}function ae(t){if(")"!=(t=Dt(t.a)))throw Error("Bad token: "+t)}function se(t){if(2>(t=Dt(t.a)).length)throw Error("Unclosed literal string");return new Bt(t)}function ue(t){var e,n,r=[];if(Mt(St(t.a))){if(e=Dt(t.a),n=St(t.a),"/"==e&&(It(t.a)||"."!=n&&".."!=n&&"@"!=n&&"*"!=n&&!/(?![0-9])[\w]/.test(n)))return new Ut;n=new Ut,oe(t,"Missing next location step."),e=ce(t,e),r.push(e)}else{t:{switch(n=(e=St(t.a)).charAt(0)){case"$":throw Error("Variable reference not allowed in HTML XPath");case"(":Dt(t.a),e=re(t),oe(t,'unclosed "("'),ie(t,")");break;case'"':case"'":e=se(t);break;default:if(isNaN(+e)){if(jt(e)||!/(?![0-9])[\w]/.test(n)||"("!=St(t.a,1)){e=null;break t}for(e=Dt(t.a),e=Nt[e]||null,Dt(t.a),n=[];")"!=St(t.a)&&(oe(t,"Missing function argument list."),n.push(re(t)),","==St(t.a));)Dt(t.a);oe(t,"Unclosed function argument list."),ae(t),e=new xt(e,n)}else e=new ee(+Dt(t.a))}"["==St(t.a)&&(e=new Et(e,n=new Yt(le(t))))}if(e){if(!Mt(St(t.a)))return e;n=e}else e=ce(t,"/"),n=new Ft,r.push(e)}for(;Mt(St(t.a));)e=Dt(t.a),oe(t,"Missing next location step."),e=ce(t,e),r.push(e);return new Ct(n,r)}function ce(t,e){var n,r,o,i;if("/"!=e&&"//"!=e)throw Error('Step op should be "/" or "//"');if("."==St(t.a))return r=new $t(Zt,new Ot("node")),Dt(t.a),r;if(".."==St(t.a))return r=new $t(Jt,new Ot("node")),Dt(t.a),r;if("@"==St(t.a))i=zt,Dt(t.a),oe(t,"Missing attribute name");else if("::"==St(t.a,1)){if(!/(?![0-9])[\w]/.test(St(t.a).charAt(0)))throw Error("Bad token: "+Dt(t.a));if(n=Dt(t.a),!(i=Vt[n]||null))throw Error("No axis with name: "+n);Dt(t.a),oe(t,"Missing node name")}else i=Xt;if(n=St(t.a),!/(?![0-9])[\w\*]/.test(n.charAt(0)))throw Error("Bad token: "+Dt(t.a));if("("==St(t.a,1)){if(!jt(n))throw Error("Invalid node type: "+n);if(!jt(n=Dt(t.a)))throw Error("Invalid type name: "+n);ie(t,"("),oe(t,"Bad nodetype");var a=null;'"'!=(o=St(t.a).charAt(0))&&"'"!=o||(a=se(t)),oe(t,"Bad nodetype"),ae(t),n=new Ot(n,a)}else if(-1==(o=(n=Dt(t.a)).indexOf(":")))n=new kt(n);else{var s;if("*"==(a=n.substring(0,o)))s="*";else if(!(s=t.b(a)))throw Error("Namespace prefix not declared: "+a);n=new kt(n=n.substr(o+1),s)}return o=new Yt(le(t),i.a),r||new $t(i,n,o,"//"==e)}function le(t){for(var e=[];"["==St(t.a);){Dt(t.a),oe(t,"Missing predicate expression.");var n=re(t);e.push(n),oe(t,"Unclosed predicate expression."),ie(t,"]")}return e}function fe(t){if("-"==St(t.a))return Dt(t.a),new te(fe(t));var e=ue(t);if("|"!=St(t.a))t=e;else{for(e=[e];"|"==Dt(t.a);)oe(t,"Missing next union location path."),e.push(ue(t));t.a.a--,t=new Lt(e)}return t}function he(){return null}function pe(t,e){if(t.prefix==e)return t.namespaceURI||"http://www.w3.org/1999/xhtml";var n=t.getAttributeNode("xmlns:"+e);return n&&n.specified?n.value||null:t.parentNode&&9!=t.parentNode.nodeType?pe(t.parentNode,e):null}function de(t,e){if(!t.length)throw Error("Empty XPath expression.");var n=function(t){t=t.match(Pt);for(var e=0;e<t.length;e++)At.test(t[e])&&t.splice(e,1);return new Rt(t)}(t);if(It(n))throw Error("Invalid XPath expression.");e?"function"==function(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}(e)||(e=i(e.lookupNamespaceURI,e)):e=function(){return null};var r=re(new ne(n,e));if(!It(n))throw Error("Bad token: "+Dt(n));this.evaluate=function(t,e){return new ye(r.a(new vt(t)),e)}}function ye(t,e){if(0==e)if(t instanceof J)e=4;else if("string"==typeof t)e=2;else if("number"==typeof t)e=1;else{if("boolean"!=typeof t)throw Error("Unexpected evaluation result.");e=3}if(2!=e&&1!=e&&3!=e&&!(t instanceof J))throw Error("value could not be converted to the specified type");var n;switch(this.resultType=e,e){case 2:this.stringValue=t instanceof J?rt(t):""+t;break;case 1:this.numberValue=t instanceof J?+rt(t):+t;break;case 3:this.booleanValue=t instanceof J?0<t.l:!!t;break;case 4:case 5:case 6:case 7:var r=ot(t);n=[];for(var o=at(r);o;o=at(r))n.push(o instanceof C?o.a:o);this.snapshotLength=t.l,this.invalidIteratorState=!1;break;case 8:case 9:r=nt(t),this.singleNodeValue=r instanceof C?r.a:r;break;default:throw Error("Unknown XPathResult type.")}var i=0;this.iterateNext=function(){if(4!=e&&5!=e)throw Error("iterateNext called with wrong result type");return i>=n.length?null:n[i++]},this.snapshotItem=function(t){if(6!=e&&7!=e)throw Error("snapshotItem called with wrong result type");return t>=n.length||0>t?null:n[t]}}function ge(t){this.lookupNamespaceURI=function t(e){switch(e.nodeType){case 1:return function(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}(pe,e);case 9:return t(e.documentElement);case 11:case 10:case 6:case 12:return he;default:return e.parentNode?t(e.parentNode):he}}(t)}function be(t,n){var r=t||e,o=r.Document&&r.Document.prototype||r.document;o.evaluate&&!n||(r.XPathResult=ye,o.evaluate=function(t,e,n,r){return new de(t,n).evaluate(e,r)},o.createExpression=function(t,e){return new de(t,e)},o.createNSResolver=function(t){return new ge(t)})}a(te),te.prototype.a=function(t){return-ft(this.c,t)},te.prototype.toString=function(){return"Unary Expression: -"+ut(this.c)},a(ee),ee.prototype.a=function(){return this.c},ee.prototype.toString=function(){return"Number: "+this.c},ye.ANY_TYPE=0,ye.NUMBER_TYPE=1,ye.STRING_TYPE=2,ye.BOOLEAN_TYPE=3,ye.UNORDERED_NODE_ITERATOR_TYPE=4,ye.ORDERED_NODE_ITERATOR_TYPE=5,ye.UNORDERED_NODE_SNAPSHOT_TYPE=6,ye.ORDERED_NODE_SNAPSHOT_TYPE=7,ye.ANY_UNORDERED_NODE_TYPE=8,ye.FIRST_ORDERED_NODE_TYPE=9;var me,we=["wgxpath","install"],ve=e;we[0]in ve||!ve.execScript||ve.execScript("var "+we[0]);for(;we.length&&(me=we.shift());)we.length||void 0===be?ve=ve[me]?ve[me]:ve[me]={}:ve[me]=be;t.exports.install=be,t.exports.XPathResultType={ANY_TYPE:0,NUMBER_TYPE:1,STRING_TYPE:2,BOOLEAN_TYPE:3,UNORDERED_NODE_ITERATOR_TYPE:4,ORDERED_NODE_ITERATOR_TYPE:5,UNORDERED_NODE_SNAPSHOT_TYPE:6,ORDERED_NODE_SNAPSHOT_TYPE:7,ANY_UNORDERED_NODE_TYPE:8,FIRST_ORDERED_NODE_TYPE:9}}).call(e)}).call(this,n(20))},2:function(t,e){t.exports=window.lodash},20:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},213:function(t,e){!function(t){"use strict";if(!t.fetch){var e="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,r="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,i="ArrayBuffer"in t;if(i)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=function(t){return t&&DataView.prototype.isPrototypeOf(t)},u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};d.prototype.append=function(t,e){t=f(t),e=h(e);var n=this.map[t];n||(n=[],this.map[t]=n),n.push(e)},d.prototype.delete=function(t){delete this.map[f(t)]},d.prototype.get=function(t){var e=this.map[f(t)];return e?e[0]:null},d.prototype.getAll=function(t){return this.map[f(t)]||[]},d.prototype.has=function(t){return this.map.hasOwnProperty(f(t))},d.prototype.set=function(t,e){this.map[f(t)]=[h(e)]},d.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach((function(n){this.map[n].forEach((function(r){t.call(e,r,n,this)}),this)}),this)},d.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),p(t)},d.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},d.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),p(t)},n&&(d.prototype[Symbol.iterator]=d.prototype.entries);var c=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},w.call(v.prototype),w.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:0,statusText:""});return t.type="error",t};var l=[301,302,303,307,308];x.redirect=function(t,e){if(-1===l.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})},t.Headers=d,t.Request=v,t.Response=x,t.fetch=function(t,e){return new Promise((function(n,o){var i=new v(t,e),a=new XMLHttpRequest;a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new d,t.split("\r\n").forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new x(o,r))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials&&(a.withCredentials=!0),"responseType"in a&&r&&(a.responseType="blob"),i.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),a.send(void 0===i._bodyInit?null:i._bodyInit)}))},t.fetch.polyfill=!0}function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function y(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function g(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function b(t){var e=new FileReader,n=g(e);return e.readAsArrayBuffer(t),n}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(r&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(o&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(i&&r&&s(t))this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(t)&&!u(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=m(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var t=y(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var t,e,n,r=y(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,n=g(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}function v(t,e){var n,r,o=(e=e||{}).body;if("string"==typeof t)this.url=t;else{if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new d(e.headers)),this.method=(r=(n=e.method||this.method||"GET").toUpperCase(),c.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function E(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function x(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}}("undefined"!=typeof self?self:this)},3:function(t,e){t.exports=window.React},4:function(t,e){t.exports=window.wp.i18n},400:function(t,e,n){"use strict";n.r(e),n.d(e,"createSvgIconComponent",(function(){return D})),n.d(e,"getDirectionalStyle",(function(){return o})),n.d(e,"sendRequest",(function(){return a})),n.d(e,"decodeHTML",(function(){return s})),n.d(e,"getPostFeed",(function(){return f})),n.d(e,"getCourseFeed",(function(){return m})),n.d(e,"getFeed",(function(){return g})),n.d(e,"getWordBoundaries",(function(){return I})),n.d(e,"strings",(function(){return r})),n.d(e,"join",(function(){return et})),n.d(e,"makeOutboundLink",(function(){return ot})),n.d(e,"validateFacebookImage",(function(){return at})),n.d(e,"validateTwitterImage",(function(){return st})),n.d(e,"curryUpdateToHiddenInput",(function(){return ct})),n.d(e,"getValueFromHiddenInput",(function(){return lt}));var r={};function o(t,e){return n=>n.theme.isRtl?e:t}n.r(r),n.d(r,"stripHTMLTags",(function(){return W})),n.d(r,"stripSpaces",(function(){return B})),n.d(r,"stripTagsFromHtmlString",(function(){return tt})),n(213);const i=(t,e)=>{const n=((t,e)=>{for(const n in e)e.hasOwnProperty(n)&&(void 0!==t[n]&&""!==t[n]||(t[n]=e[n]));return t})(t,{dataType:"json",method:"POST",contentType:"application/json"});return void 0===n.headers&&""===n.headers||((t,e)=>{"jquery"===t&&Object.assign(e,{beforeSend:t=>{jQuery.each(e.headers,(e,n)=>{t.setRequestHeader(e,n)})}}),"fetch"===t&&"json"===e.dataType&&Object.assign(e.headers,{Accepts:"application/json","Content-Type":"application/json"})})(e,n),"json"===n.dataType&&(n.data=JSON.stringify(n.data)),"fetch"===e&&Object.assign(n,{body:n.data}),n};var a=(t,e)=>"undefined"!=typeof jQuery&&jQuery&&jQuery.ajax?((t,e)=>(Object.assign(e,{url:t}),new Promise((t,n)=>{jQuery.ajax(e).done(e=>{t(e)}).fail(()=>{n("Wrong request")})})))(t,i(e,"jquery")):((t,e)=>{const n=fetch(t,e);return new Promise((t,e)=>{n.then(n=>200===n.status?t(n.json()):e("Response status is not 200")).catch(()=>e("Wrong request"))})})(t,i(e,"fetch")),s=t=>{var e=document.createElement("textarea");return e.innerHTML=t,e.value},u=n(181),c=n.n(u);function l(t,e,n){const r={};return r.title=h("child::title",t,e),r.link=h("child::link",t,e),r.content=h("child::content:encoded",t,e,n),r.description=h("child::description",t,e),r.creator=h("child::dc:creator",t,e,n),r.date=h("child::pubDate",t,e),r}function f(t,e){return g(t,e,l)}function h(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const o=e.evaluate("count("+t+")",n||e,r,XPathResult.ANY_TYPE,null).numberValue;if(0===o)return;const i=e.evaluate(t,n||e,r,XPathResult.STRING_TYPE,null);return i.stringValue?i.stringValue:null}function p(t){const e={};return e.title=h("/rss/channel/title",t),e.description=h("/rss/channel/description",t),e.link=h("/rss/channel/link",t),e}function d(t,e,n,r){const o=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e.evaluate(t,n||e,r,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null)}("/rss/channel/item",t);let i=o.snapshotLength;const a=[];0!==n&&(i=Math.min(i,n));for(let n=0;n<i;n++){const i=o.snapshotItem(n);a.push(r(t,i,e))}return a}function y(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;return new Promise((function(r,o){try{"evaluate"in document==0&&c.a.install();const o=(new DOMParser).parseFromString(t,"application/xml"),i=o.createNSResolver(o.documentElement),a=p(o);a.items=d(o,i,e,n),r(a)}catch(t){o(t)}}))}function g(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;return fetch(t).then((function(t){return t.text()})).then((function(t){return y(t,e,n)}))}function b(t,e,n){const r={};return r.id=h("child::content:slug",t,e,n),r.title=h("child::title",t,e),r.link=h("child::link",t,e),r.content=h("child::content:encoded",t,e,n),r.image=h("child::content:image",t,e,n),r.ctaButtonCopy=h("child::content:cta_button_copy",t,e,n),r.ctaButtonType=h("child::content:cta_button_type",t,e,n),r.ctaButtonUrl=h("child::content:cta_button_url",t,e,n),r.readMoreLinkText=h("child::content:read_more_link_text",t,e,n),r.isFree=h("child::content:is_free",t,e,n),r.isBundle=h("child::content:is_bundle",t,e,n),r}function m(t,e){return g(t,e,b)}var w=n(12),v=n.n(w),E=n(1),x=n(0),T=n.n(x),N=n(3),_=n.n(N),O=n(5),j=n.n(O),R=n(2);const P=j.a.svg`
width: ${t=>t.size};
height: ${t=>t.size};
flex: none;
`;class A extends _.a.Component{render(){const{iconSet:t,icon:e,className:n,color:r,size:o}=this.props,i=t[e];if(!i)return console.warn(`Invalid icon name ("${e}") passed to the SvgIcon component.`),null;const a=i.path,s=i.viewbox,u=["yoast-svg-icon","yoast-svg-icon-"+e,n].filter(Boolean).join(" "),c=i.CustomComponent?i.CustomComponent:P;return Object(E.createElement)(c,{"aria-hidden":!0,role:"img",focusable:"false",size:o,className:u,xmlns:"http://www.w3.org/2000/svg",viewBox:s,fill:r},Object(R.isArray)(a)?a:Object(E.createElement)("path",{d:a}))}}A.propTypes={icon:T.a.string.isRequired,iconSet:T.a.object.isRequired,color:T.a.string,size:T.a.string,className:T.a.string},A.defaultProps={size:"16px",color:"currentColor",className:""};var S,D=t=>{const e=e=>Object(E.createElement)(A,v()({},e,{iconSet:t}));return e.propTypes={icon:T.a.string.isRequired,color:T.a.string,size:T.a.string,className:T.a.string},e.defaultProps={size:"16px",color:"currentColor",className:""},e},I=function(){return[" ","\\n","\\r","\\t"," "," ",".",",","'","(",")",'"',"+","-",";","!","?",":","/","»","«","","","<",">"]},B=function(t){return(t=(t=t.replace(/\s{2,}/g," ")).replace(/\s\.$/,".")).replace(/^\s+|\s+$/g,"")},k=n(50),C=n.n(k),U=["address","article","aside","blockquote","canvas","dd","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tfoot","ul","video"],F=["b","big","i","small","tt","abbr","acronym","cite","code","dfn","em","kbd","strong","samp","time","var","a","bdo","br","img","map","object","q","script","span","sub","sup","button","input","label","select","textarea"],M=(new RegExp("^("+U.join("|")+")$","i"),new RegExp("^("+F.join("|")+")$","i"),new RegExp("^<("+U.join("|")+")[^>]*?>$","i")),L=new RegExp("^</("+U.join("|")+")[^>]*?>$","i"),Y=new RegExp("^<("+F.join("|")+")[^>]*>$","i"),H=new RegExp("^</("+F.join("|")+")[^>]*>$","i"),$=/^<([^>\s/]+)[^>]*>$/,q=/^<\/([^>\s]+)[^>]*>$/,V=/^[^<]+$/,G=/^<[^><]*$/,z=/<!--(.|[\r\n])*?-->/g,X=[];Object(R.memoize)((function(t){var e=[],n=0,r="",o="",i="";return t=t.replace(z,""),X=[],(S=C()((function(t){X.push(t)}))).addRule(V,"content"),S.addRule(G,"greater-than-sign-content"),S.addRule(M,"block-start"),S.addRule(L,"block-end"),S.addRule(Y,"inline-start"),S.addRule(H,"inline-end"),S.addRule($,"other-element-start"),S.addRule(q,"other-element-end"),S.onText(t),S.end(),Object(R.forEach)(X,(function(t,a){var s=X[a+1];switch(t.type){case"content":case"greater-than-sign-content":case"inline-start":case"inline-end":case"other-tag":case"other-element-start":case"other-element-end":case"greater than sign":s&&(0!==n||"block-start"!==s.type&&"block-end"!==s.type)?o+=t.src:(o+=t.src,e.push(o),r="",o="",i="");break;case"block-start":0!==n&&(""!==o.trim()&&e.push(o),o="",i=""),n++,r=t.src;break;case"block-end":n--,i=t.src,""!==r&&""!==i?e.push(r+o+i):""!==o.trim()&&e.push(o),r="",o="",i=""}n<0&&(n=0)})),e})),new RegExp("^<("+U.join("|")+")[^>]*?>","i"),new RegExp("</("+U.join("|")+")[^>]*?>$","i");var W=function(t){return t=t.replace(/(<([^>]+)>)/gi," "),B(t)};const Q=["script","style"],J=[":","https:","http:"],K={a:["href","target","rel"]},Z=(t,e,n)=>{const r=[];t.forEach(t=>{if(t.nodeType!==Node.ELEMENT_NODE)return;const o=t.nodeName.toLowerCase();Q.includes(o)?t.remove():(Z(t.childNodes,e,n),e.includes(o)?((t,e)=>{t.getAttributeNames().forEach(n=>{e.includes(n)?"href"===n&&"a"===t.nodeName.toLowerCase()&&(J.includes(t.protocol)||t.removeAttribute(n)):t.removeAttribute(n)})})(t,n[o]||K[o]||[]):r.push(t))}),r.forEach(t=>t.replaceWith(...t.childNodes))},tt=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new DOMParser,o=r.parseFromString(t,"text/html");return Z(o.body.childNodes,e,n),o.body.innerHTML};function et(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return t.filter(Boolean).join(e)}var nt=n(4);const rt=j.a.span`
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute !important;
width: 1px;
word-wrap: normal !important;
// Safari+VoiceOver bug see PR 308 and My Yoast issues 445, 712 and PR 715.
transform: translateY(1em);
`,ot=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";class e extends _.a.Component{constructor(t){super(t),this.isYoastLink=this.isYoastLink.bind(this)}isYoastLink(t){return/yoast\.com|yoast\.test|yoa\.st/.test(t)}render(){if(!this.props.href)return null;const e=this.isYoastLink(this.props.href),n=Object.assign({},this.props,{target:"_blank",rel:e?this.props.rel:"noopener"});return _.a.createElement(t,n,this.props.children,_.a.createElement(rt,null,Object(nt.__)("(Opens in a new browser tab)","wordpress-seo")))}}return e.propTypes={children:T.a.oneOfType([T.a.node]),href:T.a.string,rel:T.a.string},e.defaultProps={children:null,href:null,rel:null},e};var it=t=>e=>t.map(t=>t(e)).filter(t=>!0!==t),at=it([t=>{const{width:e,height:n}=t,r=Object(nt.sprintf)(
/* Translators: %d expands to the minimum width, %d expands to the minimum hight */
Object(nt.__)("Your image dimensions are not suitable. The minimum dimensions are %dx%d pixels.","wordpress-seo"),200,200);return!(e<200||n<200)||r},t=>{const{type:e}=t,n=Object(nt.sprintf)(
/* Translators: %s expands to the jpg format, %s expands to the png format, %s expands to the gif format. */
Object(nt.__)("The format of the uploaded image is not supported. The supported formats are: %s, %s, %s and %s.","wordpress-seo"),"JPG","PNG","WEBP","GIF");return!!["jpg","png","gif","jpeg","webp"].includes(e)||n}]),st=it([(t,e)=>{const{width:n,height:r}=t,o=Object(nt.__)("Your image dimensions are not suitable. The minimum dimensions are %dx%d pixels. The maximum dimensions are %dx%d pixels.","wordpress-seo"),i=n>4096||r>4096;
/* Translators: %d expands to the minimum width, %d expands to the minimum height,
%d expands to the maximum width, %d expands to the maximum height. */return e&&(n<300||r<157||i)?Object(nt.sprintf)(o,300,157,4096,4096):!(n<200||r<200||i)||Object(nt.sprintf)(o,200,200,4096,4096)},t=>{const{type:e}=t,n=Object(nt.sprintf)(
/* Translators: %s expands to the gif format, %s expands to the gif format. */
Object(nt.__)("You have uploaded a %s. Please note that, if its an animated %s, only the first frame will be used.","wordpress-seo"),"GIF","GIF"),r=Object(nt.sprintf)(
/* Translators: %s expands to the jpg format, %s expands to the png format, %s expands to the gif format. */
Object(nt.__)("The format of the uploaded image is not supported. The supported formats are: %s, %s, %s and %s.","wordpress-seo"),"JPG","PNG","WEBP","GIF");return!!["jpg","jpeg","png","webp"].includes(e)||("gif"===e?n:r)},t=>{const{bytes:e}=t,n=Object(nt.sprintf)(
/* Translators: %s expands to Twitter, %s expands to the 5MB size. */
Object(nt.__)("The file size of the uploaded image is too large for %s. File size must be less than %s.","wordpress-seo"),"Twitter","5MB");return!(e>=5)||n}]);const ut=t=>document.querySelector(t),ct=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n=>{const r=ut(t);if(r){const t=Array.isArray(n)?n.join(","):n;r.value=t}e&&e(n)}},lt=t=>{const e=ut(t);return e?e.value:null}},5:function(t,e){t.exports=window.yoast.styledComponents},50:function(t,e){var n=function(t,e){var n;for(n=0;n<t.length;n++)if(t[n].regex.test(e))return t[n]},r=function(t,e){var r,o,i;for(r=0;r<e.length;r++)if(o=n(t,e.substring(0,r+1)))i=o;else if(i)return{max_index:r,rule:i};return i?{max_index:e.length,rule:i}:void 0};t.exports=function(t){var e="",o=[],i=1,a=1,s=function(e,n){t({type:n,src:e,line:i,col:a});var r=e.split("\n");i+=r.length-1,a=(r.length>1?1:a)+r[r.length-1].length};return{addRule:function(t,e){o.push({regex:t,type:e})},onText:function(t){for(var n=e+t,i=r(o,n);i&&i.max_index!==n.length;)s(n.substring(0,i.max_index),i.rule.type),n=n.substring(i.max_index),i=r(o,n);e=n},end:function(){if(0!==e.length){var t=n(o,e);if(!t){var r=new Error("unable to tokenize");throw r.tokenizer2={buffer:e,line:i,col:a},r}s(e,t.type)}}}}}});