whoami7 - Manager
:
/
home
/
techyfnq
/
public_html
/
wp-content
/
plugins
/
site-reviews
/
assets
/
scripts
/
Upload File:
files >> //home/techyfnq/public_html/wp-content/plugins/site-reviews/assets/scripts/site-reviews-admin.js
/*! For license information please see site-reviews-admin.js.LICENSE.txt */ !function(){var e={433:function(){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},325:function(e,t,n){var i=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,i={},s={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof r?new r(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var i,r;switch(n=n||{},s.util.type(t)){case"Object":if(r=s.util.objId(t),n[r])return n[r];for(var o in i={},n[r]=i,t)t.hasOwnProperty(o)&&(i[o]=e(t[o],n));return i;case"Array":return r=s.util.objId(t),n[r]?n[r]:(i=[],n[r]=i,t.forEach((function(t,s){i[s]=e(t,n)})),i);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(i){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var i="no-"+t;e;){var s=e.classList;if(s.contains(t))return!0;if(s.contains(i))return!1;e=e.parentElement}return!!n}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(e,t){var n=s.util.clone(s.languages[e]);for(var i in t)n[i]=t[i];return n},insertBefore:function(e,t,n,i){var r=(i=i||s.languages)[e],o={};for(var a in r)if(r.hasOwnProperty(a)){if(a==t)for(var l in n)n.hasOwnProperty(l)&&(o[l]=n[l]);n.hasOwnProperty(a)||(o[a]=r[a])}var c=i[e];return i[e]=o,s.languages.DFS(s.languages,(function(t,n){n===c&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,i,r){r=r||{};var o=s.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],i||a);var l=t[a],c=s.util.type(l);"Object"!==c||r[o(l)]?"Array"!==c||r[o(l)]||(r[o(l)]=!0,e(l,n,a,r)):(r[o(l)]=!0,e(l,n,null,r))}}},plugins:{},highlightAll:function(e,t){s.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var i={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),s.hooks.run("before-all-elements-highlight",i);for(var r,o=0;r=i.elements[o++];)s.highlightElement(r,!0===t,i.callback)},highlightElement:function(t,n,i){var r=s.util.getLanguage(t),o=s.languages[r];s.util.setLanguage(t,r);var a=t.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&s.util.setLanguage(a,r);var l={element:t,language:r,grammar:o,code:t.textContent};function c(e){l.highlightedCode=e,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),i&&i.call(l.element)}if(s.hooks.run("before-sanity-check",l),(a=l.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!l.code)return s.hooks.run("complete",l),void(i&&i.call(l.element));if(s.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var u=new Worker(s.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(s.highlight(l.code,l.grammar,l.language));else c(s.util.encode(l.code))},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(s.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=s.tokenize(i.code,i.grammar),s.hooks.run("after-tokenize",i),r.stringify(s.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var i in n)t[i]=n[i];delete t.rest}var s=new l;return c(s,s.head,e),a(e,s,t,s.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(s)},hooks:{all:{},add:function(e,t){var n=s.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=s.hooks.all[e];if(n&&n.length)for(var i,r=0;i=n[r++];)i(t)}},Token:r};function r(e,t,n,i){this.type=e,this.content=t,this.alias=n,this.length=0|(i||"").length}function o(e,t,n,i){e.lastIndex=t;var s=e.exec(n);if(s&&i&&s[1]){var r=s[1].length;s.index+=r,s[0]=s[0].slice(r)}return s}function a(e,t,n,i,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var g=f[h],v=g.inside,m=!!g.lookbehind,y=!!g.greedy,b=g.alias;if(y&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var _=g.pattern||g,x=i.next,k=l;x!==t.tail&&!(d&&k>=d.reach);k+=x.value.length,x=x.next){var E=x.value;if(t.length>e.length)return;if(!(E instanceof r)){var S,j=1;if(y){if(!(S=o(_,k,e,m))||S.index>=e.length)break;var C=S.index,A=S.index+S[0].length,L=k;for(L+=x.value.length;C>=L;)L+=(x=x.next).value.length;if(k=L-=x.value.length,x.value instanceof r)continue;for(var T=x;T!==t.tail&&(L<A||"string"==typeof T.value);T=T.next)j++,L+=T.value.length;j--,E=e.slice(k,L),S.index-=k}else if(!(S=o(_,0,E,m)))continue;C=S.index;var O=S[0],R=E.slice(0,C),P=E.slice(C+O.length),Q=k+E.length;d&&Q>d.reach&&(d.reach=Q);var F=x.prev;if(R&&(F=c(t,F,R),k+=R.length),u(t,F,j),x=c(t,F,new r(p,v?s.tokenize(O,v):O,b,O)),P&&c(t,x,P),j>1){var D={cause:p+","+h,reach:Q};a(e,t,n,x.prev,k,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var i=t.next,s={value:n,prev:t,next:i};return t.next=s,i.prev=s,e.length++,s}function u(e,t,n){for(var i=t.next,s=0;s<n&&i!==e.tail;s++)i=i.next;t.next=i,i.prev=t,e.length-=s}if(e.Prism=s,r.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var i="";return t.forEach((function(t){i+=e(t,n)})),i}var r={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(r.classes,o):r.classes.push(o)),s.hooks.run("wrap",r);var a="";for(var l in r.attributes)a+=" "+l+'="'+(r.attributes[l]||"").replace(/"/g,""")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+a+">"+r.content+"</"+r.tag+">"},!e.document)return e.addEventListener?(s.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),i=n.language,r=n.code,o=n.immediateClose;e.postMessage(s.highlight(r,s.languages[i],i)),o&&e.close()}),!1),s):s;var d=s.util.currentScript();function p(){s.manual||s.highlightAll()}if(d&&(s.filename=d.src,d.hasAttribute("data-manual")&&(s.manual=!0)),!s.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return s}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=i),void 0!==n.g&&(n.g.Prism=i)},251:function(){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},980:function(){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},854:function(){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,i,s,r){if(n.language===i){var o=n.tokenStack=[];n.code=n.code.replace(s,(function(e){if("function"==typeof r&&!r(e))return e;for(var s,a=o.length;-1!==n.code.indexOf(s=t(i,a));)++a;return o[a]=e,s})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,i){if(n.language===i&&n.tokenStack){n.grammar=e.languages[i];var s=0,r=Object.keys(n.tokenStack);!function o(a){for(var l=0;l<a.length&&!(s>=r.length);l++){var c=a[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=r[s],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(i,u),h=p.indexOf(f);if(h>-1){++s;var g=p.substring(0,h),v=new e.Token(i,e.tokenize(d,n.grammar),"language-"+i,d),m=p.substring(h+f.length),y=[];g&&y.push.apply(y,o([g])),y.push(v),m&&y.push.apply(y,o([m])),"string"==typeof c?a.splice.apply(a,[l,1].concat(y)):c.content=y}}else c.content&&o(c.content)}return a}(n.tokens)}}}})}(Prism)},335:function(){Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},945:function(){!function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,r=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:s,punctuation:r};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},a=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore("php","variable",{string:a,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:a,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:i,operator:s,punctuation:r}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism)},759:function(){!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var i=t.querySelector(".line-numbers-rows");if(i){var s=parseInt(t.getAttribute("data-start"),10)||1,r=s+(i.children.length-1);n<s&&(n=s),n>r&&(n=r);var o=n-s;return i.children[o]}}},resize:function(e){s([e])},assumeViewportIndependence:!0},i=void 0;window.addEventListener("resize",(function(){n.assumeViewportIndependence&&i===window.innerWidth||(i=window.innerWidth,s(Array.prototype.slice.call(document.querySelectorAll("pre."+e))))})),Prism.hooks.add("complete",(function(n){if(n.code){var i=n.element,r=i.parentNode;if(r&&/pre/i.test(r.nodeName)&&!i.querySelector(".line-numbers-rows")&&Prism.util.isActive(i,e)){i.classList.remove(e),r.classList.add(e);var o,a=n.code.match(t),l=a?a.length+1:1,c=new Array(l+1).join("<span></span>");(o=document.createElement("span")).setAttribute("aria-hidden","true"),o.className="line-numbers-rows",o.innerHTML=c,r.hasAttribute("data-start")&&(r.style.counterReset="linenumber "+(parseInt(r.getAttribute("data-start"),10)-1)),n.element.appendChild(o),s([r]),Prism.hooks.run("line-numbers",n)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}function s(e){if(0!=(e=e.filter((function(e){var t=function(e){if(!e)return null;return window.getComputedStyle?getComputedStyle(e):e.currentStyle||null}(e)["white-space"];return"pre-wrap"===t||"pre-line"===t}))).length){var n=e.map((function(e){var n=e.querySelector("code"),i=e.querySelector(".line-numbers-rows");if(n&&i){var s=e.querySelector(".line-numbers-sizer"),r=n.textContent.split(t);s||((s=document.createElement("span")).className="line-numbers-sizer",n.appendChild(s)),s.innerHTML="0",s.style.display="block";var o=s.getBoundingClientRect().height;return s.innerHTML="",{element:e,lines:r,lineHeights:[],oneLinerHeight:o,sizer:s}}})).filter(Boolean);n.forEach((function(e){var t=e.sizer,n=e.lines,i=e.lineHeights,s=e.oneLinerHeight;i[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var r=t.appendChild(document.createElement("span"));r.style.display="block",r.textContent=e}else i[n]=s}))})),n.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,i=0,s=0;s<n.length;s++)void 0===n[s]&&(n[s]=t.children[i++].getBoundingClientRect().height)})),n.forEach((function(e){var t=e.sizer,n=e.element.querySelector(".line-numbers-rows");t.style.display="none",t.innerHTML="",e.lineHeights.forEach((function(e,t){n.children[t].style.height=e+"px"}))}))}}}()}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";function e(t){return e="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(t)}var t=function(e){var t=e.siblings(e.prop("tagName"));return{el:e,loading:function(){~["false",void 0].indexOf(e.attr("aria-busy"))&&(t.prop("disabled",!0),e.addClass("is-busy").prop("disabled",!0).attr("aria-busy",!0).data("text",e.text()).text(e.data("loading")||e.data("text")))},loaded:function(){"true"===e.attr("aria-busy")&&(t.prop("disabled",!1),e.text(e.data("text")).data("text","").attr("aria-busy",!1).prop("disabled",!1).removeClass("is-busy"))}}},i=function(e){return this.data={},this.form=jQuery(e),this.pushes={},this.init()};i.prototype={patterns:{validate:/^[a-z_-][a-z0-9_-]*(?:\[(?:\d*|[a-z0-9_-]+)\])*$/i,key:/[a-z0-9_-]+|(?=\[\])/gi,named:/^[a-z0-9_-]+$/i,push:/^$/,fixed:/^\d+$/},addPair:function(e){this.patterns.validate.test(e.name)&&(this.data=jQuery.extend(!0,this.data,this.makeObject(e.name,this.encode(e))))},build:function(e,t,n){return e[t]=n,e},encode:function(e){return"checkbox"===jQuery('[name="'+e.name+'"]',this.form).attr("type")&&"on"===e.value||e.value},incrementPush:function(e){return void 0===this.pushes[e]&&(this.pushes[e]=0),this.pushes[e]++},init:function(){var e=this.form.serializeArray();if(jQuery.isArray(e))for(var t=0,n=e.length;t<n;t++)this.addPair(e[t]);return this.data},makeObject:function(e,t){for(var n,i=e.match(this.patterns.key);void 0!==(n=i.pop());)if(this.patterns.push.test(n)){var s=this.incrementPush(e.replace(/\[\]$/,""));t=this.build([],s,t)}else this.patterns.fixed.test(n)?t=this.build([],n,t):this.patterns.named.test(n)&&(t=this.build({},n,t));return t}};var s=i,r=function(e,t,n){this.event=t||null,this.form=n||null,this.notice=null,this.request=e||{}};r.prototype={post:function(e){this.event?this.postFromEvent_(e):this.doPost_(e)},buildData_:function(e){var t={action:GLSR.action,_ajax_request:!0};if(this.form){var n=new s(this.form);n[GLSR.nameprefix]&&(this.request=n[GLSR.nameprefix])}return this.buildNonce_(e),t[GLSR.nameprefix]=this.request,t},buildNonce_:function(e){this.request._nonce||(GLSR.nonce[this.request._action]?this.request._nonce=GLSR.nonce[this.request._action]:e&&(this.request._nonce=e.closest("form").find("#_wpnonce").val()))},doPost_:function(e,n){n&&t(n).loading(),jQuery.post(GLSR.ajaxurl,this.buildData_(n)).done((function(t){"function"==typeof e&&e(t.data,t.success)})).always((function(e){e.data?e.data.notices&&GLSR.notices.add(e.data.notices):GLSR.notices.error("Unknown error."),n&&t(n).loaded()}))},postFromEvent_:function(e){this.event.preventDefault(),this.doPost_(e,jQuery(this.event.currentTarget))}};var o=r,a=new Map;function l(e){var t=a.get(e);t&&t.destroy()}function c(e){var t=a.get(e);t&&t.update()}var u=null;"undefined"==typeof window?((u=function(e){return e}).destroy=function(e){return e},u.update=function(e){return e}):((u=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!a.has(e)){var t,n=null,i=window.getComputedStyle(e),s=(t=e.value,function(){o({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),r=function(t){e.removeEventListener("autosize:destroy",r),e.removeEventListener("autosize:update",l),e.removeEventListener("input",s),window.removeEventListener("resize",l),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),a.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",r),e.addEventListener("autosize:update",l),e.addEventListener("input",s),window.addEventListener("resize",l),e.style.overflowX="hidden",e.style.wordWrap="break-word",a.set(e,{destroy:r,update:l}),l()}function o(t){var s,r,a=t.restoreTextAlign,l=void 0===a?null:a,c=t.testForHeightReduction,u=void 0===c||c,d=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),u&&(s=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),r="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&r>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),r=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=r+"px",l&&(e.style.textAlign=l),s&&s(),n!==r&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=r),d!==i.overflow&&!l)){var p=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===p?"end":"start"),o({restoreTextAlign:p,testForHeightReduction:!0})}}function l(){o({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e},u.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],c),e});var d=u,p=function(){"object"===e(jQuery.wp)&&"function"==typeof jQuery.wp.wpColorPicker&&jQuery(document).find("input[type=text].color-picker-hex").each((function(){var e=jQuery(this),t=jQuery.extend({},e.data("colorpicker")||{},{change:function(e,t){jQuery(e.target).val(t.color.toString()).trigger("change")},mode:"hsl",palettes:!1,width:180});e.wpColorPicker(t)}))},f={},h=function(e,t){var n=f[e]||[],i=[];t&&[].forEach.call(n,(function(e){t!==e.fn&&t!==e.fn.once&&i.push(e)})),i.length?f[e]=i:delete f[e]},g=function(e,t,n){(f[e]||(f[e]=[])).push({fn:t,context:n})},v={events:f,off:h,on:g,once:function(e,t,n){var i=function i(){h(e,i),t.apply(n,arguments)};i.once=t,g(e,i,n)},trigger:function(e){var t=[].slice.call(arguments,1),n=(f[e]||[]).slice();[].forEach.call(n,(function(e){return e.fn.apply(e.context,t)}))}};function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,n||"default");if("object"!==e(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===e(n)?n:String(n)}function b(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,y(i.key),i)}}function w(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var x=function(e,t,n){return e.attr("aria-".concat(t),n?"true":"false")},k={classes:{active:"is-active",selected:"is-selected"},onInit:null,onDestroy:null,onSelect:null,selectors:{results:".glsr-filter__results",search:".glsr-filter__search",selected:".glsr-filter__selected",value:".glsr-filter__value"}},E=function(){function e(t,n){m(this,e),this.el=jQuery(t),this.options=jQuery.extend(!0,k,n||{}),this.resultsEl=this.el.find(this.options.selectors.results),this.selectedEl=this.el.find(this.options.selectors.selected),this.searchEl=this.el.find(this.options.selectors.search),this.valueEl=this.el.find(this.options.selectors.value),this.el.length&&this.searchEl.length&&this.selectedEl.length&&this.valueEl.length&&this.resultsEl.length&&(this.action=this.el.data("action"),this.events={document:{mousedown:this.onDocumentClick.bind(this)},search:{blur:_.debounce(this.onSearchBlur.bind(this),10),input:_.debounce(this.onSearchInput.bind(this),200),keydown:this.onSearchKeydown.bind(this)},selected:{keydown:this.onSelectedKeydown.bind(this),mousedown:this.onSelectedClick.bind(this)}},this.init())}return w(e,[{key:"defaults",value:function(){return _.sortBy(_.map(GLSR.filters[this.valueEl.attr("name")],(function(e,t){return{id:t,name:e}})),"name")}},{key:"init",value:function(){this.eventHandler("on"),this.data=[],"function"==typeof this.options.onInit&&this.options.onInit.call(this)}},{key:"destroy",value:function(){this.eventHandler("off"),this.data=[],"function"==typeof this.options.onDestroy&&this.options.onDestroy.call(this)}},{key:"eventHandler",value:function(e){this.eventListener(document,e,this.events.document),this.eventListener(this.searchEl,e,this.events.search),this.eventListener(this.selectedEl,e,this.events.selected)}},{key:"eventListener",value:function(e,t,n){_.each(n,(function(n,i){return jQuery(e)[t](i,n)}))}},{key:"onDocumentClick",value:function(e){var t=this;jQuery(e.target).find(this.el).length&&(this.requestAbort(),this.el.hasClass(this.options.classes.active)&&(this.resultsHide(),_.debounce((function(){return t.selectedEl.focus()}),10)()))}},{key:"onSearchBlur",value:function(){this.el.find(document.activeElement).length||this.resultsHide()}},{key:"onSearchInput",value:function(){var e=this;this.requestAbort(),""!==this.searchEl.val()?(this.resultsEl.html(this.templateSearching()),this.xhr=this.request().done((function(t){e.data=t.items,e.resultsShow()}))):this.resultsShow()}},{key:"onSearchKeydown",value:function(e){var t=this;if(GLSR.keys.ENTER===e.which){e.preventDefault();var n=this.resultsEl.find(".".concat(this.options.classes.selected));n&&n.trigger("mousedown")}else GLSR.keys.ESC===e.which?(this.resultsHide(),_.debounce((function(){return t.selectedEl.focus()}),10)()):GLSR.keys.DOWN===e.which?this.resultsNavigate(1):GLSR.keys.UP===e.which?this.resultsNavigate(-1):GLSR.keys.TAB===e.which&&e.preventDefault()}},{key:"onSelect",value:function(e){var t=this;"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,e);var n=jQuery(e.currentTarget),i=n.data("id");this.selectedEl.attr("title",~["","0",0].indexOf(i)?n.data("name"):"ID: "+i),this.selectedEl.text(n.data("name")),this.valueEl.val(i),this.resultsHide(),_.debounce((function(){return t.selectedEl.focus()}),10)()}},{key:"onSelectedClick",value:function(){this.resultsShow()}},{key:"onSelectedKeydown",value:function(e){~[GLSR.keys.DOWN,GLSR.keys.SPACE,GLSR.keys.UP].indexOf(e.which)?(e.preventDefault(),this.resultsShow()):GLSR.keys.ESC===e.which&&this.selectedEl.blur()}},{key:"request",value:function(){var e=this,t={};return t[GLSR.nameprefix]={_action:this.action,_nonce:GLSR.nonce[this.action],exclude:this.options.exclude,search:this.searchEl.val()},wp.ajax.post(GLSR.action,t).always((function(){return delete e.xhr}))}},{key:"requestAbort",value:function(){void 0!==this.xhr&&this.xhr.abort()}},{key:"results",value:function(){var e=jQuery.merge(this.defaults(),this.data),t=this.valueEl.val(),n=this.selectedEl.text();return-1===_.findIndex(e,{id:t})&&-1===_.findIndex(e,{name:n})?jQuery.merge(e,[{id:t,name:n}]):e}},{key:"resultsHide",value:function(){this.requestAbort(),this.el.removeClass(this.options.classes.active),this.searchEl.val(""),this.selected=-1,x(this.el,"expanded",0),x(this.resultsEl,"expanded",0),x(this.resultsEl,"hidden",1)}},{key:"resultsNavigate",value:function(e){this.selected+=e;var t=this.resultsEl.children();if(t.attr("aria-selected","false").removeClass(this.options.classes.selected),this.selected<0&&(this.selected=-1),this.selected>=t.length&&(this.selected=t.length-1),this.selected>=0){var n=t.eq(this.selected);n.addClass(this.options.classes.selected),x(n,"selected",1),this.resultsScrollIntoView()}}},{key:"resultsScrollIntoView",value:function(){var e=this.resultsEl.children().eq(this.selected)[0].getBoundingClientRect(),t=this.resultsEl[0].getBoundingClientRect(),n=e.top<t.top,i=e.bottom>t.top+t.height,s=this.resultsEl.scrollTop();if(n){var r=t.top-e.top;this.resultsEl.scrollTop(s-r)}else if(i){var o=e.bottom-(t.top+t.height);this.resultsEl.scrollTop(s+o)}else;}},{key:"resultsShow",value:function(){var e=this;this.resultsEl.empty(),this.selected=-1,_.each(this.results(),(function(t){return e.resultsEl.append(e.templateResult(t))})),this.resultsEl.children().on("mousedown",this.onSelect.bind(this)),this.el.addClass(this.options.classes.active),x(this.el,"expanded",1),x(this.resultsEl,"expanded",1),x(this.resultsEl,"hidden",0),_.debounce((function(){e.resultsEl.scrollTop(0),e.searchEl.focus()}),10)()}},{key:"templateResult",value:function(e){var t=_.template('<span aria-selected="false" data-id="<%= id %>" data-name="<%= name %>" title="<% if (!~["","0",0].indexOf(id)) { %>ID: <%= id %><% } else { %><%= name %><% } %>"><span><%= name %></span></span>');return jQuery(t(e))}},{key:"templateSearching",value:function(){var e=_.template('<span data-searching><span><%= text %></span><span class="spinner"></span></span>');return jQuery(e({text:GLSR.text.searching}))}}]),e}(),S=E,j=function(){this.request=null,jQuery(".enable-filter-tog","#adv-settings").on("click",this.onClick_.bind(this))};j.prototype={enabled_:function(){return jQuery(".enable-filter-tog:checked").map((function(e,t){return t.value})).get()},onClick_:function(e){var t=jQuery(e.currentTarget),n=t.prop("checked")?"removeClass":"addClass";jQuery("#glsr-filter-by-"+t.val())[n]("hidden"),jQuery("#glsr-filter-by-"+t.val())[n]("is-hidden"),this.saveState_()},saveState_:_.debounce((function(){this.request&&this.request.abort();var e={_ajax_request:!0};e[GLSR.nameprefix]={_action:"toggle-filters",_nonce:GLSR.nonce["toggle-filters"],enabled:this.enabled_()},this.request=wp.ajax.post(GLSR.action,e),this.request.always(function(){this.request=null}.bind(this))}),500)};var C=j,A=function(){function e(){m(this,e),this.menu=jQuery("#glsr-flyout"),this.items=this.menu.find(".glsr-flyout-item"),this.mascot=this.menu.find(".glsr-flyout-mascot"),this.menu.length&&this.mascot.on("click",this.openMenu.bind(this))}return w(e,[{key:"openMenu",value:function(e){var t=this;e.preventDefault(),this.items.each((function(e){var n=30*e;t.menu.hasClass("is-open")||(n=30*(t.items.length-1)-30*e),t.items[e].setAttribute("style","transition-delay: ".concat(n,"ms;"))})),this.menu.toggleClass("is-open")}}]),e}(),L=function(e){this.el=document.querySelector(e),this.el&&(this.depends=this.el.querySelectorAll("[data-depends]"),this.depends.length&&this.init_())};L.prototype={getDependsData_:function(e){var t=e.getAttribute("data-depends");if(t)try{return JSON.parse(t)}catch(e){return console.error(e)}},init_:function(){for(var e=this.el.elements,t=0;t<e.length;t++)~["INPUT","SELECT"].indexOf(e[t].nodeName)&&e[t].addEventListener("change",this.onChange_.bind(this))},isFieldSelected_:function(e,t){var n=!1;t=[].concat(t);var i=this.el.querySelectorAll('[name="'+e+'"]');return[].map.call(i,function(e){var i=~this.normalizeValues_(t).indexOf(this.normalizeValue_(e.value));~["checkbox","radio"].indexOf(e.type)?e.checked&&i&&(n=!0):i&&(n=!0)}.bind(this)),n},normalizeValue_:function(e){return!!~["true","on","yes","1"].indexOf(e)||!~["false","off","no","0"].indexOf(e)&&e},normalizeValues_:function(e){return e.map(this.normalizeValue_)},onChange_:function(e){this.depends.forEach(function(t){var n=this.getDependsData_(t);if(n&&~n.map((function(e){return e.name})).indexOf(e.currentTarget.name)){var i=!0;n.forEach(function(e){this.isFieldSelected_(e.name,e.value)||(i=!1)}.bind(this)),this.toggleHiddenField_(t,i)}}.bind(this))},toggleHiddenField_:function(e,t){var n=e.closest(".glsr-setting-field");n&&n.classList[t?"remove":"add"]("hidden")}};var T=L;function O(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=function(){function e(){m(this,e),jQuery("form").on("click","[data-ajax-import]",this.onImport.bind(this)),this.reset()}return w(e,[{key:"data",value:function(e){var t=new FormData(this.$el.closest("form").get(0));for(var n in e)t.set(n,e[n]);return t.set("action",GLSR.action),{body:t,credentials:"same-origin",method:"POST"}}},{key:"import",value:function(e){var t,n=this,i=this.data((O(t={},GLSR.nameprefix+"[page]",e),O(t,GLSR.nameprefix+"[stage]","import"),t));return fetch(wp.ajax.settings.url,i).then((function(e){return e.json()})).then((function(e){n.processed+=e.data.processed})).catch((function(e){console.error(e)}))}},{key:"isBusy",value:function(){this.$el.addClass("is-busy"),this.$el.prop("disabled",!0)}},{key:"isIdle",value:function(){this.$el.removeClass("is-busy"),this.$el.prop("disabled",!1)}},{key:"onImport",value:function(e){var t=this;e.preventDefault(),this.$el=jQuery(e.currentTarget),this.isBusy();var n=this.data(O({},GLSR.nameprefix+"[stage]","prepare"));fetch(wp.ajax.settings.url,n).then((function(e){return e.json()})).then((function(e){var n=e.data,i=[];t.total=n.total;for(var s=1;s<=n.pages;s++)i.push(t.import(s));Promise.all(i).then((function(){t.isIdle(),GLSR.notices.success(n.notice.replace("%d",t.processed)),t.reset()}))})).catch((function(e){console.error(e),GLSR.notices.error(e)})).finally((function(){jQuery("html, body").animate({scrollTop:0},500)}))}},{key:"reset",value:function(){this.$el=null,this.processed=0,this.total=0}}]),e}(),P=function(){jQuery(".glsr-metabox-field input[data-edit-review]").on("change",this.onToggleInput_.bind(this)),jQuery(".glsr-metabox-field input[type=url]").on("change",this.onChangeImage_.bind(this))};P.prototype={onChangeImage_:function(e){var t=jQuery(e.currentTarget);this.switchImage_(t.parent().find("img"),t.val())},onToggleInput_:function(e){var t=e.currentTarget.checked;jQuery(".glsr-input-value").each(function(e,n){if(t)jQuery(n).data("value",n.value);else{if(n.value=jQuery(n).data("value"),"url"!==n.type)return;this.switchImage_(jQuery(n).parent().find("img"),n.value)}}.bind(this)),jQuery(".glsr-input-value").prop("disabled",!t),GLSR.stars.rebuild()},switchImage_:function(e,t){if(e){var n=new Image;n.src=t,n.onerror=function(){e.attr("src",e.data("fallback"))},n.onload=function(){e.attr("src",n.src)}}}};var Q=P,F=function(){this.init_()};F.prototype={add:function(e){e&&(jQuery("#glsr-notices").length||(jQuery("#message.notice").remove(),jQuery("hr.wp-header-end").after('<div id="glsr-notices" />')),jQuery("#glsr-notices").html(e),jQuery(document).trigger("wp-updates-notice-added"),jQuery("html").animate({scrollTop:0},500))},success:function(e){this.add('<div class="notice notice-success inline is-dismissible"><p>'+e+"</p></div>")},error:function(e){this.add('<div class="notice notice-error inline is-dismissible"><p>'+e+"</p></div>")},init_:function(){jQuery(".glsr-notice[data-dismiss]").on("click.wp-dismiss-notice",this.onDismiss_.bind(this)),jQuery(".glsr-notice-footer").on("click",this.onDismiss_.bind(this)),this.showBanner_()},data_:function(e){return O({},GLSR.nameprefix,{_action:"dismiss-notice",notice:e})},hideBanner_:function(e){e.hasClass("glsr-notice-top-of-page")&&e.slideUp()},showBanner_:function(){var e=jQuery(".glsr-notice-top-of-page");e&&(jQuery("#glsr-page-header").prepend(e.detach()),e.delay(1e3).slideDown())},onDismiss_:function(e){var t=jQuery(e.currentTarget),n=jQuery(e.target);this.dismissNotice_(n,t)},dismissNotice_:function(e,t){if(e.hasClass("notice-dismiss")||e.hasClass("button")){this.hideBanner_(t),e.hasClass("notice-dismiss")&&this.hideBanner_(t);var n=this.data_(t.data("dismiss"));this.removeNotice_(t),wp.ajax.post(GLSR.action,n)}},removeNotice_:function(e){e.fadeTo(100,0,(function(){return e.slideUp(100,(function(){return e.remove()}))}))}};var D=F,z=function(){this.el=jQuery("#pinned-status-select"),this.el&&(this.cancel=jQuery("a.cancel-pinned-status"),this.cancel.on("click",this.onClickCancel_.bind(this)),this.edit=jQuery("a.edit-pinned-status"),this.edit.on("click",this.onClickEdit_.bind(this)),this.save=jQuery("a.save-pinned-status"),this.save.on("click",this.onClickSave_.bind(this))),jQuery("td.column-is_pinned i.pin-review").on("click",this.onClickToggle_.bind(this))};z.prototype={restoreEditLink_:function(){this.el.slideUp("fast"),this.edit.show().focus()},onClickCancel_:function(e){e.preventDefault(),this.restoreEditLink_(),this.el.find("select").val("0"===jQuery("#hidden-pinned-status").val()?1:0)},onClickEdit_:function(e){e.preventDefault(),this.el.is(":hidden")&&(this.el.slideDown("fast",function(){this.el.find("select").focus()}.bind(this)),this.edit.hide())},onClickSave_:function(e){e.preventDefault(),this.restoreEditLink_(),this.target=e.currentTarget;var t={_action:"toggle-pinned",id:jQuery("#post_ID").val(),pinned:jQuery("#pinned-status").val()};new o(t).post(this.save_.bind(this))},onClickToggle_:function(e){e.preventDefault(),this.target=e.currentTarget;var t={_action:"toggle-pinned",id:e.currentTarget.getAttribute("data-id"),pinned:-1};jQuery(this.target).addClass("spinner is-active").removeClass("dashicons-sticky"),new o(t).post(this.togglePinned_.bind(this))},save_:function(e){jQuery("#pinned-status").val(0|!e.pinned),jQuery("#hidden-pinned-status").val(0|e.pinned),jQuery("#pinned-status-text").text(e.pinned?this.target.dataset.yes:this.target.dataset.no),GLSR.notices.add(e.notices)},togglePinned_:function(e){this.target.classList[e.pinned?"add":"remove"]("pinned"),jQuery(this.target).removeClass("spinner is-active").addClass("dashicons-sticky")}};var q=z,I=function(){jQuery.each(GLSR.pointers,function(e,t){this.init_(t)}.bind(this))};I.prototype={close_:function(e){jQuery.post(GLSR.ajaxurl,{action:"dismiss-wp-pointer",pointer:e})},init_:function(e){jQuery(e.target).pointer({content:e.options.content,position:e.options.position,close:this.close_.bind(null,e.id)}).pointer("open").pointer("sendToTop"),jQuery(document).on("wp-window-resized",(function(){jQuery(e.target).pointer("reposition")}))}};var N=I,$=n(325),H=n.n($),G=(n(433),n(335),n(980),n(854),n(945),n(251),n(759),function(e,t){this.el=jQuery(e),this.options=t,this.searchTerm=null,this.init_()});G.prototype={defaults:{action:null,exclude:[],onInit:null,onResultClick:null,results:{},selected:-1,selectedClass:"glsr-selected-result",selectorEntries:".glsr-strings-table tbody",selectorResults:".glsr-search-results",selectorSearch:".glsr-search-input"},init_:function(){this.options=jQuery.extend({},this.defaults,this.options),this.el.length&&(this.options.entriesEl=this.el.parent().find(this.options.selectorEntries),this.options.resultsEl=this.el.find(this.options.selectorResults),this.options.searchEl=this.el.find(this.options.selectorSearch),this.options.searchEl.attr("aria-describedby","live-search-desc"),"function"==typeof this.options.onInit&&this.options.onInit.call(this),this.initEvents_())},initEvents_:function(){this.options.searchEl.on("input",_.debounce(this.onSearchInput_.bind(this),500)),this.options.searchEl.on("keyup",this.onSearchKeyup_.bind(this)),this.options.searchEl.on("keydown keypress",(function(e){GLSR.keys.ENTER===e.which&&e.preventDefault()})),jQuery(document).on("click",this.onDocumentClick_.bind(this)),jQuery(document).on("keydown",this.onDocumentKeydown_.bind(this))},abort_:function(){void 0!==this.searchRequest&&this.searchRequest.abort()},clearResults_:function(){this.abort_(),this.options.resultsEl.empty(),this.options.resultsEl.removeClass("is-active"),this.el.removeClass("is-active"),jQuery("body").removeClass("glsr-focus")},deleteEntry_:function(e){var t=this.options.entriesEl.children("tr").eq(e),n=this;t.find("td").css({backgroundColor:"#faafaa"}),t.fadeOut(350,(function(){jQuery(this).remove(),n.options.results={},n.reindexRows_(),n.setVisibility_()}))},displayResults_:function(e){jQuery("body").addClass("glsr-focus"),this.options.resultsEl.append(e),this.options.resultsEl.children("span").on("click",this.onResultClick_.bind(this))},makeSortable_:function(){this.options.entriesEl.on("click","a.delete",this.onEntryDelete_.bind(this)),this.options.entriesEl.sortable({items:"tr",tolerance:"pointer",start:function(e,t){t.placeholder.height(t.helper[0].scrollHeight)},sort:function(e,t){var n=e.pageY-jQuery(this).offsetParent().offset().top-t.helper.outerHeight(!0)/2;t.helper.css({top:n+"px"})}})},navigateResults_:function(e){this.options.selected+=e,this.options.results.removeClass(this.options.selectedClass),this.options.selected<0&&(this.options.selected=-1,this.options.searchEl.focus()),this.options.selected>=this.options.results.length&&(this.options.selected=this.options.results.length-1),this.options.selected>=0&&this.options.results.eq(this.options.selected).addClass(this.options.selectedClass).focus()},onDocumentClick_:function(e){jQuery(e.target).find(this.el).length&&jQuery("body").hasClass("glsr-focus")&&this.clearResults_()},onDocumentKeydown_:function(e){if(!jQuery.isEmptyObject(this.options.results)){if(GLSR.keys.ESC===e.which&&this.clearResults_(),GLSR.keys.ENTER===e.which||GLSR.keys.SPACE===e.which){var t=this.options.resultsEl.find("."+this.options.selectedClass);t&&t.trigger("click")}GLSR.keys.UP===e.which&&(e.preventDefault(),this.navigateResults_(-1)),GLSR.keys.DOWN===e.which&&(e.preventDefault(),this.navigateResults_(1))}},onEntryDelete_:function(e){e.preventDefault(),this.deleteEntry_(jQuery(e.currentTarget).closest("tr").index())},onResultClick_:function(e){e.preventDefault(),"function"==typeof this.options.onResultClick&&this.options.onResultClick.call(this,e),this.clearResults_()},onSearchInput_:function(e){if(this.abort_(),this.searchTerm===e.currentTarget.value&&this.options.results.length)return this.displayResults_(this.options.results);if(this.options.resultsEl.empty(),this.options.selected=-1,this.searchTerm=e.currentTarget.value,""===this.searchTerm)return this.reset_();this.el.addClass("is-active");var t={};t[GLSR.nameprefix]={_action:this.options.action,_nonce:GLSR.nonce[this.options.action],exclude:this.options.exclude,search:this.searchTerm},this.searchRequest=wp.ajax.post(GLSR.action,t).done(function(e){this.el.removeClass("is-active"),this.displayResults_(e.items?e.items:e.empty),this.options.results=this.options.resultsEl.children(),this.options.resultsEl.addClass("is-active"),delete this.searchRequest}.bind(this))},onSearchKeyup_:function(e){GLSR.keys.ESC===e.which&&this.reset_(),GLSR.keys.ENTER===e.which&&(this.onSearchInput_(e),e.preventDefault())},onUnassign_:function(e){e.preventDefault();var t=jQuery(e.currentTarget).closest(".glsr-multibox-entry");t.find("a").css({color:"#c00"}),t.fadeOut("fast",(function(){t.remove()}))},reindexRows_:function(){var e=this;this.options.exclude=[],this.options.entriesEl.children("tr").each((function(t){jQuery(this).find(".glsr-string-td2").children().filter(":input").each((function(){var n=jQuery(this),i=n.attr("name").replace(/\[\d+\]/i,"["+t+"]");n.attr("name",i),n.is("[data-id]")&&e.options.exclude.push({id:n.val()})}))}))},reset_:function(){this.clearResults_(),this.options.results={},this.options.searchEl.val("")},setVisibility_:function(){var e=this.options.entriesEl.children().length>0?"remove":"add";this.options.entriesEl.parent()[e+"Class"]("glsr-hidden")}};var M=G,B=function(e){var t=this;this.options=jQuery.extend({},this.defaults,e),this.tabs=document.querySelectorAll(this.options.tabSelector),this.tabs&&(this.init_(),jQuery((function(){return t.scrollIntoView_(jQuery(localStorage.getItem("glsr-expand")))})))};B.prototype={defaults:{expandSelectors:".glsr-nav-view, .glsr-notice",tabSelector:".glsr-nav-tab"},init_:function(){var e=this;[].forEach.call(e.tabs,function(t,n){t.addEventListener("click",e.onClick_.bind(e)),t.addEventListener("touchend",e.onClick_.bind(e))}.bind(e)),jQuery(e.options.expandSelectors).on("click","a",(function(){var t=this.dataset.expand;localStorage.setItem("glsr-expand",t),e.scrollIntoView_(jQuery(t))}))},onClick_:function(e){e.preventDefault(),this.toggleCollapsibleViewSections_(e.currentTarget)},scrollIntoView_:function(e){if(e.length){var t=e.closest(".glsr-nav-view"),n=e.closest(".glsr-card");t.removeClass("collapsed"),this.toggleCollapsibleSections_(t),t.removeClass("collapsed"),n.removeClass("closed").find(".glsr-accordion-trigger").attr("aria-expanded",!0),window.setTimeout((function(){localStorage.removeItem("glsr-expand"),jQuery("#glsr-notices .notice").length||n[0].scrollIntoView({behavior:"smooth",block:n.outerHeight()>=window.innerHeight?"start":"center"})}),10)}},toggleCollapsibleSections_:function(e){var t=e.hasClass("collapsed")?"remove":"add";e[t+"Class"]("collapsed").find(".glsr-card.postbox")[t+"Class"]("closed").find(".glsr-accordion-trigger").attr("aria-expanded","add"!==t)},toggleCollapsibleViewSections_:function(e){if(e.classList.contains("nav-tab-active")){var t=jQuery("#"+e.dataset.id);this.toggleCollapsibleSections_(t)}}};var V=B,W=function(e){this.current=null,this.editor=null,this.create=function(e){if(this.editor=tinymce.get(e),this.editor){var t={_action:"mce-shortcode",shortcode:this.current};new o(t).post(this.handleResponse_.bind(this))}};var t=document.querySelectorAll(e);t.length&&t.forEach(function(e){var t=e.querySelector("button"),n=e.querySelectorAll(".mce-menu-item");t&&n.length&&this.init_(e,t,n)}.bind(this))};W.prototype={attributes_:{},hiddenKeys_:[],init_:function(e,t,n){document.addEventListener("click",this.onClose_.bind(this,e,t)),t.addEventListener("click",this.onToggle_.bind(this,e,t)),n.forEach(function(n){n.addEventListener("click",this.onTrigger_.bind(this,e,t))}.bind(this))},initTinymceEditor_:function(){tinymce.execCommand("GLSR_Shortcode")},initQuicktagsEditor_:function(){jQuery("#scTemp").length?this.initTinymceEditor_():(jQuery("body").append('<textarea id="scTemp" style="display:none!important;"/>'),tinymce.init({elements:"scTemp",external_plugins:GLSR.tinymce,mode:"exact",plugins:["glsr_shortcode","wplink"]}),setTimeout(function(){this.initTinymceEditor_()}.bind(this),200))},close_:function(e,t){jQuery(t).removeClass("active"),jQuery(e).find(".glsr-mce-menu").hide()},destroy_:function(){var e=jQuery("#scTemp");e.length&&(tinymce.get("scTemp").remove(),e.remove()),this.attributes_={},this.hiddenKeys_=[]},handleResponse_:function(e){if(e){if(0===e.body.length)return window.send_to_editor("["+e.shortcode+"]"),void this.destroy_();var t=this.responsePopup_(e);e.ok.constructor===Array&&(t.buttons[0].text=e.ok[0],t.buttons[0].onclick="close",delete t.buttons[1]),this.editor.windowManager.open(t)}},normalize_:function(e){for(var t in this.attributes_=e,this.hiddenKeys_=[],e)e.hasOwnProperty(t)&&(this.normalizeDisplay_(t),this.normalizeHide_(t),this.normalizeId_(t));this.attributes_.hide=this.hiddenKeys_.join(",")},normalizeDisplay_:function(e){"display"!==e||jQuery.isNumeric(this.attributes_[e])||(this.attributes_[e]="")},normalizeHide_:function(e){if(GLSR.hideoptions.hasOwnProperty(this.current)){var t=e.substring(5);-1!==Object.keys(GLSR.hideoptions[this.current]).indexOf(t)&&(this.attributes_[e]&&this.hiddenKeys_.push(t),delete this.attributes_[e])}},normalizeId_:function(e){"id"===e&&(this.attributes_[e]=(+new Date).toString(36))},onClose_:function(e,t,n){jQuery(n.target).closest(jQuery(e)).length||this.close_(e,t)},onToggle_:function(e,t,n){n.preventDefault(),n.currentTarget.classList.contains("active")?this.close_(e,t):this.open_(e,t)},onTrigger_:function(e,t,n){n.preventDefault(),this.current=n.currentTarget.dataset.shortcode,this.current&&(tinymce.get(window.wpActiveEditor)?this.initTinymceEditor_():this.initQuicktagsEditor_(),setTimeout(function(){this.close_(e,t)}.bind(this),100))},open_:function(e,t){jQuery(t).addClass("active"),jQuery(e).find(".glsr-mce-menu").show()},responseButtons_:function(e){return[{classes:"btn glsr-btn primary",onclick:this.submitShortcode_.bind(this),text:e.ok},{onclick:"close",text:e.close}]},responsePopup_:function(e){return{title:e.title,body:e.body,classes:"glsr-mce-popup",minWidth:320,buttons:this.responseButtons_(e),onsubmit:this.sendToEditor_.bind(this,e),onclose:this.destroy_.bind(this)}},sendToEditor_:function(e,t){var n="";for(var i in this.normalize_(t.data),this.attributes_)this.attributes_.hasOwnProperty(i)&&""!==this.attributes_[i]&&(n+=" "+i+'="'+this.attributes_[i]+'"');window.send_to_editor("["+e.shortcode+n+"]")},submitShortcode_:function(){var e=this.editor.windowManager.getWindows()[0];this.validateAttributes_(e)&&e.submit()},validateAttributes_:function(e){var t,n=!0,i=GLSR.shortcodes[this.current];for(var s in i)if(i.hasOwnProperty(s)&&void 0!==(t=e.find("#"+s)[0])&&""===t.state.data.value){n=!1,alert(i[s]);break}return n}};var U=W;function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(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)}}function X(e,t,n){return t&&K(e.prototype,t),n&&K(e,n),e}var Z={classNames:{active:"gl-active",base:"gl-star-rating",selected:"gl-selected"},clearable:!0,maxStars:10,prebuilt:!1,stars:null,tooltip:"Select a Rating"},J=function(e,t,n){e.classList[t?"add":"remove"](n)},ee=function(e){var t=document.createElement("span");for(var n in e=e||{})t.setAttribute(n,e[n]);return t},te=function(e,t,n){var i=ee(n);return e.parentNode.insertBefore(i,t?e.nextSibling:e),i},ne=function e(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s={};return n.forEach((function(t){Object.keys(t||{}).forEach((function(i){if(void 0!==n[0][i]){var r=t[i];"Object"!==ie(r)||"Object"!==ie(s[i])?s[i]=r:s[i]=e(s[i],r)}}))})),s},ie=function(e){return{}.toString.call(e).slice(8,-1)},se=function(){function e(t,n){var i,s,r;Y(this,e),this.direction=window.getComputedStyle(t,null).getPropertyValue("direction"),this.el=t,this.events={change:this.onChange.bind(this),keydown:this.onKeyDown.bind(this),mousedown:this.onPointerDown.bind(this),mouseleave:this.onPointerLeave.bind(this),mousemove:this.onPointerMove.bind(this),reset:this.onReset.bind(this),touchend:this.onPointerDown.bind(this),touchmove:this.onPointerMove.bind(this)},this.indexActive=null,this.indexSelected=null,this.props=n,this.tick=null,this.ticking=!1,this.values=function(e){var t=[];return[].forEach.call(e.options,(function(e){var n=parseInt(e.value,10)||0;n>0&&t.push({index:e.index,text:e.text,value:n})})),t.sort((function(e,t){return e.value-t.value}))}(t),this.widgetEl=null,this.el.widget&&this.el.widget.destroy(),i=this.values.length,s=1,r=this.props.maxStars,/^\d+$/.test(i)&&s<=i&&i<=r?this.build():this.destroy()}return X(e,[{key:"build",value:function(){this.destroy(),this.buildWidget(),this.selectValue(this.indexSelected=this.selected(),!1),this.handleEvents("add"),this.el.widget=this}},{key:"buildWidget",value:function(){var e,t,n=this;this.props.prebuilt?(e=this.el.parentNode,t=e.querySelector("."+this.props.classNames.base+"--stars")):((e=te(this.el,!1,{class:this.props.classNames.base})).appendChild(this.el),t=te(this.el,!0,{class:this.props.classNames.base+"--stars"}),this.values.forEach((function(e,i){var s=ee({"data-index":i,"data-value":e.value});"function"==typeof n.props.stars&&n.props.stars.call(n,s,e,i),[].forEach.call(s.children,(function(e){return e.style.pointerEvents="none"})),t.innerHTML+=s.outerHTML}))),e.dataset.starRating="",e.classList.add(this.props.classNames.base+"--"+this.direction),this.props.tooltip&&t.setAttribute("role","tooltip"),this.widgetEl=t}},{key:"changeIndexTo",value:function(e,t){var n=this;if(this.indexActive!==e||t){if([].forEach.call(this.widgetEl.children,(function(t,i){J(t,i<=e,n.props.classNames.active),J(t,i===n.indexSelected,n.props.classNames.selected)})),this.widgetEl.setAttribute("data-rating",e+1),"function"==typeof this.props.stars||this.props.prebuilt||(this.widgetEl.classList.remove("s"+10*(this.indexActive+1)),this.widgetEl.classList.add("s"+10*(e+1))),this.props.tooltip){var i,s=e<0?this.props.tooltip:null===(i=this.values[e])||void 0===i?void 0:i.text;this.widgetEl.setAttribute("aria-label",s)}this.indexActive=e}this.ticking=!1}},{key:"destroy",value:function(){this.indexActive=null,this.indexSelected=this.selected();var e=this.el.parentNode;e.classList.contains(this.props.classNames.base)&&(this.props.prebuilt?(this.widgetEl=e.querySelector("."+this.props.classNames.base+"--stars"),e.classList.remove(this.props.classNames.base+"--"+this.direction),delete e.dataset.starRating):e.parentNode.replaceChild(this.el,e),this.handleEvents("remove")),delete this.el.widget}},{key:"eventListener",value:function(e,t,n,i){var s=this;n.forEach((function(n){return e[t+"EventListener"](n,s.events[n],i||!1)}))}},{key:"handleEvents",value:function(e){var t=this.el.closest("form");t&&"FORM"===t.tagName&&this.eventListener(t,e,["reset"]),this.eventListener(this.el,e,["change"]),"add"===e&&this.el.disabled||(this.eventListener(this.el,e,["keydown"]),this.eventListener(this.widgetEl,e,["mousedown","mouseleave","mousemove","touchend","touchmove"],!1))}},{key:"indexFromEvent",value:function(e){var t,n,i=(null===(t=e.touches)||void 0===t?void 0:t[0])||(null===(n=e.changedTouches)||void 0===n?void 0:n[0])||e,s=document.elementFromPoint(i.clientX,i.clientY);return s.parentNode===this.widgetEl?[].slice.call(s.parentNode.children).indexOf(s):this.indexActive}},{key:"onChange",value:function(){this.changeIndexTo(this.selected(),!0)}},{key:"onKeyDown",value:function(e){var t=e.key.slice(5);if(~["Left","Right"].indexOf(t)){e.preventDefault();var n="Left"===t?-1:1;"rtl"===this.direction&&(n*=-1);var i=this.values.length-1,s=Math.min(Math.max(this.selected()+n,-1),i);this.selectValue(s,!0)}}},{key:"onPointerDown",value:function(e){e.preventDefault();var t=this.indexFromEvent(e);this.props.clearable&&t===this.indexSelected&&(t=-1),this.selectValue(t,!0)}},{key:"onPointerLeave",value:function(e){var t=this;e.preventDefault(),cancelAnimationFrame(this.tick),requestAnimationFrame((function(){return t.changeIndexTo(t.indexSelected)}))}},{key:"onPointerMove",value:function(e){var t=this;e.preventDefault(),this.ticking||(this.tick=requestAnimationFrame((function(){return t.changeIndexTo(t.indexFromEvent(e))})),this.ticking=!0)}},{key:"onReset",value:function(){var e,t=this.valueIndex(null===(e=this.el.querySelector("[selected]"))||void 0===e?void 0:e.value);this.selectValue(t||-1,!1)}},{key:"selected",value:function(){return this.valueIndex(this.el.value)}},{key:"selectValue",value:function(e,t){var n;this.el.value=(null===(n=this.values[e])||void 0===n?void 0:n.value)||"",this.indexSelected=this.selected(),!1===t?this.changeIndexTo(this.selected(),!0):this.el.dispatchEvent(new Event("change"))}},{key:"valueIndex",value:function(e){return this.values.findIndex((function(t){return t.value===+e}))}}]),e}(),re=function(){function e(t,n){Y(this,e),this.destroy=this.destroy.bind(this),this.props=n,this.rebuild=this.rebuild.bind(this),this.selector=t,this.widgets=[],this.build()}return X(e,[{key:"build",value:function(){var e=this;this.queryElements(this.selector).forEach((function(t){var n=ne(Z,e.props,JSON.parse(t.getAttribute("data-options")));"SELECT"!==t.tagName||t.widget||(!n.prebuilt&&t.parentNode.classList.contains(n.classNames.base)&&e.unwrap(t),e.widgets.push(new se(t,n)))}))}},{key:"destroy",value:function(){this.widgets.forEach((function(e){return e.destroy()})),this.widgets=[]}},{key:"queryElements",value:function(e){return"HTMLSelectElement"===ie(e)?[e]:"NodeList"===ie(e)?[].slice.call(e):"String"===ie(e)?[].slice.call(document.querySelectorAll(e)):[]}},{key:"rebuild",value:function(){this.destroy(),this.build()}},{key:"unwrap",value:function(e){var t=e.parentNode,n=t.parentNode;n.insertBefore(e,t),n.removeChild(t)}}]),e}(),oe={classNames:{base:"glsr-star-rating"},clearable:!1,tooltip:!1},ae=function(e){var t=document.querySelectorAll(e);t.length&&t.forEach(function(e){e.addEventListener("click",this.onClick_)}.bind(this))};ae.prototype={onClick_:function(e){var t=e.currentTarget.href.match(/post=([0-9]+)/),n=e.currentTarget.href.match(/action=([a-z]+)/);if(null!==t&&null!==n){var i={_action:"toggle-status",_nonce:GLSR.nonce["toggle-status"],post_id:t[1],status:n[1]};jQuery(e.target).closest("tr").find(".locked-indicator").addClass("spinner is-active"),new o(i,e).post((function(t){if(t.class){var n=jQuery(e.target);n.closest("tr").find(".locked-indicator").removeClass("spinner is-active"),n.closest("tr").removeClass("status-pending status-publish").addClass(t.class),n.closest("td.column-title").find("strong").html(t.link),t.counts&&(n.closest(".wrap").find("ul.subsubsub").html(t.counts),jQuery("#menu-posts-site-review").find(".awaiting-mod").removeClass().addClass("awaiting-mod count-"+t.pending).find(".unapproved-count").html(t.pending))}}))}}};var le=ae,ce=function(){this.button=jQuery("button#sync-reviews"),this.progressbar=jQuery(".glsr-progress"),this.service=null,jQuery("form.glsr-form-sync").on("click","#sync-reviews",this.onSync_.bind(this)),jQuery(document).on("wp-window-resized",this.onWindowResize_),jQuery(window).on("hashchange",this.onWindowResize_),this.onWindowResize_()};ce.prototype={finishSync_:function(e){jQuery(".service-"+this.service+" td.column-last_sync").text(e.last_sync),jQuery(".service-"+this.service+" td.column-total_fetched a").text(e.total),this.watchSyncStatus_(!1)},onSync_:function(e){e.preventDefault(),this.service=jQuery('[name="'+GLSR.nameprefix+'[service]"]').val(),this.service&&(this.watchSyncStatus_(!0),this.syncFetch_())},onWindowResize_:function(){var e=jQuery(".glsr-progress").width();e&&jQuery(".glsr-progress span").width(e)},syncFetch_:function(){var e={_action:"sync-reviews",service:this.service,stage:"fetch"};new o(e).post(this.syncProgress_.bind(this))},syncProgress_:function(e){var t={_action:"sync-reviews",job_id:e.job_id,service:this.service,stage:"progress"},n=e.finished?this.syncReviews_.bind(this,e):this.syncProgress_.bind(this);this.updateMessage_(e.message),this.updateProgress_(e.percent),setTimeout((function(){new o(t).post(n)}),1500)},syncReviews_:function(e){var t=0;try{t=e.meta.pagination.current_page}catch(e){}var n={_action:"sync-reviews",page:t+1,service:this.service,stage:"reviews"};this.updateMessage_(e.message),e.percent_synced&&e.percent_synced>=100?this.finishSync_(e):new o(n).post(this.syncReviews_.bind(this))},updateMessage_:function(e){jQuery(".glsr-progress-status",this.progressbar).text(e)},updateProgress_:function(e){e=(e||0)+"%",jQuery(".glsr-progress-bar",this.progressbar).outerWidth(e)},watchSyncStatus_:function(e){if(!0===e&&(this.updateMessage_(this.progressbar.data("active-text")),this.updateProgress_(),this.button.prop("disabled",!0),window.requestAnimationFrame(function(){this.progressbar.addClass("active")}.bind(this))),!1===e)return this.service=null,this.button.prop("disabled",!1),void this.progressbar.removeClass("active");window.requestAnimationFrame(this.watchSyncStatus_.bind(this))}};var ue=ce,de=function(e){this.options=jQuery.extend({},this.defaults,e),this.active=document.querySelector("input[name=_active_tab]"),this.refererInputs=jQuery("input[name=_wp_http_referer]"),this.sections=document.querySelectorAll(this.options.viewSectionSelector),this.subsubsub=document.querySelectorAll(this.options.viewSubsubsub),this.tabs=document.querySelectorAll(this.options.tabSelector),this.views=document.querySelectorAll(this.options.viewSelector),this.active&&this.refererInputs.length&&this.tabs&&this.views&&this.init_()};de.prototype={defaults:{smartLinks:".glsr-card a, #glsr-notices a",tabSelector:".glsr-nav-tab",viewSelector:".glsr-nav-view",viewSectionSelector:".glsr-nav-view-section",viewSubsubsub:".glsr-subsubsub a"},init_:function(){var e=this;jQuery(this.options.tabSelector).each((function(t,n){var i=n.getAttribute("href"),s=e.queryHref_(n,"tab"),r=e.queryLocation_("tab");null===r&&0===t&&(r=s,history.replaceState({href:i,tab:s},"",i),e.refererInputs.val(i)),r===s&&e.setActiveTab_(s)})),jQuery(window).on("popstate",this.onPopstate_.bind(this)),jQuery(this.options.smartLinks).on("click",this.onClickLink_.bind(this)),jQuery(this.options.tabSelector+","+this.options.viewSubsubsub).on("click",this.onClick_.bind(this))},onClick_:function(e){var t=e.currentTarget,n=t.getAttribute("href"),i=this.queryHref_(t,"tab");i&&(history.pushState({href:n,tab:i},"",n),this.refererInputs.val(n),this.setActiveTab_(i),e.preventDefault(),t.blur())},onClickLink_:function(e){var t=e.currentTarget,n=this.queryLocation_("page"),i=this.queryLocation_("postType"),s=this.queryLocation_("tab"),r=this.queryHref_(t,"page"),o=this.queryHref_(t,"postType"),a=this.queryHref_(t,"tab");if(r===n&&o===i&&a){var l=t.getAttribute("href");history.pushState({href:l,tab:a},"",l),this.refererInputs.val(l),this.setActiveTab_(a),a!==s&&window.scrollTo(0,0),e.preventDefault()}},onPopstate_:function(e){var t=e.originalEvent.state;t&&t.tab&&t.href&&(this.refererInputs.val(t.href),this.setActiveTab_(t.tab))},getAction_:function(e){return e?"add":"remove"},queryHref_:function(e,t){return new URL(e.getAttribute("href")).searchParams.get(t)},queryLocation_:function(e){return new URL(location.href).searchParams.get(e)},setActiveTab_:function(e){for(var t=0;t<this.views.length;t++)if(e===this.views[t].id){this.setTab_(this.tabs[t]);break}},setSubsubsub_:function(){var e=this,t=0;[].forEach.call(this.subsubsub,(function(n,i){n.classList.remove("current"),e.queryHref_(n,"sub")===e.queryLocation_("sub")&&(t=i)})),this.subsubsub[t]&&this.subsubsub[t].classList.add("current"),[].forEach.call(this.sections,(function(n,i){var s=e.getAction_(i!==t);n.classList[s]("ui-tabs-hide")}))},setTab_:function(e){var t=this;[].forEach.call(this.tabs,(function(n,i){var s=t.getAction_(n===e);"add"===s&&(t.active.value=t.views[i].id,t.setView_(i)),n.classList[s]("nav-tab-active")}))},setView_:function(e){var t=this;[].forEach.call(this.views,(function(n,i){var s=t.getAction_(i!==e);n.classList[s]("ui-tabs-hide"),t.setSubsubsub_()}))}};var pe=de,fe=function(){var e=document.querySelector("#contentdiv > textarea");e&&(this.resize_(e),jQuery(document).on("wp-window-resized.editor-expand",function(){this.resize_(e)}.bind(this)))};fe.prototype={resize_:function(e){var t=e.scrollHeight>320?e.scrollHeight:320;e.style.height="auto",e.style.height=t+"px"}};var he=fe,ge=function(){jQuery("form").on("click","[data-ajax-click]",this.onAjaxClick_.bind(this)),jQuery(".glsr-button").on("click",this.onExpand_)};ge.prototype={onAjaxClick_:function(e){var t=jQuery(e.currentTarget),n=t.closest("form"),i=this;n.find("input[data-alt]").val(void 0===t.data("alt")?0:1),new o({},e,n).post((function(e,n){void 0!==t.data("console")&&n&&jQuery("#glsr-log-file").val(e.console),void 0!==t.data("ajax-scroll")&&jQuery("html, body").animate({scrollTop:0},500),t.closest("[data-ajax-hide]").css({backgroundColor:"rgba(74,184,102,.25)"}).fadeOut("normal",(function(){jQuery(this).remove()})),jQuery(".glsr-notice a").on("click",i.onExpand_),jQuery('.glsr-notice[data-notice="'+t.data("remove-notice")+'"]').remove()}))},onExpand_:function(e){var t=jQuery(e.currentTarget);t.data("expand")&&localStorage.setItem("glsr-expand",t.data("expand"))}};var ve=ge;function me(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){return e instanceof me(e).Element||e instanceof Element}function be(e){return e instanceof me(e).HTMLElement||e instanceof HTMLElement}function we(e){return"undefined"!=typeof ShadowRoot&&(e instanceof me(e).ShadowRoot||e instanceof ShadowRoot)}var _e=Math.max,xe=Math.min,ke=Math.round;function Ee(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Se(){return!/^((?!chrome|android).)*safari/i.test(Ee())}function je(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,r=1;t&&be(e)&&(s=e.offsetWidth>0&&ke(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&ke(i.height)/e.offsetHeight||1);var o=(ye(e)?me(e):window).visualViewport,a=!Se()&&n,l=(i.left+(a&&o?o.offsetLeft:0))/s,c=(i.top+(a&&o?o.offsetTop:0))/r,u=i.width/s,d=i.height/r;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Ce(e){var t=me(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ae(e){return e?(e.nodeName||"").toLowerCase():null}function Le(e){return((ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function Te(e){return je(Le(e)).left+Ce(e).scrollLeft}function Oe(e){return me(e).getComputedStyle(e)}function Re(e){var t=Oe(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function Pe(e,t,n){void 0===n&&(n=!1);var i,s,r=be(t),o=be(t)&&function(e){var t=e.getBoundingClientRect(),n=ke(t.width)/e.offsetWidth||1,i=ke(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=Le(t),l=je(e,o,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ae(t)||Re(a))&&(c=(i=t)!==me(i)&&be(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:Ce(i)),be(t)?((u=je(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Te(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Qe(e){var t=je(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Fe(e){return"html"===Ae(e)?e:e.assignedSlot||e.parentNode||(we(e)?e.host:null)||Le(e)}function De(e){return["html","body","#document"].indexOf(Ae(e))>=0?e.ownerDocument.body:be(e)&&Re(e)?e:De(Fe(e))}function ze(e,t){var n;void 0===t&&(t=[]);var i=De(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),r=me(i),o=s?[r].concat(r.visualViewport||[],Re(i)?i:[]):i,a=t.concat(o);return s?a:a.concat(ze(Fe(o)))}function qe(e){return["table","td","th"].indexOf(Ae(e))>=0}function Ie(e){return be(e)&&"fixed"!==Oe(e).position?e.offsetParent:null}function Ne(e){for(var t=me(e),n=Ie(e);n&&qe(n)&&"static"===Oe(n).position;)n=Ie(n);return n&&("html"===Ae(n)||"body"===Ae(n)&&"static"===Oe(n).position)?t:n||function(e){var t=/firefox/i.test(Ee());if(/Trident/i.test(Ee())&&be(e)&&"fixed"===Oe(e).position)return null;var n=Fe(e);for(we(n)&&(n=n.host);be(n)&&["html","body"].indexOf(Ae(n))<0;){var i=Oe(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var $e="top",He="bottom",Ge="right",Me="left",Be="auto",Ve=[$e,He,Ge,Me],We="start",Ue="end",Ye="clippingParents",Ke="viewport",Xe="popper",Ze="reference",Je=Ve.reduce((function(e,t){return e.concat([t+"-"+We,t+"-"+Ue])}),[]),et=[].concat(Ve,[Be]).reduce((function(e,t){return e.concat([t,t+"-"+We,t+"-"+Ue])}),[]),tt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function nt(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||s(e)})),i}var it={placement:"bottom",modifiers:[],strategy:"absolute"};function st(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function rt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,r=void 0===s?it:s;return function(e,t,n){void 0===n&&(n=r);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},it,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},r,a.options,s),a.scrollParents={reference:ye(e)?ze(e):e.contextElement?ze(e.contextElement):[],popper:ze(t)};var o,c,p=function(e){var t=nt(e);return tt.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((o=[].concat(i,a.options.modifiers),c=o.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=p.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var r=s({state:a,name:t,instance:u,options:i}),o=function(){};l.push(r||o)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(st(t,n)){a.rects={reference:Pe(t,Ne(n),"fixed"===a.options.strategy),popper:Qe(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],r=s.fn,o=s.options,l=void 0===o?{}:o,d=s.name;"function"==typeof r&&(a=r({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(s())}))}))),o}),destroy:function(){d(),c=!0}};if(!st(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var ot={passive:!0};var at={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,r=void 0===s||s,o=i.resize,a=void 0===o||o,l=me(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",n.update,ot)})),a&&l.addEventListener("resize",n.update,ot),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ot)})),a&&l.removeEventListener("resize",n.update,ot)}},data:{}};function lt(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function ut(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dt(e){var t,n=e.reference,i=e.element,s=e.placement,r=s?lt(s):null,o=s?ct(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case $e:t={x:a,y:n.y-i.height};break;case He:t={x:a,y:n.y+n.height};break;case Ge:t={x:n.x+n.width,y:l};break;case Me:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?ut(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case We:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Ue:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}var pt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ft(e){var t,n=e.popper,i=e.popperRect,s=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=o.x,f=void 0===p?0:p,h=o.y,g=void 0===h?0:h,v="function"==typeof u?u({x:f,y:g}):{x:f,y:g};f=v.x,g=v.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=Me,w=$e,_=window;if(c){var x=Ne(n),k="clientHeight",E="clientWidth";if(x===me(n)&&"static"!==Oe(x=Le(n)).position&&"absolute"===a&&(k="scrollHeight",E="scrollWidth"),s===$e||(s===Me||s===Ge)&&r===Ue)w=He,g-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[k])-i.height,g*=l?1:-1;if(s===Me||(s===$e||s===He)&&r===Ue)b=Ge,f-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[E])-i.width,f*=l?1:-1}var S,j=Object.assign({position:a},c&&pt),C=!0===u?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:ke(n*s)/s||0,y:ke(i*s)/s||0}}({x:f,y:g},me(n)):{x:f,y:g};return f=C.x,g=C.y,l?Object.assign({},j,((S={})[w]=y?"0":"",S[b]=m?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",S)):Object.assign({},j,((t={})[w]=y?g+"px":"",t[b]=m?f+"px":"",t.transform="",t))}var ht={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];be(s)&&Ae(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});be(i)&&Ae(i)&&(Object.assign(i.style,r),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var gt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,r=void 0===s?[0,0]:s,o=et.reduce((function(e,n){return e[n]=function(e,t,n){var i=lt(e),s=[Me,$e].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[Me,Ge].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,t.rects,r),e}),{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}},vt={left:"right",right:"left",bottom:"top",top:"bottom"};function mt(e){return e.replace(/left|right|bottom|top/g,(function(e){return vt[e]}))}var yt={start:"end",end:"start"};function bt(e){return e.replace(/start|end/g,(function(e){return yt[e]}))}function wt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&we(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function _t(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xt(e,t,n){return t===Ke?_t(function(e,t){var n=me(e),i=Le(e),s=n.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=Se();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+Te(e),y:l}}(e,n)):ye(t)?function(e,t){var n=je(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):_t(function(e){var t,n=Le(e),i=Ce(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=_e(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=_e(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Te(e),l=-i.scrollTop;return"rtl"===Oe(s||n).direction&&(a+=_e(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(Le(e)))}function kt(e,t,n,i){var s="clippingParents"===t?function(e){var t=ze(Fe(e)),n=["absolute","fixed"].indexOf(Oe(e).position)>=0&&be(e)?Ne(e):e;return ye(n)?t.filter((function(e){return ye(e)&&wt(e,n)&&"body"!==Ae(e)})):[]}(e):[].concat(t),r=[].concat(s,[n]),o=r[0],a=r.reduce((function(t,n){var s=xt(e,n,i);return t.top=_e(s.top,t.top),t.right=xe(s.right,t.right),t.bottom=xe(s.bottom,t.bottom),t.left=_e(s.left,t.left),t}),xt(e,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Et(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function St(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function jt(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,r=n.strategy,o=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?Ye:a,c=n.rootBoundary,u=void 0===c?Ke:c,d=n.elementContext,p=void 0===d?Xe:d,f=n.altBoundary,h=void 0!==f&&f,g=n.padding,v=void 0===g?0:g,m=Et("number"!=typeof v?v:St(v,Ve)),y=p===Xe?Ze:Xe,b=e.rects.popper,w=e.elements[h?y:p],_=kt(ye(w)?w:w.contextElement||Le(e.elements.popper),l,u,o),x=je(e.elements.reference),k=dt({reference:x,element:b,strategy:"absolute",placement:s}),E=_t(Object.assign({},b,k)),S=p===Xe?E:x,j={top:_.top-S.top+m.top,bottom:S.bottom-_.bottom+m.bottom,left:_.left-S.left+m.left,right:S.right-_.right+m.right},C=e.modifiersData.offset;if(p===Xe&&C){var A=C[s];Object.keys(j).forEach((function(e){var t=[Ge,He].indexOf(e)>=0?1:-1,n=[$e,He].indexOf(e)>=0?"y":"x";j[e]+=A[n]*t}))}return j}function Ct(e,t,n){return _e(e,xe(t,n))}var At={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,g=void 0===h?0:h,v=jt(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),m=lt(t.placement),y=ct(t.placement),b=!y,w=ut(m),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,E=t.rects.popper,S="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,j="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(x){if(r){var L,T="y"===w?$e:Me,O="y"===w?He:Ge,R="y"===w?"height":"width",P=x[w],Q=P+v[T],F=P-v[O],D=f?-E[R]/2:0,z=y===We?k[R]:E[R],q=y===We?-E[R]:-k[R],I=t.elements.arrow,N=f&&I?Qe(I):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=$[T],G=$[O],M=Ct(0,k[R],N[R]),B=b?k[R]/2-D-M-H-j.mainAxis:z-M-H-j.mainAxis,V=b?-k[R]/2+D+M+G+j.mainAxis:q+M+G+j.mainAxis,W=t.elements.arrow&&Ne(t.elements.arrow),U=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Y=null!=(L=null==C?void 0:C[w])?L:0,K=P+V-Y,X=Ct(f?xe(Q,P+B-Y-U):Q,P,f?_e(F,K):F);x[w]=X,A[w]=X-P}if(a){var Z,J="x"===w?$e:Me,ee="x"===w?He:Ge,te=x[_],ne="y"===_?"height":"width",ie=te+v[J],se=te-v[ee],re=-1!==[$e,Me].indexOf(m),oe=null!=(Z=null==C?void 0:C[_])?Z:0,ae=re?ie:te-k[ne]-E[ne]-oe+j.altAxis,le=re?te+k[ne]+E[ne]-oe-j.altAxis:se,ce=f&&re?function(e,t,n){var i=Ct(e,t,n);return i>n?n:i}(ae,te,le):Ct(f?ae:ie,te,f?le:se);x[_]=ce,A[_]=ce-te}t.modifiersData[i]=A}},requiresIfExists:["offset"]};var Lt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=lt(n.placement),l=ut(a),c=[Me,Ge].indexOf(a)>=0?"height":"width";if(r&&o){var u=function(e,t){return Et("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:St(e,Ve))}(s.padding,n),d=Qe(r),p="y"===l?$e:Me,f="y"===l?He:Ge,h=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],v=Ne(r),m=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=h/2-g/2,b=u[p],w=m-d[c]-u[f],_=m/2-d[c]/2+y,x=Ct(b,_,w),k=l;n.modifiersData[i]=((t={})[k]=x,t.centerOffset=x-_,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&wt(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Tt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ot(e){return[$e,Ge,He,Me].some((function(t){return e[t]>=0}))}var Rt=rt({defaultModifiers:[at,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=dt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,r=n.adaptive,o=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:lt(t.placement),variation:ct(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ft(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ft(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ht,gt,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,g=n.allowedAutoPlacements,v=t.options.placement,m=lt(v),y=l||(m===v||!h?[mt(v)]:function(e){if(lt(e)===Be)return[];var t=mt(e);return[bt(e),t,bt(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(lt(n)===Be?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?et:l,u=ct(i),d=u?a?Je:Je.filter((function(e){return ct(e)===u})):Ve,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=jt(e,{placement:n,boundary:s,rootBoundary:r,padding:o})[lt(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,_=t.rects.popper,x=new Map,k=!0,E=b[0],S=0;S<b.length;S++){var j=b[S],C=lt(j),A=ct(j)===We,L=[$e,He].indexOf(C)>=0,T=L?"width":"height",O=jt(t,{placement:j,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=L?A?Ge:Me:A?He:$e;w[T]>_[T]&&(R=mt(R));var P=mt(R),Q=[];if(r&&Q.push(O[C]<=0),a&&Q.push(O[R]<=0,O[P]<=0),Q.every((function(e){return e}))){E=j,k=!1;break}x.set(j,Q)}if(k)for(var F=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},D=h?3:1;D>0;D--){if("break"===F(D))break}t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},At,Lt,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=jt(t,{elementContext:"reference"}),a=jt(t,{altBoundary:!0}),l=Tt(o,i),c=Tt(a,s,r),u=Ot(l),d=Ot(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Pt="tippy-content",Qt="tippy-backdrop",Ft="tippy-arrow",Dt="tippy-svg-arrow",zt={passive:!0,capture:!0},qt=function(){return document.body};function It(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function Nt(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function $t(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Ht(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function Gt(e){return[].concat(e)}function Mt(e,t){-1===e.indexOf(t)&&e.push(t)}function Bt(e){return e.split("-")[0]}function Vt(e){return[].slice.call(e)}function Wt(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Ut(){return document.createElement("div")}function Yt(e){return["Element","Fragment"].some((function(t){return Nt(e,t)}))}function Kt(e){return Nt(e,"MouseEvent")}function Xt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Zt(e){return Yt(e)?[e]:function(e){return Nt(e,"NodeList")}(e)?Vt(e):Array.isArray(e)?e:Vt(document.querySelectorAll(e))}function Jt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function en(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function tn(e){var t,n=Gt(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function nn(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function sn(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var rn={isTouch:!1},on=0;function an(){rn.isTouch||(rn.isTouch=!0,window.performance&&document.addEventListener("mousemove",ln))}function ln(){var e=performance.now();e-on<20&&(rn.isTouch=!1,document.removeEventListener("mousemove",ln)),on=e}function cn(){var e=document.activeElement;if(Xt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var un=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var dn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},pn=Object.assign({appendTo:qt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},dn,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),fn=Object.keys(pn);function hn(e){var t=(e.plugins||[]).reduce((function(t,n){var i,s=n.name,r=n.defaultValue;s&&(t[s]=void 0!==e[s]?e[s]:null!=(i=pn[s])?i:r);return t}),{});return Object.assign({},e,t)}function gn(e,t){var n=Object.assign({},t,{content:$t(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(hn(Object.assign({},pn,{plugins:t}))):fn).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},pn.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var vn=function(){return"innerHTML"};function mn(e,t){e[vn()]=t}function yn(e){var t=Ut();return!0===e?t.className=Ft:(t.className=Dt,Yt(e)?t.appendChild(e):mn(t,e)),t}function bn(e,t){Yt(t.content)?(mn(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?mn(e,t.content):e.textContent=t.content)}function wn(e){var t=e.firstElementChild,n=Vt(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Pt)})),arrow:n.find((function(e){return e.classList.contains(Ft)||e.classList.contains(Dt)})),backdrop:n.find((function(e){return e.classList.contains(Qt)}))}}function _n(e){var t=Ut(),n=Ut();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Ut();function s(n,i){var s=wn(t),r=s.box,o=s.content,a=s.arrow;i.theme?r.setAttribute("data-theme",i.theme):r.removeAttribute("data-theme"),"string"==typeof i.animation?r.setAttribute("data-animation",i.animation):r.removeAttribute("data-animation"),i.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?r.setAttribute("role",i.role):r.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||bn(o,e.props),i.arrow?a?n.arrow!==i.arrow&&(r.removeChild(a),r.appendChild(yn(i.arrow))):r.appendChild(yn(i.arrow)):a&&r.removeChild(a)}return i.className=Pt,i.setAttribute("data-state","hidden"),bn(i,e.props),t.appendChild(n),n.appendChild(i),s(e.props,e.props),{popper:t,onUpdate:s}}_n.$$tippy=!0;var xn=1,kn=[],En=[];function Sn(e,t){var n,i,s,r,o,a,l,c,u=gn(e,Object.assign({},pn,hn(Wt(t)))),d=!1,p=!1,f=!1,h=!1,g=[],v=Ht(W,u.interactiveDebounce),m=xn++,y=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),b={id:m,reference:e,popper:Ut(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(s)},setProps:function(t){0;if(b.state.isDestroyed)return;P("onBeforeUpdate",[b,t]),B();var n=b.props,i=gn(e,Object.assign({},n,Wt(t),{ignoreAttributes:!0}));b.props=i,M(),n.interactiveDebounce!==i.interactiveDebounce&&(D(),v=Ht(W,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?Gt(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");F(),R(),x&&x(n,i);b.popperInstance&&(X(),J().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));P("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=rn.isTouch&&!b.props.touch,s=It(b.props.duration,0,pn.duration);if(e||t||n||i)return;if(A().hasAttribute("disabled"))return;if(P("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,C()&&(_.style.visibility="visible");R(),N(),b.state.isMounted||(_.style.transition="none");if(C()){var r=T();Jt([r.box,r.content],0)}a=function(){var e;if(b.state.isVisible&&!h){if(h=!0,_.offsetHeight,_.style.transition=b.props.moveTransition,C()&&b.props.animation){var t=T(),n=t.box,i=t.content;Jt([n,i],s),en([n,i],"visible")}Q(),F(),Mt(En,b),null==(e=b.popperInstance)||e.forceUpdate(),P("onMount",[b]),b.props.animation&&C()&&function(e,t){H(e,t)}(s,(function(){b.state.isShown=!0,P("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=A();e=b.props.interactive&&t===qt||"parent"===t?n.parentNode:$t(t,[n]);e.contains(_)||e.appendChild(_);b.state.isMounted=!0,X(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=It(b.props.duration,1,pn.duration);if(e||t||n)return;if(P("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,d=!1,C()&&(_.style.visibility="hidden");if(D(),$(),R(!0),C()){var s=T(),r=s.box,o=s.content;b.props.animation&&(Jt([r,o],i),en([r,o],"hidden"))}Q(),F(),b.props.animation?C()&&function(e,t){H(e,(function(){!b.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&t()}))}(i,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;L().addEventListener("mousemove",v),Mt(kn,v),v(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Z(),J().forEach((function(e){e._tippy.unmount()})),_.parentNode&&_.parentNode.removeChild(_);En=En.filter((function(e){return e!==b})),b.state.isMounted=!1,P("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),B(),delete e._tippy,b.state.isDestroyed=!0,P("onDestroy",[b])}};if(!u.render)return b;var w=u.render(b),_=w.popper,x=w.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+b.id,b.popper=_,e._tippy=b,_._tippy=b;var k=y.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return M(),F(),R(),P("onCreate",[b]),u.showOnCreate&&ee(),_.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),_.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&L().addEventListener("mousemove",v)})),b;function S(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function j(){return"hold"===S()[0]}function C(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function A(){return l||e}function L(){var e=A().parentNode;return e?tn(e):document}function T(){return wn(_)}function O(e){return b.state.isMounted&&!b.state.isVisible||rn.isTouch||r&&"focus"===r.type?0:It(b.props.delay,e?0:1,pn.delay)}function R(e){void 0===e&&(e=!1),_.style.pointerEvents=b.props.interactive&&!e?"":"none",_.style.zIndex=""+b.props.zIndex}function P(e,t,n){var i;(void 0===n&&(n=!0),k.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(i=b.props)[e].apply(i,t)}function Q(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,i=_.id;Gt(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var s=t&&t.replace(i,"").trim();s?e.setAttribute(n,s):e.removeAttribute(n)}}))}}function F(){!E&&b.props.aria.expanded&&Gt(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")}))}function D(){L().removeEventListener("mousemove",v),kn=kn.filter((function(e){return e!==v}))}function z(t){if(!rn.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!sn(_,n)){if(Gt(b.props.triggerTarget||e).some((function(e){return sn(e,n)}))){if(rn.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout((function(){p=!1})),b.state.isMounted||$())}}}function q(){f=!0}function I(){f=!1}function N(){var e=L();e.addEventListener("mousedown",z,!0),e.addEventListener("touchend",z,zt),e.addEventListener("touchstart",I,zt),e.addEventListener("touchmove",q,zt)}function $(){var e=L();e.removeEventListener("mousedown",z,!0),e.removeEventListener("touchend",z,zt),e.removeEventListener("touchstart",I,zt),e.removeEventListener("touchmove",q,zt)}function H(e,t){var n=T().box;function i(e){e.target===n&&(nn(n,"remove",i),t())}if(0===e)return t();nn(n,"remove",o),nn(n,"add",i),o=i}function G(t,n,i){void 0===i&&(i=!1),Gt(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),g.push({node:e,eventType:t,handler:n,options:i})}))}function M(){var e;j()&&(G("touchstart",V,{passive:!0}),G("touchend",U,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(G(e,V),e){case"mouseenter":G("mouseleave",U);break;case"focus":G(un?"focusout":"blur",Y);break;case"focusin":G("focusout",Y)}}))}function B(){g.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,s=e.options;t.removeEventListener(n,i,s)})),g=[]}function V(e){var t,n=!1;if(b.state.isEnabled&&!K(e)&&!p){var i="focus"===(null==(t=r)?void 0:t.type);r=e,l=e.currentTarget,F(),!b.state.isVisible&&Kt(e)&&kn.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!i&&te(e)}}function W(e){var t=e.target,n=A().contains(t)||_.contains(t);if("mousemove"!==e.type||!n){var i=J().concat(_).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,s=e.popperState,r=e.props.interactiveBorder,o=Bt(s.placement),a=s.modifiersData.offset;if(!a)return!0;var l="bottom"===o?a.top.y:0,c="top"===o?a.bottom.y:0,u="right"===o?a.left.x:0,d="left"===o?a.right.x:0,p=t.top-i+l>r,f=i-t.bottom-c>r,h=t.left-n+u>r,g=n-t.right-d>r;return p||f||h||g}))})(i,e)&&(D(),te(e))}}function U(e){K(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function Y(e){b.props.trigger.indexOf("focusin")<0&&e.target!==A()||b.props.interactive&&e.relatedTarget&&_.contains(e.relatedTarget)||te(e)}function K(e){return!!rn.isTouch&&j()!==e.type.indexOf("touch")>=0}function X(){Z();var t=b.props,n=t.popperOptions,i=t.placement,s=t.offset,r=t.getReferenceClientRect,o=t.moveTransition,l=C()?wn(_).arrow:null,c=r?{getBoundingClientRect:r,contextElement:r.contextElement||A()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(C()){var n=T().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:s}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!o}},u];C()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=Rt(c,_,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:d}))}function Z(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function J(){return Vt(_.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&P("onTrigger",[b,e]),N();var t=O(!0),i=S(),s=i[0],r=i[1];rn.isTouch&&"hold"===s&&r&&(t=r),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),P("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=O(!1);t?i=setTimeout((function(){b.state.isVisible&&b.hide()}),t):s=requestAnimationFrame((function(){b.hide()}))}}else $()}}function jn(e,t){void 0===t&&(t={});var n=pn.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",an,zt),window.addEventListener("blur",cn);var i=Object.assign({},t,{plugins:n}),s=Zt(e).reduce((function(e,t){var n=t&&Sn(t,i);return n&&e.push(n),e}),[]);return Yt(e)?s[0]:s}jn.defaultProps=pn,jn.setDefaultProps=function(e){Object.keys(e).forEach((function(t){pn[t]=e[t]}))},jn.currentInput=rn;Object.assign({},ht,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});var Cn={clientX:0,clientY:0},An=[];function Ln(e){var t=e.clientX,n=e.clientY;Cn={clientX:t,clientY:n}}var Tn={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=tn(e.props.triggerTarget||t),i=!1,s=!1,r=!0,o=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){n.addEventListener("mousemove",d)}function c(){n.removeEventListener("mousemove",d)}function u(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function d(n){var i=!n.target||t.contains(n.target),s=e.props.followCursor,r=n.clientX,o=n.clientY,a=t.getBoundingClientRect(),l=r-a.left,c=o-a.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=r,i=o;"initial"===s&&(n=e.left+l,i=e.top+c);var a="horizontal"===s?e.top:i,u="vertical"===s?e.right:n,d="horizontal"===s?e.bottom:i,p="vertical"===s?e.left:n;return{width:u-p,height:d-a,top:a,right:u,bottom:d,left:p}}})}function p(){e.props.followCursor&&(An.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",Ln)}(n))}function f(){0===(An=An.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",Ln)}(n)}return{onCreate:p,onDestroy:f,onBeforeUpdate:function(){o=e.props},onAfterUpdate:function(t,n){var r=n.followCursor;i||void 0!==r&&o.followCursor!==r&&(f(),r?(p(),!e.state.isMounted||s||a()||l()):(c(),u()))},onMount:function(){e.props.followCursor&&!s&&(r&&(d(Cn),r=!1),a()||l())},onTrigger:function(e,t){Kt(t)&&(Cn={clientX:t.clientX,clientY:t.clientY}),s="focus"===t.type},onHidden:function(){e.props.followCursor&&(u(),c(),r=!0)}}}};jn.setDefaultProps({render:_n});var On=jn,Rn=function(){this.el=jQuery("#verified-status-select"),this.el&&(this.cancel=jQuery("a.cancel-verified-status"),this.cancel.on("click",this.onClickCancel_.bind(this)),this.edit=jQuery("a.edit-verified-status"),this.edit.on("click",this.onClickEdit_.bind(this)),this.save=jQuery("a.save-verified-status"),this.save.on("click",this.onClickSave_.bind(this))),jQuery("td.column-is_verified i.verify-review").on("click",this.onClickToggle_.bind(this))};Rn.prototype={restoreEditLink_:function(){this.el.slideUp("fast"),this.edit.show().focus()},onClickCancel_:function(e){e.preventDefault(),this.restoreEditLink_(),this.el.find("select").val("0"===jQuery("#hidden-verified-status").val()?1:0)},onClickEdit_:function(e){e.preventDefault(),this.el.is(":hidden")&&(this.el.slideDown("fast",function(){this.el.find("select").focus()}.bind(this)),this.edit.hide())},onClickSave_:function(e){e.preventDefault(),this.restoreEditLink_(),this.target=e.currentTarget;var t={_action:"toggle-verified",id:jQuery("#post_ID").val(),verified:jQuery("#verified-status").val()};new o(t).post(this.save_.bind(this))},onClickToggle_:function(e){e.preventDefault(),this.target=e.currentTarget;var t={_action:"toggle-verified",id:e.currentTarget.getAttribute("data-id"),verified:-1};jQuery(this.target).addClass("spinner is-active").removeClass("dashicons-sticky"),new o(t).post(this.toggleVerified_.bind(this))},save_:function(e){jQuery("#verified-status").val(0|!e.verified),jQuery("#hidden-verified-status").val(0|e.verified),jQuery("#verified-status-text").text(e.verified?this.target.dataset.yes:this.target.dataset.no),GLSR.notices.add(e.notices)},toggleVerified_:function(e){this.target.classList[e.verified?"add":"remove"]("verified"),jQuery(this.target).removeClass("spinner is-active").addClass("dashicons-sticky")}};var Pn,Qn,Fn=Rn;GLSR.ajax=o,GLSR.autosize=d,GLSR.keys={ALT:18,DOWN:40,ENTER:13,ESC:27,SPACE:32,TAB:9,UP:38},GLSR.Event=v,GLSR.stars=(Pn=null,{init:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Qn()||(Pn=new re(e,Object.assign({},oe,t))),Pn},destroy:function(){return!!Pn&&(Pn.destroy(),!0)},rebuild:Qn=function(){return!!Pn&&(Pn.rebuild(),!0)}}),GLSR.Tippy={tippy:On,plugins:{followCursor:Tn}},H().languages.shortcode={tag:{lookbehind:!0,pattern:/^(\[)[^\s]+/i},string:{greedy:!0,pattern:/"(?:\\[\s\S]|[^\\"])*"/},variable:{pattern:/([a-z_]+(?==))/i},punctuation:{pattern:/[=\[\]]/i}},jQuery((function(t){H().highlightAll(),GLSR.notices=new D,GLSR.shortcode=new U(".glsr-mce"),GLSR.stars.init(".glsr-field-rating select",{clearable:!0}),GLSR.Tippy.tippy(".glsr-tooltip",{appendTo:function(){return document.body}}),t(".glsr-tooltip").each((function(e,t){var n=t.dataset.tippyContent,i=t.dataset.syntax;t._tippy&&n&&i&&H().languages[i]&&t._tippy.setContent('<pre class="language-'+i+'"><code>'+H().highlight(n,H().languages[i],i)+"</code></pre>")})),p(),new C,t(".glsr-filter").each((function(e,t){new S(t)})),new A,new T("form.glsr-form"),new R,new Q,new q,new Fn,new N,new M("#glsr-search-posts",{action:"search-posts",onInit:function(){this.el.find(".glsr-remove-button").on("click",this.onUnassign_.bind(this))},onResultClick:function(e){var n=t(e.currentTarget),i=wp.template("glsr-assigned-posts"),s={id:n.data("id"),name:"post_ids[]",url:n.data("url"),title:n.text()};if(i){var r=t(i(s));r.find(".glsr-remove-button").on("click",this.onUnassign_.bind(this)),this.el.find(".glsr-selected-entries").append(r),this.reset_()}this.options.searchEl.focus()}}),new M("#glsr-search-translations",{action:"search-strings",onInit:function(){this.makeSortable_()},onResultClick:function(e){var n=t(e.currentTarget),i=n.data("entry"),s=wp.template("glsr-string-"+(i.p1?"plural":"single"));i.index=this.options.entriesEl.children().length,i.prefix=this.options.resultsEl.data("prefix"),s&&(this.options.entriesEl.append(s(i)),this.options.exclude.push({id:i.id}),this.options.results=this.options.results.filter((function(e,t){return t!==n.get(0)}))),this.setVisibility_()}}),new M("#glsr-search-users",{action:"search-users",onInit:function(){this.el.find(".glsr-remove-button").on("click",this.onUnassign_.bind(this))},onResultClick:function(e){var n=t(e.currentTarget),i=wp.template("glsr-assigned-users"),s={id:n.data("id"),name:"user_ids[]",url:n.data("url"),title:n.text()};if(i){var r=t(i(s));r.find(".glsr-remove-button").on("click",this.onUnassign_.bind(this)),this.el.find(".glsr-selected-entries").append(r),this.reset_()}this.options.searchEl.focus()}}),new le("a.glsr-toggle-status"),new V,new pe,new he,new ve,new ue;var n=function(){this.dataset.glsrTrack=this.value};if(t("select[data-glsr-track]").each(n),t("select[data-glsr-track]").on("change",n),t(".glsr-card.postbox:not(.open)").addClass("closed").find(".glsr-accordion-trigger").attr("aria-expanded",!1).closest(".glsr-nav-view").addClass("collapsed"),t(".glsr-support-step").not(":checked").length<1&&t(".glsr-card-result").removeClass("hidden"),t(".glsr-support-step").on("change",(function(){var e=t(".glsr-support-step").not(":checked").length>0?"add":"remove";t(".glsr-card-result")[e+"Class"]("hidden")})),t(".glsr-card.postbox .glsr-card-heading").on("click",(function(){var e=t(this).parent(),n=e.closest(".glsr-nav-view"),i=e.hasClass("closed")?"remove":"add";e[i+"Class"]("closed").find(".glsr-accordion-trigger").attr("aria-expanded","add"!==i),i=n.find(".glsr-card.postbox").not(".closed").length>0?"remove":"add",n[i+"Class"]("collapsed")})),"undefined"!=typeof inlineEditTax&&t(".taxonomy-site-review-category").length){var i=inlineEditTax.edit;inlineEditTax.edit=function(n){i.apply(this,arguments),"object"===e(n)&&(n=this.getId(n));var s=t(this.what+n),r=t("td.term_priority",s).text();t('.wp-list-table :input[name="term_priority"]').val(r)}}"undefined"!=typeof inlineEditPost&&(t(".post-type-site-review #the-list").on("click",".editinline",(function(){var e=t(this).closest("tr");t(':input[data-name="post_content"]').val(""),t(':input[name="_response"]').val(""),setTimeout((function(){t(':input[data-name="post_content"]').val(e.find("._post_content").text()),t(':input[name="_response"]').val(e.find("._response").text())}),50)})),setTimeout((function(){t("td",".post-type-site-review #inline-edit").off("keydown")}),50));var s=t("#glsr-notices .bulk-action-notice").on("click","button.button-link",(function(){t(this).toggleClass("bulk-action-errors-collapsed").attr("aria-expanded",!t(this).hasClass("bulk-action-errors-collapsed")),s.find(".bulk-action-errors").toggleClass("hidden")}));jQuery(".glsr-notice-footer").length&&jQuery("#wpbody-content").addClass("has-footer-notice"),t(".glsr-videos__playlist a").on("click",(function(){var e=t(this).closest(".glsr-videos__playlist"),n=window.getComputedStyle(e[0]),i=n.transform||n.webkitTransform||n.mozTransform;return console.info(i),!!~["none","matrix(1, 0, 0, 1, 0, 0)"].indexOf(i)&&(e.find("a").removeClass("is-active"),t(this).addClass("is-active"),Dn(t(this)),!1)})),t(".glsr-youtube-button").on("click",(function(){Dn(t(this))})),t(".glsr-screen-meta-toggle").on("click",(function(){var e=t("#"+t(this).attr("aria-controls"));e.length&&(e.is(":visible")?(screenMeta.close(e,t(this)),t(".glsr-screen-meta-toggle").removeClass("screen-meta-active").attr("aria-expanded",!1)):screenMeta.open(e,t(this)))})),t(".shortcode-example").on("copy",(function(e){var t=document.getSelection();e.originalEvent.clipboardData.setData("text/plain",t.toString()),e.preventDefault()}));t(".glsr-template-editor input").on("click",(function(e){e.preventDefault();var n=t(e.target).closest(".glsr-template-editor").find("textarea")[0],i=n.selectionStart,s=n.scrollTop,r="{"+e.target.dataset.tag+"}";!function(e,t,n){var i=e.value.substring(0,t)+n+e.value.substring(e.selectionEnd,e.value.length);e.focus(),document.execCommand("selectAll",!1,null)&&document.execCommand("insertText",!1,i)||(e.value=i)}(n,i,r),function(e,t,n){e+=t.length,n.selectionStart=e,n.selectionEnd=e,n.focus()}(i,r,n),n.scrollTop=s}))}));var Dn=function(e){var t=e.data("id"),n=jQuery(document.createElement("iframe"));n.attr("frameborder","0"),n.attr("allowfullscreen",""),n.attr("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"),t.length>12?n.attr("src","https://www.youtube-nocookie.com/embed/videoseries?list="+t+"&rel=0&showinfo=0&autoplay=1&modestbranding=1"):n.attr("src","https://www.youtube-nocookie.com/embed/"+t+"?rel=0&showinfo=0&autoplay=1&modestbranding=1");var i=e.closest(".glsr-videos").find(".glsr-youtube");i.find("iframe").remove(),i.prepend(n)},zn=function(e){[].forEach.call(document.querySelectorAll('[data-type="site-reviews/'.concat(e,'"] .glsr')),(function(e){var t="glsr-"+window.getComputedStyle(e,null).getPropertyValue("direction");e.classList.add(t)}))};v.on("site-reviews/form",(function(e,t){_.isEmpty(e)||e.error||(zn("form"),GLSR.stars.destroy(),GLSR.stars.init(".glsr-field-rating select",{clearable:!0}))})),v.on("site-reviews/review",(function(e,t){_.isEmpty(e)||e.error||zn("review")})),v.on("site-reviews/reviews",(function(e,t){_.isEmpty(e)||e.error||zn("reviews")})),v.on("site-reviews/summary",(function(e,t){_.isEmpty(e)||e.error||zn("summary")}))}()}();
Copyright ©2021 || Defacer Indonesia