FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
mailpoet
/
assets
/
dist
/
js
/
email_editor_integration
Edit File: email_editor_integration.js
(()=>{var e={110(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(8796),i=c(n(7351)),s=c(n(6268)),a=c(n(3239)),l=c(n(1745));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=(u(r={},o.ElementType.Text,i.default),u(r,o.ElementType.Tag,s.default),u(r,o.ElementType.Style,a.default),u(r,o.ElementType.Directive,l.default),u(r,o.ElementType.Comment,l.default),u(r,o.ElementType.Script,l.default),u(r,o.ElementType.CDATA,l.default),u(r,o.ElementType.Doctype,l.default),r)},221(e,t){var n=t.getChildren=function(e){return e.children},r=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=r(e);return t?n(t):[e]},t.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]},t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)},t.getName=function(e){return e.name}},260(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){return"function"!=typeof e?e:function(){return arguments[arguments.length-1]=t(arguments[arguments.length-1]),e.apply(this,arguments)}}},323(e){"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},765(e){var t=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return r[this.type]||r.element}},n={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},r={element:1,text:3,cdata:4,comment:8};Object.keys(n).forEach((function(e){var r=n[e];Object.defineProperty(t,e,{get:function(){return this[r]||null},set:function(e){return this[r]=e,e}})}))},858(e,t,n){"use strict";t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,n=s.COMPILER_REVISION;if(!(t>=s.LAST_COMPATIBLE_COMPILER_REVISION&&t<=s.COMPILER_REVISION)){if(t<s.LAST_COMPATIBLE_COMPILER_REVISION){var r=s.REVISION_CHANGES[n],o=s.REVISION_CHANGES[t];throw new i.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}throw new i.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(e,t){if(!t)throw new i.default("No environment passed to template");if(!e||!e.main)throw new i.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&7===e.compiler[0],r={strict:function(e,t,n){if(!e||!(t in e))throw new i.default('"'+t+'" not defined in '+e,{loc:n});return r.lookupProperty(e,t)},lookupProperty:function(e,t){var n=e[t];return null==n||Object.prototype.hasOwnProperty.call(e,t)||c.resultIsAllowed(n,r.protoAccessControl,t)?n:void 0},lookup:function(e,t){for(var n=e.length,o=0;o<n;o++){var i=e[o]&&r.lookupProperty(e[o],t);if(null!=i)return i}},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:o.escapeExpression,invokePartial:function(n,r,s){s.hash&&(r=o.extend({},r,s.hash),s.ids&&(s.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var a=t.VM.invokePartial.call(this,n,r,s);if(null==a&&t.compile&&(s.partials[s.name]=t.compile(n,e.compilerOptions,t),a=s.partials[s.name](r,s)),null!=a){if(s.indent){for(var l=a.split("\n"),c=0,u=l.length;c<u&&(l[c]||c+1!==u);c++)l[c]=s.indent+l[c];a=l.join("\n")}return a}throw new i.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,r,o){var i=this.programs[e],s=this.fn(e);return t||o||r||n?i=u(this,e,s,t,n,r,o):i||(i=this.programs[e]=u(this,e,s)),i},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=o.extend({},t,e)),n},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function l(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=n.data;l._setup(n),!n.partial&&e.useData&&(o=function(e,t){return t&&"root"in t||((t=t?s.createFrame(t):{}).root=e),t}(t,o));var i=void 0,a=e.useBlockParams?[]:void 0;function c(t){return""+e.main(r,t,r.helpers,r.partials,o,a,i)}return e.useDepths&&(i=n.depths?t!=n.depths[0]?[t].concat(n.depths):n.depths:[t]),(c=h(e.main,c,r,n.depths||[],o,a))(t,n)}return l.isTop=!0,l._setup=function(i){if(i.partial)r.protoAccessControl=i.protoAccessControl,r.helpers=i.helpers,r.partials=i.partials,r.decorators=i.decorators,r.hooks=i.hooks;else{var s={};f(s,t.helpers,r),f(s,i.helpers,r),r.helpers=s,e.usePartial&&(r.partials=r.mergeIfNeeded(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=o.extend({},t.decorators,i.decorators)),r.hooks={},r.protoAccessControl=c.createProtoAccessControl(i);var l=i.allowCallsToHelperMissing||n;a.moveHelperToHooks(r,"helperMissing",l),a.moveHelperToHooks(r,"blockHelperMissing",l)}},l._child=function(t,n,o,s){if(e.useBlockParams&&!o)throw new i.default("must pass block params");if(e.useDepths&&!s)throw new i.default("must pass parent depths");return u(r,t,e[t],n,0,o,s)},l},t.wrapProgram=u,t.resolvePartial=function(e,t,n){return e?e.call||n.name||(n.name=e,e=d(n.partials,e)):e="@partial-block"===n.name?d(n.data,"partial-block"):d(n.partials,n.name),e},t.invokePartial=function(e,t,n){var r=d(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var a=void 0;if(n.fn&&n.fn!==p&&function(){n.data=s.createFrame(n.data);var e=n.fn;a=n.data["partial-block"]=function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=s.createFrame(n.data),n.data["partial-block"]=r,e(t,n)},e.partials&&(n.partials=o.extend({},n.partials,e.partials))}(),void 0===e&&a&&(e=a),void 0===e)throw new i.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},t.noop=p;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(8455)),i=(r=n(1559))&&r.__esModule?r:{default:r},s=n(7165),a=n(4423),l=n(260),c=n(2935);function u(e,t,n,r,o,i,s){function a(t){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=s;return!s||t==s[0]||t===e.nullContext&&null===s[0]||(a=[t].concat(s)),n(e,t,e.helpers,e.partials,o.data||r,i&&[o.blockParams].concat(i),a)}return(a=h(n,a,e,s,r,i)).program=t,a.depth=s?s.length:0,a.blockParams=o||0,a}function p(){return""}function d(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function h(e,t,n,r,i,s){if(e.decorator){var a={};t=e.decorator(t,a,n,r&&r[0],i,s,r),o.extend(t,a)}return t}function f(e,t,n){t&&Object.keys(t).forEach((function(r){var o=t[r];e[r]=function(e,t){var n=t.lookupProperty;return l.wrapHelper(e,(function(e){return e.lookupProperty=n,e}))}(o,n)}))}},939(e,t,n){var r=n(4338);e.exports=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in r&&(e=r[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)}},1012(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]},1053(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(7165),i=r(n(1559)),s=n(8455),a=r(n(2082));function l(e){this.value=e}function c(){}c.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=o.COMPILER_REVISION;return[e,o.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,n){return s.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,n,r){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var o=e.opcodes,s=void 0,a=void 0,l=void 0,c=void 0;for(l=0,c=o.length;l<c;l++)s=o[l],this.source.currentLocation=s.loc,a=a||s.loc,this[s.opcode].apply(this,s.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),r?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(r);if(this.isChild)return u;var p={compiler:this.compilerInfo(),main:u};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var d=this.context,h=d.programs,f=d.decorators;for(l=0,c=h.length;l<c;l++)p[l]=h[l],f[l]&&(p[l+"_d"]=f[l],p.useDecorators=!0);return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),r?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),t.srcName?(p=p.toStringWithSourceMap({file:t.destName})).map=p.map&&p.map.toString():p=p.toString()),p},preamble:function(){this.lastContext=0,this.source=new a.default(this.options.srcName),this.decorators=new a.default(this.options.srcName)},createFunctionContext:function(e){var t=this,n="",r=this.stackVars.concat(this.registers.list);r.length>0&&(n+=", "+r.join(", "));var o=0;Object.keys(this.aliases).forEach((function(e){var r=t.aliases[e];r.children&&r.referenceCount>1&&(n+=", alias"+ ++o+"="+e,r.children[0]="alias"+o)})),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var i=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&i.push("blockParams"),this.useDepths&&i.push("depths");var s=this.mergeSource(n);return e?(i.push(s),Function.apply(this,i)):this.source.wrap(["function(",i.join(","),") {\n ",s,"}"])},mergeSource:function(e){var t=this.environment.isSimple,n=!this.forceBuffer,r=void 0,o=void 0,i=void 0,s=void 0;return this.source.each((function(e){e.appendToBuffer?(i?e.prepend(" + "):i=e,s=e):(i&&(o?i.prepend("buffer += "):r=!0,s.add(";"),i=s=void 0),o=!0,t||(n=!1))})),n?i?(i.prepend("return "),s.add(";")):o||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),i?(i.prepend("return buffer + "),s.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(t,"call",n))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var n=this.topStack();t.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,n,r){var o=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[o++])),this.resolvePath("context",e,o,t,n)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,n)},resolvePath:function(e,t,n,r,o){var i=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,n,r,o){var i=t.popStack(),s=n.length;e&&s--;for(var a=r;a<s;a++)i=t.nameLookup(i,n[a],o);return e?[t.aliasable("container.strict"),"(",i,", ",t.quotedString(n[s]),", ",JSON.stringify(t.source.currentLocation)," )"]:i}(this.options.strict&&o,this,t,n,e));else for(var s=t.length,a=function(n){i.replaceStack((function(o){var s=i.nameLookup(o,t[n],e);return r?[" && ",s]:[" != null ? ",s," : ",o]}))},l=n;l<s;l++)a(l)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var n=this.nameLookup("decorators",t,"decorator"),r=this.setupHelperArgs(t,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+t+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",r])," || fn;"])},invokeHelper:function(e,t,n){var r=this.popStack(),o=this.setupHelper(e,t),i=[];n&&i.push(o.name),i.push(r),this.options.strict||i.push(this.aliasable("container.hooks.helperMissing"));var s=["(",this.itemsSeparatedBy(i,"||"),")"],a=this.source.functionCall(s,"call",o.callParams);this.push(a)},itemsSeparatedBy:function(e,t){var n=[];n.push(e[0]);for(var r=1;r<e.length;r++)n.push(t,e[r]);return n},invokeKnownHelper:function(e,t){var n=this.setupHelper(e,t);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var n=this.popStack();this.emptyHash();var r=this.setupHelper(0,e,t),o=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",n,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,r.paramsInit?["),(",r.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",r.callParams)," : helper))"])},invokePartial:function(e,t,n){var r=[],o=this.setupParams(t,1,r);e&&(t=this.popStack(),delete o.name),n&&(o.indent=JSON.stringify(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",e?r.unshift(t):r.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),r.push(o),this.push(this.source.functionCall("container.invokePartial","",r))},assignToHash:function(e){var t=this.popStack(),n=void 0,r=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(r=this.popStack(),n=this.popStack());var i=this.hash;n&&(i.contexts[e]=n),r&&(i.types[e]=r),o&&(i.ids[e]=o),i.values[e]=t},pushId:function(e,t,n){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:c,compileChildren:function(e,t){for(var n=e.children,r=void 0,o=void 0,i=0,s=n.length;i<s;i++){r=n[i],o=new this.compiler;var a=this.matchExistingProgram(r);if(null==a){var l=this.context.programs.push("")-1;r.index=l,r.name="program"+l,this.context.programs[l]=o.compile(r,t,this.context,!this.precompile),this.context.decorators[l]=o.decorators,this.context.environments[l]=r,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,r.useDepths=this.useDepths,r.useBlockParams=this.useBlockParams}else r.index=a.index,r.name="program"+a.index,this.useDepths=this.useDepths||a.useDepths,this.useBlockParams=this.useBlockParams||a.useBlockParams}},matchExistingProgram:function(e){for(var t=0,n=this.context.environments.length;t<n;t++){var r=this.context.environments[t];if(r&&r.equals(e))return r}},programExpression:function(e){var t=this.environment.children[e],n=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof l||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new l(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],n=void 0,r=void 0,o=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var s=this.popStack(!0);if(s instanceof l)t=["(",n=[s.value]],o=!0;else{r=!0;var a=this.incrStack();t=["((",this.push(a)," = ",s,")"],n=this.topStack()}var c=e.call(this,n);o||this.popStack(),r&&this.stackSlot--,this.push(t.concat(c,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r instanceof l)this.compileStack.push(r);else{var o=this.incrStack();this.pushSource([o," = ",r,";"]),this.compileStack.push(o)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),n=(t?this.inlineStack:this.compileStack).pop();if(!e&&n instanceof l)return n.value;if(!t){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return n},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof l?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,n){var r=[];return{params:r,paramsInit:this.setupHelperArgs(t,e,r,n),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(r)}},setupParams:function(e,t,n){var r={},o=[],i=[],s=[],a=!n,l=void 0;a&&(n=[]),r.name=this.quotedString(e),r.hash=this.popStack(),this.trackIds&&(r.hashIds=this.popStack()),this.stringParams&&(r.hashTypes=this.popStack(),r.hashContexts=this.popStack());var c=this.popStack(),u=this.popStack();(u||c)&&(r.fn=u||"container.noop",r.inverse=c||"container.noop");for(var p=t;p--;)l=this.popStack(),n[p]=l,this.trackIds&&(s[p]=this.popStack()),this.stringParams&&(i[p]=this.popStack(),o[p]=this.popStack());return a&&(r.args=this.source.generateArray(n)),this.trackIds&&(r.ids=this.source.generateArray(s)),this.stringParams&&(r.types=this.source.generateArray(i),r.contexts=this.source.generateArray(o)),this.options.data&&(r.data="data"),this.useBlockParams&&(r.blockParams="blockParams"),r},setupHelperArgs:function(e,t,n,r){var o=this.setupParams(e,t,n);return o.loc=JSON.stringify(this.source.currentLocation),o=this.objectLiteral(o),r?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=c.RESERVED_WORDS={},n=0,r=e.length;n<r;n++)t[e[n]]=!0}(),c.isValidJavaScriptVariableName=function(e){return!c.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=c,e.exports=t.default},1254(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.filter((function(e){return!(0,r.default)(e)})).map((function(e,n){var r=void 0;return"function"!=typeof t||null!==(r=t(e,n))&&!r?(0,o.default)(e,n,t):r}))};var r=i(n(1570)),o=i(n(8330));function i(e){return e&&e.__esModule?e:{default:e}}},1559(e,t){"use strict";t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(e,t){var o=t&&t.loc,i=void 0,s=void 0,a=void 0,l=void 0;o&&(i=o.start.line,s=o.end.line,a=o.start.column,l=o.end.column,e+=" - "+i+":"+a);for(var c=Error.prototype.constructor.call(this,e),u=0;u<n.length;u++)this[n[u]]=c[n[u]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{o&&(this.lineNumber=i,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:a,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:l,enumerable:!0})):(this.column=a,this.endColumn=l))}catch(e){}}r.prototype=new Error,t.default=r,e.exports=t.default},1570(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"text"===e.type&&/\r?\n/.test(e.data)&&""===e.data.trim()}},1609(e){"use strict";e.exports=window.React},1617(e,t,n){var r=n(765),o=e.exports=Object.create(r),i={tagName:"name"};Object.keys(i).forEach((function(e){var t=i[e];Object.defineProperty(o,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})}))},1745(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return null}},1805(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.Compiler=l,t.precompile=function(e,t,n){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new o.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var r=n.parse(e,t),i=(new n.Compiler).compile(r,t);return(new n.JavaScriptCompiler).compile(i,t)},t.compile=function(e,t,n){if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new o.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=i.extend({},t))||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function s(){var r=n.parse(e,t),o=(new n.Compiler).compile(r,t),i=(new n.JavaScriptCompiler).compile(o,t,void 0,!0);return n.template(i)}function a(e,t){return r||(r=s()),r.call(this,e,t)}return a._setup=function(e){return r||(r=s()),r._setup(e)},a._child=function(e,t,n,o){return r||(r=s()),r._child(e,t,n,o)},a};var o=r(n(1559)),i=n(8455),s=r(n(5318)),a=[].slice;function l(){}function c(e,t){if(e===t)return!0;if(i.isArray(e)&&i.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!c(e[n],t[n]))return!1;return!0}}function u(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}l.prototype={compiler:l,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var n=0;n<t;n++){var r=this.opcodes[n],o=e.opcodes[n];if(r.opcode!==o.opcode||!c(r.args,o.args))return!1}for(t=this.children.length,n=0;n<t;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=i.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),n=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[n]=t,this.useDepths=this.useDepths||t.useDepths,n},accept:function(e){if(!this[e.type])throw new o.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,n=t.length,r=0;r<n;r++)this.accept(t[r]);return this.options.blockParams.shift(),this.isSimple=1===n,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){u(e);var t=e.program,n=e.inverse;t=t&&this.compileProgram(t),n=n&&this.compileProgram(n);var r=this.classifySexpr(e);"helper"===r?this.helperSexpr(e,t,n):"simple"===r?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,n),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),n=this.setupFullMustacheParams(e,t,void 0),r=e.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,r.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var n=e.params;if(n.length>1)throw new o.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var r=e.name.original,i="SubExpression"===e.name.type;i&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var s=e.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",i,r,s),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){u(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,n){var r=e.path,o=r.parts[0],i=null!=t||null!=n;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",n),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",o,i)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,n){var r=this.setupFullMustacheParams(e,t,n),i=e.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new o.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,s.default.helpers.simpleId(i))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],n=s.default.helpers.scopedId(e),r=!e.depth&&!n&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,n=0,r=t.length;for(this.opcode("pushHash");n<r;n++)this.pushParam(t[n].value);for(;n--;)this.opcode("assignToHash",t[n].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:a.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=s.default.helpers.simpleId(e.path),n=t&&!!this.blockParamIndex(e.path.parts[0]),r=!n&&s.default.helpers.helperExpression(e),o=!n&&(r||t);if(o&&!r){var i=e.path.parts[0],a=this.options;a.knownHelpers[i]?r=!0:a.knownHelpersOnly&&(o=!1)}return r?"helper":o?"ambiguous":"simple"},pushParams:function(e){for(var t=0,n=e.length;t<n;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var n=void 0;if(!e.parts||s.default.helpers.scopedId(e)||e.depth||(n=this.blockParamIndex(e.parts[0])),n){var r=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,r)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,n,r){var o=e.params;return this.pushParams(o),this.opcode("pushProgram",t),this.opcode("pushProgram",n),e.hash?this.accept(e.hash):this.opcode("emptyHash",r),o},blockParamIndex:function(e){for(var t=0,n=this.options.blockParams.length;t<n;t++){var r=this.options.blockParams[t],o=r&&i.indexOf(r,e);if(r&&o>=0)return[t,o]}}}},1929(e){"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},2082(e,t,n){"use strict";t.__esModule=!0;var r=n(8455),o=void 0;function i(e,t,n){if(r.isArray(e)){for(var o=[],i=0,s=e.length;i<s;i++)o.push(t.wrap(e[i],n));return o}return"boolean"==typeof e||"number"==typeof e?e+"":e}function s(e){this.srcFile=e,this.source=[]}o||((o=function(e,t,n,r){this.src="",r&&this.add(r)}).prototype={add:function(e){r.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){r.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),s.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each((function(t){e.add([" ",t,"\n"])})),e},each:function(e){for(var t=0,n=this.source.length;t<n;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new o(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof o?e:(e=i(e,this,t),new o(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,n){return n=this.generateList(n),this.wrap([e,t?"."+t+"(":"(",n,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,n=[];Object.keys(e).forEach((function(r){var o=i(e[r],t);"undefined"!==o&&n.push([t.quotedString(r),":",o])}));var r=this.generateList(n);return r.prepend("{"),r.add("}"),r},generateList:function(e){for(var t=this.empty(),n=0,r=e.length;n<r;n++)n&&t.add(","),t.add(i(e[n],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=s,e.exports=t.default},2261(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",as:"as",async:"async",autocomplete:"autoComplete",autoplay:"autoPlay",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",challenge:"challenge",checked:"checked",cite:"cite",classid:"classID",class:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlsList:"controlsList",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"encType",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",for:"htmlFor","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",integrity:"integrity",is:"is",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginHeight",marginwidth:"marginWidth",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",slot:"slot",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",datatype:"datatype",inlist:"inlist",prefix:"prefix",property:"property",resource:"resource",typeof:"typeof",vocab:"vocab",autocapitalize:"autoCapitalize",autocorrect:"autoCorrect",autosave:"autoSave",color:"color",itemprop:"itemProp",itemscope:"itemScope",itemtype:"itemType",itemid:"itemID",itemref:"itemRef",results:"results",security:"security",unselectable:"unselectable"}},2266(e,t,n){"use strict";const r=n(7762),o=n(6287),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=a(n);const o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const o=function(e){if(l.isBuffer(e)){const t=0|f(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Z(e.length)?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return u(e),a(e<0?0:0|f(e))}function d(e){const t=e.length<0?0:0|f(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function f(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(o)return r?-1:W(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Z(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){let i,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){let r=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===l)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(n+l>a&&(n=a-l),i=n;i>=0;i--){let n=!0;for(let r=0;r<l;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function b(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let s;for(r>i/2&&(r=i/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(Z(r))return s;e[n+s]=r}return s}function w(e,t,n,r){return K(W(t,e.length-n),e,n,r)}function x(e,t,n,r){return K(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return K(G(t),e,n,r)}function k(e,t,n,r){return K(function(e,t){let n,r,o;const i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,s=t>239?4:t>223?3:t>191?2:1;if(o+s<=n){let n,r,a,l;switch(s){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(i=l));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:n=e[o+1],r=e[o+2],a=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=s}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}t.kMaxLength=s,l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},l.allocUnsafe=function(e){return p(e)},l.allocUnsafeSlow=function(e){return p(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))o+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)_(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,o){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(i,s),c=this.slice(r,o),u=e.slice(t,n);for(let e=0;e<a;++e)if(c[e]!==u[e]){i=c[e],s=u[e];break}return i<s?-1:s<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function j(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function P(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function A(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=J[e[r]];return o}function N(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r,o){z(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function B(e,t,n,r,o){z(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function O(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return t=+t,n>>>=0,i||O(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,i){return t=+t,n>>>=0,i||O(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=X((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),l.prototype.readBigUInt64BE=X((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=X((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=X((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=X((function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=X((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let o=0,i=1,s=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let o=n-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=X((function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=X((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=l.isBuffer(e)?e:l.from(e,r),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%s]}return this};const F={};function $(e,t,n){F[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function V(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function z(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||H(t,e.length-(n+1))}(r,o,i)}function q(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,n){if(Math.floor(e)!==e)throw q(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}$("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),$("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),$("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=V(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=V(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);const U=/[^+/0-9A-Za-z-_]/g;function W(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function G(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},2331(){},2407(e,t,n){var r=n(7857),o=n(5385);t.decode=function(e,t){return(!t||t<=0?o.XML:o.HTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?o.XML:o.HTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?r.XML:r.HTML)(e)},t.encodeXML=r.XML,t.encodeHTML4=t.encodeHTML5=t.encodeHTML=r.HTML,t.decodeXML=t.decodeXMLStrict=o.XML,t.decodeHTML4=t.decodeHTML5=t.decodeHTML=o.HTML,t.decodeHTML4Strict=t.decodeHTML5Strict=t.decodeHTMLStrict=o.HTMLStrict,t.escape=r.escape},2724(e,t,n){var r=n(7500),o=t.isTag=r.isTag;t.testElement=function(e,t){for(var n in e)if(e.hasOwnProperty(n))if("tag_name"===n){if(!o(t)||!e.tag_name(t.name))return!1}else if("tag_type"===n){if(!e.tag_type(t.type))return!1}else if("tag_contains"===n){if(o(t)||!e.tag_contains(t.data))return!1}else if(!t.attribs||!e[n](t.attribs[n]))return!1;return!0};var i={tag_name:function(e){return"function"==typeof e?function(t){return o(t)&&e(t.name)}:"*"===e?o:function(t){return o(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return!o(t)&&e(t.data)}:function(t){return!o(t)&&t.data===e}}};function s(e,t){return"function"==typeof t?function(n){return n.attribs&&t(n.attribs[e])}:function(n){return n.attribs&&n.attribs[e]===t}}function a(e,t){return function(n){return e(n)||t(n)}}t.getElements=function(e,t,n,r){var o=Object.keys(e).map((function(t){var n=e[t];return t in i?i[t](n):s(t,n)}));return 0===o.length?[]:this.filter(o.reduce(a),t,n,r)},t.getElementById=function(e,t,n){return Array.isArray(t)||(t=[t]),this.findOne(s("id",e),t,!1!==n)},t.getElementsByTagName=function(e,t,n,r){return this.filter(i.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return this.filter(i.tag_type(e),t,n,r)}},2795(e,t,n){var r=n(7500).isTag;function o(e,t,n,r){for(var i,s=[],a=0,l=t.length;a<l&&!(e(t[a])&&(s.push(t[a]),--r<=0))&&(i=t[a].children,!(n&&i&&i.length>0&&(i=o(e,i,n,r),s=s.concat(i),(r-=i.length)<=0)));a++);return s}e.exports={filter:function(e,t,n,r){return Array.isArray(t)||(t=[t]),"number"==typeof r&&isFinite(r)||(r=1/0),o(e,t,!1!==n,r)},find:o,findOneChild:function(e,t){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return t[n];return null},findOne:function e(t,n){for(var o=null,i=0,s=n.length;i<s&&!o;i++)r(n[i])&&(t(n[i])?o=n[i]:n[i].children.length>0&&(o=e(t,n[i].children)));return o},existsOne:function e(t,n){for(var o=0,i=n.length;o<i;o++)if(r(n[o])&&(t(n[o])||n[o].children.length>0&&e(t,n[o].children)))return!0;return!1},findAll:function(e,t){for(var n=[],o=t.slice();o.length;){var i=o.shift();r(i)&&(i.children&&i.children.length>0&&o.unshift.apply(o,i.children),e(i)&&n.push(i))}return n}}},2902(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.hasOwnProperty(e)||(r[e]=n.test(e)),r[e]};var n=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,r={}},2935(e,t,n){"use strict";t.__esModule=!0,t.createProtoAccessControl=function(e){var t=Object.create(null);t.__proto__=!1,o.extend(t,e.allowedProtoProperties);var n=Object.create(null);return n.constructor=!1,n.__defineGetter__=!1,n.__defineSetter__=!1,n.__lookupGetter__=!1,n.__lookupSetter__=!1,o.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,n){return function(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==s[e]&&(s[e]=!0,i.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}("function"==typeof e?t.methods:t.properties,n)},t.resetLoggedProperties=function(){Object.keys(s).forEach((function(e){delete s[e]}))};var r,o=n(8455),i=(r=n(3700))&&r.__esModule?r:{default:r},s=Object.create(null)},3108(e,t,n){e.exports=n(6870)()},3236(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,i,s,c;if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=l(e))>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=u.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):f(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=f(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,p(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,p(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},3239(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=void 0;e.children.length>0&&(n=e.children[0].data);var i=(0,o.default)(e.attribs,t);return r.default.createElement("style",i,n)};var r=i(n(1609)),o=i(n(7926));function i(e){return e&&e.__esModule?e:{default:e}}},3366(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["allowfullScreen","async","autoplay","capture","checked","controls","default","defer","disabled","formnovalidate","hidden","loop","multiple","muted","novalidate","open","playsinline","readonly","required","reversed","scoped","seamless","selected","itemscope"]},3440(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).filter((function(e){return(0,i.default)(e)})).reduce((function(t,n){var i=n.toLowerCase(),s=o.default[i]||i;return t[s]=function(e,t){return r.default.map((function(e){return e.toLowerCase()})).indexOf(e.toLowerCase())>=0&&(t=e),t}(s,e[n]),t}),{})};var r=s(n(3366)),o=s(n(2261)),i=s(n(2902));function s(e){return e&&e.__esModule?e:{default:e}}},3698(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},3700(e,t,n){"use strict";t.__esModule=!0;var r=n(8455),o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(o.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=o.lookupLevel(e),"undefined"!=typeof console&&o.lookupLevel(o.level)<=e){var t=o.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];console[t].apply(console,r)}}};t.default=o,e.exports=t.default},3778(e,t,n){var r=n(7500),o=n(7478),i=r.isTag;e.exports={getInnerHTML:function(e,t){return e.children?e.children.map((function(e){return o(e,t)})).join(""):""},getOuterHTML:o,getText:function e(t){return Array.isArray(t)?t.map(e).join(""):i(t)?"br"===t.name?"\n":e(t.children):t.type===r.CDATA?e(t.children):t.type===r.Text?t.data:""}}},3983(e,t,n){"use strict";t.__esModule=!0;var r,o=n(8455),i=(r=n(1559))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new i.default("Must pass iterator to #each");var n,r=t.fn,s=t.inverse,a=0,l="",c=void 0,u=void 0;function p(t,n,i){c&&(c.key=t,c.index=n,c.first=0===n,c.last=!!i,u&&(c.contextPath=u+t)),l+=r(e[t],{data:c,blockParams:o.blockParams([e[t],t],[u+t,null])})}if(t.data&&t.ids&&(u=o.appendContextPath(t.data.contextPath,t.ids[0])+"."),o.isFunction(e)&&(e=e.call(this)),t.data&&(c=o.createFrame(t.data)),e&&"object"==typeof e)if(o.isArray(e))for(var d=e.length;a<d;a++)a in e&&p(a,a,a===e.length-1);else if("function"==typeof Symbol&&e[Symbol.iterator]){for(var h=[],f=e[Symbol.iterator](),m=f.next();!m.done;m=f.next())h.push(m.value);for(d=(e=h).length;a<d;a++)p(a,a,a===e.length-1)}else n=void 0,Object.keys(e).forEach((function(e){void 0!==n&&p(n,a-1),n=e,a++})),void 0!==n&&p(n,a-1,!0);return 0===a&&(l=s(this)),l}))},e.exports=t.default},4194(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.decodeEntities,i=void 0===n||n,s=t.transform,a=t.preprocessNodes,l=(void 0===a?function(e){return e}:a)(r.default.parseDOM(e,{decodeEntities:i}));return(0,o.default)(l,s)};var r=i(n(8796)),o=i(n(1254));function i(e){return e&&e.__esModule?e:{default:e}}},4242(e,t,n){"use strict";n(1254),n(8330),n(8796);var r,o=(r=n(4194))&&r.__esModule?r:{default:r};t.Ay=o.default},4338(e){"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},4423(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.registerDefaultHelpers=function(e){o.default(e),i.default(e),s.default(e),a.default(e),l.default(e),c.default(e),u.default(e)},t.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))};var o=r(n(7799)),i=r(n(3983)),s=r(n(6823)),a=r(n(9721)),l=r(n(8538)),c=r(n(9616)),u=r(n(7282))},4516(e,t,n){var r=n(7533),o=n(5027);function i(e,t){this.init(e,t)}function s(e,t){return o.getElementsByTagName(e,t,!0)}function a(e,t){return o.getElementsByTagName(e,t,!0,1)[0]}function l(e,t,n){return o.getText(o.getElementsByTagName(e,t,n,1)).trim()}function c(e,t,n,r,o){var i=l(n,r,o);i&&(e[t]=i)}n(8628)(i,r),i.prototype.init=r;var u=function(e){return"rss"===e||"feed"===e||"rdf:RDF"===e};i.prototype.onend=function(){var e,t,n={},o=a(u,this.dom);o&&("feed"===o.name?(t=o.children,n.type="atom",c(n,"id","id",t),c(n,"title","title",t),(e=a("link",t))&&(e=e.attribs)&&(e=e.href)&&(n.link=e),c(n,"description","subtitle",t),(e=l("updated",t))&&(n.updated=new Date(e)),c(n,"author","email",t,!0),n.items=s("entry",t).map((function(e){var t,n={};return c(n,"id","id",e=e.children),c(n,"title","title",e),(t=a("link",e))&&(t=t.attribs)&&(t=t.href)&&(n.link=t),(t=l("summary",e)||l("content",e))&&(n.description=t),(t=l("updated",e))&&(n.pubDate=new Date(t)),n}))):(t=a("channel",o.children).children,n.type=o.name.substr(0,3),n.id="",c(n,"title","title",t),c(n,"link","link",t),c(n,"description","description",t),(e=l("lastBuildDate",t))&&(n.updated=new Date(e)),c(n,"author","managingEditor",t,!0),n.items=s("item",o.children).map((function(e){var t,n={};return c(n,"id","guid",e=e.children),c(n,"title","title",e),c(n,"link","link",e),c(n,"description","description",e),(t=l("pubDate",e))&&(n.pubDate=new Date(t)),n})))),this.dom=n,r.prototype._handleCallback.call(this,o?null:Error("couldn't find root of feed"))},e.exports=i},4754(e,t){t.removeSubsets=function(e){for(var t,n,r,o=e.length;--o>-1;){for(t=n=e[o],e[o]=null,r=!0;n;){if(e.indexOf(n)>-1){r=!1,e.splice(o,1);break}n=n.parent}r&&(e[o]=t)}return e};var n=t.compareDocumentPosition=function(e,t){var n,r,o,i,s,a,l=[],c=[];if(e===t)return 0;for(n=e;n;)l.unshift(n),n=n.parent;for(n=t;n;)c.unshift(n),n=n.parent;for(a=0;l[a]===c[a];)a++;return 0===a?1:(o=(r=l[a-1]).children,i=l[a],s=c[a],o.indexOf(i)>o.indexOf(s)?r===t?20:4:r===e?10:2)};t.uniqueSort=function(e){var t,r,o=e.length;for(e=e.slice();--o>-1;)t=e[o],(r=e.indexOf(t))>-1&&r<o&&e.splice(o,1);return e.sort((function(e,t){var r=n(e,t);return 2&r?-1:4&r?1:0})),e}},4807(e){"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},4845(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(n(8191)),i=r(n(5318)),s=n(7493),a=n(1805),l=r(n(1053)),c=r(n(8564)),u=r(n(7538)),p=o.default.create;function d(){var e=p();return e.compile=function(t,n){return a.compile(t,n,e)},e.precompile=function(t,n){return a.precompile(t,n,e)},e.AST=i.default,e.Compiler=a.Compiler,e.JavaScriptCompiler=l.default,e.Parser=s.parser,e.parse=s.parse,e.parseWithoutProcessing=s.parseWithoutProcessing,e}var h=d();h.create=d,u.default(h),h.Visitor=c.default,h.default=h,t.default=h,e.exports=t.default},5027(e,t,n){var r=e.exports;[n(3778),n(221),n(8018),n(2795),n(2724),n(4754)].forEach((function(e){Object.keys(e).forEach((function(t){r[t]=e[t].bind(r)}))}))},5193(e,t,n){var r=n(7097),o={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},i={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:o,input:o,output:o,button:o,datalist:o,textarea:o,option:{option:!0},optgroup:{optgroup:!0}},s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},a={__proto__:null,math:!0,svg:!0},l={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0,foreignObject:!0,desc:!0,title:!0},c=/\s|\//;function u(e,t){this._options=t||{},this._cbs=e||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this._foreignContext=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(r=this._options.Tokenizer),this._tokenizer=new r(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}n(8628)(u,n(3236).EventEmitter),u.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},u.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},u.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in i)for(var t;(t=this._stack[this._stack.length-1])in i[e];this.onclosetag(t));!this._options.xmlMode&&e in s||(this._stack.push(e),e in a?this._foreignContext.push(!0):e in l&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},u.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in s&&this._cbs.onclosetag(this._tagname),this._tagname=""},u.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),(e in a||e in l)&&this._foreignContext.pop(),!this._stack.length||e in s&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},u.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},u.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},u.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},u.prototype.onattribdata=function(e){this._attribvalue+=e},u.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},u.prototype._getInstructionName=function(e){var t=e.search(c),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},u.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},u.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},u.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},u.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},u.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},u.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},u.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},u.prototype.parseComplete=function(e){this.reset(),this.end(e)},u.prototype.write=function(e){this._tokenizer.write(e)},u.prototype.end=function(e){this._tokenizer.end(e)},u.prototype.pause=function(){this._tokenizer.pause()},u.prototype.resume=function(){this._tokenizer.resume()},u.prototype.parseChunk=u.prototype.write,u.prototype.done=u.prototype.end,e.exports=u},5261(e,t,n){"use strict";t.__esModule=!0;var r,o=(r=n(8564))&&r.__esModule?r:{default:r};function i(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function s(e,t,n){void 0===t&&(t=e.length);var r=e[t-1],o=e[t-2];return r?"ContentStatement"===r.type?(o||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:n}function a(e,t,n){void 0===t&&(t=-1);var r=e[t+1],o=e[t+2];return r?"ContentStatement"===r.type?(o||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:n}function l(e,t,n){var r=e[null==t?0:t+1];if(r&&"ContentStatement"===r.type&&(n||!r.rightStripped)){var o=r.value;r.value=r.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==o}}function c(e,t,n){var r=e[null==t?e.length-1:t-1];if(r&&"ContentStatement"===r.type&&(n||!r.leftStripped)){var o=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==o,r.leftStripped}}i.prototype=new o.default,i.prototype.Program=function(e){var t=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=e.body,o=0,i=r.length;o<i;o++){var u=r[o],p=this.accept(u);if(p){var d=s(r,o,n),h=a(r,o,n),f=p.openStandalone&&d,m=p.closeStandalone&&h,g=p.inlineStandalone&&d&&h;p.close&&l(r,o,!0),p.open&&c(r,o,!0),t&&g&&(l(r,o),c(r,o)&&"PartialStatement"===u.type&&(u.indent=/([ \t]+$)/.exec(r[o-1].original)[1])),t&&f&&(l((u.program||u.inverse).body),c(r,o)),t&&m&&(l(r,o),c((u.inverse||u.program).body))}}return e},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,n=e.program&&e.inverse,r=n,o=n;if(n&&n.chained)for(r=n.body[0].program;o.chained;)o=o.body[o.body.length-1].program;var i={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:a(t.body),closeStandalone:s((r||t).body)};if(e.openStrip.close&&l(t.body,null,!0),n){var u=e.inverseStrip;u.open&&c(t.body,null,!0),u.close&&l(r.body,null,!0),e.closeStrip.open&&c(o.body,null,!0),!this.options.ignoreStandalone&&s(t.body)&&a(r.body)&&(c(t.body),l(r.body))}else e.closeStrip.open&&c(t.body,null,!0);return i},i.prototype.Decorator=i.prototype.MustacheStatement=function(e){return e.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=i,e.exports=t.default},5270(e,t,n){"use strict";var r,o;r=n(8363),o=n(8157),t.version=r.version,t.renderToString=r.renderToString,t.renderToStaticMarkup=r.renderToStaticMarkup,t.renderToNodeStream=r.renderToNodeStream,t.renderToStaticNodeStream=r.renderToStaticNodeStream,t.renderToReadableStream=o.renderToReadableStream},5318(e,t){"use strict";t.__esModule=!0;var n={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!n.helpers.scopedId(e)&&!e.depth}}};t.default=n,e.exports=t.default},5385(e,t,n){var r=n(4807),o=n(323),i=n(1929),s=n(939),a=c(i),l=c(r);function c(e){var t=Object.keys(e).join("|"),n=d(e),r=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(r,n)}}var u=function(){for(var e=Object.keys(o).sort(p),t=Object.keys(r).sort(p),n=0,i=0;n<t.length;n++)e[i]===t[n]?(t[n]+=";?",i++):t[n]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=d(r);function l(e){return";"!==e.substr(-1)&&(e+=";"),a(e)}return function(e){return String(e).replace(s,l)}}();function p(e,t){return e<t?1:-1}function d(e){return function(t){return"#"===t.charAt(1)?"X"===t.charAt(2)||"x"===t.charAt(2)?s(parseInt(t.substr(3),16)):s(parseInt(t.substr(2),10)):e[t.slice(1,-1)]}}e.exports={XML:a,HTML:u,HTMLStrict:l}},5486(e,t,n){function r(e){this._cbs=e||{},this.events=[]}e.exports=r;var o=n(8796).EVENTS;Object.keys(o).forEach((function(e){if(0===o[e])e="on"+e,r.prototype[e]=function(){this.events.push([e]),this._cbs[e]&&this._cbs[e]()};else if(1===o[e])e="on"+e,r.prototype[e]=function(t){this.events.push([e,t]),this._cbs[e]&&this._cbs[e](t)};else{if(2!==o[e])throw Error("wrong number of arguments");e="on"+e,r.prototype[e]=function(t,n){this.events.push([e,t,n]),this._cbs[e]&&this._cbs[e](t,n)}}})),r.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},r.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var e=0,t=this.events.length;e<t;e++)if(this._cbs[this.events[e][0]]){var n=this.events[e].length;1===n?this._cbs[this.events[e][0]]():2===n?this._cbs[this.events[e][0]](this.events[e][1]):this._cbs[this.events[e][0]](this.events[e][1],this.events[e][2])}}},5493(e,t,n){"use strict";var r=n(6859).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=u,this.end=p,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.I=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=s(t[r]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--r<n||-2===o?0:(o=s(t[r]))>=0?(o>0&&(e.lastNeed=o-2),o):--r<n||-2===o?0:(o=s(t[r]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},5538(e,t,n){"use strict";var r=n(1609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},5583(e,t,n){"use strict";t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",i=[],s=0,a=0,l=t.length;a<l;a++){var c=t[a].part,u=t[a].original!==c;if(r+=(t[a].separator||"")+c,u||".."!==c&&"."!==c&&"this"!==c)i.push(c);else{if(i.length>0)throw new o.default("Invalid path: "+r,{loc:n});".."===c&&s++}}return{type:"PathExpression",data:e,depth:s,parts:i,original:r,loc:n}},t.prepareMustache=function(e,t,n,r,o,i){var s=r.charAt(3)||r.charAt(2),a="{"!==s&&"&"!==s;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:a,strip:o,loc:this.locInfo(i)}},t.prepareRawBlock=function(e,t,n,r){i(e,n);var o={type:"Program",body:t,strip:{},loc:r=this.locInfo(r)};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},t.prepareBlock=function(e,t,n,r,s,a){r&&r.path&&i(e,r);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(n){if(l)throw new o.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),u=n.strip,c=n.program}return s&&(s=c,c=t,t=s),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:r&&r.strip,loc:this.locInfo(a)}},t.prepareProgram=function(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,n,r){return i(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}};var r,o=(r=n(1559))&&r.__esModule?r:{default:r};function i(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new o.default(e.path.original+" doesn't match "+t,n)}}},5795(e){"use strict";e.exports=window.ReactDOM},5836(e){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},6052(e,t,n){"use strict";t.__esModule=!0;var r=n(8455);t.default=function(e){e.registerDecorator("inline",(function(e,t,n,o){var i=e;return t.partials||(t.partials={},i=function(o,i){var s=n.partials;n.partials=r.extend({},s,t.partials);var a=e(o,i);return n.partials=s,a}),t.partials[o.args[0]]=o.fn,i}))},e.exports=t.default},6106(e,t,n){"use strict";e.exports=n(5538)},6126(e,t,n){e.exports=a;var r=n(5193),o=n(2331).Writable,i=n(5493).I,s=n(2266).Buffer;function a(e,t){var n=this._parser=new r(e,t),s=this._decoder=new i;o.call(this,{decodeStrings:!1}),this.once("finish",(function(){n.end(s.end())}))}n(8628)(a,o),a.prototype._write=function(e,t,n){e instanceof s&&(e=this._decoder.write(e)),this._parser.write(e),n()}},6268(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var l=e.name;if(!(0,a.default)(l))return null;var c=(0,i.default)(e.attribs,t),u=null;return-1===s.default.indexOf(l)&&(u=(0,o.default)(e.children,n)),r.default.createElement(l,c,u)};var r=l(n(1609)),o=l(n(1254)),i=l(n(7926)),s=l(n(1012)),a=l(n(2902));function l(e){return e&&e.__esModule?e:{default:e}}},6287(e,t){t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,l=(1<<a)-1,c=l>>1,u=-7,p=n?o-1:0,d=n?-1:1,h=e[t+p];for(p+=d,i=h&(1<<-u)-1,h>>=-u,u+=a;u>0;i=256*i+e[t+p],p+=d,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=r;u>0;s=256*s+e[t+p],p+=d,u-=8);if(0===i)i=1-c;else{if(i===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=c}return(h?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,l,c=8*i-o-1,u=(1<<c)-1,p=u>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(s++,l/=2),s+p>=u?(a=0,s=u):s+p>=1?(a=(t*l-1)*Math.pow(2,o),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,o),s=0));o>=8;e[n+h]=255&a,h+=f,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[n+h]=255&s,h+=f,s/=256,c-=8);e[n+h-f]|=128*m}},6701(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6802(e,t,n){e.exports=o;var r=n(6126);function o(e){r.call(this,new i(this),e)}function i(e){this.scope=e}n(8628)(o,r),o.prototype.readable=!0;var s=n(8796).EVENTS;Object.keys(s).forEach((function(e){if(0===s[e])i.prototype["on"+e]=function(){this.scope.emit(e)};else if(1===s[e])i.prototype["on"+e]=function(t){this.scope.emit(e,t)};else{if(2!==s[e])throw Error("wrong number of arguments!");i.prototype["on"+e]=function(t,n){this.scope.emit(e,t,n)}}}))},6823(e,t,n){"use strict";t.__esModule=!0;var r,o=(r=n(1559))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},6838(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||o,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var c=Array.isArray(n);return c===Array.isArray(e)?c?l.arrayMerge(e,n,l):function(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}(e,n,l):r(n,l)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return a(e,n,t)}),{})};var l=a;e.exports=l},6859(e,t,n){var r=n(2266),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=s),s.prototype=Object.create(o.prototype),i(o,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},6870(e,t,n){"use strict";var r=n(6701);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},7097(e,t,n){e.exports=ge;var r=n(939),o=n(4807),i=n(323),s=n(1929),a=0,l=a++,c=a++,u=a++,p=a++,d=a++,h=a++,f=a++,m=a++,g=a++,_=a++,y=a++,v=a++,b=a++,w=a++,x=a++,S=a++,k=a++,E=a++,C=a++,T=a++,j=a++,P=a++,A=a++,N=a++,I=a++,L=a++,R=a++,B=a++,O=a++,M=a++,D=a++,F=a++,$=a++,V=a++,z=a++,q=a++,H=a++,U=a++,W=a++,G=a++,K=a++,Y=a++,Z=a++,J=a++,X=a++,Q=a++,ee=a++,te=a++,ne=a++,re=a++,oe=a++,ie=a++,se=a++,ae=a++,le=a++,ce=0,ue=ce++,pe=ce++,de=ce++;function he(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function fe(e,t,n){var r=e.toLowerCase();return e===r?function(e){e===r?this._state=t:(this._state=n,this._index--)}:function(o){o===r||o===e?this._state=t:(this._state=n,this._index--)}}function me(e,t){var n=e.toLowerCase();return function(r){r===n||r===e?this._state=t:(this._state=u,this._index--)}}function ge(e,t){this._state=l,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=l,this._special=ue,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}ge.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=c,this._sectionStart=this._index):this._decodeEntities&&this._special===ue&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=l,this._state=oe,this._sectionStart=this._index)},ge.prototype._stateBeforeTagName=function(e){"/"===e?this._state=d:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==ue||he(e)?this._state=l:"!"===e?(this._state=x,this._sectionStart=this._index+1):"?"===e?(this._state=k,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?u:D,this._sectionStart=this._index)},ge.prototype._stateInTagName=function(e){("/"===e||">"===e||he(e))&&(this._emitToken("onopentagname"),this._state=m,this._index--)},ge.prototype._stateBeforeCloseingTagName=function(e){he(e)||(">"===e?this._state=l:this._special!==ue?"s"===e||"S"===e?this._state=F:(this._state=l,this._index--):(this._state=h,this._sectionStart=this._index))},ge.prototype._stateInCloseingTagName=function(e){(">"===e||he(e))&&(this._emitToken("onclosetag"),this._state=f,this._index--)},ge.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=l,this._sectionStart=this._index+1)},ge.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=l,this._sectionStart=this._index+1):"/"===e?this._state=p:he(e)||(this._state=g,this._sectionStart=this._index)},ge.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=l,this._sectionStart=this._index+1):he(e)||(this._state=m,this._index--)},ge.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||he(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=_,this._index--)},ge.prototype._stateAfterAttributeName=function(e){"="===e?this._state=y:"/"===e||">"===e?(this._cbs.onattribend(),this._state=m,this._index--):he(e)||(this._cbs.onattribend(),this._state=g,this._sectionStart=this._index)},ge.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=v,this._sectionStart=this._index+1):"'"===e?(this._state=b,this._sectionStart=this._index+1):he(e)||(this._state=w,this._sectionStart=this._index,this._index--)},ge.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=oe,this._sectionStart=this._index)},ge.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=oe,this._sectionStart=this._index)},ge.prototype._stateInAttributeValueNoQuotes=function(e){he(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=oe,this._sectionStart=this._index)},ge.prototype._stateBeforeDeclaration=function(e){this._state="["===e?P:"-"===e?E:S},ge.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=l,this._sectionStart=this._index+1)},ge.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=l,this._sectionStart=this._index+1)},ge.prototype._stateBeforeComment=function(e){"-"===e?(this._state=C,this._sectionStart=this._index+1):this._state=S},ge.prototype._stateInComment=function(e){"-"===e&&(this._state=T)},ge.prototype._stateAfterComment1=function(e){this._state="-"===e?j:C},ge.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=l,this._sectionStart=this._index+1):"-"!==e&&(this._state=C)},ge.prototype._stateBeforeCdata1=fe("C",A,S),ge.prototype._stateBeforeCdata2=fe("D",N,S),ge.prototype._stateBeforeCdata3=fe("A",I,S),ge.prototype._stateBeforeCdata4=fe("T",L,S),ge.prototype._stateBeforeCdata5=fe("A",R,S),ge.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=B,this._sectionStart=this._index+1):(this._state=S,this._index--)},ge.prototype._stateInCdata=function(e){"]"===e&&(this._state=O)},ge.prototype._stateAfterCdata1=function(e){this._state="]"===e?M:B},ge.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=l,this._sectionStart=this._index+1):"]"!==e&&(this._state=B)},ge.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=$:"t"===e||"T"===e?this._state=Z:(this._state=u,this._index--)},ge.prototype._stateBeforeSpecialEnd=function(e){this._special!==pe||"c"!==e&&"C"!==e?this._special!==de||"t"!==e&&"T"!==e?this._state=l:this._state=ee:this._state=U},ge.prototype._stateBeforeScript1=me("R",V),ge.prototype._stateBeforeScript2=me("I",z),ge.prototype._stateBeforeScript3=me("P",q),ge.prototype._stateBeforeScript4=me("T",H),ge.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||he(e))&&(this._special=pe),this._state=u,this._index--},ge.prototype._stateAfterScript1=fe("R",W,l),ge.prototype._stateAfterScript2=fe("I",G,l),ge.prototype._stateAfterScript3=fe("P",K,l),ge.prototype._stateAfterScript4=fe("T",Y,l),ge.prototype._stateAfterScript5=function(e){">"===e||he(e)?(this._special=ue,this._state=h,this._sectionStart=this._index-6,this._index--):this._state=l},ge.prototype._stateBeforeStyle1=me("Y",J),ge.prototype._stateBeforeStyle2=me("L",X),ge.prototype._stateBeforeStyle3=me("E",Q),ge.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||he(e))&&(this._special=de),this._state=u,this._index--},ge.prototype._stateAfterStyle1=fe("Y",te,l),ge.prototype._stateAfterStyle2=fe("L",ne,l),ge.prototype._stateAfterStyle3=fe("E",re,l),ge.prototype._stateAfterStyle4=function(e){">"===e||he(e)?(this._special=ue,this._state=h,this._sectionStart=this._index-5,this._index--):this._state=l},ge.prototype._stateBeforeEntity=fe("#",ie,se),ge.prototype._stateBeforeNumericEntity=fe("X",le,ae),ge.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var e=this._buffer.substring(this._sectionStart+1,this._index),t=this._xmlMode?s:o;t.hasOwnProperty(e)&&(this._emitPartial(t[e]),this._sectionStart=this._index+1)}},ge.prototype._parseLegacyEntity=function(){var e=this._sectionStart+1,t=this._index-e;for(t>6&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(i.hasOwnProperty(n))return this._emitPartial(i[n]),void(this._sectionStart+=t+1);t--}},ge.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(e<"a"||e>"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==l?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},ge.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var o=this._buffer.substring(n,this._index),i=parseInt(o,t);this._emitPartial(r(i)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},ge.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},ge.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},ge.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===l?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},ge.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},ge.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var e=this._buffer.charAt(this._index);this._state===l?this._stateText(e):this._state===c?this._stateBeforeTagName(e):this._state===u?this._stateInTagName(e):this._state===d?this._stateBeforeCloseingTagName(e):this._state===h?this._stateInCloseingTagName(e):this._state===f?this._stateAfterCloseingTagName(e):this._state===p?this._stateInSelfClosingTag(e):this._state===m?this._stateBeforeAttributeName(e):this._state===g?this._stateInAttributeName(e):this._state===_?this._stateAfterAttributeName(e):this._state===y?this._stateBeforeAttributeValue(e):this._state===v?this._stateInAttributeValueDoubleQuotes(e):this._state===b?this._stateInAttributeValueSingleQuotes(e):this._state===w?this._stateInAttributeValueNoQuotes(e):this._state===x?this._stateBeforeDeclaration(e):this._state===S?this._stateInDeclaration(e):this._state===k?this._stateInProcessingInstruction(e):this._state===E?this._stateBeforeComment(e):this._state===C?this._stateInComment(e):this._state===T?this._stateAfterComment1(e):this._state===j?this._stateAfterComment2(e):this._state===P?this._stateBeforeCdata1(e):this._state===A?this._stateBeforeCdata2(e):this._state===N?this._stateBeforeCdata3(e):this._state===I?this._stateBeforeCdata4(e):this._state===L?this._stateBeforeCdata5(e):this._state===R?this._stateBeforeCdata6(e):this._state===B?this._stateInCdata(e):this._state===O?this._stateAfterCdata1(e):this._state===M?this._stateAfterCdata2(e):this._state===D?this._stateBeforeSpecial(e):this._state===F?this._stateBeforeSpecialEnd(e):this._state===$?this._stateBeforeScript1(e):this._state===V?this._stateBeforeScript2(e):this._state===z?this._stateBeforeScript3(e):this._state===q?this._stateBeforeScript4(e):this._state===H?this._stateBeforeScript5(e):this._state===U?this._stateAfterScript1(e):this._state===W?this._stateAfterScript2(e):this._state===G?this._stateAfterScript3(e):this._state===K?this._stateAfterScript4(e):this._state===Y?this._stateAfterScript5(e):this._state===Z?this._stateBeforeStyle1(e):this._state===J?this._stateBeforeStyle2(e):this._state===X?this._stateBeforeStyle3(e):this._state===Q?this._stateBeforeStyle4(e):this._state===ee?this._stateAfterStyle1(e):this._state===te?this._stateAfterStyle2(e):this._state===ne?this._stateAfterStyle3(e):this._state===re?this._stateAfterStyle4(e):this._state===oe?this._stateBeforeEntity(e):this._state===ie?this._stateBeforeNumericEntity(e):this._state===se?this._stateInNamedEntity(e):this._state===ae?this._stateInNumericEntity(e):this._state===le?this._stateInHexEntity(e):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},ge.prototype.pause=function(){this._running=!1},ge.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},ge.prototype.end=function(e){this._ended&&this._cbs.onerror(Error(".end() after done!")),e&&this.write(e),this._ended=!0,this._running&&this._finish()},ge.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},ge.prototype._handleTrailingData=function(){var e=this._buffer.substr(this._sectionStart);this._state===B||this._state===O||this._state===M?this._cbs.oncdata(e):this._state===C||this._state===T||this._state===j?this._cbs.oncomment(e):this._state!==se||this._xmlMode?this._state!==ae||this._xmlMode?this._state!==le||this._xmlMode?this._state!==u&&this._state!==m&&this._state!==y&&this._state!==_&&this._state!==g&&this._state!==b&&this._state!==v&&this._state!==w&&this._state!==h&&this._cbs.ontext(e):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},ge.prototype.reset=function(){ge.call(this,{xmlMode:this._xmlMode,decodeEntities:this._decodeEntities},this._cbs)},ge.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},ge.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},ge.prototype._emitToken=function(e){this._cbs[e](this._getSection()),this._sectionStart=-1},ge.prototype._emitPartial=function(e){this._baseState!==l?this._cbs.onattribdata(e):this._cbs.ontext(e)}},7165(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.HandlebarsEnvironment=p;var o=n(8455),i=r(n(1559)),s=n(4423),a=n(9082),l=r(n(3700)),c=n(2935);t.VERSION="4.7.9",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var u="[object Object]";function p(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},s.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}p.prototype={constructor:p,logger:l.default,log:l.default.log,registerHelper:function(e,t){if(o.toString.call(e)===u){if(t)throw new i.default("Arg not supported with multiple helpers");o.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(o.toString.call(e)===u)o.extend(this.partials,e);else{if(void 0===t)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(o.toString.call(e)===u){if(t)throw new i.default("Arg not supported with multiple decorators");o.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var d=l.default.log;t.log=d,t.createFrame=o.createFrame,t.logger=l.default},7282(e,t,n){"use strict";t.__esModule=!0;var r,o=n(8455),i=(r=n(1559))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new i.default("#with requires exactly one argument");o.isFunction(e)&&(e=e.call(this));var n=t.fn;if(o.isEmpty(e))return t.inverse(this);var r=t.data;return t.data&&t.ids&&((r=o.createFrame(t.data)).contextPath=o.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:r,blockParams:o.blockParams([e],[r&&r.contextPath])})}))},e.exports=t.default},7351(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.data}},7466(e,t,n){function r(e){this._cbs=e||{}}e.exports=r;var o=n(8796).EVENTS;Object.keys(o).forEach((function(e){if(0===o[e])e="on"+e,r.prototype[e]=function(){this._cbs[e]&&this._cbs[e]()};else if(1===o[e])e="on"+e,r.prototype[e]=function(t){this._cbs[e]&&this._cbs[e](t)};else{if(2!==o[e])throw Error("wrong number of arguments");e="on"+e,r.prototype[e]=function(t,n){this._cbs[e]&&this._cbs[e](t,n)}}}))},7478(e,t,n){var r=n(5836),o=n(2407),i={__proto__:null,allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,loop:!0,multiple:!0,muted:!0,open:!0,readonly:!0,required:!0,reversed:!0,scoped:!0,seamless:!0,selected:!0,typemustmatch:!0},s={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0},a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},l=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var n="",o=0;o<e.length;o++){var i=e[o];"root"===i.type?n+=l(i.children,t):r.isTag(i)?n+=c(i,t):i.type===r.Directive?n+=u(i):i.type===r.Comment?n+=h(i):i.type===r.CDATA?n+=d(i):n+=p(i,t)}return n};function c(e,t){"svg"===e.name&&(t={decodeEntities:t.decodeEntities,xmlMode:!0});var n="<"+e.name,r=function(e,t){if(e){var n,r="";for(var s in e)r&&(r+=" "),r+=!(n=e[s])&&i[s]?s:s+'="'+(t.decodeEntities?o.encodeXML(n):n)+'"';return r}}(e.attribs,t);return r&&(n+=" "+r),!t.xmlMode||e.children&&0!==e.children.length?(n+=">",e.children&&(n+=l(e.children,t)),a[e.name]&&!t.xmlMode||(n+="</"+e.name+">")):n+="/>",n}function u(e){return"<"+e.data+">"}function p(e,t){var n=e.data||"";return!t.decodeEntities||e.parent&&e.parent.name in s||(n=o.encodeXML(n)),n}function d(e){return"<![CDATA["+e.children[0].data+"]]>"}function h(e){return"\x3c!--"+e.data+"--\x3e"}},7493(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.parseWithoutProcessing=u,t.parse=function(e,t){var n=u(e,t);return new i.default(t).accept(n)};var o=r(n(9039)),i=r(n(5261)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5583)),a=r(n(1559)),l=n(8455);t.parser=o.default;var c={};function u(e,t){return"Program"===e.type?(p(e),e):(o.default.yy=c,c.locInfo=function(e){return new c.SourceLocation(t&&t.srcName,e)},o.default.parse(e))}function p(e){if(null!=e)if(Array.isArray(e))e.forEach(p);else if("object"==typeof e){if("PathExpression"===e.type){if(!("number"==typeof(n=e.depth)&&isFinite(n)&&Math.floor(n)===n&&n>=0))throw new a.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new a.default("Invalid AST: PathExpression.parts must be an array");for(var t=0;t<e.parts.length;t++)if("string"!=typeof e.parts[t])throw new a.default("Invalid AST: PathExpression.parts must only contain strings")}else if("NumberLiteral"===e.type){if("number"!=typeof e.value||!isFinite(e.value))throw new a.default("Invalid AST: NumberLiteral.value must be a number")}else if("BooleanLiteral"===e.type&&"boolean"!=typeof e.value)throw new a.default("Invalid AST: BooleanLiteral.value must be a boolean");var n;Object.keys(e).forEach((function(t){"loc"!==t&&p(e[t])}))}}l.extend(c,s)},7500(e){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},7533(e,t,n){var r=n(7500),o=/\s+/g,i=n(765),s=n(1617);function a(e,t,n){"object"==typeof e?(n=t,t=e,e=null):"function"==typeof t&&(n=t,t=l),this._callback=e,this._options=t||l,this._elementCB=n,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};a.prototype.onparserinit=function(e){this._parser=e},a.prototype.onreset=function(){a.call(this,this._callback,this._options,this._elementCB)},a.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},a.prototype._handleCallback=a.prototype.onerror=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},a.prototype.onclosetag=function(){var e=this._tagStack.pop();this._options.withEndIndices&&e&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e)},a.prototype._createDomElement=function(e){if(!this._options.withDomLvl1)return e;var t;for(var n in t="tag"===e.type?Object.create(s):Object.create(i),e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},a.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom,r=n[n.length-1];e.next=null,this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),r?(e.prev=r,r.next=e):e.prev=null,n.push(e),e.parent=t||null},a.prototype.onopentag=function(e,t){var n={type:"script"===e?r.Script:"style"===e?r.Style:r.Tag,name:e,attribs:t,children:[]},o=this._createDomElement(n);this._addDomElement(o),this._tagStack.push(o)},a.prototype.ontext=function(e){var t,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;if(!this._tagStack.length&&this.dom.length&&(t=this.dom[this.dom.length-1]).type===r.Text)n?t.data=(t.data+e).replace(o," "):t.data+=e;else if(this._tagStack.length&&(t=this._tagStack[this._tagStack.length-1])&&(t=t.children[t.children.length-1])&&t.type===r.Text)n?t.data=(t.data+e).replace(o," "):t.data+=e;else{n&&(e=e.replace(o," "));var i=this._createDomElement({data:e,type:r.Text});this._addDomElement(i)}},a.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===r.Comment)t.data+=e;else{var n={data:e,type:r.Comment},o=this._createDomElement(n);this._addDomElement(o),this._tagStack.push(o)}},a.prototype.oncdatastart=function(){var e={children:[{data:"",type:r.Text}],type:r.CDATA},t=this._createDomElement(e);this._addDomElement(t),this._tagStack.push(t)},a.prototype.oncommentend=a.prototype.oncdataend=function(){this._tagStack.pop()},a.prototype.onprocessinginstruction=function(e,t){var n=this._createDomElement({name:e,data:t,type:r.Directive});this._addDomElement(n)},e.exports=a},7538(e,t){"use strict";t.__esModule=!0,t.default=function(e){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",(function(){return this})),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}},e.exports=t.default},7762(e,t){"use strict";t.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=a(e),s=i[0],l=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,l)),u=0,p=l>0?s-4:s;for(n=0;n<p;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],s=16383,a=0,c=r-o;a<c;a+=s)i.push(l(e,a,a+s>c?c:a+s));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=i[s],r[i.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var o,i,s=[],a=t;a<r;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7799(e,t,n){"use strict";t.__esModule=!0;var r=n(8455);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var o=n.inverse,i=n.fn;if(!0===t)return i(this);if(!1===t||null==t)return o(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):o(this);if(n.data&&n.ids){var s=r.createFrame(n.data);s.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:s}}return i(t,n)}))},e.exports=t.default},7857(e,t,n){var r=a(n(1929)),o=l(r);t.XML=h(r,o);var i=a(n(4807)),s=l(i);function a(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function l(e){var t=[],n=[];return Object.keys(e).forEach((function(e){1===e.length?t.push("\\"+e):n.push(e)})),n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.HTML=h(i,s);var c=/[^\0-\x7F]/g,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function p(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function d(e){return"&#x"+(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function h(e,t){function n(t){return e[t]}return function(e){return e.replace(t,n).replace(u,d).replace(c,p)}}var f=l(r);t.escape=function(e){return e.replace(f,p).replace(u,d).replace(c,p)}},7926(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t){var n=r({},(0,o.default)(e),{key:t});return"string"==typeof n.style||n.style instanceof String?n.style=(0,i.default)(n.style):delete n.style,n};var o=s(n(3440)),i=s(n(8312));function s(e){return e&&e.__esModule?e:{default:e}}},8018(e,t){t.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var o=t.parent=e.parent;if(o){var i=o.children;i[i.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(t.parent=e,1!==e.children.push(t)){var n=e.children[e.children.length-2];n.next=t,t.prev=n,t.next=null}},t.append=function(e,t){var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var o=n.children;o.splice(o.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},t.prepend=function(e,t){var n=e.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},8157(e,t,n){"use strict";var r=n(1609);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=null,s=0;function a(e,t){if(0!==t.length)if(512<t.length)0<s&&(e.enqueue(new Uint8Array(i.buffer,0,s)),i=new Uint8Array(512),s=0),e.enqueue(t);else{var n=i.length-s;n<t.length&&(0===n?e.enqueue(i):(i.set(t.subarray(0,n),s),e.enqueue(i),t=t.subarray(n)),i=new Uint8Array(512),s=0),i.set(t,s),s+=t.length}}function l(e,t){return a(e,t),!0}function c(e){i&&0<s&&(e.enqueue(new Uint8Array(i.buffer,0,s)),i=null,s=0)}var u=new TextEncoder;function p(e){return u.encode(e)}function d(e){return u.encode(e)}function h(e,t){"function"==typeof e.error?e.error(t):e.close()}var f=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},_={};function y(e){return!!f.call(_,e)||!f.call(g,e)&&(m.test(e)?_[e]=!0:(g[e]=!0,!1))}function v(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var w=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(w,x);b[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(w,x);b[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(w,x);b[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},k=["Webkit","ms","Moz","O"];Object.keys(S).forEach((function(e){k.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),S[t]=S[e]}))}));var E=/["'&<>]/;function C(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=E.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var T=/([A-Z])/g,j=/^ms-/,P=Array.isArray,A=d("<script>"),N=d("<\/script>"),I=d('<script src="'),L=d('<script type="module" src="'),R=d('" async=""><\/script>'),B=/(<\/|<)(s)(cript)/gi;function O(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function M(e,t){return{insertionMode:e,selectedValue:t}}var D=d("\x3c!-- --\x3e");function F(e,t,n,r){return""===t?r:(r&&e.push(D),e.push(p(C(t))),!0)}var $=new Map,V=d(' style="'),z=d(":"),q=d(";");function H(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(f.call(n,r)){var i=n[r];if(null!=i&&"boolean"!=typeof i&&""!==i){if(0===r.indexOf("--")){var s=p(C(r));i=p(C((""+i).trim()))}else{s=r;var a=$.get(s);void 0!==a||(a=d(C(s.replace(T,"-$1").toLowerCase().replace(j,"-ms-"))),$.set(s,a)),s=a,i="number"==typeof i?0===i||f.call(S,r)?p(""+i):p(i+"px"):p(C((""+i).trim()))}t?(t=!1,e.push(V,s,z,i)):e.push(q,s,z,i)}}t||e.push(G)}var U=d(" "),W=d('="'),G=d('"'),K=d('=""');function Y(e,t,n,r){switch(n){case"style":return void H(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=b.hasOwnProperty(n)?b[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=p(t.attributeName),t.type){case 3:r&&e.push(U,n,K);break;case 4:!0===r?e.push(U,n,K):!1!==r&&e.push(U,n,W,p(C(r)),G);break;case 5:isNaN(r)||e.push(U,n,W,p(C(r)),G);break;case 6:!isNaN(r)&&1<=r&&e.push(U,n,W,p(C(r)),G);break;default:t.sanitizeURL&&(r=""+r),e.push(U,n,W,p(C(r)),G)}}else if(y(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(U,p(n),W,p(C(r)),G)}}var Z=d(">"),J=d("/>");function X(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(p(""+t))}}var Q=d(' selected=""');function ee(e,t,n,r){e.push(oe(n));var o,i=n=null;for(o in t)if(f.call(t,o)){var s=t[o];if(null!=s)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:Y(e,r,o,s)}}return e.push(Z),X(e,i,n),"string"==typeof n?(e.push(p(C(n))),null):n}var te=d("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,re=new Map;function oe(e){var t=re.get(e);if(void 0===t){if(!ne.test(e))throw Error(o(65,e));t=d("<"+e),re.set(e,t)}return t}var ie=d("<!DOCTYPE html>");var se=d("</"),ae=d(">"),le=d('<template id="'),ce=d('"></template>'),ue=d("\x3c!--$--\x3e"),pe=d('\x3c!--$?--\x3e<template id="'),de=d('"></template>'),he=d("\x3c!--$!--\x3e"),fe=d("\x3c!--/$--\x3e"),me=d("<template"),ge=d('"'),_e=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var ye=d("></template>");function ve(e,t,n){if(a(e,pe),null===n)throw Error(o(395));return a(e,n),l(e,de)}var be=d('<div hidden id="'),we=d('">'),xe=d("</div>"),Se=d('<svg aria-hidden="true" style="display:none" id="'),ke=d('">'),Ee=d("</svg>"),Ce=d('<math aria-hidden="true" style="display:none" id="'),Te=d('">'),je=d("</math>"),Pe=d('<table hidden id="'),Ae=d('">'),Ne=d("</table>"),Ie=d('<table hidden><tbody id="'),Le=d('">'),Re=d("</tbody></table>"),Be=d('<table hidden><tr id="'),Oe=d('">'),Me=d("</tr></table>"),De=d('<table hidden><colgroup id="'),Fe=d('">'),$e=d("</colgroup></table>"),Ve=d('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),ze=d('$RS("'),qe=d('","'),He=d('")<\/script>'),Ue=d('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),We=d('$RC("'),Ge=d('","'),Ke=d('")<\/script>'),Ye=d('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Ze=d('$RX("'),Je=d('"'),Xe=d(")<\/script>"),Qe=d(","),et=/[<\u2028\u2029]/g;function tt(e){return JSON.stringify(e).replace(et,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var nt=Object.assign,rt=Symbol.for("react.element"),ot=Symbol.for("react.portal"),it=Symbol.for("react.fragment"),st=Symbol.for("react.strict_mode"),at=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),ct=Symbol.for("react.context"),ut=Symbol.for("react.forward_ref"),pt=Symbol.for("react.suspense"),dt=Symbol.for("react.suspense_list"),ht=Symbol.for("react.memo"),ft=Symbol.for("react.lazy"),mt=Symbol.for("react.scope"),gt=Symbol.for("react.debug_trace_mode"),_t=Symbol.for("react.legacy_hidden"),yt=Symbol.for("react.default_value"),vt=Symbol.iterator;function bt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case it:return"Fragment";case ot:return"Portal";case at:return"Profiler";case st:return"StrictMode";case pt:return"Suspense";case dt:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ct:return(e.displayName||"Context")+".Consumer";case lt:return(e._context.displayName||"Context")+".Provider";case ut:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ht:return null!==(t=e.displayName||null)?t:bt(e.type)||"Memo";case ft:t=e._payload,e=e._init;try{return bt(e(t))}catch(e){}}return null}var wt={};function xt(e,t){if(!(e=e.contextTypes))return wt;var n,r={};for(n in e)r[n]=t[n];return r}var St=null;function kt(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));kt(e,n)}t.context._currentValue=t.value}}function Et(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Et(e)}function Ct(e){var t=e.parent;null!==t&&Ct(t),e.context._currentValue=e.value}function Tt(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?kt(e,t):Tt(e,t)}function jt(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?kt(e,n):jt(e,n),t.context._currentValue=t.value}function Pt(e){var t=St;t!==e&&(null===t?Ct(e):null===e?Et(t):t.depth===e.depth?kt(t,e):t.depth>e.depth?Tt(t,e):jt(t,e),St=e)}var At={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Nt(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=At,e.props=n,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"==typeof s&&null!==s?s._currentValue:r,"function"==typeof(s=t.getDerivedStateFromProps)&&(o=null==(s=s(n,o))?o:nt({},o,s),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&At.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,o=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"==typeof a?a.call(e,i,n,r):a)&&(o?(o=!1,i=nt({},i,a)):nt(i,a))}e.state=i}else i.queue=null}var It={id:1,overflow:""};function Lt(e,t,n){var r=e.id;e=e.overflow;var o=32-Rt(r)-1;r&=~(1<<o),n+=1;var i=32-Rt(t)+o;if(30<i){var s=o-o%5;return i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,{id:1<<32-Rt(t)+o|n<<o|r,overflow:i+e}}return{id:1<<i|n<<o|r,overflow:e}}var Rt=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Bt(e)/Ot|0)|0},Bt=Math.log,Ot=Math.LN2,Mt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Dt=null,Ft=null,$t=null,Vt=null,zt=!1,qt=!1,Ht=0,Ut=null,Wt=0;function Gt(){if(null===Dt)throw Error(o(321));return Dt}function Kt(){if(0<Wt)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Yt(){return null===Vt?null===$t?(zt=!1,$t=Vt=Kt()):(zt=!0,Vt=$t):null===Vt.next?(zt=!1,Vt=Vt.next=Kt()):(zt=!0,Vt=Vt.next),Vt}function Zt(){Ft=Dt=null,qt=!1,$t=null,Wt=0,Vt=Ut=null}function Jt(e,t){return"function"==typeof t?t(e):t}function Xt(e,t,n){if(Dt=Gt(),Vt=Yt(),zt){var r=Vt.queue;if(t=r.dispatch,null!==Ut&&void 0!==(n=Ut.get(r))){Ut.delete(r),r=Vt.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Vt.memoizedState=r,[r,t]}return[Vt.memoizedState,t]}return e=e===Jt?"function"==typeof t?t():t:void 0!==n?n(t):t,Vt.memoizedState=e,e=(e=Vt.queue={last:null,dispatch:null}).dispatch=en.bind(null,Dt,e),[Vt.memoizedState,e]}function Qt(e,t){if(Dt=Gt(),t=void 0===t?null:t,null!==(Vt=Yt())){var n=Vt.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Mt(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Vt.memoizedState=[e,t],e}function en(e,t,n){if(25<=Wt)throw Error(o(301));if(e===Dt)if(qt=!0,e={action:n,next:null},null===Ut&&(Ut=new Map),void 0===(n=Ut.get(t)))Ut.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function tn(){throw Error(o(394))}function nn(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return Gt(),e._currentValue},useMemo:Qt,useReducer:Xt,useRef:function(e){Dt=Gt();var t=(Vt=Yt()).memoizedState;return null===t?(e={current:e},Vt.memoizedState=e):t},useState:function(e){return Xt(Jt,e)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(e,t){return Qt((function(){return e}),t)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(e){return Gt(),e},useTransition:function(){return Gt(),[!1,tn]},useId:function(){var e=Ft.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Rt(e)-1)).toString(32)+t;var n=on;if(null===n)throw Error(o(404));return t=Ht++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Gt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},on=null,sn=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function an(e){return console.error(e),null}function ln(){}function cn(e,t,n,r,o,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&En(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:i,context:s,treeContext:a};return o.add(l),l}function un(e,t,n,r,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:i}}function pn(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function dn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,h(e.destination,t)):(e.status=1,e.fatalError=t)}function hn(e,t,n,r,o){for(Dt={},Ft=t,Ht=0,e=n(r,o);qt;)qt=!1,Ht=0,Wt+=1,Vt=null,e=n(r,o);return Zt(),e}function fn(e,t,n,r){var i=n.render(),s=r.childContextTypes;if(null!=s){var a=t.legacyContext;if("function"!=typeof n.getChildContext)r=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(o(108,bt(r)||"Unknown",l));r=nt({},a,n)}t.legacyContext=r,yn(e,t,i),t.legacyContext=a}else yn(e,t,i)}function mn(e,t){if(e&&e.defaultProps){for(var n in t=nt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function gn(e,t,n,i,s){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){s=xt(n,t.legacyContext);var a=n.contextType;Nt(a=new n(i,"object"==typeof a&&null!==a?a._currentValue:s),n,i,s),fn(e,t,a,n)}else{s=hn(e,t,n,i,a=xt(n,t.legacyContext));var l=0!==Ht;if("object"==typeof s&&null!==s&&"function"==typeof s.render&&void 0===s.$$typeof)Nt(s,n,i,a),fn(e,t,s,n);else if(l){i=t.treeContext,t.treeContext=Lt(i,1,0);try{yn(e,t,s)}finally{t.treeContext=i}}else yn(e,t,s)}else{if("string"!=typeof n){switch(n){case _t:case gt:case st:case at:case it:case dt:return void yn(e,t,i.children);case mt:throw Error(o(343));case pt:e:{n=t.blockedBoundary,s=t.blockedSegment,a=i.fallback,i=i.children;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l=new Set,errorDigest:null},u=un(0,s.chunks.length,c,s.formatContext,!1,!1);s.children.push(u),s.lastPushedText=!1;var d=un(0,0,null,s.formatContext,!1,!1);d.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=d;try{if(bn(e,t,i),d.lastPushedText&&d.textEmbedded&&d.chunks.push(D),d.status=1,Sn(c,d),0===c.pendingTasks)break e}catch(t){d.status=4,c.forceClientRender=!0,c.errorDigest=pn(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=s}t=cn(e,a,n,u,l,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case ut:if(i=hn(e,t,n.render,i,s),0!==Ht){n=t.treeContext,t.treeContext=Lt(n,1,0);try{yn(e,t,i)}finally{t.treeContext=n}}else yn(e,t,i);return;case ht:return void gn(e,t,n=n.type,i=mn(n,i),s);case lt:if(s=i.children,n=n._context,i=i.value,a=n._currentValue,n._currentValue=i,St=i={parent:l=St,depth:null===l?0:l.depth+1,context:n,parentValue:a,value:i},t.context=i,yn(e,t,s),null===(e=St))throw Error(o(403));return i=e.parentValue,e.context._currentValue=i===yt?e.context._defaultValue:i,e=St=e.parent,void(t.context=e);case ct:return void yn(e,t,i=(i=i.children)(n._currentValue));case ft:return void gn(e,t,n=(s=n._init)(n._payload),i=mn(n,i),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(a=function(e,t,n,i,s){switch(t){case"select":e.push(oe("select"));var a=null,l=null;for(h in n)if(f.call(n,h)){var c=n[h];if(null!=c)switch(h){case"children":a=c;break;case"dangerouslySetInnerHTML":l=c;break;case"defaultValue":case"value":break;default:Y(e,i,h,c)}}return e.push(Z),X(e,l,a),a;case"option":l=s.selectedValue,e.push(oe("option"));var u=c=null,d=null,h=null;for(a in n)if(f.call(n,a)){var m=n[a];if(null!=m)switch(a){case"children":c=m;break;case"selected":d=m;break;case"dangerouslySetInnerHTML":h=m;break;case"value":u=m;default:Y(e,i,a,m)}}if(null!=l)if(n=null!==u?""+u:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(c),P(l)){for(i=0;i<l.length;i++)if(""+l[i]===n){e.push(Q);break}}else""+l===n&&e.push(Q);else d&&e.push(Q);return e.push(Z),X(e,h,c),c;case"textarea":for(c in e.push(oe("textarea")),h=l=a=null,n)if(f.call(n,c)&&null!=(u=n[c]))switch(c){case"children":h=u;break;case"value":a=u;break;case"defaultValue":l=u;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:Y(e,i,c,u)}if(null===a&&null!==l&&(a=l),e.push(Z),null!=h){if(null!=a)throw Error(o(92));if(P(h)&&1<h.length)throw Error(o(93));a=""+h}return"string"==typeof a&&"\n"===a[0]&&e.push(te),null!==a&&e.push(p(C(""+a))),null;case"input":for(l in e.push(oe("input")),u=h=c=a=null,n)if(f.call(n,l)&&null!=(d=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":u=d;break;case"defaultValue":c=d;break;case"checked":h=d;break;case"value":a=d;break;default:Y(e,i,l,d)}return null!==h?Y(e,i,"checked",h):null!==u&&Y(e,i,"checked",u),null!==a?Y(e,i,"value",a):null!==c&&Y(e,i,"value",c),e.push(J),null;case"menuitem":for(var g in e.push(oe("menuitem")),n)if(f.call(n,g)&&null!=(a=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:Y(e,i,g,a)}return e.push(Z),null;case"title":for(m in e.push(oe("title")),a=null,n)if(f.call(n,m)&&null!=(l=n[m]))switch(m){case"children":a=l;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:Y(e,i,m,l)}return e.push(Z),a;case"listing":case"pre":for(u in e.push(oe(t)),l=a=null,n)if(f.call(n,u)&&null!=(c=n[u]))switch(u){case"children":a=c;break;case"dangerouslySetInnerHTML":l=c;break;default:Y(e,i,u,c)}if(e.push(Z),null!=l){if(null!=a)throw Error(o(60));if("object"!=typeof l||!("__html"in l))throw Error(o(61));null!=(n=l.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(te,p(n)):e.push(p(""+n)))}return"string"==typeof a&&"\n"===a[0]&&e.push(te),a;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var _ in e.push(oe(t)),n)if(f.call(n,_)&&null!=(a=n[_]))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:Y(e,i,_,a)}return e.push(J),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,i);case"html":return 0===s.insertionMode&&e.push(ie),ee(e,n,t,i);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return ee(e,n,t,i);for(d in e.push(oe(t)),l=a=null,n)if(f.call(n,d)&&null!=(c=n[d]))switch(d){case"children":a=c;break;case"dangerouslySetInnerHTML":l=c;break;case"style":H(e,i,c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(d)&&"function"!=typeof c&&"symbol"!=typeof c&&e.push(U,p(d),W,p(C(c)),G)}return e.push(Z),X(e,l,a),a}}((s=t.blockedSegment).chunks,n,i,e.responseState,s.formatContext),s.lastPushedText=!1,l=s.formatContext,s.formatContext=function(e,t,n){switch(t){case"select":return M(1,null!=n.value?n.value:n.defaultValue);case"svg":return M(2,null);case"math":return M(3,null);case"foreignObject":return M(1,null);case"table":return M(4,null);case"thead":case"tbody":case"tfoot":return M(5,null);case"colgroup":return M(7,null);case"tr":return M(6,null)}return 4<=e.insertionMode||0===e.insertionMode?M(1,null):e}(l,n,i),bn(e,t,a),s.formatContext=l,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:s.chunks.push(se,p(n),ae)}s.lastPushedText=!1}}function yn(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case rt:return void gn(e,t,n.type,n.props,n.ref);case ot:throw Error(o(257));case ft:var r=n._init;return void yn(e,t,n=r(n._payload))}if(P(n))return void vn(e,t,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=vt&&n[vt]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var i=[];do{i.push(n.value),n=r.next()}while(!n.done);vn(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=F(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=F(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function vn(e,t,n){for(var r=n.length,o=0;o<r;o++){var i=t.treeContext;t.treeContext=Lt(i,r,o);try{bn(e,t,n[o])}finally{t.treeContext=i}}}function bn(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return yn(e,t,n)}catch(l){if(Zt(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,Pt(i),l;n=l;var s=t.blockedSegment,a=un(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=cn(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,Pt(i)}}function wn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,kn(this,t,e)}function xn(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return xn(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Sn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Sn(e,n)}else e.completedSegments.push(t)}function kn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ln,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Sn(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(wn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Sn(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function En(e){if(2!==e.status){var t=St,n=sn.current;sn.current=rn;var r=on;on=e.responseState;try{var o,i=e.pingedTasks;for(o=0;o<i.length;o++){var s=i[o],a=e,l=s.blockedSegment;if(0===l.status){Pt(s.context);try{yn(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(D),s.abortSet.delete(s),l.status=1,kn(a,s.blockedBoundary,l)}catch(e){if(Zt(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=s.ping;e.then(c,c)}else{s.abortSet.delete(s),l.status=4;var u=s.blockedBoundary,p=e,d=pn(a,p);null===u?dn(a,p):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=d,u.parentFlushed&&a.clientRenderedBoundaries.push(u))),a.allPendingTasks--,0===a.allPendingTasks&&(0,a.onAllReady)()}}}}i.splice(0,o),null!==e.destination&&Nn(e,e.destination)}catch(t){pn(e,t),dn(e,t)}finally{on=r,sn.current=n,n===rn&&Pt(t)}}}function Cn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,a(t,le),a(t,e.placeholderPrefix),a(t,e=p(r.toString(16))),l(t,ce);case 1:n.status=2;var i=!0;r=n.chunks;var s=0;n=n.children;for(var c=0;c<n.length;c++){for(i=n[c];s<i.index;s++)a(t,r[s]);i=Tn(e,t,i)}for(;s<r.length-1;s++)a(t,r[s]);return s<r.length&&(i=l(t,r[s])),i;default:throw Error(o(390))}}function Tn(e,t,n){var r=n.boundary;if(null===r)return Cn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,l(t,he),a(t,me),r&&(a(t,_e),a(t,p(C(r))),a(t,ge)),l(t,ye),Cn(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var i=e.responseState,s=i.nextSuspenseID++;i=d(i.boundaryPrefix+s.toString(16)),r=r.id=i,ve(t,e.responseState,r),Cn(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),ve(t,e.responseState,r.id),Cn(e,t,n);else{if(l(t,ue),1!==(n=r.completedSegments).length)throw Error(o(391));Tn(e,t,n[0])}return l(t,fe)}function jn(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return a(e,be),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,we);case 2:return a(e,Se),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,ke);case 3:return a(e,Ce),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,Te);case 4:return a(e,Pe),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,Ae);case 5:return a(e,Ie),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,Le);case 6:return a(e,Be),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,Oe);case 7:return a(e,De),a(e,t.segmentPrefix),a(e,p(r.toString(16))),l(e,Fe);default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),Tn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,xe);case 2:return l(e,Ee);case 3:return l(e,je);case 4:return l(e,Ne);case 5:return l(e,Re);case 6:return l(e,Me);case 7:return l(e,$e);default:throw Error(o(397))}}(t,n.formatContext)}function Pn(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++)An(e,t,n,r[i]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,a(t,e.startInlineScript),e.sentCompleteBoundaryFunction?a(t,We):(e.sentCompleteBoundaryFunction=!0,a(t,Ue)),null===r)throw Error(o(395));return n=p(n.toString(16)),a(t,r),a(t,Ge),a(t,e.segmentPrefix),a(t,n),l(t,Ke)}function An(e,t,n,r){if(2===r.status)return!0;var i=r.id;if(-1===i){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return jn(e,t,r)}return jn(e,t,r),a(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?a(t,ze):(e.sentCompleteSegmentFunction=!0,a(t,Ve)),a(t,e.segmentPrefix),a(t,i=p(i.toString(16))),a(t,qe),a(t,e.placeholderPrefix),a(t,i),l(t,He)}function Nn(e,t){i=new Uint8Array(512),s=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Tn(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)a(t,r[n]);n<r.length&&l(t,r[n])}var u,d=e.clientRenderedBoundaries;for(u=0;u<d.length;u++){var h=d[u];r=t;var f=e.responseState,m=h.id,g=h.errorDigest,_=h.errorMessage,y=h.errorComponentStack;if(a(r,f.startInlineScript),f.sentClientRenderFunction?a(r,Ze):(f.sentClientRenderFunction=!0,a(r,Ye)),null===m)throw Error(o(395));if(a(r,m),a(r,Je),(g||_||y)&&(a(r,Qe),a(r,p(tt(g||"")))),(_||y)&&(a(r,Qe),a(r,p(tt(_||"")))),y&&(a(r,Qe),a(r,p(tt(y)))),!l(r,Xe))return e.destination=null,u++,void d.splice(0,u)}d.splice(0,u);var v=e.completedBoundaries;for(u=0;u<v.length;u++)if(!Pn(e,t,v[u]))return e.destination=null,u++,void v.splice(0,u);v.splice(0,u),c(t),i=new Uint8Array(512),s=0;var b=e.partialBoundaries;for(u=0;u<b.length;u++){var w=b[u];e:{d=e,h=t;var x=w.completedSegments;for(f=0;f<x.length;f++)if(!An(d,h,w,x[f])){f++,x.splice(0,f);var S=!1;break e}x.splice(0,f),S=!0}if(!S)return e.destination=null,u++,void b.splice(0,u)}b.splice(0,u);var k=e.completedBoundaries;for(u=0;u<k.length;u++)if(!Pn(e,t,k[u]))return e.destination=null,u++,void k.splice(0,u);k.splice(0,u)}finally{c(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function In(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return xn(n,e,t)})),n.clear(),null!==e.destination&&Nn(e,e.destination)}catch(t){pn(e,t),dn(e,t)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,r){var o,i,s=new Promise((function(e,t){i=e,o=t})),a=function(e,t,n,r,o,i,s,a,l){var c=[],u=new Set;return(n=un(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?an:o,onAllReady:void 0===i?ln:i,onShellReady:void 0===s?ln:s,onShellError:void 0===a?ln:a,onFatalError:void 0===l?ln:l},0,null,n,!1,!1)).parentFlushed=!0,e=cn(t,e,null,n,u,wt,null,It),c.push(e),t}(e,function(e,t,n,r,o){e=void 0===e?"":e,t=void 0===t?A:d('<script nonce="'+C(t)+'">');var i=[];if(void 0!==n&&i.push(t,p((""+n).replace(B,O)),N),void 0!==r)for(n=0;n<r.length;n++)i.push(I,p(C(r[n])),R);if(void 0!==o)for(r=0;r<o.length;r++)i.push(L,p(C(o[r])),R);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:d(e+"P:"),segmentPrefix:d(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return M("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===a.status)a.status=2,h(e,a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=e;try{Nn(a,e)}catch(e){pn(a,e),dn(a,e)}}},cancel:function(){In(a)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),r(e)}),o);if(t&&t.signal){var l=t.signal,c=function(){In(a,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}En(a)}))},t.version="18.3.1"},8191(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var i=o(n(7165)),s=r(n(8223)),a=r(n(1559)),l=o(n(8455)),c=o(n(858)),u=r(n(7538));function p(){var e=new i.HandlebarsEnvironment;return l.extend(e,i),e.SafeString=s.default,e.Exception=a.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var d=p();d.create=p,u.default(d),d.default=d,t.default=d,e.exports=t.default},8223(e,t){"use strict";function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default},8255(e){e.exports=function(e){if(!window.satismeter){window.satismeter=function(){var e=[];function t(){e.push(arguments)}return t.q=e,t}();var t=document.createElement("script"),n=document.getElementsByTagName("script")[0].parentNode;t.async=1,t.src="https://app.satismeter.com/satismeter.js",n.appendChild(t)}return window.satismeter(e)}},8312(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===e?{}:e.split(";").reduce((function(e,t){var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(_n=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&s.return&&s.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(t.split(/^([^:]+):/).filter((function(e,t){return t>0})).map((function(e){return e.trim().toLowerCase()})),2),r=n[0],o=n[1];return void 0===o||(e[r=r.replace(/^-ms-/,"ms-").replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))]=o),e}),{})}},8330(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return o.default[e.type](e,t,n)};var r,o=(r=n(110))&&r.__esModule?r:{default:r}},8363(e,t,n){"use strict";var r=n(1609);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Object.prototype.hasOwnProperty,s=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,a={},l={};function c(e){return!!i.call(l,e)||!i.call(a,e)&&(s.test(e)?l[e]=!0:(a[e]=!0,!1))}function u(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new u(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new u(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new u(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new u(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new u(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new u(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new u(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new u(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new u(e,5,!1,e.toLowerCase(),null,!1,!1)}));var d=/[\-:]([a-z])/g;function h(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(d,h);p[t]=new u(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(d,h);p[t]=new u(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(d,h);p[t]=new u(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new u(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new u(e,1,!1,e.toLowerCase(),null,!0,!0)}));var f={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=["Webkit","ms","Moz","O"];Object.keys(f).forEach((function(e){m.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),f[t]=f[e]}))}));var g=/["'&<>]/;function _(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=g.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var y=/([A-Z])/g,v=/^ms-/,b=Array.isArray;function w(e,t){return{insertionMode:e,selectedValue:t}}var x=new Map;function S(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(i.call(n,r)){var s=n[r];if(null!=s&&"boolean"!=typeof s&&""!==s){if(0===r.indexOf("--")){var a=_(r);s=_((""+s).trim())}else{a=r;var l=x.get(a);void 0!==l||(l=_(a.replace(y,"-$1").toLowerCase().replace(v,"-ms-")),x.set(a,l)),a=l,s="number"==typeof s?0===s||i.call(f,r)?""+s:s+"px":_((""+s).trim())}t?(t=!1,e.push(' style="',a,":",s)):e.push(";",a,":",s)}}t||e.push('"')}function k(e,t,n,r){switch(n){case"style":return void S(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=p.hasOwnProperty(n)?p[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',_(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',_(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',_(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',_(r),'"')}}else if(c(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',_(r),'"')}}function E(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(""+t)}}function C(e,t,n,r){e.push(P(n));var o,s=n=null;for(o in t)if(i.call(t,o)){var a=t[o];if(null!=a)switch(o){case"children":n=a;break;case"dangerouslySetInnerHTML":s=a;break;default:k(e,r,o,a)}}return e.push(">"),E(e,s,n),"string"==typeof n?(e.push(_(n)),null):n}var T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,j=new Map;function P(e){var t=j.get(e);if(void 0===t){if(!T.test(e))throw Error(o(65,e));t="<"+e,j.set(e,t)}return t}function A(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(o(395));return e.push(n),e.push('"></template>')}var N=/[<\u2028\u2029]/g;function I(e){return JSON.stringify(e).replace(N,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function L(e,t,n,r){return n.generateStaticMarkup?(e.push(_(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(_(t)),e=!0),e)}var R=Object.assign,B=Symbol.for("react.element"),O=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),V=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),G=Symbol.for("react.scope"),K=Symbol.for("react.debug_trace_mode"),Y=Symbol.for("react.legacy_hidden"),Z=Symbol.for("react.default_value"),J=Symbol.iterator;function X(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case M:return"Fragment";case O:return"Portal";case F:return"Profiler";case D:return"StrictMode";case q:return"Suspense";case H:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case V:return(e.displayName||"Context")+".Consumer";case $:return(e._context.displayName||"Context")+".Provider";case z:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case U:return null!==(t=e.displayName||null)?t:X(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return X(e(t))}catch(e){}}return null}var Q={};function ee(e,t){if(!(e=e.contextTypes))return Q;var n,r={};for(n in e)r[n]=t[n];return r}var te=null;function ne(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));ne(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function oe(e){var t=e.parent;null!==t&&oe(t),e.context._currentValue2=e.value}function ie(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?ne(e,t):ie(e,t)}function se(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?ne(e,n):se(e,n),t.context._currentValue2=t.value}function ae(e){var t=te;t!==e&&(null===t?oe(e):null===e?re(t):t.depth===e.depth?ne(t,e):t.depth>e.depth?ie(t,e):se(t,e),te=e)}var le={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ce(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=le,e.props=n,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"==typeof s&&null!==s?s._currentValue2:r,"function"==typeof(s=t.getDerivedStateFromProps)&&(o=null==(s=s(n,o))?o:R({},o,s),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&le.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,o=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"==typeof a?a.call(e,i,n,r):a)&&(o?(o=!1,i=R({},i,a)):R(i,a))}e.state=i}else i.queue=null}var ue={id:1,overflow:""};function pe(e,t,n){var r=e.id;e=e.overflow;var o=32-de(r)-1;r&=~(1<<o),n+=1;var i=32-de(t)+o;if(30<i){var s=o-o%5;return i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,{id:1<<32-de(t)+o|n<<o|r,overflow:i+e}}return{id:1<<i|n<<o|r,overflow:e}}var de=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(he(e)/fe|0)|0},he=Math.log,fe=Math.LN2,me="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ge=null,_e=null,ye=null,ve=null,be=!1,we=!1,xe=0,Se=null,ke=0;function Ee(){if(null===ge)throw Error(o(321));return ge}function Ce(){if(0<ke)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Te(){return null===ve?null===ye?(be=!1,ye=ve=Ce()):(be=!0,ve=ye):null===ve.next?(be=!1,ve=ve.next=Ce()):(be=!0,ve=ve.next),ve}function je(){_e=ge=null,we=!1,ye=null,ke=0,ve=Se=null}function Pe(e,t){return"function"==typeof t?t(e):t}function Ae(e,t,n){if(ge=Ee(),ve=Te(),be){var r=ve.queue;if(t=r.dispatch,null!==Se&&void 0!==(n=Se.get(r))){Se.delete(r),r=ve.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return ve.memoizedState=r,[r,t]}return[ve.memoizedState,t]}return e=e===Pe?"function"==typeof t?t():t:void 0!==n?n(t):t,ve.memoizedState=e,e=(e=ve.queue={last:null,dispatch:null}).dispatch=Ie.bind(null,ge,e),[ve.memoizedState,e]}function Ne(e,t){if(ge=Ee(),t=void 0===t?null:t,null!==(ve=Te())){var n=ve.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!me(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),ve.memoizedState=[e,t],e}function Ie(e,t,n){if(25<=ke)throw Error(o(301));if(e===ge)if(we=!0,e={action:n,next:null},null===Se&&(Se=new Map),void 0===(n=Se.get(t)))Se.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Le(){throw Error(o(394))}function Re(){}var Be={readContext:function(e){return e._currentValue2},useContext:function(e){return Ee(),e._currentValue2},useMemo:Ne,useReducer:Ae,useRef:function(e){ge=Ee();var t=(ve=Te()).memoizedState;return null===t?(e={current:e},ve.memoizedState=e):t},useState:function(e){return Ae(Pe,e)},useInsertionEffect:Re,useLayoutEffect:function(){},useCallback:function(e,t){return Ne((function(){return e}),t)},useImperativeHandle:Re,useEffect:Re,useDebugValue:Re,useDeferredValue:function(e){return Ee(),e},useTransition:function(){return Ee(),[!1,Le]},useId:function(){var e=_e.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-de(e)-1)).toString(32)+t;var n=Oe;if(null===n)throw Error(o(404));return t=xe++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ee(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},Oe=null,Me=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function De(e){return console.error(e),null}function Fe(){}function $e(e,t,n,r,o,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&tt(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:i,context:s,treeContext:a};return o.add(l),l}function Ve(e,t,n,r,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:i}}function ze(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function qe(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function He(e,t,n,r,o){for(ge={},_e=t,xe=0,e=n(r,o);we;)we=!1,xe=0,ke+=1,ve=null,e=n(r,o);return je(),e}function Ue(e,t,n,r){var i=n.render(),s=r.childContextTypes;if(null!=s){var a=t.legacyContext;if("function"!=typeof n.getChildContext)r=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(o(108,X(r)||"Unknown",l));r=R({},a,n)}t.legacyContext=r,Ke(e,t,i),t.legacyContext=a}else Ke(e,t,i)}function We(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ge(e,t,n,s,a){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){a=ee(n,t.legacyContext);var l=n.contextType;ce(l=new n(s,"object"==typeof l&&null!==l?l._currentValue2:a),n,s,a),Ue(e,t,l,n)}else{a=He(e,t,n,s,l=ee(n,t.legacyContext));var u=0!==xe;if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof)ce(a,n,s,l),Ue(e,t,a,n);else if(u){s=t.treeContext,t.treeContext=pe(s,1,0);try{Ke(e,t,a)}finally{t.treeContext=s}}else Ke(e,t,a)}else{if("string"!=typeof n){switch(n){case Y:case K:case D:case F:case M:case H:return void Ke(e,t,s.children);case G:throw Error(o(343));case q:e:{n=t.blockedBoundary,a=t.blockedSegment,l=s.fallback,s=s.children;var p={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:u=new Set,errorDigest:null},d=Ve(0,a.chunks.length,p,a.formatContext,!1,!1);a.children.push(d),a.lastPushedText=!1;var h=Ve(0,0,null,a.formatContext,!1,!1);h.parentFlushed=!0,t.blockedBoundary=p,t.blockedSegment=h;try{if(Ze(e,t,s),e.responseState.generateStaticMarkup||h.lastPushedText&&h.textEmbedded&&h.chunks.push("\x3c!-- --\x3e"),h.status=1,Qe(p,h),0===p.pendingTasks)break e}catch(t){h.status=4,p.forceClientRender=!0,p.errorDigest=ze(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=a}t=$e(e,l,n,d,u,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case z:if(s=He(e,t,n.render,s,a),0!==xe){n=t.treeContext,t.treeContext=pe(n,1,0);try{Ke(e,t,s)}finally{t.treeContext=n}}else Ke(e,t,s);return;case U:return void Ge(e,t,n=n.type,s=We(n,s),a);case $:if(a=s.children,n=n._context,s=s.value,l=n._currentValue2,n._currentValue2=s,te=s={parent:u=te,depth:null===u?0:u.depth+1,context:n,parentValue:l,value:s},t.context=s,Ke(e,t,a),null===(e=te))throw Error(o(403));return s=e.parentValue,e.context._currentValue2=s===Z?e.context._defaultValue:s,e=te=e.parent,void(t.context=e);case V:return void Ke(e,t,s=(s=s.children)(n._currentValue2));case W:return void Ge(e,t,n=(a=n._init)(n._payload),s=We(n,s),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(l=function(e,t,n,s,a){switch(t){case"select":e.push(P("select"));var l=null,u=null;for(f in n)if(i.call(n,f)){var p=n[f];if(null!=p)switch(f){case"children":l=p;break;case"dangerouslySetInnerHTML":u=p;break;case"defaultValue":case"value":break;default:k(e,s,f,p)}}return e.push(">"),E(e,u,l),l;case"option":u=a.selectedValue,e.push(P("option"));var d=p=null,h=null,f=null;for(l in n)if(i.call(n,l)){var m=n[l];if(null!=m)switch(l){case"children":p=m;break;case"selected":h=m;break;case"dangerouslySetInnerHTML":f=m;break;case"value":d=m;default:k(e,s,l,m)}}if(null!=u)if(n=null!==d?""+d:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(p),b(u)){for(s=0;s<u.length;s++)if(""+u[s]===n){e.push(' selected=""');break}}else""+u===n&&e.push(' selected=""');else h&&e.push(' selected=""');return e.push(">"),E(e,f,p),p;case"textarea":for(p in e.push(P("textarea")),f=u=l=null,n)if(i.call(n,p)&&null!=(d=n[p]))switch(p){case"children":f=d;break;case"value":l=d;break;case"defaultValue":u=d;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:k(e,s,p,d)}if(null===l&&null!==u&&(l=u),e.push(">"),null!=f){if(null!=l)throw Error(o(92));if(b(f)&&1<f.length)throw Error(o(93));l=""+f}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(_(""+l)),null;case"input":for(u in e.push(P("input")),d=f=p=l=null,n)if(i.call(n,u)&&null!=(h=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":d=h;break;case"defaultValue":p=h;break;case"checked":f=h;break;case"value":l=h;break;default:k(e,s,u,h)}return null!==f?k(e,s,"checked",f):null!==d&&k(e,s,"checked",d),null!==l?k(e,s,"value",l):null!==p&&k(e,s,"value",p),e.push("/>"),null;case"menuitem":for(var g in e.push(P("menuitem")),n)if(i.call(n,g)&&null!=(l=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:k(e,s,g,l)}return e.push(">"),null;case"title":for(m in e.push(P("title")),l=null,n)if(i.call(n,m)&&null!=(u=n[m]))switch(m){case"children":l=u;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:k(e,s,m,u)}return e.push(">"),l;case"listing":case"pre":for(d in e.push(P(t)),u=l=null,n)if(i.call(n,d)&&null!=(p=n[d]))switch(d){case"children":l=p;break;case"dangerouslySetInnerHTML":u=p;break;default:k(e,s,d,p)}if(e.push(">"),null!=u){if(null!=l)throw Error(o(60));if("object"!=typeof u||!("__html"in u))throw Error(o(61));null!=(n=u.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"==typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(P(t)),n)if(i.call(n,y)&&null!=(l=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:k(e,s,y,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return C(e,n,t,s);case"html":return 0===a.insertionMode&&e.push("<!DOCTYPE html>"),C(e,n,t,s);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return C(e,n,t,s);for(h in e.push(P(t)),u=l=null,n)if(i.call(n,h)&&null!=(p=n[h]))switch(h){case"children":l=p;break;case"dangerouslySetInnerHTML":u=p;break;case"style":S(e,s,p);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:c(h)&&"function"!=typeof p&&"symbol"!=typeof p&&e.push(" ",h,'="',_(p),'"')}return e.push(">"),E(e,u,l),l}}((a=t.blockedSegment).chunks,n,s,e.responseState,a.formatContext),a.lastPushedText=!1,u=a.formatContext,a.formatContext=function(e,t,n){switch(t){case"select":return w(1,null!=n.value?n.value:n.defaultValue);case"svg":return w(2,null);case"math":return w(3,null);case"foreignObject":return w(1,null);case"table":return w(4,null);case"thead":case"tbody":case"tfoot":return w(5,null);case"colgroup":return w(7,null);case"tr":return w(6,null)}return 4<=e.insertionMode||0===e.insertionMode?w(1,null):e}(u,n,s),Ze(e,t,l),a.formatContext=u,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:a.chunks.push("</",n,">")}a.lastPushedText=!1}}function Ke(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case B:return void Ge(e,t,n.type,n.props,n.ref);case O:throw Error(o(257));case W:var r=n._init;return void Ke(e,t,n=r(n._payload))}if(b(n))return void Ye(e,t,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=J&&n[J]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var i=[];do{i.push(n.value),n=r.next()}while(!n.done);Ye(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(r=t.blockedSegment).lastPushedText=L(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"==typeof n&&((r=t.blockedSegment).lastPushedText=L(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Ye(e,t,n){for(var r=n.length,o=0;o<r;o++){var i=t.treeContext;t.treeContext=pe(i,r,o);try{Ze(e,t,n[o])}finally{t.treeContext=i}}}function Ze(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return Ke(e,t,n)}catch(l){if(je(),"object"!=typeof l||null===l||"function"!=typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,ae(i),l;n=l;var s=t.blockedSegment,a=Ve(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=$e(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,ae(i)}}function Je(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,et(this,t,e)}function Xe(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return Xe(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function Qe(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Qe(e,n)}else e.completedSegments.push(t)}function et(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Fe,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Qe(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Je,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Qe(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function tt(e){if(2!==e.status){var t=te,n=Me.current;Me.current=Be;var r=Oe;Oe=e.responseState;try{var o,i=e.pingedTasks;for(o=0;o<i.length;o++){var s=i[o],a=e,l=s.blockedSegment;if(0===l.status){ae(s.context);try{Ke(a,s,s.node),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),s.abortSet.delete(s),l.status=1,et(a,s.blockedBoundary,l)}catch(e){if(je(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=s.ping;e.then(c,c)}else{s.abortSet.delete(s),l.status=4;var u=s.blockedBoundary,p=e,d=ze(a,p);null===u?qe(a,p):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=d,u.parentFlushed&&a.clientRenderedBoundaries.push(u))),a.allPendingTasks--,0===a.allPendingTasks&&(0,a.onAllReady)()}}}}i.splice(0,o),null!==e.destination&&at(e,e.destination)}catch(t){ze(e,t),qe(e,t)}finally{Oe=r,Me.current=n,n===Be&&ae(t)}}}function nt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var i=!0;r=n.chunks;var s=0;n=n.children;for(var a=0;a<n.length;a++){for(i=n[a];s<i.index;s++)t.push(r[s]);i=rt(e,t,i)}for(;s<r.length-1;s++)t.push(r[s]);return s<r.length&&(i=t.push(r[s])),i;default:throw Error(o(390))}}function rt(e,t,n){var r=n.boundary;if(null===r)return nt(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=_(r),t.push(r),t.push('"')),t.push("></template>")),nt(e,t,n),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var i=e.responseState,s=i.nextSuspenseID++;return i=i.boundaryPrefix+s.toString(16),r=r.id=i,A(t,e.responseState,r),nt(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),A(t,e.responseState,r.id),nt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(o(391));return rt(e,t,n[0]),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function ot(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(o(397))}}(t,n.formatContext)}function it(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++)st(e,t,n,r[i]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(o(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function st(e,t,n,r){if(2===r.status)return!0;var i=r.id;if(-1===i){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return ot(e,t,r)}return ot(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),i=i.toString(16),t.push(i),t.push('","'),t.push(e.placeholderPrefix),t.push(i),t.push('")<\/script>')}function at(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var i,s=e.clientRenderedBoundaries;for(i=0;i<s.length;i++){var a=s[i];r=t;var l=e.responseState,c=a.id,u=a.errorDigest,p=a.errorMessage,d=a.errorComponentStack;if(r.push(l.startInlineScript),l.sentClientRenderFunction?r.push('$RX("'):(l.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===c)throw Error(o(395));if(r.push(c),r.push('"'),u||p||d){r.push(",");var h=I(u||"");r.push(h)}if(p||d){r.push(",");var f=I(p||"");r.push(f)}if(d){r.push(",");var m=I(d);r.push(m)}if(!r.push(")<\/script>"))return e.destination=null,i++,void s.splice(0,i)}s.splice(0,i);var g=e.completedBoundaries;for(i=0;i<g.length;i++)if(!it(e,t,g[i]))return e.destination=null,i++,void g.splice(0,i);g.splice(0,i);var _=e.partialBoundaries;for(i=0;i<_.length;i++){var y=_[i];e:{s=e,a=t;var v=y.completedSegments;for(l=0;l<v.length;l++)if(!st(s,a,y,v[l])){l++,v.splice(0,l);var b=!1;break e}v.splice(0,l),b=!0}if(!b)return e.destination=null,i++,void _.splice(0,i)}_.splice(0,i);var w=e.completedBoundaries;for(i=0;i<w.length;i++)if(!it(e,t,w[i]))return e.destination=null,i++,void w.splice(0,i);w.splice(0,i)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function lt(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Xe(n,e,t)})),n.clear(),null!==e.destination&&at(e,e.destination)}catch(t){ze(e,t),qe(e,t)}}function ct(){}function ut(e,t,n,r){var i=!1,s=null,a="",l={push:function(e){return null!==e&&(a+=e),!0},destroy:function(e){i=!0,s=e}},c=!1;if(e=function(e,t,n,r,o,i,s,a,l){var c=[],u=new Set;return(n=Ve(t={destination:null,responseState:t,progressiveChunkSize:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?De:o,onAllReady:Fe,onShellReady:void 0===s?Fe:s,onShellError:Fe,onFatalError:Fe},0,null,n,!1,!1)).parentFlushed=!0,e=$e(t,e,null,n,u,Q,null,ue),c.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ct,0,(function(){c=!0})),tt(e),lt(e,r),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{at(e,l)}catch(t){ze(e,t),qe(e,t)}}if(i)throw s;if(!c)throw Error(o(426));return a}t.renderToNodeStream=function(){throw Error(o(207))},t.renderToStaticMarkup=function(e,t){return ut(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(o(208))},t.renderToString=function(e,t){return ut(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.3.1"},8455(e,t){"use strict";t.__esModule=!0,t.extend=s,t.indexOf=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return o.test(e)?e.replace(r,i):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=s({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},r=/[&<>"'`=]/g,o=/[&<>"'`=]/;function i(e){return n[e]}function s(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var a=Object.prototype.toString;t.toString=a;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===a.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===a.call(e)};t.isArray=c},8538(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var o=1;null!=n.hash.level?o=n.hash.level:n.data&&null!=n.data.level&&(o=n.data.level),t[0]=o,e.log.apply(e,t)}))},e.exports=t.default},8564(e,t,n){"use strict";t.__esModule=!0;var r,o=(r=n(1559))&&r.__esModule?r:{default:r};function i(){this.parents=[]}function s(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function a(e){s.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function l(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}i.prototype={constructor:i,mutating:!1,acceptKey:function(e,t){var n=this.accept(e[t]);if(this.mutating){if(n&&!i.prototype[n.type])throw new o.default('Unexpected node type "'+n.type+'" found when accepting '+t+" on "+e.type);e[t]=n}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new o.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,n=e.length;t<n;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,n--)},accept:function(e){if(e){if(!this[e.type])throw new o.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:s,Decorator:s,BlockStatement:a,DecoratorBlock:a,PartialStatement:l,PartialBlockStatement:function(e){l.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:s,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=i,e.exports=t.default},8628(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},8796(e,t,n){var r=n(5193),o=n(7533);function i(t,n){return delete e.exports[t],e.exports[t]=n,n}e.exports={Parser:r,Tokenizer:n(7097),ElementType:n(7500),DomHandler:o,get FeedHandler(){return i("FeedHandler",n(4516))},get Stream(){return i("Stream",n(6802))},get WritableStream(){return i("WritableStream",n(6126))},get ProxyHandler(){return i("ProxyHandler",n(7466))},get DomUtils(){return i("DomUtils",n(5027))},get CollectingHandler(){return i("CollectingHandler",n(5486))},DefaultHandler:o,get RssHandler(){return i("RssHandler",this.FeedHandler)},parseDOM:function(e,t){var n=new o(t);return new r(n,t).end(e),n.dom},parseFeed:function(t,n){var o=new e.exports.FeedHandler(n);return new r(o,n).end(t),o.dom},createDomStream:function(e,t,n){var i=new o(e,t,n);return new r(i,t)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},9039(e,t){"use strict";t.__esModule=!0;var n=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,n,r,o,i,s){var a=i.length-1;switch(o){case 1:return i[a-1];case 2:this.$=r.prepareProgram(i[a]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=i[a];break;case 9:this.$={type:"CommentStatement",value:r.stripComment(i[a]),strip:r.stripFlags(i[a],i[a]),loc:r.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:i[a],value:i[a],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(i[a-2],i[a-1],i[a],this._$);break;case 12:this.$={path:i[a-3],params:i[a-2],hash:i[a-1]};break;case 13:this.$=r.prepareBlock(i[a-3],i[a-2],i[a-1],i[a],!1,this._$);break;case 14:this.$=r.prepareBlock(i[a-3],i[a-2],i[a-1],i[a],!0,this._$);break;case 15:this.$={open:i[a-5],path:i[a-4],params:i[a-3],hash:i[a-2],blockParams:i[a-1],strip:r.stripFlags(i[a-5],i[a])};break;case 16:case 17:this.$={path:i[a-4],params:i[a-3],hash:i[a-2],blockParams:i[a-1],strip:r.stripFlags(i[a-5],i[a])};break;case 18:this.$={strip:r.stripFlags(i[a-1],i[a-1]),program:i[a]};break;case 19:var l=r.prepareBlock(i[a-2],i[a-1],i[a],i[a],!1,this._$),c=r.prepareProgram([l],i[a-1].loc);c.chained=!0,this.$={strip:i[a-2].strip,program:c,chain:!0};break;case 21:this.$={path:i[a-1],strip:r.stripFlags(i[a-2],i[a])};break;case 22:case 23:this.$=r.prepareMustache(i[a-3],i[a-2],i[a-1],i[a-4],r.stripFlags(i[a-4],i[a]),this._$);break;case 24:this.$={type:"PartialStatement",name:i[a-3],params:i[a-2],hash:i[a-1],indent:"",strip:r.stripFlags(i[a-4],i[a]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(i[a-2],i[a-1],i[a],this._$);break;case 26:this.$={path:i[a-3],params:i[a-2],hash:i[a-1],strip:r.stripFlags(i[a-4],i[a])};break;case 29:this.$={type:"SubExpression",path:i[a-3],params:i[a-2],hash:i[a-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:i[a],loc:r.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:r.id(i[a-2]),value:i[a],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(i[a-1]);break;case 35:this.$={type:"StringLiteral",value:i[a],original:i[a],loc:r.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(i[a]),original:Number(i[a]),loc:r.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===i[a],original:"true"===i[a],loc:r.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:r.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:r.locInfo(this._$)};break;case 42:this.$=r.preparePath(!0,i[a],this._$);break;case 43:this.$=r.preparePath(!1,i[a],this._$);break;case 44:i[a-2].push({part:r.id(i[a]),original:i[a],separator:i[a-1]}),this.$=i[a-2];break;case 45:this.$=[{part:r.id(i[a]),original:i[a]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:i[a-1].push(i[a]);break;case 98:case 100:this.$=[i[a]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=[0],n=[null],r=[],o=this.table,i="",s=0,a=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var c=this.lexer.yylloc;r.push(c);var u=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var p,d,h,f,m,g,_,y,v,b,w={};;){if(h=t[t.length-1],this.defaultActions[h]?f=this.defaultActions[h]:(null==p&&(b=void 0,"number"!=typeof(b=this.lexer.lex()||1)&&(b=this.symbols_[b]||b),p=b),f=o[h]&&o[h][p]),void 0===f||!f.length||!f[0]){var x="";if(!l){for(g in v=[],o[h])this.terminals_[g]&&g>2&&v.push("'"+this.terminals_[g]+"'");x=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:c,expected:v})}}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+h+", token: "+p);switch(f[0]){case 1:t.push(p),n.push(this.lexer.yytext),r.push(this.lexer.yylloc),t.push(f[1]),p=null,d?(p=d,d=null):(a=this.lexer.yyleng,i=this.lexer.yytext,s=this.lexer.yylineno,c=this.lexer.yylloc,l>0&&l--);break;case 2:if(_=this.productions_[f[1]][1],w.$=n[n.length-_],w._$={first_line:r[r.length-(_||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(_||1)].first_column,last_column:r[r.length-1].last_column},u&&(w._$.range=[r[r.length-(_||1)].range[0],r[r.length-1].range[1]]),void 0!==(m=this.performAction.call(w,i,a,s,this.yy,f[1],n,r)))return m;_&&(t=t.slice(0,-1*_*2),n=n.slice(0,-1*_),r=r.slice(0,-1*_)),t.push(this.productions_[f[1]][0]),n.push(w.$),r.push(w._$),y=o[t[t.length-2]][t[t.length-1]],t.push(y);break;case 3:return!0}}return!0}},t={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,n,r,o;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length&&(!(n=this._input.match(this.rules[i[s]]))||t&&!(n[0].length>t[0].length)||(t=n,r=s,this.options.flex));s++);return t?((o=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,n,r){function o(e,n){return t.yytext=t.yytext.substring(e,t.yyleng-n+e)}switch(n){case 0:if("\\\\"===t.yytext.slice(-2)?(o(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(o(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(o(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=o(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=o(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};function n(){this.yy={}}return e.lexer=t,n.prototype=e,e.Parser=n,new n}();t.default=n,e.exports=t.default},9082(e,t,n){"use strict";t.__esModule=!0,t.registerDefaultDecorators=function(e){o.default(e)};var r,o=(r=n(6052))&&r.__esModule?r:{default:r}},9124(e,t,n){"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},9616(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",(function(e,t,n){return e?n.lookupProperty(e,t):e}))},e.exports=t.default},9721(e,t,n){"use strict";t.__esModule=!0;var r,o=n(8455),i=(r=n(1559))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new i.default("#if requires exactly one argument");return o.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||o.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,n){if(2!=arguments.length)throw new i.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))},e.exports=t.default}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{VERSION:()=>m,after:()=>qt,all:()=>un,allKeys:()=>Ee,any:()=>pn,assign:()=>qe,before:()=>Ht,bind:()=>Nt,bindAll:()=>Rt,chain:()=>Tt,chunk:()=>Kn,clone:()=>Ge,collect:()=>rn,compact:()=>Mn,compose:()=>zt,constant:()=>ce,contains:()=>dn,countBy:()=>Tn,create:()=>We,debounce:()=>Ft,default:()=>Jn,defaults:()=>He,defer:()=>Mt,delay:()=>Ot,detect:()=>en,difference:()=>Fn,drop:()=>Bn,each:()=>nn,escape:()=>mt,every:()=>un,extend:()=>ze,extendOwn:()=>qe,filter:()=>ln,find:()=>en,findIndex:()=>Kt,findKey:()=>Wt,findLastIndex:()=>Yt,findWhere:()=>tn,first:()=>Rn,flatten:()=>Dn,foldl:()=>sn,foldr:()=>an,forEach:()=>nn,functions:()=>$e,get:()=>Xe,groupBy:()=>En,has:()=>Qe,head:()=>Rn,identity:()=>et,include:()=>dn,includes:()=>dn,indexBy:()=>Cn,indexOf:()=>Xt,initial:()=>Ln,inject:()=>sn,intersection:()=>qn,invert:()=>Fe,invoke:()=>hn,isArguments:()=>se,isArray:()=>re,isArrayBuffer:()=>K,isBoolean:()=>F,isDataView:()=>ne,isDate:()=>H,isElement:()=>$,isEmpty:()=>ve,isEqual:()=>ke,isError:()=>W,isFinite:()=>ae,isFunction:()=>J,isMap:()=>Le,isMatch:()=>be,isNaN:()=>le,isNull:()=>M,isNumber:()=>q,isObject:()=>O,isRegExp:()=>U,isSet:()=>Be,isString:()=>z,isSymbol:()=>G,isTypedArray:()=>me,isUndefined:()=>D,isWeakMap:()=>Re,isWeakSet:()=>Oe,iteratee:()=>it,keys:()=>ye,last:()=>On,lastIndexOf:()=>Qt,map:()=>rn,mapObject:()=>at,matcher:()=>tt,matches:()=>tt,max:()=>gn,memoize:()=>Bt,methods:()=>$e,min:()=>yn,mixin:()=>Zn,negate:()=>Vt,noop:()=>lt,now:()=>dt,object:()=>Wn,omit:()=>In,once:()=>Ut,pairs:()=>De,partial:()=>At,partition:()=>jn,pick:()=>Nn,pluck:()=>fn,property:()=>nt,propertyOf:()=>ct,random:()=>pt,range:()=>Gn,reduce:()=>sn,reduceRight:()=>an,reject:()=>cn,rest:()=>Bn,restArguments:()=>B,result:()=>kt,sample:()=>wn,select:()=>ln,shuffle:()=>xn,size:()=>Pn,some:()=>pn,sortBy:()=>Sn,sortedIndex:()=>Zt,tail:()=>Bn,take:()=>Rn,tap:()=>Ke,template:()=>St,templateSettings:()=>_t,throttle:()=>Dt,times:()=>ut,toArray:()=>bn,toPath:()=>Ye,transpose:()=>Hn,unescape:()=>gt,union:()=>zn,uniq:()=>Vn,unique:()=>Vn,uniqueId:()=>Ct,unzip:()=>Hn,values:()=>Me,where:()=>mn,without:()=>$n,wrap:()=>$t,zip:()=>Un});var t={};n.r(t),n.d(t,{invalidatePersonalizationTagsCache:()=>Mc,requestSendingNewsletterPreview:()=>$c,setContentValidation:()=>Vc,setEditorConfig:()=>Uc,setEditorSettings:()=>zc,setEditorTheme:()=>qc,setEditorUrls:()=>Hc,setEmailPost:()=>Oc,setEmailPostType:()=>Dc,setTemplateToPost:()=>Fc,togglePreviewModal:()=>Rc,updateSendPreviewEmail:()=>Bc});var r={};n.r(r),n.d(r,{canUserEditGlobalEmailStyles:()=>cu,canUserEditTemplates:()=>ou,getBlockPatternsForEmailTemplate:()=>ru,getContentValidation:()=>xu,getCurrentTemplate:()=>au,getCurrentTemplateContent:()=>lu,getEditedEmailContent:()=>tu,getEditedPostTemplate:()=>su,getEmailPostId:()=>du,getEmailPostType:()=>hu,getEmailTemplates:()=>pu,getGlobalEmailStylesPost:()=>uu,getGlobalStylesPostId:()=>bu,getInitialEditorSettings:()=>fu,getPaletteColors:()=>mu,getPersonalizationTagsList:()=>_u,getPreviewState:()=>gu,getSentEmailEditorPosts:()=>nu,getStyles:()=>yu,getTheme:()=>vu,getUrls:()=>wu,hasEdits:()=>Xc,hasEmptyContent:()=>Qc,isEmailSent:()=>eu,isFeatureActive:()=>Jc});const o=window.wp.hooks,i=window.wp.i18n,s=window.wp.data,a=window.wp.coreData,l=window.wp.editor,c=window.wp.plugins,u={},p={add:function(e,t){u[e]=t},t:function(e){return u[e]||'TRANSLATION "%1$s" NOT FOUND'.replace("%1$s",e)},all:function(){return u}},d=window.moment;var h=n.n(d);const f={version:.1,options:{},defaults:{offset:0,format:"F j, Y H:i:s"},init:function(e){const t=e||{};return void 0===t.offset&&void 0!==window.mailpoet_date_offset&&(t.offset="string"==typeof window.mailpoet_date_offset?parseFloat(window.mailpoet_date_offset):window.mailpoet_date_offset),void 0===t.format&&void 0!==window.mailpoet_datetime_format&&(t.format=window.mailpoet_datetime_format),this.options={...this.defaults,...t},this},format:function(e,t){const n=t||{};let r;return this.init(n),r=h().utc(e),this.options.offset&&(r=r.utcOffset(this.options.offset)),r.format(this.convertFormat(this.options.format))},toDate:function(e){return h().utc(e).toDate()},short:function(e){return this.format(e,{format:window.mailpoet_date_format||"F j, Y"})},full:function(e){return this.format(e,{format:window.mailpoet_datetime_format||"F j, Y H:i:s"})},time:function(e){return this.format(e,{format:window.mailpoet_time_format||"H:i:s"})},datetimeString:function(e){return this.format(e,{format:"Y-m-d H:i:s"})},toGmtDatetimeString:function(e){return this.format(e,{format:"Y-m-d H:i:s",offset:-1*parseFloat(window.mailpoet_date_offset||"0")})},convertFormat:function(e){let t,n,r;if(!e||e.length<=0)return e;const o={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:"o",w:"e",z:"DDD",W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:"",L:"",o:"YYYY",Y:"YYYY",y:"YY",a:"a",A:"A",B:"",g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSS",e:"zz",I:"",O:"",P:"",T:"",Z:"",c:"",r:"",U:"X"},i=[];for(t=!1,n=0,r="";e.charAt(n);n+=1)r=e.charAt(n),!0===t?(i.push(`[${r}]`),t=!1):"\\"===r?t=!0:void 0!==o[r]?i.push(o[r]):i.push(`[${r}]`);return i.join("")},isInFuture:(e,t)=>h().utc(e).isAfter(t,"s"),isInPast:(e,t)=>h().utc(e).isBefore(t,"s")};var m="1.13.8",g="object"==typeof self&&self.self===self&&self||"object"==typeof globalThis&&globalThis.global===globalThis&&globalThis||Function("return this")()||{},_=Array.prototype,y=Object.prototype,v="undefined"!=typeof Symbol?Symbol.prototype:null,b=_.push,w=_.slice,x=y.toString,S=y.hasOwnProperty,k="undefined"!=typeof ArrayBuffer,E="undefined"!=typeof DataView,C=Array.isArray,T=Object.keys,j=Object.create,P=k&&ArrayBuffer.isView,A=isNaN,N=isFinite,I=!{toString:null}.propertyIsEnumerable("toString"),L=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=Math.pow(2,53)-1;function B(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(o=0;o<t;o++)i[o]=arguments[o];return i[t]=r,e.apply(this,i)}}function O(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function M(e){return null===e}function D(e){return void 0===e}function F(e){return!0===e||!1===e||"[object Boolean]"===x.call(e)}function $(e){return!(!e||1!==e.nodeType)}function V(e){var t="[object "+e+"]";return function(e){return x.call(e)===t}}const z=V("String"),q=V("Number"),H=V("Date"),U=V("RegExp"),W=V("Error"),G=V("Symbol"),K=V("ArrayBuffer");var Y=V("Function"),Z=g.document&&g.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof Z&&(Y=function(e){return"function"==typeof e||!1});const J=Y,X=V("Object");var Q=E&&(!/\[native code\]/.test(String(DataView))||X(new DataView(new ArrayBuffer(8)))),ee="undefined"!=typeof Map&&X(new Map),te=V("DataView");const ne=Q?function(e){return null!=e&&J(e.getInt8)&&K(e.buffer)}:te,re=C||V("Array");function oe(e,t){return null!=e&&S.call(e,t)}var ie=V("Arguments");!function(){ie(arguments)||(ie=function(e){return oe(e,"callee")})}();const se=ie;function ae(e){return!G(e)&&N(e)&&!isNaN(parseFloat(e))}function le(e){return q(e)&&A(e)}function ce(e){return function(){return e}}function ue(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=R}}function pe(e){return function(t){return null==t?void 0:t[e]}}const de=pe("byteLength"),he=ue(de);var fe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const me=k?function(e){return P?P(e)&&!ne(e):he(e)&&fe.test(x.call(e))}:ce(!1),ge=pe("length");function _e(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=L.length,r=e.constructor,o=J(r)&&r.prototype||y,i="constructor";for(oe(e,i)&&!t.contains(i)&&t.push(i);n--;)(i=L[n])in e&&e[i]!==o[i]&&!t.contains(i)&&t.push(i)}function ye(e){if(!O(e))return[];if(T)return T(e);var t=[];for(var n in e)oe(e,n)&&t.push(n);return I&&_e(e,t),t}function ve(e){if(null==e)return!0;var t=ge(e);return"number"==typeof t&&(re(e)||z(e)||se(e))?0===t:0===ge(ye(e))}function be(e,t){var n=ye(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;i<r;i++){var s=n[i];if(t[s]!==o[s]||!(s in o))return!1}return!0}function we(e){return e instanceof we?e:this instanceof we?void(this._wrapped=e):new we(e)}function xe(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,de(e))}we.VERSION=m,we.prototype.value=function(){return this._wrapped},we.prototype.valueOf=we.prototype.toJSON=we.prototype.value,we.prototype.toString=function(){return String(this._wrapped)};var Se="[object DataView]";function ke(e,t){for(var n=[{a:e,b:t}],r=[],o=[];n.length;){var i=n.pop();if(!0!==i){if((e=i.a)===(t=i.b)){if(0!==e||1/e==1/t)continue;return!1}if(null==e||null==t)return!1;if(e!=e){if(t!=t)continue;return!1}var s=typeof e;if("function"!==s&&"object"!==s&&"object"!=typeof t)return!1;e instanceof we&&(e=e._wrapped),t instanceof we&&(t=t._wrapped);var a=x.call(e);if(a!==x.call(t))return!1;if(Q&&"[object Object]"==a&&ne(e)){if(!ne(t))return!1;a=Se}switch(a){case"[object RegExp]":case"[object String]":if(""+e==""+t)continue;return!1;case"[object Number]":n.push({a:+e,b:+t});continue;case"[object Date]":case"[object Boolean]":if(+e==+t)continue;return!1;case"[object Symbol]":if(v.valueOf.call(e)===v.valueOf.call(t))continue;return!1;case"[object ArrayBuffer]":case Se:n.push({a:xe(e),b:xe(t)});continue}var l="[object Array]"===a;if(!l&&me(e)){if(de(e)!==de(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)continue;l=!0}if(!l){if("object"!=typeof e||"object"!=typeof t)return!1;var c=e.constructor,u=t.constructor;if(c!==u&&!(J(c)&&c instanceof c&&J(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}for(var p=r.length;p--;)if(r[p]===e){if(o[p]===t)break;return!1}if(!(p>=0))if(r.push(e),o.push(t),n.push(!0),l){if((p=e.length)!==t.length)return!1;for(;p--;)n.push({a:e[p],b:t[p]})}else{var d,h=ye(e);if(p=h.length,ye(t).length!==p)return!1;for(;p--;){if(!oe(t,d=h[p]))return!1;n.push({a:e[d],b:t[d]})}}}else r.pop(),o.pop()}return!0}function Ee(e){if(!O(e))return[];var t=[];for(var n in e)t.push(n);return I&&_e(e,t),t}function Ce(e){var t=ge(e);return function(n){if(null==n)return!1;var r=Ee(n);if(ge(r))return!1;for(var o=0;o<t;o++)if(!J(n[e[o]]))return!1;return e!==Ne||!J(n[Te])}}var Te="forEach",je=["clear","delete"],Pe=["get","has","set"],Ae=je.concat(Te,Pe),Ne=je.concat(Pe),Ie=["add"].concat(je,Te,"has");const Le=ee?Ce(Ae):V("Map"),Re=ee?Ce(Ne):V("WeakMap"),Be=ee?Ce(Ie):V("Set"),Oe=V("WeakSet");function Me(e){for(var t=ye(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r}function De(e){for(var t=ye(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r}function Fe(e){for(var t={},n=ye(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t}function $e(e){var t=[];for(var n in e)J(e[n])&&t.push(n);return t.sort()}function Ve(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],s=e(i),a=s.length,l=0;l<a;l++){var c=s[l];t&&void 0!==n[c]||(n[c]=i[c])}return n}}const ze=Ve(Ee),qe=Ve(ye),He=Ve(Ee,!0);function Ue(e){if(!O(e))return{};if(j)return j(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function We(e,t){var n=Ue(e);return t&&qe(n,t),n}function Ge(e){return O(e)?re(e)?e.slice():ze({},e):e}function Ke(e,t){return t(e),e}function Ye(e){return re(e)?e:[e]}function Ze(e){return we.toPath(e)}function Je(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function Xe(e,t,n){var r=Je(e,Ze(t));return D(r)?n:r}function Qe(e,t){for(var n=(t=Ze(t)).length,r=0;r<n;r++){var o=t[r];if(!oe(e,o))return!1;e=e[o]}return!!n}function et(e){return e}function tt(e){return e=qe({},e),function(t){return be(t,e)}}function nt(e){return e=Ze(e),function(t){return Je(t,e)}}function rt(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}}function ot(e,t,n){return null==e?et:J(e)?rt(e,t,n):O(e)&&!re(e)?tt(e):nt(e)}function it(e,t){return ot(e,t,1/0)}function st(e,t,n){return we.iteratee!==it?we.iteratee(e,t):ot(e,t,n)}function at(e,t,n){t=st(t,n);for(var r=ye(e),o=r.length,i={},s=0;s<o;s++){var a=r[s];i[a]=t(e[a],a,e)}return i}function lt(){}function ct(e){return null==e?lt:function(t){return Xe(e,t)}}function ut(e,t,n){var r=Array(Math.max(0,e));t=rt(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r}function pt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}we.toPath=Ye,we.iteratee=it;const dt=Date.now||function(){return(new Date).getTime()};function ht(e){var t=function(t){return e[t]},n="(?:"+ye(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}}const ft={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},mt=ht(ft),gt=ht(Fe(ft)),_t=we.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var yt=/(.)^/,vt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},bt=/\\|'|\r|\n|\u2028|\u2029/g;function wt(e){return"\\"+vt[e]}var xt=/^\s*(\w|\$)+\s*$/;function St(e,t,n){!t&&n&&(t=n),t=He({},t,we.templateSettings);var r=RegExp([(t.escape||yt).source,(t.interpolate||yt).source,(t.evaluate||yt).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,(function(t,n,r,s,a){return i+=e.slice(o,a).replace(bt,wt),o=a+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(i+="';\n"+s+"\n__p+='"),t})),i+="';\n";var s,a=t.variable;if(a){if(!xt.test(a))throw new Error("variable is not a bare identifier: "+a)}else i="with(obj||{}){\n"+i+"}\n",a="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{s=new Function(a,"_",i)}catch(e){throw e.source=i,e}var l=function(e){return s.call(this,e,we)};return l.source="function("+a+"){\n"+i+"}",l}function kt(e,t,n){var r=(t=Ze(t)).length;if(!r)return J(n)?n.call(e):n;for(var o=0;o<r;o++){var i=null==e?void 0:e[t[o]];void 0===i&&(i=n,o=r),e=J(i)?i.call(e):i}return e}var Et=0;function Ct(e){var t=++Et+"";return e?e+t:t}function Tt(e){var t=we(e);return t._chain=!0,t}function jt(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=Ue(e.prototype),s=e.apply(i,o);return O(s)?s:i}var Pt=B((function(e,t){var n=Pt.placeholder,r=function(){for(var o=0,i=t.length,s=Array(i),a=0;a<i;a++)s[a]=t[a]===n?arguments[o++]:t[a];for(;o<arguments.length;)s.push(arguments[o++]);return jt(e,r,this,this,s)};return r}));Pt.placeholder=we;const At=Pt,Nt=B((function(e,t,n){if(!J(e))throw new TypeError("Bind must be called on a function");var r=B((function(o){return jt(e,r,t,this,n.concat(o))}));return r})),It=ue(ge);function Lt(e,t,n){t||0===t||(t=1/0);for(var r=[],o=0,i=0,s=ge(e)||0,a=[];;)if(i>=s){if(!a.length)break;var l=a.pop();i=l.i,e=l.v,s=ge(e)}else{var c=e[i++];a.length>=t?r[o++]=c:It(c)&&(re(c)||se(c))?(a.push({i,v:e}),i=0,s=ge(e=c)):n||(r[o++]=c)}return r}const Rt=B((function(e,t){var n=(t=Lt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=Nt(e[r],e)}return e}));function Bt(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return oe(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n}const Ot=B((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Mt=At(Ot,we,1);function Dt(e,t,n){var r,o,i,s,a=0;n||(n={});var l=function(){a=!1===n.leading?0:dt(),r=null,s=e.apply(o,i),r||(o=i=null)},c=function(){var c=dt();a||!1!==n.leading||(a=c);var u=t-(c-a);return o=this,i=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),a=c,s=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(l,u)),s};return c.cancel=function(){clearTimeout(r),a=0,r=o=i=null},c}function Ft(e,t,n){var r,o,i,s,a,l=function(){var c=dt()-o;t>c?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(a,i)),r||(i=a=null))},c=B((function(c){return a=this,i=c,o=dt(),r||(r=setTimeout(l,t),n&&(s=e.apply(a,i))),s}));return c.cancel=function(){clearTimeout(r),r=i=a=null},c}function $t(e,t){return At(t,e)}function Vt(e){return function(){return!e.apply(this,arguments)}}function zt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function qt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Ht(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const Ut=At(Ht,2);function Wt(e,t,n){t=st(t,n);for(var r,o=ye(e),i=0,s=o.length;i<s;i++)if(t(e[r=o[i]],r,e))return r}function Gt(e){return function(t,n,r){n=st(n,r);for(var o=ge(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}}const Kt=Gt(1),Yt=Gt(-1);function Zt(e,t,n,r){for(var o=(n=st(n,r,1))(t),i=0,s=ge(e);i<s;){var a=Math.floor((i+s)/2);n(e[a])<o?i=a+1:s=a}return i}function Jt(e,t,n){return function(r,o,i){var s=0,a=ge(r);if("number"==typeof i)e>0?s=i>=0?i:Math.max(i+a,s):a=i>=0?Math.min(i+1,a):i+a+1;else if(n&&i&&a)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=t(w.call(r,s,a),le))>=0?i+s:-1;for(i=e>0?s:a-1;i>=0&&i<a;i+=e)if(r[i]===o)return i;return-1}}const Xt=Jt(1,Kt,Zt),Qt=Jt(-1,Yt);function en(e,t,n){var r=(It(e)?Kt:Wt)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function tn(e,t){return en(e,tt(t))}function nn(e,t,n){var r,o;if(t=rt(t,n),It(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=ye(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e}function rn(e,t,n){t=st(t,n);for(var r=!It(e)&&ye(e),o=(r||e).length,i=Array(o),s=0;s<o;s++){var a=r?r[s]:s;i[s]=t(e[a],a,e)}return i}function on(e){return function(t,n,r,o){var i=arguments.length>=3;return function(t,n,r,o){var i=!It(t)&&ye(t),s=(i||t).length,a=e>0?0:s-1;for(o||(r=t[i?i[a]:a],a+=e);a>=0&&a<s;a+=e){var l=i?i[a]:a;r=n(r,t[l],l,t)}return r}(t,rt(n,o,4),r,i)}}const sn=on(1),an=on(-1);function ln(e,t,n){var r=[];return t=st(t,n),nn(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function cn(e,t,n){return ln(e,Vt(st(t)),n)}function un(e,t,n){t=st(t,n);for(var r=!It(e)&&ye(e),o=(r||e).length,i=0;i<o;i++){var s=r?r[i]:i;if(!t(e[s],s,e))return!1}return!0}function pn(e,t,n){t=st(t,n);for(var r=!It(e)&&ye(e),o=(r||e).length,i=0;i<o;i++){var s=r?r[i]:i;if(t(e[s],s,e))return!0}return!1}function dn(e,t,n,r){return It(e)||(e=Me(e)),("number"!=typeof n||r)&&(n=0),Xt(e,t,n)>=0}const hn=B((function(e,t,n){var r,o;return J(t)?o=t:(t=Ze(t),r=t.slice(0,-1),t=t[t.length-1]),rn(e,(function(e){var i=o;if(!i){if(r&&r.length&&(e=Je(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function fn(e,t){return rn(e,nt(t))}function mn(e,t){return ln(e,tt(t))}function gn(e,t,n){var r,o,i=-1/0,s=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,l=(e=It(e)?e:Me(e)).length;a<l;a++)null!=(r=e[a])&&r>i&&(i=r);else t=st(t,n),nn(e,(function(e,n,r){((o=t(e,n,r))>s||o===-1/0&&i===-1/0)&&(i=e,s=o)}));return i}function yn(e,t,n){var r,o,i=1/0,s=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,l=(e=It(e)?e:Me(e)).length;a<l;a++)null!=(r=e[a])&&r<i&&(i=r);else t=st(t,n),nn(e,(function(e,n,r){((o=t(e,n,r))<s||o===1/0&&i===1/0)&&(i=e,s=o)}));return i}var vn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function bn(e){return e?re(e)?w.call(e):z(e)?e.match(vn):It(e)?rn(e,et):Me(e):[]}function wn(e,t,n){if(null==t||n)return It(e)||(e=Me(e)),e[pt(e.length-1)];var r=bn(e),o=ge(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,s=0;s<t;s++){var a=pt(s,i),l=r[s];r[s]=r[a],r[a]=l}return r.slice(0,t)}function xn(e){return wn(e,1/0)}function Sn(e,t,n){var r=0;return t=st(t,n),fn(rn(e,(function(e,n,o){return{value:e,index:r++,criteria:t(e,n,o)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function kn(e,t){return function(n,r,o){var i=t?[[],[]]:{};return r=st(r,o),nn(n,(function(t,o){var s=r(t,o,n);e(i,t,s)})),i}}const En=kn((function(e,t,n){oe(e,n)?e[n].push(t):e[n]=[t]})),Cn=kn((function(e,t,n){e[n]=t})),Tn=kn((function(e,t,n){oe(e,n)?e[n]++:e[n]=1})),jn=kn((function(e,t,n){e[n?0:1].push(t)}),!0);function Pn(e){return null==e?0:It(e)?e.length:ye(e).length}function An(e,t,n){return t in n}const Nn=B((function(e,t){var n={},r=t[0];if(null==e)return n;J(r)?(t.length>1&&(r=rt(r,t[1])),t=Ee(e)):(r=An,t=Lt(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o<i;o++){var s=t[o],a=e[s];r(a,s,e)&&(n[s]=a)}return n})),In=B((function(e,t){var n,r=t[0];return J(r)?(r=Vt(r),t.length>1&&(n=t[1])):(t=rn(Lt(t,!1,!1),String),r=function(e,n){return!dn(t,n)}),Nn(e,r,n)}));function Ln(e,t,n){return w.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Rn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Ln(e,e.length-t)}function Bn(e,t,n){return w.call(e,null==t||n?1:t)}function On(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:Bn(e,Math.max(0,e.length-t))}function Mn(e){return ln(e,Boolean)}function Dn(e,t){return Lt(e,t,!1)}const Fn=B((function(e,t){return t=Lt(t,!0,!0),ln(e,(function(e){return!dn(t,e)}))})),$n=B((function(e,t){return Fn(e,t)}));function Vn(e,t,n,r){F(t)||(r=n,n=t,t=!1),null!=n&&(n=st(n,r));for(var o=[],i=[],s=0,a=ge(e);s<a;s++){var l=e[s],c=n?n(l,s,e):l;t&&!n?(s&&i===c||o.push(l),i=c):n?dn(i,c)||(i.push(c),o.push(l)):dn(o,l)||o.push(l)}return o}const zn=B((function(e){return Vn(Lt(e,!0,!0))}));function qn(e){for(var t=[],n=arguments.length,r=0,o=ge(e);r<o;r++){var i=e[r];if(!dn(t,i)){var s;for(s=1;s<n&&dn(arguments[s],i);s++);s===n&&t.push(i)}}return t}function Hn(e){for(var t=e&&gn(e,ge).length||0,n=Array(t),r=0;r<t;r++)n[r]=fn(e,r);return n}const Un=B(Hn);function Wn(e,t){for(var n={},r=0,o=ge(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Gn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o}function Kn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(w.call(e,r,r+=t));return n}function Yn(e,t){return e._chain?we(t).chain():t}function Zn(e){return nn($e(e),(function(t){var n=we[t]=e[t];we.prototype[t]=function(){var e=[this._wrapped];return b.apply(e,arguments),Yn(this,n.apply(we,e))}})),we}nn(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=_[e];we.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Yn(this,n)}})),nn(["concat","join","slice"],(function(e){var t=_[e];we.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Yn(this,e)}}));const Jn=we;var Xn=Zn(e);Xn._=Xn;const Qn=Xn,er=window.jQuery;var tr=n.n(er);function nr(e){return{errors:[{message:e}]}}tr()(document).on("heartbeat-tick.mailpoet-ajax",((e,t)=>{t.mailpoet_token&&(window.mailpoet_token=t.mailpoet_token)}));const rr={version:.5,options:{},defaults:{url:null,api_version:null,endpoint:null,action:null,token:null,data:{}},post:function(e){return this.request("post",e)},get:function(e){return this.request("get",e)},init:function(e){this.options=tr().extend({},this.defaults,e),null===this.options.url&&(this.options.url=window.ajaxurl),null===this.options.token&&(this.options.token=window.mailpoet_token),null===this.options.timeout&&(this.options.timeout=0)},getParams:function(){return{action:"mailpoet",api_version:this.options.api_version,token:this.options.token,endpoint:this.options.endpoint,method:this.options.action,data:this.options.data||{}}},constructGetUrl:function(e){return this.init(e),`${this.options.url}?${tr().param(this.getParams())}`},request:function(e,t){this.init(t);const n=this.getParams();Qn.isObject(n.data)&&(n.data=Qn.pick(n.data,(e=>null!==e)));const r=tr().Deferred(),o=Math.ceil(this.options.timeout/1e3),i=tr()[e]({url:this.options.url,data:n,success:null,dataType:"json",timeout:this.options.timeout});return this.options.onRequestStart?.(i),i.then((e=>r.resolve(e)),((e,t)=>{let n;var i,s;"abort"===t?n=t:"timeout"===t?n=nr(p.t("ajaxTimeoutErrorMessage").replace("%d",o.toString())):(i=p.t("ajaxFailedErrorMessage"),n=(s=e).responseJSON?s.responseJSON:nr(i.replace("%d",s.status))),r.reject(n)})),this.options={},r}};var or=n(4845),ir=n.n(or),sr='<svg viewBox="0 0 23 23" xmlns="http://www.w3.org/2000/svg"><path d="M21.454 1.546L1.546 21.454M1.546 1.546L21.454 21.454" stroke-width="3" stroke-linecap="round" /></svg>';const ar={version:.9,initialized:!1,opened:!1,locked:!1,prevFocus:null,subpanels:[],defaults:{title:null,type:null,position:"right",data:{},url:null,method:"get",params:{},template:null,body_template:null,width:"auto",height:"auto",overlay:!1,overlayRender:!0,focus:!0,highlight:null,onInit:null,onSuccess:null,onCancel:null},renderer:"html",options:{},templates:{overlay:'<div id="mailpoet_modal_overlay" class="mailpoet_modal_overlay" style="display:none;"></div>',popup:'<div id="mailpoet_popup" class="mailpoet_popup" tabindex="-1"><div class="mailpoet_popup_wrapper"><a href="javascript:;" id="mailpoet_modal_close" class="mailpoet_modal_close">'+sr+'</a><div id="mailpoet_popup_title" class="mailpoet_popup_title"><h2 class="mailpoet-h2"></h2></div><div class="mailpoet_popup_body clearfix"></div></div></div>',loading:'<div id="mailpoet_loading" class="mailpoet_loading" style="display:none;"><div id="mailpoet_modal_loading_1" class="mailpoet_modal_loading mailpoet_modal_loading_1"></div><div id="mailpoet_modal_loading_2" class="mailpoet_modal_loading mailpoet_modal_loading_2"></div><div id="mailpoet_modal_loading_3" class="mailpoet_modal_loading mailpoet_modal_loading_3"></div></div>',progress:'<div id="mailpoet_modal_progress" class="mailpoet_modal_progress" style="display:none;"><div class="mailpoet_modal_progress_bar" style="width: 0%"></div><div class="mailpoet_modal_progress_text">0%</div></div>',panel:'<div id="mailpoet_panel" class="mailpoet_panel"><a href="javascript:;" id="mailpoet_modal_close" class="mailpoet_modal_close">'+sr+'</a><div class="mailpoet_panel_wrapper" tabindex="-1"><div class="mailpoet_panel_body clearfix"></div></div></div>',subpanel:'<div class="mailpoet_panel_wrapper" tabindex="-1"><div class="mailpoet_panel_body clearfix"></div></div>'},getContentContainer:function(){return tr()(".mailpoet_"+this.options.type+"_body")},setRenderer:function(e){return this.renderer=e,this},compileTemplate:function(e){return"html"===this.renderer?function(){return e}:ir().compile(e)},init:function(e){var t;return!0===this.initialized&&this.close(),this.options=tr().extend({},this.defaults,e),this.setRenderer(this.options.renderer),this.initOverlay(),this.setOverlay(this.options.overlay),null!==this.options.type&&("popup"===this.options.type?(t=this.compileTemplate(this.templates[this.options.type]),tr()("#mailpoet_modal_overlay").append(t(this.options)),tr()("#mailpoet_popup").toggleClass("mailpoet_popup_has_title",Boolean(this.options.title)),tr()("#mailpoet_popup_title h2").html(this.options.title)):"panel"===this.options.type&&tr()("#mailpoet_modal_overlay").after(this.templates[this.options.type]),tr()("#mailpoet_modal_overlay").removeClass("mailpoet_popup_overlay mailpoet_panel_overlay").addClass("mailpoet_"+this.options.type+"_overlay")),void 0!==e.onSuccess&&(this.options.onSuccess=e.onSuccess),void 0!==e.onCancel&&(this.options.onCancel=e.onCancel),this.options.body_template=this.compileTemplate(this.options.template),this.setupEvents(),this.initialized=!0,this},initOverlay:function(){return 0===tr()("#mailpoet_modal_overlay").length&&(tr()("body").append(this.templates.overlay),tr()("#mailpoet_modal_overlay").append(this.templates.loading),tr()("#mailpoet_modal_overlay").append(this.templates.progress)),this},setOverlay:function(e){return!0===e?tr()("#mailpoet_modal_overlay").removeClass("mailpoet_overlay_transparent"):tr()("#mailpoet_modal_overlay").addClass("mailpoet_overlay_transparent"),this},setupEvents:function(){return tr()("#mailpoet_modal_close").on("click",this.cancel.bind(this)),tr()("#mailpoet_modal_overlay").on("click",function(e){"mailpoet_modal_overlay"===e.target.id&&this.cancel()}.bind(this)),tr()(document).on("keyup.mailpoet_modal",function(e){return!1!==this.opened&&(27===e.keyCode&&this.cancel(),!0)}.bind(this)),tr()(window).on("resize.mailpoet_modal",function(){this.setPosition()}.bind(this)),this},removeEvents:function(){return tr()(document).off("keyup.mailpoet_modal"),tr()(window).off("resize.mailpoet_modal"),tr()("#mailpoet_modal_close").off("click"),!0===this.options.overlay&&tr()("#mailpoet_modal_overlay").off("click"),this},lock:function(){return this.locked=!0,this},unlock:function(){return this.locked=!1,this},isLocked:function(){return this.locked},loadTemplate:function(){return this.subpanels.length>0?(tr()(".mailpoet_"+this.options.type+"_wrapper").hide(),tr()("#mailpoet_"+this.options.type).append(this.templates.subpanel),tr()(".mailpoet_"+this.options.type+"_body").last().html(this.subpanels[this.subpanels.length-1].element),this.options.focus&&this.focus()):this.options.element?(tr()(".mailpoet_"+this.options.type+"_body").empty(),tr()(".mailpoet_"+this.options.type+"_body").append(this.options.element)):tr()(".mailpoet_"+this.options.type+"_body").html(this.options.body_template(this.options.data)),this},loadUrl:function(){return"get"===this.options.method?tr().getJSON(this.options.url,function(e){this.options.data=tr().extend({},this.options.data,e),this.loadTemplate(),this.showModal()}.bind(this)):"post"===this.options.method&&tr().post(this.options.url,JSON.stringify(this.options.params),function(e){this.options.data=tr().extend({},this.options.data,e),this.loadTemplate(),this.showModal()}.bind(this),"json"),this},setDimensions:function(){switch(this.options.type){case"popup":this.options.width&&"auto"!==this.options.width&&tr()("#mailpoet_popup").css({width:this.options.width}),this.options.height&&"auto"!==this.options.height&&(tr()("#mailpoet_popup_wrapper").css({height:this.options.height}),tr()("#mailpoet_popup").css({height:this.options.height})),this.options.minWidth&&tr()("#mailpoet_popup").css({minWidth:this.options.minWidth});break;case"panel":"right"===this.options.position?tr()("#mailpoet_panel").css({width:this.options.width,right:0,marginRight:"-"+this.options.width,left:"auto"}):"left"===this.options.position&&tr()("#mailpoet_panel").css({width:this.options.width,left:0,marginLeft:"-"+this.options.width,right:"auto"}),tr()("#mailpoet_panel").css({minHeight:"auto"});break;default:throw new Error("Incorrect type")}return this},setPosition:function(){switch(this.options.type){case"popup":break;case"panel":setTimeout(function(){"right"===this.options.position?tr()("#mailpoet_panel").css({marginRight:0}):"left"===this.options.position&&tr()("#mailpoet_panel").css({marginLeft:0})}.bind(this),0);break;default:throw new Error("Incorrect type")}return this},showModal:function(){return this.setDimensions(),this.prevFocus=tr()(":focus"),tr()("#mailpoet_"+this.options.type).show(),this.showOverlay(),this.setPosition(),null!==this.options.highlight&&this.options.highlight.length>0&&this.highlightOn(this.options.highlight),this.options.focus&&this.focus(),tr()("#mailpoet_modal_overlay").scrollTop(0),this.opened=!0,null!==this.options.onInit&&this.options.onInit(this),this},focus:function(){return"popup"===this.options.type?tr()("#mailpoet_"+this.options.type).trigger("focus"):tr()("#mailpoet_"+this.options.type+" .mailpoet_panel_wrapper").filter(":visible").trigger("focus"),this},highlightOn:function(e){return tr()(e).addClass("mailpoet_modal_highlight"),this},highlightOff:function(){return tr()(".mailpoet_modal_highlight").removeClass("mailpoet_modal_highlight"),this},hideModal:function(){return this.opened=!1,tr()("#mailpoet_"+this.options.type).hide(),this.highlightOff(),this},showOverlay:function(){var e=tr()("body"),t=e.innerWidth();return this.options.overlayRender?(tr()("#mailpoet_modal_overlay").show(),tr()("body").addClass("mailpoet_modal_opened").css("marginRight",e.innerWidth()-t),this):this},hideOverlay:function(){return tr()("#mailpoet_modal_overlay").hide(),tr()("body").removeClass("mailpoet_modal_opened").css("marginRight",0),this},popup:function(e){var t=e||{};return t.type="popup",t.overlay=t.overlay||!0,this.init(t),this.open(),this},panel:function(e){var t=e||{};return this.subpanels=[],t.type="panel",t.overlay=t.overlay||!1,t.highlight=t.highlight||null,t.width=t.width||"40%",t.height=t.height||"auto",this.init(t),this.open(),this},subpanel:function(e){return!1===this.opened?this.panel(e):(this.subpanels.push(e),this.loadTemplate()),this},loading:function(e){return this.initOverlay(!0),!0===e?this.showLoading():this.hideLoading(),this},showLoading:function(){return tr()("#mailpoet_loading").show(),tr()("#mailpoet_modal_overlay").addClass("mailpoet_overlay_loading"),this},hideLoading:function(){return tr()("#mailpoet_loading").hide(),tr()("#mailpoet_modal_overlay").removeClass("mailpoet_overlay_loading"),this},progress:function(e){return this.initOverlay(!0),!0===e?this.showProgress():this.hideProgress(),this},showProgress:function(){return this.setProgress(0),tr()("#mailpoet_modal_progress").show(),tr()("#mailpoet_modal_overlay").addClass("mailpoet_overlay_loading"),this},hideProgress:function(){return tr()("#mailpoet_modal_progress").hide(),tr()("#mailpoet_modal_overlay").removeClass("mailpoet_overlay_loading"),this},setProgress:function(e){var t=Math.max(0,Math.min(e,100)),n=tr()("#mailpoet_modal_progress");return n.find(".mailpoet_modal_progress_bar").css({width:t+"%"}),n.find(".mailpoet_modal_progress_text").text(t+"%"),this},open:function(){return null!==this.options.template?null!==this.options.url?this.loadUrl():(this.loadTemplate(),this.showModal()):this.cancel(),this},success:function(){return this.subpanels.length>0?void 0!==this.subpanels[this.subpanels.length-1].onSuccess&&this.subpanels[this.subpanels.length-1].onSuccess(this.subpanels[this.subpanels.length-1].data):null!==this.options.onSuccess&&this.options.onSuccess(this.options.data),this.close(),this},cancel:function(){return this.subpanels.length>0?void 0!==this.subpanels[this.subpanels.length-1].onCancel&&this.subpanels[this.subpanels.length-1].onCancel(this.subpanels[this.subpanels.length-1].data):null!==this.options.onCancel&&this.options.onCancel(this.options.data),this.close(),this},destroy:function(){return this.hideOverlay(),tr()("#mailpoet_"+this.options.type).length>0&&tr()("#mailpoet_"+this.options.type).remove(),this.initialized=!1,this},close:function(){return!0===this.isLocked()?this:this.subpanels.length>0?(tr()(".mailpoet_"+this.options.type+"_wrapper").last().remove(),tr()(".mailpoet_"+this.options.type+"_wrapper").last().show(),this.subpanels.pop(),this.options.focus&&this.focus(),this):(this.removeEvents(),this.hideModal(),this.destroy(),void 0!==this.prevFocus&&this.prevFocus.focus(),this.options={onSuccess:null,onCancel:null},this)}},lr={version:1,defaults:{type:"success",message:"",static:!1,hideClose:!1,id:null,positionAfter:!1,scroll:!1,timeout:1e4,onOpen:null,onClose:null},options:{},init:function(e){return this.options=tr().extend({},this.defaults,e),this},createNotice:function(){var e;return this.element=tr()("#mailpoet_notice_"+this.options.type).clone(),this.options.id&&this.element.attr("data-id",this.options.id),this.element.removeAttr("id"),("object"==typeof this.options.positionAfter?this.options.positionAfter:"string"==typeof this.options.positionAfter?tr()(this.options.positionAfter):tr()("#mailpoet_notice_"+this.options.type)).after(this.element),e=null,null!==this.options.onClose&&(e=this.options.onClose),tr()(this.element).on("close",function(){tr()(this).fadeOut(200,(function(){null!==e&&e(),tr()(this).remove()}))}.bind(this.element)),this},updateNotice:function(){this.setMessage(this.options.message,tr()('[data-id="'+this.options.id+'"').first())},setMessage:function(e,t){var n=this.formatMessage(e);return n="<p>"+n+"</p>",(t||this.element).html(n)},formatMessage:function(e){return Array.isArray(e)?e.join("<br />"):e},show:function(e){this.init(e),null!==this.options.id&&tr()('[data-id="'+this.options.id+'"]').length>0?this.updateNotice():(this.createNotice(),this.showNotice())},showNotice:function(){switch(this.setMessage(this.options.message),this.element.insertAfter(tr()("h2.title")),this.options.type){case"success":this.element.addClass("notice notice-success");break;case"system":this.element.addClass("notice notice-warning");break;case"error":this.element.addClass("notice notice-error");break;default:this.element.addClass("notice")}this.element.fadeIn(200),!0===this.options.scroll&&this.element.get(0).scrollIntoView(!1),!1===this.options.static&&setTimeout((function(e){e.trigger("close")}),this.options.timeout,this.element),!1===this.options.hideClose&&(this.element.append('<button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>'),this.element.find(".notice-dismiss").on("click",(function(){tr()(this).trigger("close")}))),null!==this.options.onOpen&&this.options.onOpen(this.element)},hide:function(e){void 0!==e&&!0===e?tr()(".mailpoet_notice:not([id])").trigger("close"):void 0!==e&&Array.isArray(e)&&Object.keys(e).forEach((function(t){tr()('[data-id="'+e[t]+'"]').trigger("close")})),void 0!==e?tr()('[data-id="'+e+'"]').trigger("close"):tr()(".mailpoet_notice.notice-success:not([id]), .mailpoet_notice.notice-error:not([id])").trigger("close")},error:function(e,t){this.show(tr().extend({},{type:"error",message:e},t))},success:function(e,t){this.show(tr().extend({},{type:"success",message:e},t))},system:function(e,t){this.show(tr().extend({},{type:"system",static:!0,message:e},t))},showApiErrorNotice:function(e,t){let n=p.t("ajaxFailedErrorMessage"),r=t;e&&e.errors&&e.errors.length>0&&(n=e.errors.map((e=>e.message)),r=JSON.stringify(e.errors).includes("reinstall_plugin")?{...t,static:!0,scroll:!0}:t),this.show(tr().extend({},{type:"error",message:n},r))}};var cr=[],ur=[];const pr="mailpoet-track-events-cache",dr="mailpoet-tracks-events-cache",hr="saveInStorage";let fr=[];function mr(){window.mailpoetTracks||(window.mailpoetTracks={isEnabled:!0,recordEvent:(e,t)=>{const n=window.mailpoet_analytics_public_id||"";if(!n)return;const r={commonProps:{public_id:n,...t},events:[{_ut:"anon",_ui:n,_en:"mailpoet_"+e}]};fr.push(r)},flushQueue:()=>{0!==fr.length&&(fr.forEach((e=>{fetch("https://public-api.wordpress.com/rest/v1.1/tracks/record",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"MailPoet Plugin"},body:JSON.stringify(e),keepalive:!0}).catch((()=>{}))})),fr=[])}})}function gr(e,t=[]){try{mr();const n=e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,""),r=function(e){if(!e||"object"!=typeof e)return{};const t={MailPoet:"mailpoet",WooCommerce:"woocommerce",WordPress:"wordpress"},n={};return Object.entries(e).forEach((([e,r])=>{let o=e;Object.entries(t).forEach((([e,t])=>{o=o.replace(new RegExp(e,"g"),t)})),o=o.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/[^a-z0-9_]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,""),n[o]=r})),n}(t);window.mailpoetTracks&&"function"==typeof window.mailpoetTracks.recordEvent&&window.mailpoetTracks.recordEvent(n,r)}catch(e){}}function _r(e,t=[],n={},r=null){let o=t;void 0!==window.mailpoet_version&&(o["MailPoet Free version"]=window.mailpoet_version),void 0!==window.mailpoet_premium_version&&(o["MailPoet Premium version"]=window.mailpoet_premium_version),function(e,t=[],n={},r=null){const o=n===hr?{}:n;"function"!=typeof window.mixpanel.track&&window.mixpanel.init(window.mixpanelTrackingId,window.mixpanelInitConfig),window.mixpanelIsLoaded?window.mixpanel.track(e,t,o,r):r&&r()}(e,o,n,r),gr(e,o)}function yr(e){(window.mailpoet_analytics_enabled||e.forced)&&_r(e.name,e.data,e.options,e.callback)}function vr(e){(window.mailpoet_analytics_enabled||e.forced)&&(mr(),gr(e.name,e.data))}function br(){if("undefined"!=typeof localStorage){const e=localStorage.getItem(pr);if(e&&window.mailpoet_analytics_enabled)return JSON.parse(e).forEach(yr),void localStorage.removeItem(pr)}cr.forEach(yr)}function wr(){if("undefined"!=typeof localStorage){const e=localStorage.getItem(dr);if(e&&window.mailpoet_analytics_enabled)return JSON.parse(e).forEach(vr),void localStorage.removeItem(dr)}ur.forEach(vr)}function xr(e,t,n,r,o){cr.push({name:t,data:n,options:r,callback:o,forced:e}),r===hr&&"undefined"!=typeof localStorage&&localStorage.setItem(pr,JSON.stringify(cr)),"function"==typeof o&&o()}function Sr(e,t=[],n={},r=null){let o={...t};void 0!==window.mailpoet_version&&(o["MailPoet Free version"]=window.mailpoet_version),void 0!==window.mailpoet_premium_version&&(o["MailPoet Premium version"]=window.mailpoet_premium_version),xr(!1,e,o,n,r),function(e,t,n,r){ur.push({name:t,data:n,options:r,forced:!1}),r===hr&&"undefined"!=typeof localStorage&&localStorage.setItem(dr,JSON.stringify(ur))}(0,e,o,n)}function kr(){br(),wr(),window.mailpoetTracks&&"function"==typeof window.mailpoetTracks.flushQueue&&window.mailpoetTracks.flushQueue()}const Er=Qn.partial(xr,!1),Cr=Qn.partial(xr,!0),Tr={toLocaleFixed:function(e,t){var n=t||0,r=10**n;return(Math.round(e*r)/r).toLocaleString(void 0,{minimumFractionDigits:n,maximumFractionDigits:n})}};var jr=n(3108),Pr=n.n(jr),Ar=n(1609);const Nr=Math.min,Ir=Math.max,Lr=Math.round,Rr=Math.floor,Br=e=>({x:e,y:e}),Or={left:"right",right:"left",bottom:"top",top:"bottom"},Mr={start:"end",end:"start"};function Dr(e,t,n){return Ir(e,Nr(t,n))}function Fr(e,t){return"function"==typeof e?e(t):e}function $r(e){return e.split("-")[0]}function Vr(e){return e.split("-")[1]}function zr(e){return"x"===e?"y":"x"}function qr(e){return"y"===e?"height":"width"}function Hr(e){return["top","bottom"].includes($r(e))?"y":"x"}function Ur(e){return zr(Hr(e))}function Wr(e){return e.replace(/start|end/g,(e=>Mr[e]))}function Gr(e){return e.replace(/left|right|bottom|top/g,(e=>Or[e]))}function Kr(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Yr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Zr(e,t,n){let{reference:r,floating:o}=e;const i=Hr(t),s=Ur(t),a=qr(s),l=$r(t),c="y"===i,u=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-o.width,y:p};break;default:h={x:r.x,y:r.y}}switch(Vr(t)){case"start":h[s]-=d*(n&&c?-1:1);break;case"end":h[s]+=d*(n&&c?-1:1)}return h}async function Jr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:d=!1,padding:h=0}=Fr(t,e),f=Kr(h),m=a[d?"floating"===p?"reference":"floating":p],g=Yr(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),_="floating"===p?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),v=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=Yr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:y,strategy:l}):_);return{top:(g.top-b.top+f.top)/v.y,bottom:(b.bottom-g.bottom+f.bottom)/v.y,left:(g.left-b.left+f.left)/v.x,right:(b.right-g.right+f.right)/v.x}}function Xr(e){return to(e)?(e.nodeName||"").toLowerCase():"#document"}function Qr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eo(e){var t;return null==(t=(to(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function to(e){return e instanceof Node||e instanceof Qr(e).Node}function no(e){return e instanceof Element||e instanceof Qr(e).Element}function ro(e){return e instanceof HTMLElement||e instanceof Qr(e).HTMLElement}function oo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Qr(e).ShadowRoot)}function io(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=uo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function so(e){return["table","td","th"].includes(Xr(e))}function ao(e){const t=lo(),n=uo(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function lo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function co(e){return["html","body","#document"].includes(Xr(e))}function uo(e){return Qr(e).getComputedStyle(e)}function po(e){return no(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ho(e){if("html"===Xr(e))return e;const t=e.assignedSlot||e.parentNode||oo(e)&&e.host||eo(e);return oo(t)?t.host:t}function fo(e){const t=ho(e);return co(t)?e.ownerDocument?e.ownerDocument.body:e.body:ro(t)&&io(t)?t:fo(t)}function mo(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=fo(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Qr(o);return i?t.concat(s,s.visualViewport||[],io(o)?o:[],s.frameElement&&n?mo(s.frameElement):[]):t.concat(o,mo(o,[],n))}function go(e){const t=uo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ro(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Lr(n)!==i||Lr(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function _o(e){return no(e)?e:e.contextElement}function yo(e){const t=_o(e);if(!ro(t))return Br(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=go(t);let s=(i?Lr(n.width):n.width)/r,a=(i?Lr(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const vo=Br(0);function bo(e){const t=Qr(e);return lo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:vo}function wo(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=_o(e);let s=Br(1);t&&(r?no(r)&&(s=yo(r)):s=yo(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Qr(e))&&t}(i,n,r)?bo(i):Br(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,p=o.height/s.y;if(i){const e=Qr(i),t=r&&no(r)?Qr(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=yo(o),t=o.getBoundingClientRect(),r=uo(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,p*=e.y,l+=i,c+=s,n=Qr(o),o=n.frameElement}}return Yr({width:u,height:p,x:l,y:c})}const xo=[":popover-open",":modal"];function So(e){return xo.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ko(e){return wo(eo(e)).left+po(e).scrollLeft}function Eo(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Qr(e),r=eo(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=lo();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=eo(e),n=po(e),r=e.ownerDocument.body,o=Ir(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ir(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ko(e);const a=-n.scrollTop;return"rtl"===uo(r).direction&&(s+=Ir(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(eo(e));else if(no(t))r=function(e,t){const n=wo(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ro(e)?yo(e):Br(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=bo(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Yr(r)}function Co(e,t){const n=ho(e);return!(n===t||!no(n)||co(n))&&("fixed"===uo(n).position||Co(n,t))}function To(e,t,n){const r=ro(t),o=eo(t),i="fixed"===n,s=wo(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Br(0);if(r||!r&&!i)if(("body"!==Xr(t)||io(o))&&(a=po(t)),r){const e=wo(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=ko(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function jo(e){return"static"===uo(e).position}function Po(e,t){return ro(e)&&"fixed"!==uo(e).position?t?t(e):e.offsetParent:null}function Ao(e,t){const n=Qr(e);if(So(e))return n;if(!ro(e)){let t=ho(e);for(;t&&!co(t);){if(no(t)&&!jo(t))return t;t=ho(t)}return n}let r=Po(e,t);for(;r&&so(r)&&jo(r);)r=Po(r,t);return r&&co(r)&&jo(r)&&!ao(r)?n:r||function(e){let t=ho(e);for(;ro(t)&&!co(t);){if(ao(t))return t;t=ho(t)}return null}(e)||n}const No={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=eo(r),a=!!t&&So(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Br(1);const u=Br(0),p=ro(r);if((p||!p&&!i)&&(("body"!==Xr(r)||io(s))&&(l=po(r)),ro(r))){const e=wo(r);c=yo(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:eo,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?So(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=mo(e,[],!1).filter((e=>no(e)&&"body"!==Xr(e))),o=null;const i="fixed"===uo(e).position;let s=i?ho(e):e;for(;no(s)&&!co(s);){const t=uo(s),n=ao(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||io(s)&&!n&&Co(e,s))?r=r.filter((e=>e!==s)):o=t,s=ho(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=Eo(t,n,o);return e.top=Ir(r.top,e.top),e.right=Nr(r.right,e.right),e.bottom=Nr(r.bottom,e.bottom),e.left=Ir(r.left,e.left),e}),Eo(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ao,getElementRects:async function(e){const t=this.getOffsetParent||Ao,n=this.getDimensions,r=await n(e.floating);return{reference:To(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=go(e);return{width:t,height:n}},getScale:yo,isElement:no,isRTL:function(e){return"rtl"===uo(e).direction}};const Io=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=$r(n),a=Vr(n),l="y"===Hr(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,p=Fr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:f}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return a&&"number"==typeof f&&(h="end"===a?-1*f:f),l?{x:h*u,y:d*c}:{x:d*c,y:h*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Lo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Fr(e,t),c={x:n,y:r},u=await Jr(t,l),p=Hr($r(o)),d=zr(p);let h=c[d],f=c[p];if(i){const e="y"===d?"bottom":"right";h=Dr(h+u["y"===d?"top":"left"],h,h-u[e])}if(s){const e="y"===p?"bottom":"right";f=Dr(f+u["y"===p?"top":"left"],f,f-u[e])}const m=a.fn({...t,[d]:h,[p]:f});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Ro=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=Fr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const _=$r(o),y=$r(a)===a,v=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=d||(y||!m?[Gr(a)]:function(e){const t=Gr(e);return[Wr(e),t,Wr(t)]}(a));d||"none"===f||b.push(...function(e,t,n,r){const o=Vr(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}($r(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Wr)))),i}(a,m,f,v));const w=[a,...b],x=await Jr(t,g),S=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(x[_]),p){const e=function(e,t,n){void 0===n&&(n=!1);const r=Vr(e),o=Ur(e),i=qr(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Gr(s)),[s,Gr(s)]}(o,s,v);S.push(x[e[0]],x[e[1]])}if(k=[...k,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,C;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(C=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var T;const e=null==(T=k.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Bo=(e,t,n)=>{const r=new Map,o={platform:No,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:p}=Zr(c,r,l),d=r,h={},f=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y:_,data:y,reset:v}=await m({x:u,y:p,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,p=null!=_?_:p,h={...h,[i]:{...h[i],...y}},v&&f<=50&&(f++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(c=!0===v.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:p}=Zr(c,d,l))),n=-1)}return{x:u,y:p,placement:d,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var Oo=n(3698),Mo=n.n(Oo);const Do={core:!1,base:!1};function Fo({css:e,id:t="react-tooltip-base-styles",type:n="base",ref:r}){var o,i;if(!e||"undefined"==typeof document||Do[n])return;if("core"===n&&"undefined"!=typeof process&&(null===(o=null===process||void 0===process?void 0:process.env)||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==n&&"undefined"!=typeof process&&(null===(i=null===process||void 0===process?void 0:process.env)||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===n&&(t="react-tooltip-core-styles"),r||(r={});const{insertAt:s}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css","top"===s&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),Do[n]=!0}const $o=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:o=10,strategy:i="absolute",middlewares:s=[Io(Number(o)),Ro({fallbackAxisSideDirection:"start"}),Lo({padding:5})],border:a})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const l=s;return n?(l.push({name:"arrow",options:c={element:n,padding:5},async fn(e){const{x:t,y:n,placement:r,rects:o,platform:i,elements:s,middlewareData:a}=e,{element:l,padding:u=0}=Fr(c,e)||{};if(null==l)return{};const p=Kr(u),d={x:t,y:n},h=Ur(r),f=qr(h),m=await i.getDimensions(l),g="y"===h,_=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",b=o.reference[f]+o.reference[h]-d[h]-o.floating[f],w=d[h]-o.reference[h],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let S=x?x[v]:0;S&&await(null==i.isElement?void 0:i.isElement(x))||(S=s.floating[v]||o.floating[f]);const k=b/2-w/2,E=S/2-m[f]/2-1,C=Nr(p[_],E),T=Nr(p[y],E),j=C,P=S-m[f]-T,A=S/2-m[f]/2+k,N=Dr(j,A,P),I=!a.arrow&&null!=Vr(r)&&A!==N&&o.reference[f]/2-(A<j?C:T)-m[f]/2<0,L=I?A<j?A-j:A-P:0;return{[h]:d[h]+L,data:{[h]:N,centerOffset:A-N-L,...I&&{alignmentOffset:L}},reset:I}}}),Bo(e,t,{placement:r,strategy:i,middleware:l}).then((({x:e,y:t,placement:n,middlewareData:r})=>{var o,i;const s={left:`${e}px`,top:`${t}px`,border:a},{x:l,y:c}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",p=a&&{borderBottom:a,borderRight:a};let d=0;if(a){const e=`${a}`.match(/(\d+)px/);d=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...p,[u]:`-${4+d}px`},place:n}}))):Bo(e,t,{placement:"bottom",strategy:i,middleware:l}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var c},Vo=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),zo=(e,t,n)=>{let r=null;const o=function(...o){const i=()=>{r=null,n||e.apply(this,o)};n&&!r&&(e.apply(this,o),r=setTimeout(i,t)),n||(r&&clearTimeout(r),r=setTimeout(i,t))};return o.cancel=()=>{r&&(clearTimeout(r),r=null)},o},qo=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,Ho=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>Ho(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!qo(e)||!qo(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>Ho(e[n],t[n])))},Uo=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},Wo=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Uo(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Go="undefined"!=typeof window?Ar.useLayoutEffect:Ar.useEffect,Ko={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Yo=(0,Ar.createContext)({getTooltipData:()=>Ko});function Zo(e="DEFAULT_TOOLTIP_ID"){return(0,Ar.useContext)(Yo).getTooltipData(e)}var Jo={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Xo={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Qo=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:o="dark",anchorId:i,anchorSelect:s,place:a="top",offset:l=10,events:c=["hover"],openOnClick:u=!1,positionStrategy:p="absolute",middlewares:d,wrapper:h,delayShow:f=0,delayHide:m=0,float:g=!1,hidden:_=!1,noArrow:y=!1,clickable:v=!1,closeOnEsc:b=!1,closeOnScroll:w=!1,closeOnResize:x=!1,openEvents:S,closeEvents:k,globalCloseEvents:E,imperativeModeOnly:C,style:T,position:j,afterShow:P,afterHide:A,content:N,contentWrapperRef:I,isOpen:L,defaultIsOpen:R=!1,setIsOpen:B,activeAnchor:O,setActiveAnchor:M,border:D,opacity:F,arrowColor:$,role:V="tooltip"})=>{var z;const q=(0,Ar.useRef)(null),H=(0,Ar.useRef)(null),U=(0,Ar.useRef)(null),W=(0,Ar.useRef)(null),G=(0,Ar.useRef)(null),[K,Y]=(0,Ar.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:a}),[Z,J]=(0,Ar.useState)(!1),[X,Q]=(0,Ar.useState)(!1),[ee,te]=(0,Ar.useState)(null),ne=(0,Ar.useRef)(!1),re=(0,Ar.useRef)(null),{anchorRefs:oe,setActiveAnchor:ie}=Zo(t),se=(0,Ar.useRef)(!1),[ae,le]=(0,Ar.useState)([]),ce=(0,Ar.useRef)(!1),ue=u||c.includes("click"),pe=ue||(null==S?void 0:S.click)||(null==S?void 0:S.dblclick)||(null==S?void 0:S.mousedown),de=S?{...S}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!S&&ue&&Object.assign(de,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const he=k?{...k}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!k&&ue&&Object.assign(he,{mouseleave:!1,blur:!1,mouseout:!1});const fe=E?{...E}:{escape:b||!1,scroll:w||!1,resize:x||!1,clickOutsideAnchor:pe||!1};C&&(Object.assign(de,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(he,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(fe,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Go((()=>(ce.current=!0,()=>{ce.current=!1})),[]);const me=e=>{ce.current&&(e&&Q(!0),setTimeout((()=>{ce.current&&(null==B||B(e),void 0===L&&J(e))}),10))};(0,Ar.useEffect)((()=>{if(void 0===L)return()=>null;L&&Q(!0);const e=setTimeout((()=>{J(L)}),10);return()=>{clearTimeout(e)}}),[L]),(0,Ar.useEffect)((()=>{if(Z!==ne.current)if(G.current&&clearTimeout(G.current),ne.current=Z,Z)null==P||P();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,r]=t;return Number(n)*("ms"===r?1:1e3)})();G.current=setTimeout((()=>{Q(!1),te(null),null==A||A()}),e+25)}}),[Z]);const ge=e=>{Y((t=>Ho(t,e)?t:e))},_e=(e=f)=>{U.current&&clearTimeout(U.current),X?me(!0):U.current=setTimeout((()=>{me(!0)}),e)},ye=(e=m)=>{W.current&&clearTimeout(W.current),W.current=setTimeout((()=>{se.current||me(!1)}),e)},ve=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return M(null),void ie({current:null});f?_e():me(!0),M(n),ie({current:n}),W.current&&clearTimeout(W.current)},be=()=>{v?ye(m||100):m?ye():me(!1),U.current&&clearTimeout(U.current)},we=({x:e,y:t})=>{var n;const r={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};$o({place:null!==(n=null==ee?void 0:ee.place)&&void 0!==n?n:a,offset:l,elementReference:r,tooltipReference:q.current,tooltipArrowReference:H.current,strategy:p,middlewares:d,border:D}).then((e=>{ge(e)}))},xe=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};we(n),re.current=n},Se=e=>{var t;if(!Z)return;const n=e.target;n.isConnected&&((null===(t=q.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${i}']`),...ae].some((e=>null==e?void 0:e.contains(n)))||(me(!1),U.current&&clearTimeout(U.current)))},ke=zo(ve,50,!0),Ee=zo(be,50,!0),Ce=e=>{Ee.cancel(),ke(e)},Te=()=>{ke.cancel(),Ee()},je=(0,Ar.useCallback)((()=>{var e,t;const n=null!==(e=null==ee?void 0:ee.position)&&void 0!==e?e:j;n?we(n):g?re.current&&we(re.current):(null==O?void 0:O.isConnected)&&$o({place:null!==(t=null==ee?void 0:ee.place)&&void 0!==t?t:a,offset:l,elementReference:O,tooltipReference:q.current,tooltipArrowReference:H.current,strategy:p,middlewares:d,border:D}).then((e=>{ce.current&&ge(e)}))}),[Z,O,N,T,a,null==ee?void 0:ee.place,l,p,j,null==ee?void 0:ee.position,g]);(0,Ar.useEffect)((()=>{var e,t;const n=new Set(oe);ae.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${i}']`);r&&n.add({current:r});const o=()=>{me(!1)},s=Wo(O),a=Wo(q.current);fe.scroll&&(window.addEventListener("scroll",o),null==s||s.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o));let l=null;fe.resize?window.addEventListener("resize",o):O&&q.current&&(l=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=_o(e),u=o||i?[...c?mo(c):[],...mo(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const p=c&&a?function(e,t){let n,r=null;const o=eo(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:p,height:d}=e.getBoundingClientRect();if(a||t(),!p||!d)return;const h={rootMargin:-Rr(u)+"px "+-Rr(o.clientWidth-(c+p))+"px "+-Rr(o.clientHeight-(u+d))+"px "+-Rr(c)+"px",threshold:Ir(0,Nr(1,l))||1};let f=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}f=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(c,n):null;let d,h=-1,f=null;s&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?wo(e):null;return l&&function t(){const r=wo(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==p||p(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(d)}}(O,q.current,je,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&me(!1)};fe.escape&&window.addEventListener("keydown",c),fe.clickOutsideAnchor&&window.addEventListener("click",Se);const u=[],p=e=>{Z&&(null==e?void 0:e.target)===O||ve(e)},d=e=>{Z&&(null==e?void 0:e.target)===O&&be()},h=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],f=["click","dblclick","mousedown","mouseup"];Object.entries(de).forEach((([e,t])=>{t&&(h.includes(e)?u.push({event:e,listener:Ce}):f.includes(e)&&u.push({event:e,listener:p}))})),Object.entries(he).forEach((([e,t])=>{t&&(h.includes(e)?u.push({event:e,listener:Te}):f.includes(e)&&u.push({event:e,listener:d}))})),g&&u.push({event:"pointermove",listener:xe});const m=()=>{se.current=!0},_=()=>{se.current=!1,be()};return v&&!pe&&(null===(e=q.current)||void 0===e||e.addEventListener("mouseenter",m),null===(t=q.current)||void 0===t||t.addEventListener("mouseleave",_)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;fe.scroll&&(window.removeEventListener("scroll",o),null==s||s.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o)),fe.resize?window.removeEventListener("resize",o):null==l||l(),fe.clickOutsideAnchor&&window.removeEventListener("click",Se),fe.escape&&window.removeEventListener("keydown",c),v&&!pe&&(null===(e=q.current)||void 0===e||e.removeEventListener("mouseenter",m),null===(t=q.current)||void 0===t||t.removeEventListener("mouseleave",_)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[O,je,X,oe,ae,S,k,E,ue,f,m]),(0,Ar.useEffect)((()=>{var e,n;let r=null!==(n=null!==(e=null==ee?void 0:ee.anchorSelect)&&void 0!==e?e:s)&&void 0!==n?n:"";!r&&t&&(r=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const o=new MutationObserver((e=>{const n=[],o=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&o.push(e.target)),"childList"===e.type){if(O){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(r)try{o.push(...t.filter((e=>e.matches(r)))),o.push(...t.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,O))&&(Q(!1),me(!1),M(null),U.current&&clearTimeout(U.current),W.current&&clearTimeout(W.current),!0)}))}if(r)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));n.push(...t.filter((e=>e.matches(r)))),n.push(...t.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}}})),(n.length||o.length)&&le((e=>[...e.filter((e=>!o.includes(e))),...n]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{o.disconnect()}}),[t,s,null==ee?void 0:ee.anchorSelect,O]),(0,Ar.useEffect)((()=>{je()}),[je]),(0,Ar.useEffect)((()=>{if(!(null==I?void 0:I.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>je()))}));return e.observe(I.current),()=>{e.disconnect()}}),[N,null==I?void 0:I.current]),(0,Ar.useEffect)((()=>{var e;const t=document.querySelector(`[id='${i}']`),n=[...ae,t];O&&n.includes(O)||M(null!==(e=ae[0])&&void 0!==e?e:t)}),[i,ae,O]),(0,Ar.useEffect)((()=>(R&&me(!0),()=>{U.current&&clearTimeout(U.current),W.current&&clearTimeout(W.current)})),[]),(0,Ar.useEffect)((()=>{var e;let n=null!==(e=null==ee?void 0:ee.anchorSelect)&&void 0!==e?e:s;if(!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),n)try{const e=Array.from(document.querySelectorAll(n));le(e)}catch(e){le([])}}),[t,s,null==ee?void 0:ee.anchorSelect]),(0,Ar.useEffect)((()=>{U.current&&(clearTimeout(U.current),_e(f))}),[f]);const Pe=null!==(z=null==ee?void 0:ee.content)&&void 0!==z?z:N,Ae=Z&&Object.keys(K.tooltipStyles).length>0;return(0,Ar.useImperativeHandle)(e,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}te(null!=e?e:null),(null==e?void 0:e.delay)?_e(e.delay):me(!0)},close:e=>{(null==e?void 0:e.delay)?ye(e.delay):me(!1)},activeAnchor:O,place:K.place,isOpen:Boolean(X&&!_&&Pe&&Ae)}))),X&&!_&&Pe?Ar.createElement(h,{id:t,role:V,className:Oo("react-tooltip",Jo.tooltip,Xo.tooltip,Xo[o],n,`react-tooltip__place-${K.place}`,Jo[Ae?"show":"closing"],Ae?"react-tooltip__show":"react-tooltip__closing","fixed"===p&&Jo.fixed,v&&Jo.clickable),onTransitionEnd:e=>{G.current&&clearTimeout(G.current),Z||"opacity"!==e.propertyName||(Q(!1),te(null),null==A||A())},style:{...T,...K.tooltipStyles,opacity:void 0!==F&&Ae?F:void 0},ref:q},Pe,Ar.createElement(h,{className:Oo("react-tooltip-arrow",Jo.arrow,Xo.arrow,r,y&&Jo.noArrow),style:{...K.tooltipArrowStyles,background:$?`linear-gradient(to right bottom, transparent 50%, ${$} 50%)`:void 0},ref:H})):null},ei=({content:e})=>Ar.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),ti=Ar.forwardRef((({id:e,anchorId:t,anchorSelect:n,content:r,html:o,render:i,className:s,classNameArrow:a,variant:l="dark",place:c="top",offset:u=10,wrapper:p="div",children:d=null,events:h=["hover"],openOnClick:f=!1,positionStrategy:m="absolute",middlewares:g,delayShow:_=0,delayHide:y=0,float:v=!1,hidden:b=!1,noArrow:w=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:k=!1,closeOnResize:E=!1,openEvents:C,closeEvents:T,globalCloseEvents:j,imperativeModeOnly:P=!1,style:A,position:N,isOpen:I,defaultIsOpen:L=!1,disableStyleInjection:R=!1,border:B,opacity:O,arrowColor:M,setIsOpen:D,afterShow:F,afterHide:$,role:V="tooltip"},z)=>{const[q,H]=(0,Ar.useState)(r),[U,W]=(0,Ar.useState)(o),[G,K]=(0,Ar.useState)(c),[Y,Z]=(0,Ar.useState)(l),[J,X]=(0,Ar.useState)(u),[Q,ee]=(0,Ar.useState)(_),[te,ne]=(0,Ar.useState)(y),[re,oe]=(0,Ar.useState)(v),[ie,se]=(0,Ar.useState)(b),[ae,le]=(0,Ar.useState)(p),[ce,ue]=(0,Ar.useState)(h),[pe,de]=(0,Ar.useState)(m),[he,fe]=(0,Ar.useState)(null),[me,ge]=(0,Ar.useState)(null),_e=(0,Ar.useRef)(R),{anchorRefs:ye,activeAnchor:ve}=Zo(e),be=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null),t}),{}),we=e=>{const t={place:e=>{var t;K(null!==(t=e)&&void 0!==t?t:c)},content:e=>{H(null!=e?e:r)},html:e=>{W(null!=e?e:o)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:l)},offset:e=>{X(null===e?u:Number(e))},wrapper:e=>{var t;le(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");ue(null!=t?t:h)},"position-strategy":e=>{var t;de(null!==(t=e)&&void 0!==t?t:m)},"delay-show":e=>{ee(null===e?_:Number(e))},"delay-hide":e=>{ne(null===e?y:Number(e))},float:e=>{oe(null===e?v:"true"===e)},hidden:e=>{se(null===e?b:"true"===e)},"class-name":e=>{fe(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};(0,Ar.useEffect)((()=>{H(r)}),[r]),(0,Ar.useEffect)((()=>{W(o)}),[o]),(0,Ar.useEffect)((()=>{K(c)}),[c]),(0,Ar.useEffect)((()=>{Z(l)}),[l]),(0,Ar.useEffect)((()=>{X(u)}),[u]),(0,Ar.useEffect)((()=>{ee(_)}),[_]),(0,Ar.useEffect)((()=>{ne(y)}),[y]),(0,Ar.useEffect)((()=>{oe(v)}),[v]),(0,Ar.useEffect)((()=>{se(b)}),[b]),(0,Ar.useEffect)((()=>{de(m)}),[m]),(0,Ar.useEffect)((()=>{_e.current!==R&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[R]),(0,Ar.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===R,disableBase:R}}))}),[]),(0,Ar.useEffect)((()=>{var r;const o=new Set(ye);let i=n;if(!i&&e&&(i=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(r){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const s=document.querySelector(`[id='${t}']`);if(s&&o.add({current:s}),!o.size)return()=>null;const a=null!==(r=null!=me?me:s)&&void 0!==r?r:ve.current,l=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=be(a);we(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=be(a);we(e),l.observe(a,c)}return()=>{l.disconnect()}}),[ye,ve,me,t,n]),(0,Ar.useEffect)((()=>{(null==A?void 0:A.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),B&&!Vo("border",`${B}`)&&console.warn(`[react-tooltip] "${B}" is not a valid \`border\`.`),(null==A?void 0:A.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),O&&!Vo("opacity",`${O}`)&&console.warn(`[react-tooltip] "${O}" is not a valid \`opacity\`.`)}),[]);let xe=d;const Se=(0,Ar.useRef)(null);if(i){const e=i({content:(null==me?void 0:me.getAttribute("data-tooltip-content"))||q||null,activeAnchor:me});xe=e?Ar.createElement("div",{ref:Se,className:"react-tooltip-content-wrapper"},e):null}else q&&(xe=q);U&&(xe=Ar.createElement(ei,{content:U}));const ke={forwardRef:z,id:e,anchorId:t,anchorSelect:n,className:Oo(s,he),classNameArrow:a,content:xe,contentWrapperRef:Se,place:G,variant:Y,offset:J,wrapper:ae,events:ce,openOnClick:f,positionStrategy:pe,middlewares:g,delayShow:Q,delayHide:te,float:re,hidden:ie,noArrow:w,clickable:x,closeOnEsc:S,closeOnScroll:k,closeOnResize:E,openEvents:C,closeEvents:T,globalCloseEvents:j,imperativeModeOnly:P,style:A,position:N,isOpen:I,defaultIsOpen:L,border:B,opacity:O,arrowColor:M,setIsOpen:D,afterShow:F,afterHide:$,activeAnchor:me,setActiveAnchor:e=>ge(e),role:V};return Ar.createElement(Qo,{...ke})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||Fo({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||Fo({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));var ni=n(4242),ri=n(6106);function oi(e){let t=e.tooltipId,n=e.tooltip;return e.tooltipId||"string"!=typeof e.tooltip||(t=e.tooltip),t||(t=(Math.random()+1).toString(36).substring(7)),"string"==typeof e.tooltip&&(n=(0,ri.jsx)("span",{style:{pointerEvents:"all",maxWidth:"400px",display:"inline-block"},children:(0,ni.Ay)(e.tooltip)})),(0,ri.jsxs)("span",{className:e.className,children:[(0,ri.jsx)("span",{style:{cursor:"pointer"},className:"tooltip dashicons dashicons-editor-help","data-tip":!0,"data-tooltip-id":t}),(0,ri.jsx)(ti,{globalEventOff:"click",openOnClick:!0,className:"mailpoet-tooltip-message",id:t,place:e.place,children:n})]})}oi.propTypes={tooltipId:Pr().string,tooltip:Pr().node.isRequired,place:Pr().string,className:Pr().string};var ii=n(9124);const si={show:function(e,t){(0,ii.H)(e).render((0,Ar.createElement)(oi,{tooltip:t.tooltip,tooltipId:t.tooltipId,place:t.place}))}},ai={marginY:20,autoSize:function(e){e&&this.setSize(e,e.contentWindow.document.body.scrollHeight)},setSize:function(e,t){e&&(e.style.height=parseInt(t,10)+this.marginY+"px")}},li=e=>`post.php?post=${e}&action=edit`,ci=(e,t="")=>{const n="admin.php?page=mailpoet-newsletter-editor",r=encodeURIComponent(String(e));return t?`${n}&id=${r}&context=${encodeURIComponent(t)}`:`${n}&id=${r}`},ui={FeaturesController:(pi=window.mailpoet_feature_flags,{FEATURE_BRAND_TEMPLATES:"brand_templates",isSupported:e=>pi[e]||!1}),MailPoetComUrlFactory:(e=>{const t="https://www.mailpoet.com/",n="https://account.mailpoet.com/",r=(t,n,r)=>{let o=r;e&&(o.ref=e);const i=new URL(n,t);return Object.keys(o).forEach((e=>{"object"==typeof o[e]?Object.entries(o[e]).forEach((([t,n])=>{i.searchParams.set(`${e}[${t}]`,n)})):i.searchParams.set(e,o[e])})),i.toString()};return{getFreePlanUrl:e=>{const n="object"==typeof e?e:{};return n.utm_source="plugin",r(t,"free-plan",n)},getPricingPageUrl:e=>r(t,"pricing",{subscribers:e}),getUpgradeUrl:(e,t)=>r(n,"/orders/upgrade/"+e,"object"==typeof t?t:{}),getPurchasePlanUrl:(e,t,o,i)=>{let s={s:e};return"string"==typeof t&&(s.email=t),"string"==typeof o&&(s.g=o),"object"==typeof i&&(s.utm_source="plugin",s=Object.assign(s,i)),r(n,"/",s)}}})(window.mailpoet_referral_id),version:window.mailpoet_version,premiumVersion:window.mailpoet_premium_version,premiumLink:window.mailpoet_premium_link,isWoocommerceActive:window.mailpoet_woocommerce_active,isWoocommerceBookingsActive:window.mailpoet_woocommerce_bookings_active,isWoocommerceSubscriptionsActive:window.mailpoet_woocommerce_subscriptions_active,WooCommerceStoreConfig:window.mailpoet_woocommerce_store_config,premiumActive:window.mailpoet_premium_active,subscribersLimit:window.mailpoet_subscribers_limit,subscribersLimitReached:window.mailpoet_subscribers_limit_reached,subscribersCount:window.mailpoet_subscribers_count,hasPremiumSupport:window.mailpoet_has_premium_support,hasValidApiKey:window.mailpoet_has_valid_api_key,hasValidPremiumKey:window.mailpoet_has_valid_premium_key,hasValidMssApiKey:window.mailpoet_mss_key_valid,hasInvalidMssApiKey:window.mailpoet_mss_key_invalid,mtaMethod:window.mailpoet_mta_method,mtaLog:window.mailpoet_mta_log,listingPerPage:window.mailpoet_listing_per_page,libs3rdPartyEnabled:window.mailpoet_3rd_party_libs_enabled,apiVersion:window.mailpoet_api_version,emailRegex:window.mailpoet_email_regex,wpSegmentState:window.mailpoet_wp_segment_state,wpWeekStartsOn:window.mailpoet_wp_week_starts_on,urls:window.mailpoet_urls,subscribersCountsCacheCreatedAt:window.mailpoet_subscribers_counts_cache_created_at,getShortcodeLinks:()=>window.mailpoet_shortcode_links?window.mailpoet_shortcode_links:{},trackingConfig:window.mailpoet_tracking_config,I18n:p,Date:f,Ajax:rr,Modal:ar,Notice:lr,trackEvent:Er,forceTrackEvent:Cr,Num:Tr,helpTooltip:si,Iframe:ai,isPremiumPluginInstalled:window.mailpoet_premium_plugin_installed,premiumPluginDownloadUrl:window.mailpoet_premium_plugin_download_url,premiumPluginActivationUrl:window.mailpoet_premium_plugin_activation_url,pluginPartialKey:window.mailpoet_plugin_partial_key,emailVolumeLimit:window.mailpoet_email_volume_limit,emailVolumeLimitReached:window.mailpoet_email_volume_limit_reached,capabilities:window.mailpoet_capabilities,tier:window.mailpoet_tier,currentWpUserEmail:window.mailpoet_current_wp_user_email,freeMailDomains:window.mailpoet_free_domains||[],installedAt:window.mailpoet_installed_at,installedDaysAgo:window.mailpoet_installed_days_ago,emailEditorTutorialSeen:window.mailpoet_email_editor_tutorial_seen,emailEditorTutorialUrl:window.mailpoet_email_editor_tutorial_url,deactivateSubscriberAfterInactiveDays:window.mailpoet_deactivate_subscriber_after_inactive_days,tags:window.mailpoet_tags,cdnUrl:window.mailpoet_cdn_url,mainPageSlug:window.mailpoet_main_page_slug,transactionalEmailsEnabled:window.mailpoet_send_transactional_emails,transactionalEmailsOptInNoticeDismissed:window.mailpoet_transactional_emails_opt_in_notice_dismissed,mailFunctionEnabled:window.mailpoet_mail_function_enabled,corrupt_newsletters:window.corrupt_newsletters??[],adminPluginsUrl:window.mailpoet_admin_plugins_url,isDotcom:window.mailpoet_is_dotcom,cronTriggerMethod:window.mailpoet_cron_trigger_method,useBlockEmailEditorForAutomationNewsletter:window?.mailpoet_use_block_email_editor_for_automation_emails??!1,getBlockEmailEditorUrl:li,getNewsletterEditorUrl:ci,getActiveEmailEditorUrl:(e,t="")=>e&&e.id?e.wp_post_id?li(e.wp_post_id):ci(e.id,t):"#"};var pi;window.MailPoet=ui,function(){let e,t=0;const n=()=>{window.MailPoet.forceTrackEvent=_r,window.mailpoet_analytics_enabled&&window.mailpoet_3rd_party_libs_enabled?(window.MailPoet.trackEvent=_r,window.MailPoet.queueTrackEvent=Sr,window.MailPoet.processAllCachedEvents=kr):(window.MailPoet.trackEvent=function(e,t,n,r){"function"==typeof r&&r()},window.MailPoet.queueTrackEvent=function(e,t,n,r){"function"==typeof r&&r()},window.MailPoet.processAllCachedEvents=function(){}),br(),wr();const e=()=>{window.mailpoetTracks&&"function"==typeof window.mailpoetTracks.flushQueue&&window.mailpoetTracks.flushQueue()};window.addEventListener("beforeunload",e),window.addEventListener("pagehide",e),setInterval(e,3e4)},r=()=>"object"==typeof window.mixpanel||!0;r()?n():e=setInterval((()=>{r()?(clearInterval(e),n()):t+=1,t>5&&clearInterval(e)}),100)}();const di=window.wp.element,hi=window.wp.compose,fi=(window.wp.formatLibrary,window.wp.blocks);function mi(){try{return(0,fi.getBlockTypes)().filter((e=>!0===e.supports?.email)).map((e=>e.name))}catch(e){return console.error("Failed to get allowed block names:",e),[]}}const gi=window.wp.blockLibrary,_i=window.wp.blockEditor,yi=new Map;function vi(e,t){const n=(0,fi.getBlockType)(e);if(!n)return!1;const{name:r,...o}=n;try{yi.has(r)||yi.set(r,{...o});const e=t(o),n={...o,...e};return(0,fi.unregisterBlockType)(r),(0,fi.registerBlockType)(r,n),!0}catch(t){return console.error("Failed to update block settings for",e,t),!1}}const bi=new Set,wi=new Set;function xi(e,t){return`${e}||${t}`}function Si(e,t,n,r){(0,o.addFilter)(e,t,n,r),bi.add(xi(e,t))}function ki(e,t,n,r){(0,o.addAction)(e,t,n,r),wi.add(xi(e,t))}const Ei=(0,hi.createHigherOrderComponent)((e=>function(t){return"core/columns"!==t.name?(0,ri.jsx)(e,{...t}):(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(e,{...t}),(0,ri.jsx)(_i.InspectorControls,{children:(0,ri.jsx)("style",{children:"\n .components-panel__body .components-toggle-control .components-form-toggle { opacity: 0.3; }\n .components-panel__body .components-toggle-control .components-form-toggle__input { pointer-events: none; }\n .components-panel__body .components-toggle-control label { pointer-events: none; }\n "})})]})}),"columnsEditCallback"),Ci=["core/column","core/columns"];function Ti({layoutClassNames:e}){const t=(0,_i.useBlockProps)({className:e});return(0,ri.jsxs)("div",{...t,children:[(0,ri.jsx)("p",{children:(0,i.__)("This is the Content block.","woocommerce")}),(0,ri.jsx)("p",{children:(0,i.__)("It will display all the blocks in the email content, which might be only simple text paragraphs. You can enrich your message with images, incorporate data through tables, explore different layout designs with columns, or use any other block type.","woocommerce")})]})}const ji=(0,hi.createHigherOrderComponent)((e=>function(t){return"core/image"!==t.name?(0,ri.jsx)(e,{...t}):(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(e,{...t}),(0,ri.jsx)(_i.InspectorControls,{children:(0,ri.jsx)("style",{children:"\n .components-tools-panel .components-toggle-control { display: none; }\n "})})]})}),"imageEditCallback"),Pi=window.wp.richText,Ai=window.wp.components,Ni=(e,t)=>{const n=e.current.ownerDocument.defaultView.getSelection();if(!n.rangeCount)return{start:0,end:0};const r=n.getRangeAt(0);if(null===n.anchorNode.previousSibling)return{start:n.anchorOffset,end:n.anchorOffset+r.toString().length};const o=(0,Pi.create)({html:t});let i=n.anchorNode.previousSibling;i=function(e){let t=e;for(;t&&t?.children?.length>0;)t=t.children[0];return t}(i);const s=function(e,t){let n=null;for(const[r,o]of t.entries())if(o)for(const t of o)t?.attributes&&e.tagName.toLowerCase()===t.tagName?.toLowerCase()&&e.getAttribute("data-link-href")===t?.attributes["data-link-href"]&&(n=r);return n}(i,o.formats);if(null!==s)return{start:s+n.anchorOffset+1,end:s+n.anchorOffset+r.toString().length};const a=function(e,t){for(const[n,r]of t.entries()){if(!r)continue;const{attributes:t}=r;if(e.getAttribute("data-rich-text-comment")===t["data-rich-text-comment"])return n}return null}(i,o.replacements);return null!==a?{start:a+n.anchorOffset+1,end:a+n.anchorOffset+r.toString().length}:{start:o.text.length,end:o.text.length+r.toString().length}},Ii=(e,t)=>(t.forEach((t=>{if(!e.includes(t.token.slice(0,t.token.length-1)))return;const n=t.token.substring(1,t.token.length-1).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`(?<!\x3c!--)(?<!["'])\\[(${n}(\\s[^\\]]*)?)\\](?!--\x3e)`,"g");e=e.replace(r,(e=>`\x3c!--${e}--\x3e`))})),e),Li=({groupedTags:e,activeCategory:t,onCategorySelect:n})=>{const r=e=>e===t?"woocommerce-personalization-tags-modal-menu-item-active":"";return(0,ri.jsxs)(Ai.MenuGroup,{className:"woocommerce-personalization-tags-modal-menu",children:[(0,ri.jsx)(Ai.MenuItem,{onClick:()=>n(null),className:r(null),children:(0,i.__)("All","woocommerce")}),(0,ri.jsx)("div",{className:"woocommerce-personalization-tags-modal-menu-separator","aria-hidden":"true",role:"presentation","data-testid":"woocommerce-personalization-tags-modal-menu-separator"}),Object.keys(e).map(((e,t,o)=>(0,ri.jsxs)(di.Fragment,{children:[(0,ri.jsx)(Ai.MenuItem,{onClick:()=>n(e),className:r(e),children:e}),t<o.length-1&&(0,ri.jsx)("div",{className:"woocommerce-personalization-tags-modal-menu-separator","aria-hidden":"true",role:"presentation","data-testid":"woocommerce-personalization-tags-modal-menu-separator"})]},e)))]})},Ri=({groupedTags:e,activeCategory:t,onInsert:n,canInsertLink:r,closeCallback:o,openLinkModal:a})=>{const{updateBlockAttributes:l}=(0,s.useDispatch)(_i.store),c=(0,s.useSelect)((e=>e(_i.store).getSelectedBlockClientId())),u=(0,s.useSelect)((e=>e(_i.store).getBlock(c))),p=["core/button"].includes(u?.name),d=null===t?Object.entries(e):[[t,e[t]||[]]];return(0,ri.jsx)(ri.Fragment,{children:d.map((([e,t])=>(0,ri.jsxs)("div",{children:[(0,ri.jsx)("div",{className:"woocommerce-personalization-tags-modal-category",children:e}),(0,ri.jsx)("div",{className:"woocommerce-personalization-tags-modal-category-group",children:t.map((t=>{const s=/\burl\b/.test(t.token);return(0,ri.jsxs)("div",{className:"woocommerce-personalization-tags-modal-category-group-item",children:[(0,ri.jsxs)("div",{className:"woocommerce-personalization-tags-modal-item-text",children:[(0,ri.jsx)("strong",{children:t.name}),t.valueToInsert]}),(0,ri.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[(0,ri.jsx)(Ai.Button,{variant:"link",onClick:()=>{n&&n(t.valueToInsert,!1)},children:(0,i.__)("Insert","woocommerce")}),p&&s&&(0,ri.jsx)(Ai.Button,{variant:"link",onClick:()=>{l(c,{url:t.valueToInsert}),o()},children:(0,i.__)("Set as URL","woocommerce")}),e===(0,i.__)("Link","woocommerce")&&r&&(0,ri.jsx)(ri.Fragment,{children:(0,ri.jsx)(Ai.Button,{variant:"link",onClick:()=>{o(),a(t)},children:(0,i.__)("Insert as link","woocommerce")})})]})]},t.token)}))})]},e)))})},Bi=({onInsert:e,isOpened:t,closeCallback:n,tag:r})=>{const[o,s]=(0,di.useState)((0,i.__)("Link","woocommerce"));return t?(0,ri.jsxs)(Ai.Modal,{size:"small",title:(0,i.__)("Insert Link","woocommerce"),onRequestClose:n,className:"woocommerce-personalization-tags-modal",children:[(0,ri.jsx)(Ai.TextControl,{label:(0,i.__)("Link Text","woocommerce"),value:o,onChange:s}),(0,ri.jsx)(Ai.Button,{isPrimary:!0,onClick:()=>{e&&e(r.token,o)},children:(0,i.__)("Insert","woocommerce")})]}):null},Oi=window.lodash,Mi=()=>(0,o.applyFilters)("woocommerce_email_editor_events_tracking_enabled",!1),Di="email_editor_events",Fi=new EventTarget,$i=(e,t={})=>{if(!Mi())return;const n={name:`${Di}_${e}`,..."object"!=typeof t?{data:t}:t};Fi.dispatchEvent(new CustomEvent(Di,{detail:n}))},Vi=function(){const e={};return(t,n={})=>{if(!Mi())return;const r=`${t}_${JSON.stringify(n).length}`;e[r]||($i(t,n),e[r]=!0)}}(),zi=(0,Oi.debounce)($i,700),qi="email-editor/editor",Hi={name:"personalization_tag",kind:"root",baseURL:"/woocommerce-email-editor/v1/personalization_tags",key:"token"},Ui=({onInsert:e,isOpened:t,closeCallback:n,canInsertLink:r=!1,openedBy:o=""})=>{const[a,l]=(0,di.useState)(null),[c,u]=(0,di.useState)(""),[p,d]=(0,di.useState)(null),[h,f]=(0,di.useState)(!1),m=(0,s.useSelect)((e=>e(qi).getPersonalizationTagsList()),[]);if(h)return(0,ri.jsx)(Bi,{onInsert:(t,n)=>{e(t,n),f(!1)},isOpened:h,closeCallback:()=>f(!1),tag:p});if(!t)return null;Vi("personalization_tags_modal_opened",{openedBy:o});const g=m.reduce(((e,t)=>{const{category:n,name:r,token:o}=t;return(!c||r.toLowerCase().includes(c.toLowerCase())||o.toLowerCase().includes(c.toLowerCase()))&&(e[n]||(e[n]=[]),e[n].push(t)),e}),{});return(0,ri.jsxs)(Ai.Modal,{size:"medium",title:(0,i.__)("Personalization Tags","woocommerce"),onRequestClose:()=>{n(),$i("personalization_tags_modal_closed",{openedBy:o})},className:"woocommerce-personalization-tags-modal",children:[(0,ri.jsxs)("p",{children:[(0,i.__)("Insert personalization tags to dynamically fill in information and personalize your emails.","woocommerce")," ",(0,ri.jsx)(Ai.ExternalLink,{href:"https://kb.mailpoet.com/article/435-a-guide-to-personalisation-tags-for-tailored-newsletters#list",onClick:()=>$i("personalization_tags_modal_learn_more_link_clicked",{openedBy:o}),children:(0,i.__)("Learn more","woocommerce")})]}),(0,ri.jsx)(Ai.SearchControl,{onChange:e=>{u(e),Vi("personalization_tags_modal_search_control_input_updated",{openedBy:o})},value:c}),(0,ri.jsx)(Li,{groupedTags:g,activeCategory:a,onCategorySelect:e=>{l(e),$i("personalization_tags_modal_category_menu_clicked",{category:e,openedBy:o})}}),(0,ri.jsx)(Ri,{groupedTags:g,activeCategory:a,onInsert:t=>{e(t),$i("personalization_tags_modal_tag_insert_button_clicked",{insertedTag:t,activeCategory:a,openedBy:o})},closeCallback:n,canInsertLink:r,openLinkModal:e=>{d(e),f(!0)}})]})},Wi=({contentRef:e,onUpdate:t})=>{const[n,r]=(0,di.useState)(!1),[o,s]=(0,di.useState)(null),[a,l]=(0,di.useState)(""),[c,u]=(0,di.useState)("");return(0,di.useEffect)((()=>{if(!e||!e.current)return;const t=e.current,n=e=>{const t=e.target.closest("span[data-rich-text-comment]");if(t){const e=t.innerText.replace(/^\[|\]$/g,"");u(e),l(e),s(t),r(!0)}};return t.addEventListener("click",n),()=>{t.removeEventListener("click",n)}}),[e]),(0,ri.jsx)(ri.Fragment,{children:n&&o&&(0,ri.jsx)(Ai.Popover,{position:"bottom right",onClose:()=>r(!1),anchor:o,className:"woocommerce-personalization-tag-popover",children:(0,ri.jsxs)("div",{className:"woocommerce-personalization-tag-popover-content",children:[(0,ri.jsx)(Ai.TextControl,{label:(0,i.__)("Personalization Tag","woocommerce"),value:a,onChange:e=>l(e),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,ri.jsxs)("div",{className:"woocommerce-personalization-tag-popover-content-buttons",children:[(0,ri.jsx)(Ai.Button,{isTertiary:!0,onClick:()=>{r(!1)},children:(0,i.__)("Cancel","woocommerce")}),(0,ri.jsx)(Ai.Button,{isPrimary:!0,onClick:()=>{t(c,a),r(!1)},children:(0,i.__)("Update","woocommerce")})]})]})})})},Gi=({contentRef:e,onUpdate:t})=>{const[n,r]=(0,di.useState)(!1),[o,a]=(0,di.useState)(null),[l,c]=(0,di.useState)(""),[u,p]=(0,di.useState)(""),d=(0,s.useSelect)((e=>e(qi).getPersonalizationTagsList()),[]);return(0,di.useEffect)((()=>{if(!e||!e.current)return;const t=e.current,n=e=>{const t=e.target.closest("a[data-link-href]");t&&(a(t),p(t.getAttribute("data-link-href")||""),c(t.textContent||""),r(!0))};return t.addEventListener("click",n),()=>{t.removeEventListener("click",n)}}),[e]),(0,ri.jsx)(ri.Fragment,{children:n&&o&&(0,ri.jsx)(Ai.Popover,{position:"bottom left",onClose:()=>r(!1),anchor:o,className:"woocommerce-personalization-tag-popover",children:(0,ri.jsxs)("div",{className:"woocommerce-personalization-tag-popover-content",children:[(0,ri.jsx)(Ai.TextControl,{label:(0,i.__)("Link Text","woocommerce"),value:l,onChange:e=>c(e),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off"}),(0,ri.jsx)(Ai.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,i.__)("Link tag","woocommerce"),value:u,onChange:e=>{p(e)},options:d.filter((e=>e.category===(0,i.__)("Link","woocommerce"))).map((e=>({label:e.name,value:e.token})))}),(0,ri.jsxs)("div",{className:"woocommerce-personalization-tag-popover-content-buttons",children:[(0,ri.jsx)(Ai.Button,{isTertiary:!0,onClick:()=>{r(!1)},children:(0,i.__)("Cancel","woocommerce")}),(0,ri.jsx)(Ai.Button,{isPrimary:!0,onClick:()=>{r(!1),t(o,u,l)},children:(0,i.__)("Update link","woocommerce")})]})]})})})},Ki=new Set,Yi=new Map;function Zi(e,t){(0,Pi.registerFormatType)(e,t),Ki.add(e)}function Ji({contentRef:e}){const[t,n]=(0,di.useState)(!1),r=(0,s.useSelect)((e=>e("core/block-editor").getSelectedBlockClientId())),{updateBlockAttributes:o}=(0,s.useDispatch)("core/block-editor"),a=(0,s.useSelect)((e=>e("core/block-editor").getBlockAttributes(r))),l="text"in a?"text":"content",c=a?.[l]?.originalHTML||a?.[l]||"",u=(0,di.useCallback)(((t,n)=>{let{start:i,end:s}=Ni(e,c),a="";if(n){let e=(0,Pi.create)({html:c});e=(0,Pi.insert)(e,n,i,s),s=i+n.length,e=(0,Pi.applyFormat)(e,{type:"woocommerce-email-editor/link-shortcode",attributes:{"data-link-href":t,contenteditable:"false",style:"text-decoration: underline;"}},i,s),a=(0,Pi.toHTMLString)({value:e})}else{let e=(0,Pi.create)({html:c});e=(0,Pi.insert)(e,(0,Pi.create)({html:`\x3c!--${t}--\x3e `}),i,s),a=(0,Pi.toHTMLString)({value:e})}o(r,{[l]:a})}),[c,l,e,r,o]);return(0,ri.jsx)(_i.BlockControls,{children:(0,ri.jsxs)(Ai.ToolbarGroup,{children:[(0,ri.jsx)(Ai.ToolbarButton,{icon:"shortcode",title:(0,i.__)("Personalization Tags","woocommerce"),onClick:()=>{n(!0),$i("block_controls_personalization_tags_button_clicked")}}),(0,ri.jsx)(Wi,{contentRef:e,onUpdate:(e,t)=>{const n=c.replace(`\x3c!--[${e}]--\x3e`,`\x3c!--[${t}]--\x3e`);o(r,{[l]:n})}}),(0,ri.jsx)(Gi,{contentRef:e,onUpdate:(e,t,n)=>{const i=e.getAttribute("data-link-href").replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=new RegExp(`<a([^>]*?)data-link-href="${i}"([^>]*?)>${e.textContent}</a>`,"gi"),a=c.replace(s,((e,r,o)=>`<a${r}data-link-href="${t}"${o}>${n}</a>`));o(r,{content:a})}}),(0,ri.jsx)(Ui,{isOpened:t,onInsert:(e,t)=>{u(e,t),n(!1)},closeCallback:()=>n(!1),canInsertLink:!0,openedBy:"block-controls"})]})})}const Xi=(0,hi.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:r,name:o}=t,{content:i}=n,a=(0,s.useSelect)((e=>e(qi).getPersonalizationTagsList()),[]),l=(0,di.useCallback)((()=>i?Ii(i,a):""),[i,a]),c=(0,di.useCallback)((e=>{if(void 0!==e.content){const t=Ii(e.content,a);r({...e,content:t})}else r(e)}),[a,r]);return"core/paragraph"===o||"core/heading"===o||"core/list-item"===o?(0,ri.jsx)(e,{...t,attributes:{...n,content:l()},setAttributes:c}):(0,ri.jsx)(e,{...t})}),"personalizationTagsLiveContentUpdate"),Qi=window.wp.domReady;var es=n.n(Qi);new Set;const ts=new Map,ns=["core/social-links"];function rs(){(0,fi.getBlockTypes)().forEach((e=>{const t=e.name;if(ns.includes(t))return;const n=(0,s.select)("core/blocks").getBlockStyles(t);Array.isArray(n)&&0!==n?.length&&n.forEach((e=>{!function(e,t){const n=((0,s.select)("core/blocks").getBlockStyles(e)||[]).find((e=>e.name===t));if(n){const r=ts.get(e)||[];r.find((e=>e.name===t))||(r.push(n),ts.set(e,r))}(0,fi.unregisterBlockStyle)(e,t)}(t,e.name)}))}))}const os=e=>t=>{const{setAttributes:n}=t,r=(0,di.useCallback)((e=>{e?.url&&e.url?.startsWith("http://[")&&(e.url=e.url.replace("http://[","[")),n(e)}),[n]);return(0,ri.jsx)(e,{...t,setAttributes:r})},is=new Set;function ss(e,t){(0,fi.registerBlockVariation)(e,t),is.add(function(e,t){return`${e}||${t}`}(e,t.name))}const as=["behance","bluesky","chain","discord","facebook","feed","github","gravatar","instagram","linkedin","mail","mastodon","medium","patreon","pinterest","reddit","spotify","telegram","threads","tiktok","tumblr","twitch","twitter","vimeo","wordpress","whatsapp","x","youtube"],ls=e=>t=>{if("core/social-links"!==t.name)return(0,ri.jsx)(e,{...t});const n=`\n\t\t.block-editor-tools-panel-color-gradient-settings__item:has([title="${(0,i.__)("Icon color")}"]) {\n\t\t\tdisplay: none !important;\n\t\t}\n\t\t.block-editor-tools-panel-color-gradient-settings__item:nth-child(2 of .block-editor-tools-panel-color-gradient-settings__item){\n\t\t\tborder-top:1px solid #ddd;\n\t\t\tborder-top-left-radius:2px;\n\t\t\tborder-top-right-radius:2px;\n\t\t}\n\t\t`;return(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(e,{...t}),(0,ri.jsx)(_i.InspectorControls,{group:"color",children:(0,ri.jsx)("style",{children:n})})]})};function cs(){(0,fi.getBlockType)("core/paragraph")||(0,gi.registerCoreBlocks)(),Si("editor.BlockEdit","woocommerce-email-editor/filter-set-url-attribute",os),Si("editor.BlockEdit","woocommerce-email-editor/deactivate-stack-on-mobile",Ei),Si("editor.BlockEdit","woocommerce-email-editor/hide-expand-on-click",ji),vi("core/image",(e=>({...e,supports:{...e.supports||{},filter:{...e.supports?.filter||{},duetone:!1}}}))),["core/image","core/code","core/language"].forEach((e=>{!function(e){const t=(0,Pi.unregisterFormatType)(e);t&&Yi.set(e,t)}(e)})),Ci.forEach((e=>{vi(e,(e=>({...e,supports:{...e.supports||{},layout:!1,background:{...e.support?.background||{},backgroundImage:!0}}})))})),vi("core/group",(e=>{const t=e.variations??[];return{...e,variations:t.filter((e=>"group"===e.name)),supports:{...e.supports||{},layout:!1}}})),vi("core/buttons",(e=>({...e,supports:{...e.supports??{},layout:!1,__experimentalEmailFlexLayout:!0}}))),vi("core/post-content",(e=>{return{...e,edit:(t=e.edit,function(e){const{postId:n,postType:r}=e.context,{__unstableLayoutClassNames:o}=e;return n&&r?(0,ri.jsx)(t,{...e}):(0,ri.jsx)(Ti,{layoutClassNames:o})})};var t})),vi("core/quote",(e=>({...e,styles:[],supports:{...e.supports,align:[]}}))),Zi("woocommerce-email-editor/shortcode",{name:"woocommerce-email-editor/shortcode",title:(0,i.__)("Personalization Tags","woocommerce"),className:"woocommerce-email-editor-personalization-tags",tagName:"span",attributes:{},interactive:!0,edit:Ji}),Zi("woocommerce-email-editor/link-shortcode",{name:"woocommerce-email-editor/link-shortcode",title:(0,i.__)("Personalization Tags Link","woocommerce"),className:"woocommerce-email-editor-personalization-tags-link",tagName:"a",attributes:{"data-link-href":"data-link-href",contenteditable:"contenteditable",style:"style"},interactive:!0,edit:null}),Si("editor.BlockEdit","woocommerce-email-editor/with-live-content-update",Xi),(0,fi.getBlockTypes)().forEach((e=>{e.supports?.shadow&&vi(e.name,(e=>({...e,supports:{...e.supports,shadow:!1}})))})),vi("core/social-link",(e=>({...e,variations:(e.variations||[]).filter((e=>as.includes(e.name))),supports:{...e.supports,layout:!1}}))),ss("core/social-links",{name:"social-links-default",title:"Social Icons",attributes:{openInNewTab:!0,showLabels:!1,align:"center",className:"is-style-logos-only"},isDefault:!0,innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"x",url:"https://x.com/WordPress"}}]}),Si("editor.BlockEdit","woocommerce-email-editor/disable-social-links-icon-color",ls),ss("core/site-logo",{name:"site-logo-default",title:"Site Logo",attributes:{align:"center",width:120},isDefault:!0}),es()(rs)}function us(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=us(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const ps=window.wp.primitives,ds=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})}),hs=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})}),fs=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})}),ms="__experimentalEmailFlexLayout";function gs(e){return(0,fi.hasBlockSupport)(e,ms)}function _s({justificationValue:e,onChange:t,isToolbar:n=!1}){const r=[{value:"left",icon:ds,label:(0,i.__)("Justify items left","woocommerce")},{value:"center",icon:hs,label:(0,i.__)("Justify items center","woocommerce")},{value:"right",icon:fs,label:(0,i.__)("Justify items right","woocommerce")}];if(n){const n=r.map((e=>e.value));return(0,ri.jsx)(_i.JustifyContentControl,{value:e,onChange:t,allowedControls:n,popoverProps:{placement:"bottom-start"}})}return(0,ri.jsx)(Ai.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,i.__)("Justification","woocommerce"),value:e,onChange:t,className:"block-editor-hooks__flex-layout-justification-controls",children:r.map((({value:e,icon:t,label:n})=>(0,ri.jsx)(Ai.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:n},e)))})}function ys({setAttributes:e,attributes:t,name:n}){if(!(0,fi.getBlockSupport)(n,ms,{}))return null;const{justifyContent:r="left"}=t.layout||{},o=n=>{e({layout:{...t.layout,justifyContent:n}})},s=()=>{const{justifyContent:n,...r}=t.layout||{};e({layout:r})};return(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(_i.InspectorControls,{children:(0,ri.jsx)(Ai.__experimentalToolsPanel,{label:(0,i.__)("Layout","woocommerce"),resetAll:s,children:(0,ri.jsx)(Ai.__experimentalToolsPanelItem,{isShownByDefault:!0,onDeselect:s,hasValue:()=>t.layout?.justifyContent||!1,label:(0,i.__)("Justification","woocommerce"),children:(0,ri.jsx)(Ai.Flex,{children:(0,ri.jsx)(Ai.FlexItem,{children:(0,ri.jsx)(_s,{justificationValue:r,onChange:o})})})})})}),(0,ri.jsx)(_i.BlockControls,{group:"block",__experimentalShareWithChildBlocks:!0,children:(0,ri.jsx)(_s,{justificationValue:r,onChange:o,isToolbar:!0})})]})}const vs=(0,hi.createHigherOrderComponent)((e=>t=>[gs(t.name)&&(0,ri.jsx)(ys,{...t},"layout"),(0,ri.jsx)(e,{...t},"edit")]),"withLayoutControls");function bs({block:e,props:t}){const{attributes:n}=t,{layout:r}=n,o=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=us(e))&&(r&&(r+=" "),r+=t);return r}(`is-content-justification-${r?.justifyContent||"left"}`,"is-layout-email-flex is-layout-flex");return(0,ri.jsx)(e,{...t,className:o})}const ws=(0,hi.createHigherOrderComponent)((e=>function(t){return gs(t.name)?(0,ri.jsx)(bs,{block:e,props:t}):(0,ri.jsx)(e,{...t})}),"withLayoutStyles");const xs=window.wp.commands,Ss=window.wp.privateApis,{unlock:ks}=(0,Ss.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/edit-site"),{ColorPanel:Es}=ks(_i.privateApis),{Editor:Cs,FullscreenMode:Ts,ViewMoreMenuGroup:js,BackButton:Ps}=ks(l.privateApis),{registerEntityAction:As,unregisterEntityAction:Ns}=ks((0,s.dispatch)(l.store));var Is=n(6838),Ls=n.n(Is);function Rs(){const{globalStylePost:e}=(0,s.useSelect)((e=>({globalStylePost:e(qi).getGlobalEmailStylesPost()||null})),[]),t=(0,di.useCallback)((t=>{e&&(0,s.dispatch)(a.store).editEntityRecord("root","globalStyles",e.id,{styles:t.styles,settings:t.settings})}),[e]);return{userTheme:{settings:e?.settings,styles:e?.styles},updateUserTheme:t}}const Bs=window.wp.styleEngine;var Os="1600px",Ms="320px",Ds=1,Fs=.25,$s=.75,Vs="14px";function zs(e,t={}){if("string"!=typeof e&&"number"!=typeof e)return null;isFinite(e)&&(e=`${e}px`);const{coerceTo:n,rootSizeValue:r,acceptableUnits:o}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=o?.join("|"),s=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),a=e.toString().match(s);if(!a||a.length<3)return null;let[,l,c]=a,u=parseFloat(l);return"px"!==n||"em"!==c&&"rem"!==c||(u*=r,c=n),"px"!==c||"em"!==n&&"rem"!==n||(u/=r,c=n),"em"!==n&&"rem"!==n||"em"!==c&&"rem"!==c||(c=n),c?{value:qs(u,3),unit:c}:null}function qs(e,t=3){const n=Math.pow(10,t);return Math.round(e*n)/n}function Hs(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}function Us(e,t){const{size:n}=e;if(!n||"0"===n||!1===e?.fluid)return n;if(!Hs(t?.typography)&&!Hs(e))return n;const r=function(e){const t=e?.typography??{},n=e?.layout,r=zs(n?.wideSize)?n?.wideSize:null;return Hs(t)&&r?{fluid:{maxViewportWidth:r,..."object"==typeof t.fluid?t.fluid:{}}}:{fluid:t?.fluid}}(t)?.fluid??{};return function({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewportWidth:r=Ms,maximumViewportWidth:o=Os,scaleFactor:i=Ds,minimumFontSizeLimit:s}){if(s=zs(s)?s:Vs,n){const r=zs(n);if(!r?.unit||!r?.value)return null;const o=zs(s,{coerceTo:r.unit});if(o?.value&&!e&&!t&&r?.value<=o?.value)return null;if(t||(t=`${r.value}${r.unit}`),!e){const t="px"===r.unit?r.value:16*r.value,n=Math.min(Math.max(1-.075*Math.log2(t),Fs),$s),i=qs(r.value*n,3);e=o?.value&&i<o?.value?`${o.value}${o.unit}`:`${i}${r.unit}`}}const a=zs(e),l=a?.unit||"rem",c=zs(t,{coerceTo:l});if(!a||!c)return null;const u=zs(e,{coerceTo:"rem"}),p=zs(o,{coerceTo:l}),d=zs(r,{coerceTo:l});if(!p||!d||!u)return null;const h=p.value-d.value;if(!h)return null;const f=qs(d.value/100,3),m=qs(f,3)+l,g=qs(((c.value-a.value)/h*100||1)*i,3);return`clamp(${e}, ${u.value}${u.unit} + ((1vw - ${m}) * ${g}), ${t})`}({minimumFontSize:"boolean"==typeof e?.fluid?void 0:e?.fluid?.min,maximumFontSize:"boolean"==typeof e?.fluid?void 0:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:"object"==typeof r?r?.minFontSize:void 0,maximumViewportWidth:"object"==typeof r?r?.maxViewportWidth:void 0,minimumViewportWidth:"object"==typeof r?r?.minViewportWidth:void 0})||n}function Ws(e,t,n){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};const r=t.pop();let o=e;for(const e of t){const t=o[e];o=o[e]=Array.isArray(t)?[...t]:{...t}}return o[r]=n,e}var Gs=(e,t,n)=>{const r=Array.isArray(t)?t:t.split(".");let o=e;return r.forEach((e=>{o=o?.[e]})),o??n},Ks="body",Ys=":root",Zs=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>Us(e,t),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]},{path:["border","radiusSizes"],valueKey:"size",cssVarInfix:"border-radius",classes:[]},{path:["dimensions","dimensionSizes"],valueKey:"size",cssVarInfix:"dimension",classes:[]}];function Js(e,t){if(!e||!t)return t;const n=e.split(","),r=t.split(","),o=[];return n.forEach((e=>{r.forEach((t=>{o.push(`${e.trim()} ${t.trim()}`)}))})),o.join(", ")}function Xs(e,t){if(!e||!t)return e;const n=function(e,t){if(!e||!t)return e;if("object"==typeof e&&"ref"in e&&e?.ref){const n=(0,Bs.getCSSValueFromRawStyle)(Gs(t,e.ref));if("object"==typeof n&&null!==n&&"ref"in n&&n?.ref)return;return void 0===n?e:n}return e}(e,t);return"object"==typeof n&&null!==n&&"url"in n&&n?.url&&(n.url=function(e,t){if(!e||!t||!Array.isArray(t))return e;const n=t.find((t=>t?.name===e));return n?.href?n?.href:e}(n.url,t?._links?.["wp:theme-file"])),n}function Qs(e,t="root",n={}){if(!t)return null;const{fallback:r=!1}=n,{name:o,selectors:i,supports:s}=e,a=i&&Object.keys(i).length>0,l=Array.isArray(t)?t.join("."):t;let c=null;if(c=a&&i.root?i?.root:s?.__experimentalSelector?s.__experimentalSelector:".wp-block-"+o.replace("core/","").replace("/","-"),"root"===l)return c;const u=Array.isArray(t)?t:t.split(".");if(1===u.length){const e=r?c:null;if(a)return Gs(i,`${l}.root`,null)||Gs(i,l,null)||e;const t=s?Gs(s,`${l}.__experimentalSelector`,null):void 0;return t?Js(c,t):e}let p;return a&&(p=Gs(i,l,null)),p||(r?Qs(e,u[0],n):null)}var ea={grad:.9,turn:360,rad:360/(2*Math.PI)},ta=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},na=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},ra=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},oa=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ia=function(e){return{r:ra(e.r,0,255),g:ra(e.g,0,255),b:ra(e.b,0,255),a:ra(e.a)}},sa=function(e){return{r:na(e.r),g:na(e.g),b:na(e.b),a:na(e.a,3)}},aa=/^#([0-9a-f]{3,8})$/i,la=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ca=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},ua=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,a,s,s,l,r][c],g:255*[l,r,r,a,s,s][c],b:255*[s,s,l,r,r,a][c],a:o}},pa=function(e){return{h:oa(e.h),s:ra(e.s,0,100),l:ra(e.l,0,100),a:ra(e.a)}},da=function(e){return{h:na(e.h),s:na(e.s),l:na(e.l),a:na(e.a,3)}},ha=function(e){return ua((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},fa=function(e){return{h:(t=ca(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},ma=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ga=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_a=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ya=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,va={string:[[function(e){var t=aa.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?na(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?na(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=_a.exec(e)||ya.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ia({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=ma.exec(e)||ga.exec(e);if(!t)return null;var n,r,o=pa({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(ea[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return ha(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return ta(t)&&ta(n)&&ta(r)?ia({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!ta(t)||!ta(n)||!ta(r))return null;var s=pa({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return ha(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!ta(t)||!ta(n)||!ta(r))return null;var s=function(e){return{h:oa(e.h),s:ra(e.s,0,100),v:ra(e.v,0,100),a:ra(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return ua(s)},"hsv"]]},ba=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},wa=function(e,t){var n=fa(e);return{h:n.h,s:ra(n.s+100*t,0,100),l:n.l,a:n.a}},xa=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Sa=function(e,t){var n=fa(e);return{h:n.h,s:n.s,l:ra(n.l+100*t,0,100),a:n.a}},ka=function(){function e(e){this.parsed=function(e){return"string"==typeof e?ba(e.trim(),va.string):"object"==typeof e&&null!==e?ba(e,va.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return na(xa(this.rgba),2)},e.prototype.isDark=function(){return xa(this.rgba)<.5},e.prototype.isLight=function(){return xa(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=sa(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?la(na(255*o)):"","#"+la(t)+la(n)+la(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return sa(this.rgba)},e.prototype.toRgbString=function(){return t=(e=sa(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return da(fa(this.rgba))},e.prototype.toHslString=function(){return t=(e=da(fa(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=ca(this.rgba),{h:na(e.h),s:na(e.s),v:na(e.v),a:na(e.a,3)};var e},e.prototype.invert=function(){return Ea({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Ea(wa(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Ea(wa(this.rgba,-e))},e.prototype.grayscale=function(){return Ea(wa(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Ea(Sa(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Ea(Sa(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Ea({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):na(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=fa(this.rgba);return"number"==typeof e?Ea({h:e,s:t.s,l:t.l,a:t.a}):na(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Ea(e).toHex()},e}(),Ea=function(e){return e instanceof ka?e:new ka(e)};function Ca(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([0-9])([a-zA-Z])/g,"$1-$2").replace(/([a-zA-Z])([0-9])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function Ta(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function ja(e,t="0"){const n=function(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const r=Ta(n?.top)||t,o=Ta(n?.left)||t;return r===o?r:`${r} ${o}`}var Pa={backgroundSize:"cover",backgroundPosition:"50% 50%"};function Aa(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:Pa.backgroundSize}),"contain"!==e?.backgroundSize||e?.backgroundPosition||(t={backgroundPosition:Pa.backgroundPosition}),t}var Na={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}},Ia=["appearanceTools","useRootPaddingAwareAlignments","background.backgroundImage","background.backgroundRepeat","background.backgroundSize","background.backgroundPosition","border.color","border.radius","border.radiusSizes","border.style","border.width","shadow.presets","shadow.defaultPresets","color.background","color.button","color.caption","color.custom","color.customDuotone","color.customGradient","color.defaultDuotone","color.defaultGradients","color.defaultPalette","color.duotone","color.gradients","color.heading","color.link","color.palette","color.text","custom","dimensions.aspectRatio","dimensions.height","dimensions.minHeight","dimensions.width","dimensions.dimensionSizes","layout.contentSize","layout.definitions","layout.wideSize","lightbox.enabled","lightbox.allowEditing","position.fixed","position.sticky","spacing.customSpacingSize","spacing.defaultSpacingSizes","spacing.spacingSizes","spacing.spacingScale","spacing.blockGap","spacing.margin","spacing.padding","spacing.units","typography.fluid","typography.customFontSize","typography.defaultFontSizes","typography.dropCap","typography.fontFamilies","typography.fontSizes","typography.fontStyle","typography.fontWeight","typography.letterSpacing","typography.lineHeight","typography.textAlign","typography.textColumns","typography.textDecoration","typography.textTransform","typography.writingMode"],La={button:"wp-element-button",caption:"wp-element-caption"},Ra={__experimentalBorder:"border",color:"color",dimensions:"dimensions",spacing:"spacing",typography:"typography"};function Ba(e={},t,n){let r=[];return Object.keys(e).forEach((o=>{const i=t+Ca(o.replace("/","-")),s=e[o];if(s instanceof Object){const e=i+n;r=[...r,...Ba(s,e,n)]}else r.push(`${i}: ${s}`)})),r}var Oa=(e,t)=>{const n={};return Object.entries(e).forEach((([e,r])=>{if("root"===e||!t?.[e])return;const o="string"==typeof r;if(o||"object"!=typeof r||null===r||Object.entries(r).forEach((([r,o])=>{if("root"===r||!t?.[e][r])return;const i=Ma({[e]:{[r]:t[e][r]}});n[o]=[...n[o]||[],...i],delete t[e][r]})),o||"object"==typeof r&&null!==r&&"root"in r){const i=o?r:r.root,s=Ma({[e]:t[e]});n[i]=[...n[i]||[],...s],delete t[e]}})),n};function Ma(e={},t="",n,r={},o=!1){const i=Ks===t,s=Object.entries(fi.__EXPERIMENTAL_STYLE_PROPERTY).reduce(((t,[r,{value:o,properties:s,useEngine:a,rootOnly:l}])=>{if(l&&!i)return t;const c=o;if("elements"===c[0]||a)return t;const u=Gs(e,c);if("--wp--style--root--padding"===r&&("string"==typeof u||!n))return t;if(s&&"string"!=typeof u)Object.entries(s).forEach((e=>{const[n,r]=e;if(!Gs(u,[r],!1))return;const o=n.startsWith("--")?n:Ca(n);t.push(`${o}: ${(0,Bs.getCSSValueFromRawStyle)(Gs(u,[r]))}`)}));else if(Gs(e,c,!1)){const n=r.startsWith("--")?r:Ca(r);t.push(`${n}: ${(0,Bs.getCSSValueFromRawStyle)(Gs(e,c))}`)}return t}),[]);return e.background&&(e.background?.backgroundImage&&(e.background.backgroundImage=Xs(e.background.backgroundImage,r)),!i&&e.background?.backgroundImage?.id&&(e={...e,background:{...e.background,...Aa(e.background)}})),(0,Bs.getCSSRules)(e).forEach((e=>{if(i&&(n||o)&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:Ca(e.key);let a=Xs(e.value,r);"font-size"===t&&(a=Us({name:"",slug:"",size:a},r?.settings)),"aspect-ratio"===t&&s.push("min-height: unset"),s.push(`${t}: ${a}`)})),s}function Da({layoutDefinitions:e=Na,style:t,selector:n,hasBlockGapSupport:r,hasFallbackGapSupport:o,fallbackGapValue:i}){let s="",a=r?ja(t?.spacing?.blockGap):"";if(o&&(n===Ks?a=a||"0.5em":!r&&i&&(a=i)),a&&e&&(Object.values(e).forEach((({className:e,name:t,spacingStyles:o})=>{(r||"flex"===t||"grid"===t)&&o?.length&&o.forEach((t=>{const o=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{o.push(`${e}: ${t||a}`)})),o.length){let i="";i=r?n===Ks?`:root :where(.${e})${t?.selector||""}`:`:root :where(${n}-${e})${t?.selector||""}`:n===Ks?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,s+=`${i} { ${o.join("; ")}; }`}}))})),n===Ks&&r&&(s+=`${Ys} { --wp--style--block-gap: ${a}; }`)),n===Ks&&e){const t=["block","flex","grid"];Object.values(e).forEach((({className:e,displayMode:r,baseStyles:o})=>{r&&t.includes(r)&&(s+=`${n} .${e} { display:${r}; }`),o?.length&&o.forEach((t=>{const n=[];t.rules&&Object.entries(t.rules).forEach((([e,t])=>{n.push(`${e}: ${t}`)})),n.length&&(s+=`.${e}${t?.selector||""} { ${n.join("; ")}; }`)}))}))}return s}var Fa=["border","color","dimensions","spacing","typography","filter","outline","shadow","background"];function $a(e){if(!e)return{};const t=Object.entries(e).filter((([e])=>Fa.includes(e))).map((([e,t])=>[e,JSON.parse(JSON.stringify(t))]));return Object.fromEntries(t)}var Va=(e,t)=>{const n=[];if(!e?.settings)return n;const r=e=>{let t={};return Zs.forEach((({path:n})=>{const r=Gs(e,n,!1);!1!==r&&(t=Ws(t,n,r))})),t},o=r(e.settings),i=e.settings?.custom;return(Object.keys(o).length>0||i)&&n.push({presets:o,custom:i,selector:Ys}),Object.entries(e.settings?.blocks??{}).forEach((([e,o])=>{const i=o.custom;if("string"==typeof t||!t[e])return;const s=r(o);(Object.keys(s).length>0||i)&&n.push({presets:s,custom:i,selector:t[e]?.selector})})),n},za=(e,t)=>{const n=Va(e,t);let r="";return n.forEach((({presets:t,custom:n,selector:o})=>{const i=e?.settings?function(e={},t){return Zs.reduce(((n,{path:r,valueKey:o,valueFunc:i,cssVarInfix:s})=>{const a=Gs(e,r,[]);return["default","theme","custom"].forEach((e=>{a[e]&&a[e].forEach((e=>{o&&!i?n.push(`--wp--preset--${s}--${Ca(e.slug)}: ${e[o]}`):i&&"function"==typeof i&&n.push(`--wp--preset--${s}--${Ca(e.slug)}: ${i(e,t)}`)}))})),n}),[])}(t,e?.settings):[],s=Ba(n,"--wp--custom--","--");s.length>0&&i.push(...s),i.length>0&&(r+=`${o}{${i.join(";")};}`)})),r},qa=(e,t,n,r,o=!1,i=!1,s={})=>{const a={blockGap:!0,blockStyles:!0,layoutStyles:!0,marginReset:!0,presets:!0,rootPadding:!0,variationStyles:!1,...s},l=((e,t)=>{const n=[];if(!e?.styles)return n;const r=$a(e.styles);return r&&n.push({styles:r,selector:Ks,skipSelectorWrapper:!0}),Object.entries(fi.__EXPERIMENTAL_ELEMENTS).forEach((([t,r])=>{e.styles?.elements?.[t]&&n.push({styles:e.styles?.elements?.[t]??{},selector:r,skipSelectorWrapper:!La[t]})})),Object.entries(e.styles?.blocks??{}).forEach((([e,r])=>{const o=$a(r),i=r,s=[];if(i?.variations){const n={};Object.entries(i.variations).forEach((([r,o])=>{const i=o;n[r]=$a(i),i?.css&&(n[r].css=i.css);const a="string"!=typeof t?t[e]?.styleVariationSelectors?.[r]:void 0;Object.entries(i?.elements??{}).forEach((([e,t])=>{t&&fi.__EXPERIMENTAL_ELEMENTS[e]&&s.push({styles:t,selector:Js(a,fi.__EXPERIMENTAL_ELEMENTS[e])})})),Object.entries(i?.blocks??{}).forEach((([e,n])=>{const r="string"!=typeof t?Js(a,t[e]?.selector):void 0,o="string"!=typeof t?Js(a,t[e]?.duotoneSelector):void 0,i="string"!=typeof t?function(e,t){if(!e||!t)return;const n={};return Object.entries(t).forEach((([t,r])=>{"string"==typeof r&&(n[t]=Js(e,r)),"object"==typeof r&&(n[t]={},Object.entries(r).forEach((([r,o])=>{n[t][r]=Js(e,o)})))})),n}(a,t[e]?.featureSelectors??{}):void 0,l=$a(n);n?.css&&(l.css=n.css),r&&"string"!=typeof t&&(s.push({selector:r,duotoneSelector:o,featureSelectors:i,fallbackGapValue:t[e]?.fallbackGapValue,hasLayoutSupport:t[e]?.hasLayoutSupport,styles:l}),Object.entries(n.elements??{}).forEach((([e,t])=>{t&&fi.__EXPERIMENTAL_ELEMENTS[e]&&s.push({styles:t,selector:Js(r,fi.__EXPERIMENTAL_ELEMENTS[e])})})))}))})),o.variations=n}"string"!=typeof t&&t?.[e]?.selector&&n.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:o,featureSelectors:t[e].featureSelectors,styleVariationSelectors:t[e].styleVariationSelectors}),Object.entries(i?.elements??{}).forEach((([r,o])=>{"string"!=typeof t&&o&&t?.[e]&&fi.__EXPERIMENTAL_ELEMENTS[r]&&n.push({styles:o,selector:t[e]?.selector.split(",").map((e=>fi.__EXPERIMENTAL_ELEMENTS[r].split(",").map((t=>e+" "+t)))).join(",")})})),n.push(...s)})),n})(e,t),c=Va(e,t),u=e?.settings?.useRootPaddingAwareAlignments,{contentSize:p,wideSize:d}=e?.settings?.layout||{},h=a.marginReset||a.rootPadding||a.layoutStyles;let f="";if(a.presets&&(p||d)&&(f+=`${Ys} {`,f=p?f+` --wp--style--global--content-size: ${p};`:f,f=d?f+` --wp--style--global--wide-size: ${d};`:f,f+="}"),h&&(f+=":where(body) {margin: 0;",a.rootPadding&&u&&(f+="padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }\n\t\t\t\t.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t\t.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0;\n\t\t\t\t"),f+="}"),a.blockStyles&&l.forEach((({selector:t,duotoneSelector:s,styles:l,fallbackGapValue:c,hasLayoutSupport:p,featureSelectors:d,styleVariationSelectors:h,skipSelectorWrapper:m})=>{if(d){const e=Oa(d,l);Object.entries(e).forEach((([e,t])=>{if(t.length){const n=t.join(";");f+=`:root :where(${e}){${n};}`}}))}if(s){const e={};l?.filter&&(e.filter=l.filter,delete l.filter);const t=Ma(e);t.length&&(f+=`${s}{${t.join(";")};}`)}o||Ks!==t&&!p||(f+=Da({style:l,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:r,fallbackGapValue:c}));const g=Ma(l,t,u,e,i);g?.length&&(f+=`${m?t:`:root :where(${t})`}{${g.join(";")};}`),l?.css&&(f+=Ua(l.css,`:root :where(${t})`)),a.variationStyles&&h&&Object.entries(h).forEach((([n,o])=>{const i=l?.variations?.[n];if(i){if(d){const e=Oa(d,i);Object.entries(e).forEach((([e,t])=>{if(t.length){const n=function(e,t){const n=e.split(","),r=[];return n.forEach((e=>{r.push(`${t.trim()}${e.trim()}`)})),r.join(", ")}(e,o),r=t.join(";");f+=`:root :where(${n}){${r};}`}}))}const n=Ma(i,o,u,e);n.length&&(f+=`:root :where(${o}){${n.join(";")};}`),i?.css&&(f+=Ua(i.css,`:root :where(${o})`)),p&&i?.spacing?.blockGap&&(f+=Da({style:i,selector:o+t,hasBlockGapSupport:!0,hasFallbackGapSupport:r,fallbackGapValue:c}))}}));const _=Object.entries(l).filter((([e])=>e.startsWith(":")));_?.length&&_.forEach((([e,n])=>{const r=Ma(n);if(!r?.length)return;const o=`:root :where(${t.split(",").map((t=>t+e)).join(",")}){${r.join(";")};}`;f+=o}))})),a.layoutStyles&&(f+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",f+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",f+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),a.blockGap&&n){const t=ja(e?.styles?.spacing?.blockGap)||"0.5em";f+=`:root :where(.wp-site-blocks) > * { margin-block-start: ${t}; margin-block-end: 0; }`,f+=":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",f+=":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return a.presets&&c.forEach((({selector:e,presets:t})=>{Ks!==e&&Ys!==e||(e="");const n=function(e="*",t={}){return Zs.reduce(((n,{path:r,cssVarInfix:o,classes:i})=>{if(!i)return n;const s=Gs(t,r,[]);return["default","theme","custom"].forEach((t=>{s[t]&&s[t].forEach((({slug:t})=>{i.forEach((({classSuffix:r,propertyName:i})=>{const s=`.has-${Ca(t)}-${r}`,a=e.split(",").map((e=>`${e}${s}`)).join(","),l=`var(--wp--preset--${o}--${Ca(t)})`;n+=`${a}{${i}: ${l} !important;}`}))}))})),n}),"")}(e,t);n.length>0&&(f+=n)})),f};function Ha(e,t){return Va(e,t).flatMap((({presets:e})=>function(e={}){return Zs.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=Gs(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>function(e,t){const n=function(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach((e=>{const n=Ea(e).toRgb();t.r.push(n.r/255),t.g.push(n.g/255),t.b.push(n.b/255),t.a.push(n.a)})),t}(t);return`\n<svg\n\txmlns:xlink="http://www.w3.org/1999/xlink"\n\tviewBox="0 0 0 0"\n\twidth="0"\n\theight="0"\n\tfocusable="false"\n\trole="none"\n\taria-hidden="true"\n\tstyle="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"\n>\n\t<defs>\n\t\t<filter id="${e}">\n\t\t\t\x3c!--\n\t\t\t\tUse sRGB instead of linearRGB so transparency looks correct.\n\t\t\t\tUse perceptual brightness to convert to grayscale.\n\t\t\t--\x3e\n\t\t\t<feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix>\n\t\t\t\x3c!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. --\x3e\n\t\t\t<feComponentTransfer color-interpolation-filters="sRGB">\n\t\t\t\t<feFuncR type="table" tableValues="${n.r.join(" ")}"></feFuncR>\n\t\t\t\t<feFuncG type="table" tableValues="${n.g.join(" ")}"></feFuncG>\n\t\t\t\t<feFuncB type="table" tableValues="${n.b.join(" ")}"></feFuncB>\n\t\t\t\t<feFuncA type="table" tableValues="${n.a.join(" ")}"></feFuncA>\n\t\t\t</feComponentTransfer>\n\t\t\t\x3c!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. --\x3e\n\t\t\t<feComposite in2="SourceGraphic" operator="in"></feComposite>\n\t\t</filter>\n\t</defs>\n</svg>`}(`wp-duotone-${e.slug}`,e.colors))))).join("")}))}(e)))}function Ua(e,t){let n="";return e&&""!==e.trim()?(e.split("&").forEach((e=>{var r,o;if(e&&""!==e.trim())if(e.includes("{")){const i=e.replace("}","").split("{");if(2!==i.length)return;const[s,a]=i,l=s.match(/([>+~\s]*::[a-zA-Z-]+)/),c=l?l[1]:"",u=l?s.replace(c,"").trim():s.trim();let p;p=""===u?t:s.startsWith(" ")?Js(t,u):(o=u,(r=t).includes(",")?r.split(",").map((e=>e+o)).join(","):r+o),n+=`:root :where(${p})${c}{${a.trim()}}`}else n+=`:root :where(${t}){${e.trim()}}`})),n):n}function Wa(e={},t=[],n={}){const{hasBlockGapSupport:r,hasFallbackGapSupport:o,disableLayoutStyles:i=!1,disableRootPadding:a=!1,styleOptions:l={}}=n,c=t.length>0?t:(0,fi.getBlockTypes)(),u=function(e,t,n){const r=t?"."+t:"",o=`settings${r}`;if(t)return Gs(e,`settings${r}`)??Gs(e,o);let i={};return Ia.forEach((t=>{const n=Gs(e,`settings.${t}`)??Gs(e,`settings.${t}`);void 0!==n&&(i=Ws(i,t.split("."),n))})),i}(e,"spacing.blockGap"),p=r??null!==u,d=o??!p;if(!e?.styles||!e?.settings)return[[],{}];const h=function(e){const t=e.styles?.blocks,n=t?.["core/separator"];return n&&n.color?.background&&!n.color?.text&&!n.border?.color?{...e,styles:{...e.styles,blocks:{...t,"core/separator":{...n,color:{...n.color,text:n.color?.background}}}}}:e}(e),f=((e,t)=>{const{getBlockStyles:n}=(0,s.select)(fi.store),r={};return e.forEach((e=>{const o=e.name,i=Qs(e);if(!i)return;let s=Qs(e,"filter.duotone");if(!s){const t=Qs(e),n=(0,fi.getBlockSupport)(e,"color.__experimentalDuotone",!1);s=n&&t&&Js(t,n)}const a=!!e?.supports?.layout||!!e?.supports?.__experimentalLayout,l=e?.supports?.spacing?.blockGap?.__experimentalDefault,c=n(o),u={};c?.forEach((e=>{const n=t?`-${t}`:"",r=`${e.name}${n}`,o=function(e,t){const n=`.is-style-${e}`;if(!t)return n;const r=/((?::\([^)]+\))?\s*)([^\s:]+)/,o=(e,t,r)=>t+r+n;return t.split(",").map((e=>e.replace(r,o))).join(",")}(r,i);u[r]=o}));const p=((e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;const n={root:t};return Object.entries(Ra).forEach((([t,r])=>{const o=Qs(e,t);o&&(n[r]=o)})),n})(e,i);r[o]={duotoneSelector:s??void 0,fallbackGapValue:l,featureSelectors:Object.keys(p).length?p:void 0,hasLayoutSupport:a,name:o,selector:i,styleVariationSelectors:c?.length?u:void 0}})),r})(c),m=za(h,f),g=qa(h,f,p,d,i,a,l),_=Ha(h,f),y=[{css:m,isGlobalStyles:!0},{css:g,isGlobalStyles:!0},{css:h?.styles?.css??"",isGlobalStyles:!0},{assets:_,__unstableType:"svg",isGlobalStyles:!0}];return c.forEach((e=>{const t=h?.styles?.blocks?.[e.name];if(t?.css){const n=f[e.name].selector;y.push({css:Ua(t.css,n),isGlobalStyles:!0})}})),[y,h.settings]}const Ga={},Ka=[],Ya=(e={})=>(0,di.useMemo)((()=>e?.styles&&e?.settings?Wa(e,[],{hasBlockGapSupport:!0,hasFallbackGapSupport:!1,disableLayoutStyles:!1,disableRootPadding:!1}):[Ka,Ga]),[e]);function Za(e){if("string"!=typeof e)return null;const t=e.match(/^var:preset\|([a-zA-Z0-9-]+)\|([a-zA-Z0-9-]+)$/);return t?`--wp--preset--${t[1]}--${t[2]}`:null}function Ja(e){const t=Za(e);return t?`var(${t})`:e}function Xa(e){const t=Za(e);if(!t)return e;const n=document.querySelector(":root");return n&&getComputedStyle(n).getPropertyValue(t).trim()||e}const Qa=[];function el(){const{userTheme:e}=Rs(),{editorTheme:t,layout:n,deviceType:r,initialEditorSettingsStyles:o}=(0,s.useSelect)((e=>{const{getEditorSettings:t,getDeviceType:n}=e(l.store),r=t(),o=e(qi).getInitialEditorSettings();return{editorTheme:e(qi).getTheme(),layout:r?.__experimentalFeatures?.layout,deviceType:n(),initialEditorSettingsStyles:o?.styles}}),[]),i=(0,di.useMemo)((()=>Ls().all([{},t||{},e||{}])),[t,e]),[a]=Ya(i);let c="";n&&"Mobile"!==r&&(c=`display:flow-root; width:${n?.contentSize||"660px"}; margin: 0 auto;box-sizing: border-box;max-width: 100%;`);const u=i.styles?.spacing?.padding;return u&&(c+=`padding-left:${Ja(u.left)};`,c+=`padding-right:${Ja(u.right)};`),[(0,di.useMemo)((()=>[...a??[],{css:`.is-root-container{ ${c} }`},...o??[]]),[a,o,c])||Qa]}const tl=window.wp.notices,nl=()=>{const e=".editor-preview-dropdown__button-external",t=async t=>{const n=t.target,r=n?.closest(e);if(!r)return;const o=(0,s.select)(l.store),a=o?.isEditedPostDirty();a&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),(0,s.dispatch)(tl.store).createNotice("warning",(0,i.__)("You have unsaved changes. Please save the post before previewing.","woocommerce"),{context:"email-editor",isDismissible:!0}))},n=(0,di.useCallback)((n=>{try{const r=n.target;"Enter"!==n.key&&" "!==n.key||!r?.closest(e)||t(n)}catch(e){console.warn("Preview save message guard error:",e)}}),[e]);return(0,di.useEffect)((()=>(document.addEventListener("click",t,!0),document.addEventListener("auxclick",t,!0),document.addEventListener("keydown",n,!0),()=>{document.removeEventListener("click",t,!0),document.removeEventListener("auxclick",t,!0),document.removeEventListener("keydown",n,!0)})),[n]),null},rl=[];function ol(e,t){return e.map((e=>"core/post-content"===e.name?{...e,name:"core/group",innerBlocks:t}:e.innerBlocks?.length?{...e,innerBlocks:ol(e.innerBlocks,t)}:e))}const il={};function sl(e="",t=!0){const{templates:n,patterns:r,emailPosts:i,hasEmailPosts:a}=(0,s.useSelect)((n=>{const r=t&&"swap"!==e?n(qi).getSentEmailEditorPosts():void 0;return{templates:n(qi).getEmailTemplates(),patterns:n(qi).getBlockPatternsForEmailTemplate(),emailPosts:r,hasEmailPosts:!(!r||!r?.length)}}),[e,t]),l=(0,di.useMemo)((()=>{let t=[];const o=e&&(0,fi.parse)(e);if(t=o?[{blocks:o}]:r,!t||!n)return rl;const i=[];return n?.filter((e=>"email-general"!==e.slug))?.forEach((e=>{t?.forEach((t=>{let n=(0,fi.parse)(e.content?.raw);n=ol(n,t.blocks),i.push({id:e.id,slug:e.slug,previewContentParsed:n,emailParsed:t.emailBlocks??t.blocks,template:e,category:t.categories?.[0],type:e.type,displayName:t.title?`${e.title.rendered} - ${t.title}`:e.title.rendered})}))})),i}),[n,r,e]),c=(0,di.useMemo)((()=>i?.map((e=>{const t=(0,o.applyFilters)("woocommerce_email_editor_preferred_template_title","",e),{postTemplateContent:n}=function(e,t=[]){const n=e.template,r={postTemplateContent:null};if(!n)return r;if(il[n])return il[n];const o=t.find((e=>e.slug===n));if(!o)return r;const i={postTemplateContent:o?.template};return il[n]=i,i}(e,l),r=(0,fi.parse)(e.content?.raw);let i=r;n?.content?.raw&&(i=ol((0,fi.parse)(n?.content?.raw),r));const s={...e,title:{raw:e.title.raw,rendered:t||e.title.rendered}};return{id:e.id,slug:e.slug,previewContentParsed:i,emailParsed:r,category:"recent",type:e.type,displayName:s.title.rendered,template:s}}))),[i,l]);return[l||rl,c||rl,a]}const al=(0,di.forwardRef)((({icon:e,size:t=24,...n},r)=>(0,di.cloneElement)(e,{width:t,height:t,...n,ref:r}))),ll=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})}),cl=(0,ri.jsx)(ps.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,ri.jsx)(ps.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})}),ul=(0,window.wp.priorityQueue.createQueue)();function pl({children:e,placeholder:t}){const[n,r]=(0,di.useState)(!1);return(0,di.useEffect)((()=>{const e={};return ul.add(e,(()=>{(0,di.flushSync)((()=>{r(!0)}))})),()=>{ul.cancel(e)}}),[]),n?e:t}function dl(){return(0,ri.jsxs)("div",{className:"block-editor-inserter__no-results",children:[(0,ri.jsx)(al,{className:"block-editor-inserter__no-results-icon",icon:ll}),(0,ri.jsx)("p",{children:(0,i.__)("No recent templates.","woocommerce")}),(0,ri.jsx)("p",{children:(0,i.__)("Your recent creations will appear here as soon as you begin.","woocommerce")})]})}const hl=(0,di.memo)((function({templates:e,onTemplateSelection:t,selectedCategory:n}){const{layout:r}=(0,s.useSelect)((e=>{const{getEditorSettings:t}=e(l.store),n=t();return{layout:n?.__experimentalFeatures?.layout}})),[o]=el(),a=o.reduce(((e,t)=>e+(t.css??"")),"")+`.is-root-container { width: ${r?.contentSize||"660px"}; margin: 0 auto; }`;return"recent"===n&&0===e.length?(0,ri.jsx)(dl,{}):(0,ri.jsx)("div",{className:"block-editor-block-patterns-list",role:"listbox",children:e.map((e=>(0,ri.jsx)("div",{className:"block-editor-block-patterns-list__list-item email-editor-pattern__list-item",children:(0,ri.jsx)("div",{className:"block-editor-block-patterns-list__item",role:"button",tabIndex:0,onClick:()=>{t(e)},onKeyPress:n=>{"Enter"!==n.key&&" "!==n.key||t(e)},children:(0,ri.jsxs)(pl,{placeholder:(0,ri.jsx)("p",{children:(0,i.__)("rendering template","woocommerce")}),children:[(0,ri.jsx)(_i.BlockPreview,{blocks:e.previewContentParsed,viewportWidth:900,minHeight:300,additionalStyles:[{css:a}]}),(0,ri.jsx)(Ai.__experimentalHStack,{className:"block-editor-patterns__pattern-details",children:(0,ri.jsx)("h4",{className:"block-editor-block-patterns-list__item-title",children:e.displayName})})]})})},`${e.slug}_${e.displayName}_${e.id}`)))})}),((e,t)=>e.templates.length===t.templates.length&&e.selectedCategory===t.selectedCategory));function fl({templates:e,onTemplateSelection:t,selectedCategory:n}){const r=(0,di.useMemo)((()=>null!=n?e.filter((e=>e.category===n)):e),[n,e]);return(0,ri.jsxs)("div",{className:"block-editor-block-patterns-explorer__list",children:["recent"===n&&(0,ri.jsx)("div",{className:"email-editor-recent-templates-info",children:(0,ri.jsxs)(Ai.__experimentalHStack,{spacing:1,expanded:!1,justify:"start",children:[(0,ri.jsx)(al,{icon:cl}),(0,ri.jsx)("p",{children:(0,i.__)("Templates created on the legacy editor will not appear here.","woocommerce")})]})}),(0,ri.jsx)(hl,{templates:r,onTemplateSelection:t,selectedCategory:n})]})}function ml({selectedCategory:e,templateCategories:t,onClickCategory:n}){const r="block-editor-block-patterns-explorer__sidebar";return(0,ri.jsx)("div",{className:r,children:(0,ri.jsx)("div",{className:`${r}__categories-list`,children:t.map((({name:t,label:o})=>(0,ri.jsx)(Ai.Button,{label:o,className:`${r}__categories-list__item`,isPressed:e===t,onClick:()=>{n(t)},children:o},t)))})})}const gl=(0,di.memo)((function({templates:e,handleTemplateSelection:t,templateSelectMode:n}){const r=(0,s.useSelect)((e=>e(a.store).getBlockPatternCategories()),[]),o="swap"===n,l=(0,di.useMemo)((()=>{const t=function(e,t){const n=new Map(t.map((e=>[e.name,e.label])));n.set("recent",(0,i.__)("Recent","woocommerce"));const r=new Set;for(const t of e)t.category&&r.add(t.category);return[...r].map((e=>({name:e,label:n.get(e)??e})))}(e,r??[]);return o?t.filter((e=>"recent"!==e.name)):t.sort(((e,t)=>"recent"===e.name?-1:"recent"===t.name?1:0))}),[e,r,o]),[c,u]=(0,di.useState)(null);return(0,di.useEffect)((()=>{if(null!==c||0===l.length)return;const e=setTimeout((()=>{const e=l.find((e=>"recent"!==e.name))?.name??l[0]?.name;u(e)}),1e3);return()=>clearTimeout(e)}),[l,c]),(0,ri.jsxs)("div",{className:"block-editor-block-patterns-explorer"+(0===l.length?" no-sidebar":""),children:[l.length>0&&(0,ri.jsx)(ml,{templateCategories:l,selectedCategory:c,onClickCategory:e=>{$i("template_select_modal_category_change",{category:e}),u(e)}}),(0,ri.jsx)(fl,{templates:e,onTemplateSelection:t,selectedCategory:c})]})}));function _l({onSelectCallback:e,closeCallback:t=null,previewContent:n="",postType:r}){const o=n?"swap":"new";Vi("template_select_modal_opened",{templateSelectMode:o});const[a,c]=sl(n),u=a?.length>0,p=t=>{const i=t.type===r,a=t.template;$i("template_select_modal_template_selected",{templateSlug:t.slug,templateSelectMode:o,templateType:t.type}),n||(0,s.dispatch)(l.store).resetEditorBlocks(t.emailParsed),(0,s.dispatch)(qi).setTemplateToPost(i?a.template:t.slug),e()},d=()=>{const e=a[0]??null;e&&($i("template_select_modal_handle_close_without_template_selected"),p(e))};return(0,ri.jsxs)(Ai.Modal,{title:"new"===o?(0,i.__)("Start with an email preset","woocommerce"):(0,i.__)("Select a template","woocommerce"),onRequestClose:()=>($i("template_select_modal_closed",{templateSelectMode:o}),t?t():d()),isFullScreen:!0,children:[(0,ri.jsx)(gl,{templates:[...a,...c],handleTemplateSelection:p,templateSelectMode:o}),(0,ri.jsx)(Ai.Flex,{className:"email-editor-modal-footer",justify:"flex-end",children:(0,ri.jsx)(Ai.FlexItem,{children:(0,ri.jsx)(Ai.Button,{variant:"tertiary",className:"email-editor-start_from_scratch_button",onClick:()=>($i("template_select_modal_start_from_scratch_clicked"),d()),isBusy:!u,children:(0,i.__)("Start from scratch","woocommerce")})})})]})}function yl(){const[e,t]=(0,di.useState)(!1),{emailContentIsEmpty:n,emailHasEdits:r,postType:o}=(0,s.useSelect)((e=>({emailContentIsEmpty:e(qi).hasEmptyContent(),emailHasEdits:e(qi).hasEdits(),postType:e(qi).getEmailPostType()})),[]);return!n||r||e?null:(0,ri.jsx)(_l,{onSelectCallback:()=>t(!0),postType:o})}const vl=(0,ri.jsx)(ps.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,ri.jsx)(ps.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z"})}),bl=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"m8.6 7 3.9 10.8h-1.7l-1-2.8H5.7l-1 2.8H3L6.9 7h1.7Zm-2.4 6.6h3L7.7 9.3l-1.5 4.3ZM17.691 8.879c.473 0 .88.055 1.221.165.352.1.643.264.875.495.274.253.456.572.544.957.088.374.132.83.132 1.37v4.554c0 .274.033.472.099.593.077.11.198.166.363.166.11 0 .215-.028.313-.083.11-.055.237-.137.38-.247l.165.28a3.304 3.304 0 0 1-.71.446c-.23.11-.527.165-.89.165-.352 0-.639-.055-.858-.165-.22-.11-.386-.27-.495-.479-.1-.209-.149-.468-.149-.775-.286.462-.627.814-1.023 1.056-.396.242-.858.363-1.386.363-.462 0-.858-.088-1.188-.264a1.752 1.752 0 0 1-.742-.726 2.201 2.201 0 0 1-.248-1.056c0-.484.11-.875.33-1.172.22-.308.5-.556.841-.742.352-.187.721-.341 1.106-.462.396-.132.765-.253 1.106-.363.351-.121.637-.259.857-.413.232-.154.347-.357.347-.61V10.81c0-.396-.066-.71-.198-.941a1.05 1.05 0 0 0-.511-.511 1.763 1.763 0 0 0-.76-.149c-.253 0-.522.039-.808.116a1.165 1.165 0 0 0-.677.412 1.1 1.1 0 0 1 .595.396c.165.187.247.424.247.71 0 .307-.104.55-.313.726-.198.176-.451.263-.76.263-.34 0-.594-.104-.758-.313a1.231 1.231 0 0 1-.248-.759c0-.297.072-.539.214-.726.154-.187.352-.363.595-.528.264-.176.6-.324 1.006-.445.418-.121.88-.182 1.386-.182Zm.99 3.729a1.57 1.57 0 0 1-.528.462c-.231.121-.479.248-.742.38a5.377 5.377 0 0 0-.76.462c-.23.165-.423.38-.577.643-.154.264-.231.6-.231 1.007 0 .429.11.77.33 1.023.22.242.517.363.891.363.308 0 .594-.088.858-.264.275-.176.528-.44.759-.792v-3.284Z"})}),wl=(0,ri.jsx)(ps.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,ri.jsx)(ps.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"})}),xl=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),Sl={};function kl(e){return!Object.keys(e).some((t=>Object.keys(e[t]).length>0))}function El(e){const t=e=>{if("object"==typeof e&&null!==e||void 0===e){if(Array.isArray(e)&&0===e.length)return;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=t(e[n]);void 0===r||kl(r)?delete e[n]:e[n]=r}}return e};return t(e)}const Cl=()=>{const{userTheme:e,updateUserTheme:t}=Rs(),n=(0,di.useMemo)((()=>e?El(function(e){const t=e=>{if("object"==typeof e&&null!==e)for(const n in e)e.hasOwnProperty(n)&&(e[n]=t(e[n]));else if("string"==typeof e)return e.replace(/var\(--([a-z]+)--([a-z]+(?:--[a-z0-9]+(?:-[a-z0-9]+)*)*)--([a-z0-9-]+)\)/g,((e,t,n,r)=>`var:${n.split("--").concat(r).join("|")}`));return e};return t(e)}(e?.styles)):Sl),[e]),{styles:r}=(0,s.useSelect)((e=>({styles:e(qi).getStyles()}))),o=(0,di.useCallback)((n=>{const r={...e,styles:El(n)};t(r)}),[t,e]),i=(0,di.useCallback)(((n,r)=>{const o=function(e,t,n){const r=Array.isArray(t)?[...t]:[t],o=Array.isArray(e)?[...e]:{...e},i=r.pop();let s=o;return r.forEach((e=>{const t=s[e];s[e]=Array.isArray(t)?[...t]:{...t},s=s[e]})),s[i]=n,o}(e,["styles",...n],r);t(o)}),[t,e]);return{styles:(0,di.useMemo)((()=>r?n?Ls().all([r,n]):r:Sl),[r,n]),userStyles:e?.styles,defaultStyles:r,updateStyleProp:i,updateStyles:o}},Tl=[],jl={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},Pl={hover:{opacity:1},start:{opacity:.5}},Al={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}},Nl=152,Il=32;function Ll({label:e,isFocused:t,withHoverView:n}){const{colors:r}=(0,s.useSelect)((e=>({colors:e(qi).getPaletteColors()})),[]),o=(0,di.useMemo)((()=>(r?.theme||Tl).concat(r?.default||Tl)),[r]),{styles:i}=Cl(),{backgroundColor:a,headingColor:l,highlightedColors:c}=(0,di.useMemo)((()=>{const e=Xa(i?.color?.background)||"white",t=Xa(i?.color?.text)||"black",n=Xa(i?.elements?.h1?.color?.text)||t,r=Xa(i?.elements?.link?.color?.text)||n,s=Xa(i?.elements?.button?.color?.background)||r,a=o.find((({color:e})=>e.toLowerCase()===t.toLowerCase())),l=o.find((({color:e})=>e.toLowerCase()===s.toLowerCase())),c=[...a?[a]:Tl,...l?[l]:Tl,...o].filter((({color:t},n,r)=>t.toLowerCase()!==e.toLowerCase()&&n===r.findIndex((e=>e.color.toLowerCase()===t.toLowerCase())))).slice(0,2);return{backgroundColor:e,headingColor:n,highlightedColors:c}}),[i,o]),u=i?.elements?.heading?.typography?.fontWeight||"inherit",p=i?.elements?.heading?.typography?.fontFamily||"inherit",[d,h]=(0,di.useState)(!1);return(0,ri.jsx)("div",{onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:(0,ri.jsxs)(Ai.__unstableMotion.div,{style:{height:1*Nl,width:"100%",background:a,cursor:n?"pointer":void 0},initial:"start",animate:(d||t)&&e?"hover":"start",children:[(0,ri.jsx)(Ai.__unstableMotion.div,{variants:jl,style:{height:"100%",overflow:"hidden"},children:(0,ri.jsxs)(Ai.__experimentalHStack,{spacing:10,justify:"center",style:{height:"100%",overflow:"hidden"},children:[(0,ri.jsx)(Ai.__unstableMotion.div,{style:{fontFamily:p,fontSize:65,color:l,fontWeight:u},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"},children:"Aa"}),(0,ri.jsx)(Ai.__experimentalVStack,{spacing:4,children:c.map((({slug:e,color:t},n)=>(0,ri.jsx)(Ai.__unstableMotion.div,{style:{height:1*Il,width:1*Il,background:t,borderRadius:1*Il/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:1===n?.2:.1}},e)))})]})}),(0,ri.jsx)(Ai.__unstableMotion.div,{variants:n&&Pl,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1},children:(0,ri.jsx)(Ai.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"},children:o.slice(0,4).map((({color:e})=>(0,ri.jsx)("div",{style:{height:"100%",background:e,flexGrow:1}},e)))})}),(0,ri.jsx)(Ai.__unstableMotion.div,{variants:Al,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0},children:(0,ri.jsx)(Ai.__experimentalVStack,{spacing:3,justify:"center",style:{height:"100%",overflow:"hidden",padding:10,boxSizing:"border-box"},children:e&&(0,ri.jsx)("div",{style:{fontSize:40,fontFamily:p,color:l,fontWeight:u,lineHeight:"1em",textAlign:"center"},children:e})})})]})})}function Rl(){return(0,ri.jsx)(Ai.Card,{size:"small",className:"edit-site-global-styles-screen-root",variant:"primary",children:(0,ri.jsx)(Ai.CardBody,{children:(0,ri.jsxs)(Ai.__experimentalVStack,{spacing:4,children:[(0,ri.jsx)(Ai.Card,{children:(0,ri.jsx)(Ai.CardMedia,{children:(0,ri.jsx)(Ll,{})})}),(0,ri.jsxs)(Ai.__experimentalItemGroup,{children:[(0,ri.jsx)(Ai.__experimentalNavigatorButton,{path:"/typography",onClick:()=>$i("styles_sidebar_navigation_click",{path:"typography"}),children:(0,ri.jsx)(Ai.__experimentalItem,{children:(0,ri.jsxs)(Ai.__experimentalHStack,{justify:"flex-start",children:[(0,ri.jsx)(Ai.Icon,{icon:bl,size:24}),(0,ri.jsx)(Ai.FlexItem,{children:(0,i.__)("Typography","woocommerce")})]})})}),(0,ri.jsx)(Ai.__experimentalNavigatorButton,{path:"/colors",onClick:()=>$i("styles_sidebar_navigation_click",{path:"colors"}),children:(0,ri.jsx)(Ai.__experimentalItem,{children:(0,ri.jsxs)(Ai.__experimentalHStack,{justify:"flex-start",children:[(0,ri.jsx)(Ai.Icon,{icon:wl,size:24}),(0,ri.jsx)(Ai.FlexItem,{children:(0,i.__)("Colors","woocommerce")})]})})}),(0,ri.jsx)(Ai.__experimentalNavigatorButton,{path:"/layout",onClick:()=>$i("styles_sidebar_navigation_click",{path:"layout"}),children:(0,ri.jsx)(Ai.__experimentalItem,{children:(0,ri.jsxs)(Ai.__experimentalHStack,{justify:"flex-start",children:[(0,ri.jsx)(Ai.Icon,{icon:xl,size:24}),(0,ri.jsx)(Ai.FlexItem,{children:(0,i.__)("Layout","woocommerce")})]})})})]})]})})})}const Bl={typography:{},color:{}},Ol=(e,t,n="heading",r=!1)=>{switch(t){case"text":return{typography:e.typography,color:e.color};case"heading":return((e,t="heading",n=!1)=>n?Ls().all([Bl,e.elements.heading||{},e.elements[t]||{}]):{...Bl,...e.elements.heading||{},...e.elements[t]||{}})(e,n??"heading",r);default:return e.elements[t]||Bl}};function Ml({element:e,label:t}){const{styles:n}=Cl(),r=Ol(n,e,null,!0),{fontFamily:o,fontStyle:s,fontWeight:a,letterSpacing:l,textDecoration:c,textTransform:u}=r.typography,p=r.color?.text||"inherit",d=r.color?.background||"#f0f0f0",h=(0,i.sprintf)( // translators: %s: is a subset of Typography, e.g., 'text' or 'links'. // translators: %s: is a subset of Typography, e.g., 'text' or 'links'. (0,i.__)("Typography %s styles","woocommerce"),t);return(0,ri.jsx)(Ai.__experimentalItem,{children:(0,ri.jsx)(Ai.__experimentalNavigatorButton,{path:`/typography/${e}`,"aria-label":h,onClick:()=>$i("styles_sidebar_screen_typography_button_click",{element:e,label:t,path:`typography/${e}`}),children:(0,ri.jsxs)(Ai.__experimentalHStack,{justify:"flex-start",children:[(0,ri.jsx)(Ai.FlexItem,{className:"edit-site-global-styles-screen-typography__indicator",style:{fontFamily:o??"serif",background:d,color:p,fontStyle:s??"normal",fontWeight:a??"normal",letterSpacing:l??"normal",textDecoration:c??("link"===e?"underline":"none"),textTransform:u??"none"},children:"Aa"}),(0,ri.jsx)(Ai.FlexItem,{children:t})]})})})}const Dl=function(){return(0,ri.jsx)(Ai.Card,{size:"small",variant:"primary",isBorderless:!0,children:(0,ri.jsx)(Ai.CardBody,{children:(0,ri.jsxs)(Ai.__experimentalVStack,{spacing:3,children:[(0,ri.jsx)(Ai.__experimentalHeading,{level:3,className:"edit-site-global-styles-subtitle",children:(0,i.__)("Elements","woocommerce")}),(0,ri.jsxs)(Ai.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,size:"small",children:[(0,ri.jsx)(Ml,{element:"text",label:(0,i.__)("Text","woocommerce")}),(0,ri.jsx)(Ml,{element:"link",label:(0,i.__)("Links","woocommerce")}),(0,ri.jsx)(Ml,{element:"heading",label:(0,i.__)("Headings","woocommerce")}),(0,ri.jsx)(Ml,{element:"button",label:(0,i.__)("Buttons","woocommerce")})]})]})})})},Fl=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})}),$l=Ai.Navigator||Ai.__experimentalNavigatorProvider;function Vl({title:e,description:t,onBack:n}){return(0,ri.jsxs)(Ai.__experimentalVStack,{spacing:0,children:[(0,ri.jsx)(Ai.__experimentalView,{children:(0,ri.jsx)(Ai.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,ri.jsxs)(Ai.__experimentalHStack,{spacing:2,children:[(0,ri.jsx)($l.BackButton,{style:{minWidth:24,padding:0},icon:Fl,size:"small","aria-label":(0,i.__)("Navigate to the previous view","woocommerce"),onClick:n}),(0,ri.jsx)(Ai.__experimentalSpacer,{children:(0,ri.jsx)(Ai.__experimentalHeading,{className:"woocommerce-email-editor-styles-header",level:2,size:13,children:e})})]})})}),t&&(0,ri.jsx)("p",{className:"woocommerce-email-editor-styles-header-description",children:t})]})}Ai.Navigator||($l.Screen=Ai.__experimentalNavigatorScreen,$l.BackButton=Ai.__experimentalNavigatorBackButton);const zl=Vl;function ql(){return Vi("styles_sidebar_screen_typography_opened"),(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(zl,{title:(0,i.__)("Typography","woocommerce"),description:(0,i.__)("Manage the typography settings for different elements.","woocommerce")}),(0,ri.jsx)(Dl,{})]})}const Hl={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!1,textTransform:!1,textDecoration:!1,writingMode:!0,textColumns:!0},Ul=function({element:e,headingLevel:t,defaultControls:n=Hl}){const[r,o]=(0,_i.useSettings)("typography.fontSizes","typography.fontFamilies"),s=o?.default||[],{styles:a,defaultStyles:l,updateStyleProp:c}=Cl(),u=Ol(a,e,t),p=Ol(l,e,t),{fontFamily:d,fontSize:h,fontStyle:f,fontWeight:m,lineHeight:g,letterSpacing:_,textDecoration:y,textTransform:v}=u.typography,{fontFamily:b,fontSize:w,fontStyle:x,fontWeight:S,lineHeight:k,letterSpacing:E,textDecoration:C,textTransform:T}=p.typography,j="heading"!==e||"heading"!==t,P=(0,di.useCallback)(((n,r)=>{c("heading"===e?["elements",t,...n]:"text"===e?[...n]:["elements",e,...n],r)}),[e,c,t]),A=t=>{P(["typography","letterSpacing"],t),zi("styles_sidebar_screen_typography_element_panel_set_letter_spacing",{element:e,newValue:t,selectedDefaultLetterSpacing:t===E})},N=t=>{P(["typography","lineHeight"],t),zi("styles_sidebar_screen_typography_element_panel_set_line_height",{element:e,newValue:t,selectedDefaultLineHeight:t===k})},I=n=>{P(["typography","fontSize"],n),zi("styles_sidebar_screen_typography_element_panel_set_font_size",{element:e,headingLevel:t,newValue:n,selectedDefaultFontSize:n===w})},L=t=>{P(["typography","fontFamily"],t),zi("styles_sidebar_screen_typography_element_panel_set_font_family",{element:e,newValue:t,selectedDefaultFontFamily:t===b})},R=t=>{P(["typography","textDecoration"],t),zi("styles_sidebar_screen_typography_element_panel_set_text_decoration",{element:e,newValue:t,selectedDefaultTextDecoration:t===C})},B=t=>{P(["typography","textTransform"],t),zi("styles_sidebar_screen_typography_element_panel_set_text_transform",{element:e,newValue:t,selectedDefaultTextTransform:t===T})},O=({fontStyle:t,fontWeight:n})=>{P(["typography","fontStyle"],t),P(["typography","fontWeight"],n),zi("styles_sidebar_screen_typography_element_panel_set_font_appearance",{element:e,newFontStyle:t,newFontWeight:n,selectedDefaultFontStyle:t===x,selectedDefaultFontWeight:n===S})};return(0,ri.jsxs)(Ai.__experimentalToolsPanel,{label:(0,i.__)("Typography","woocommerce"),resetAll:()=>{P(["typography"],{}),$i("styles_sidebar_screen_typography_element_panel_reset_all_styles_selected",{element:e,headingLevel:t})},children:[(0,ri.jsx)(Ai.__experimentalToolsPanelItem,{label:(0,i.__)("Font family","woocommerce"),hasValue:()=>d!==b,onDeselect:()=>L(void 0),isShownByDefault:n.fontFamily,children:(0,ri.jsx)(_i.__experimentalFontFamilyControl,{value:d,onChange:L,size:"__unstable-large",fontFamilies:s,__nextHasNoMarginBottom:!0})}),j&&(0,ri.jsx)(Ai.__experimentalToolsPanelItem,{label:(0,i.__)("Font size","woocommerce"),hasValue:()=>h!==w,onDeselect:()=>I(void 0),isShownByDefault:n.fontSize,children:(0,ri.jsx)(Ai.FontSizePicker,{value:h,onChange:I,fontSizes:r,disableCustomFontSizes:!1,withReset:!1,withSlider:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})}),(0,ri.jsx)(Ai.__experimentalToolsPanelItem,{className:"single-column",label:(0,i.__)("Appearance","woocommerce"),hasValue:()=>m!==S||f!==x,onDeselect:()=>{O({fontStyle:void 0,fontWeight:void 0})},isShownByDefault:n.fontAppearance,children:(0,ri.jsx)(_i.__experimentalFontAppearanceControl,{value:{fontStyle:f,fontWeight:m},onChange:O,hasFontStyles:!0,hasFontWeights:!0,size:"__unstable-large"})}),(0,ri.jsx)(Ai.__experimentalToolsPanelItem,{className:"single-column",label:(0,i.__)("Line height","woocommerce"),hasValue:()=>g!==k,onDeselect:()=>N(void 0),isShownByDefault:n.lineHeight,children:(0,ri.jsx)(_i.LineHeightControl,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",value:g,onChange:N,size:"__unstable-large"})}),(0,ri.jsx)(Ai.__experimentalToolsPanelItem,{className:"single-column",label:(0,i.__)("Letter spacing","woocommerce"),hasValue:()=>_!==E,onDeselect:()=>A(void 0),isShownByDefault:n.letterSpacing,children:(0,ri.jsx)(_i.__experimentalLetterSpacingControl,{value:_,onChange:A,size:"__unstable-large",__unstableInputWidth:"auto"})}),(0,ri.jsx)(Ai.__experimentalToolsPanelItem,{className:"single-column",label:(0,i.__)("Text decoration","woocommerce"),hasValue:()=>y!==C,onDeselect:()=>R(void 0),isShownByDefault:n.textDecoration,children:(0,ri.jsx)(_i.__experimentalTextDecorationControl,{value:y,onChange:R,size:"__unstable-large",__unstableInputWidth:"auto"})}),(0,ri.jsx)(Ai.__experimentalToolsPanelItem,{label:(0,i.__)("Letter case","woocommerce"),hasValue:()=>v!==T,onDeselect:()=>B(T),isShownByDefault:n.textTransform,children:(0,ri.jsx)(_i.__experimentalTextTransformControl,{value:v,onChange:B,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})})]})};function Wl({element:e,headingLevel:t}){const{styles:n}=Cl(),r=Ol(n,e,t,!0),{fontFamily:o,fontSize:i,fontStyle:s,fontWeight:a,lineHeight:l,letterSpacing:c,textDecoration:u,textTransform:p}=r.typography,d=r.color?.text||"inherit",h=r.color?.background||"#f0f0f0",f="link"===e?{textDecoration:u??"underline"}:{};return(0,ri.jsx)("div",{className:"edit-site-typography-preview",style:{fontFamily:o??"serif",background:h,color:d,lineHeight:l,fontSize:i,fontStyle:s,fontWeight:a,letterSpacing:c,textDecoration:u,textTransform:p,...f},children:"Aa"})}const Gl={text:{title:(0,i.__)("Text","woocommerce"),description:(0,i.__)("Manage the fonts and typography used on text.","woocommerce"),defaultControls:Hl},link:{title:(0,i.__)("Links","woocommerce"),description:(0,i.__)("Manage the fonts and typography used on links.","woocommerce"),defaultControls:{...Hl,textDecoration:!0}},heading:{title:(0,i.__)("Headings","woocommerce"),description:(0,i.__)("Manage the fonts and typography used on headings.","woocommerce"),defaultControls:{...Hl,textTransform:!0}},button:{title:(0,i.__)("Buttons","woocommerce"),description:(0,i.__)("Manage the fonts and typography used on buttons.","woocommerce"),defaultControls:Hl}};function Kl({element:e}){Vi("styles_sidebar_screen_typography_element_opened",{element:e});const[t,n]=(0,di.useState)("heading");return(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(zl,{title:Gl[e].title,description:Gl[e].description}),(0,ri.jsx)(Ai.__experimentalSpacer,{marginX:4,children:(0,ri.jsx)(Wl,{element:e,headingLevel:t})}),"heading"===e&&(0,ri.jsx)(Ai.__experimentalSpacer,{marginX:4,marginBottom:"1em",children:(0,ri.jsxs)(Ai.__experimentalToggleGroupControl,{label:(0,i.__)("Select heading level","woocommerce"),hideLabelFromVision:!0,value:t,onChange:e=>{n(e.toString()),$i("styles_sidebar_screen_typography_element_heading_level_selected",{value:e})},isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0,children:[(0,ri.jsx)(Ai.__experimentalToggleGroupControlOption,{value:"heading",label:(0,i._x)("All","heading levels","woocommerce")}),(0,ri.jsx)(Ai.__experimentalToggleGroupControlOption,{value:"h1",label:(0,i._x)("H1","Heading Level","woocommerce")}),(0,ri.jsx)(Ai.__experimentalToggleGroupControlOption,{value:"h2",label:(0,i._x)("H2","Heading Level","woocommerce")}),(0,ri.jsx)(Ai.__experimentalToggleGroupControlOption,{value:"h3",label:(0,i._x)("H3","Heading Level","woocommerce")}),(0,ri.jsx)(Ai.__experimentalToggleGroupControlOption,{value:"h4",label:(0,i._x)("H4","Heading Level","woocommerce")}),(0,ri.jsx)(Ai.__experimentalToggleGroupControlOption,{value:"h5",label:(0,i._x)("H5","Heading Level","woocommerce")}),(0,ri.jsx)(Ai.__experimentalToggleGroupControlOption,{value:"h6",label:(0,i._x)("H6","Heading Level","woocommerce")})]})}),(0,ri.jsx)(Ul,{element:e,headingLevel:t,defaultControls:Gl[e].defaultControls})]})}function Yl(){Vi("styles_sidebar_screen_colors_opened");const{userStyles:e,styles:t,updateStyles:n}=Cl(),r=(0,s.useSelect)((e=>e(qi).getTheme()),[]);return(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(zl,{title:(0,i.__)("Colors","woocommerce"),description:(0,i.__)("Manage palettes and the default color of different global elements.","woocommerce")}),(0,ri.jsx)(Es,{value:e,inheritedValue:t,onChange:e=>{n(e),$i("styles_sidebar_screen_colors_styles_updated")},settings:r?.settings,panelId:"colors"})]})}function Zl(){const[e]=(0,_i.useSettings)("spacing.units"),t=(0,Ai.__experimentalUseCustomUnits)({availableUnits:e}),{styles:n,defaultStyles:r,updateStyleProp:o}=Cl();return(0,ri.jsxs)(Ai.__experimentalToolsPanel,{label:(0,i.__)("Dimensions","woocommerce"),resetAll:()=>{o(["spacing"],r.spacing),$i("styles_sidebar_screen_layout_dimensions_reset_all_selected")},children:[(0,ri.jsx)(Ai.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!(0,Oi.isEqual)(n.spacing.padding,r.spacing.padding),label:(0,i.__)("Padding","woocommerce"),onDeselect:()=>{o(["spacing","padding"],r.spacing.padding),$i("styles_sidebar_screen_layout_dimensions_padding_reset_clicked")},className:"tools-panel-item-spacing",children:(0,ri.jsx)(_i.__experimentalSpacingSizesControl,{allowReset:!0,values:n.spacing.padding,onChange:e=>{o(["spacing","padding"],e),zi("styles_sidebar_screen_layout_dimensions_padding_updated",{value:e})},label:(0,i.__)("Padding","woocommerce"),sides:["horizontal","vertical","top","left","right","bottom"],units:t})}),(0,ri.jsx)(Ai.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,i.__)("Block spacing","woocommerce"),hasValue:()=>n.spacing.blockGap!==r.spacing.blockGap,onDeselect:()=>{o(["spacing","blockGap"],r.spacing.blockGap),$i("styles_sidebar_screen_layout_dimensions_block_spacing_reset_clicked")},className:"tools-panel-item-spacing",children:(0,ri.jsx)(_i.__experimentalSpacingSizesControl,{label:(0,i.__)("Block spacing","woocommerce"),min:0,onChange:e=>{o(["spacing","blockGap"],e.top),zi("styles_sidebar_screen_layout_dimensions_block_spacing_updated",{value:e})},showSideInLabel:!1,sides:["top"],values:{top:n.spacing.blockGap},allowReset:!0})})]})}function Jl(){return Vi("styles_sidebar_screen_layout_opened"),(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(Vl,{title:(0,i.__)("Layout","woocommerce")}),(0,ri.jsx)(Zl,{})]})}const Xl=(0,di.memo)((function(){const{userCanEditGlobalStyles:e}=(0,s.useSelect)((e=>{const{canEdit:t}=e(qi).canUserEditGlobalEmailStyles();return{userCanEditGlobalStyles:t}}),[]);return e&&(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(l.PluginSidebarMoreMenuItem,{target:"email-styles-sidebar",icon:vl,children:(0,i.__)("Email styles","woocommerce")}),(0,ri.jsx)(l.PluginSidebar,{name:"email-styles-sidebar",icon:vl,title:(0,i.__)("Styles","woocommerce"),className:"woocommerce-email-editor-styles-panel",header:(0,i.__)("Styles","woocommerce"),children:(0,ri.jsxs)($l,{initialPath:"/",children:[(0,ri.jsx)($l.Screen,{path:"/",children:(0,ri.jsx)(Rl,{})}),(0,ri.jsx)($l.Screen,{path:"/typography",children:(0,ri.jsx)(ql,{})}),(0,ri.jsx)($l.Screen,{path:"/typography/text",children:(0,ri.jsx)(Kl,{element:"text"})}),(0,ri.jsx)($l.Screen,{path:"/typography/link",children:(0,ri.jsx)(Kl,{element:"link"})}),(0,ri.jsx)($l.Screen,{path:"/typography/heading",children:(0,ri.jsx)(Kl,{element:"heading"})}),(0,ri.jsx)($l.Screen,{path:"/typography/button",children:(0,ri.jsx)(Kl,{element:"button"})}),(0,ri.jsx)($l.Screen,{path:"/colors",children:(0,ri.jsx)(Yl,{})}),(0,ri.jsx)($l.Screen,{path:"/layout",children:(0,ri.jsx)(Jl,{})})]})})]})})),Ql=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})}),ec=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),tc=window.wp.keycodes,nc=window.wp.url;var rc;!function(e){e.SUCCESS="success",e.ERROR="error"}(rc||(rc={}));const oc=(0,di.memo)((function(){const e=(0,di.useRef)(null),{requestSendingNewsletterPreview:t,togglePreviewModal:n,updateSendPreviewEmail:r}=(0,s.useDispatch)(qi),{toEmail:a,isSendingPreviewEmail:l,sendingPreviewStatus:c,isModalOpened:u,errorMessage:p,postType:d}=(0,s.useSelect)((e=>({...e(qi).getPreviewState(),postType:e(qi).getEmailPostType()})),[]),h=()=>{t(a)},f=(0,di.useMemo)((()=>(0,o.applyFilters)("woocommerce_email_editor_check_sending_method_configuration_link",`https://www.mailpoet.com/blog/mailpoet-smtp-plugin/?utm_source=woocommerce_email_editor&utm_medium=plugin&utm_source_platform=${d}`)),[d]),m=()=>{$i("send_preview_email_modal_closed"),n(!1)};return(0,di.useEffect)((()=>{u&&(e.current?.focus(),$i("send_preview_email_modal_opened"))}),[u]),u?(0,ri.jsxs)(Ai.Modal,{className:"woocommerce-send-preview-email",title:(0,i.__)("Send a test email","woocommerce"),onRequestClose:m,focusOnMount:!1,children:[c===rc.ERROR?(0,ri.jsxs)("div",{className:"woocommerce-send-preview-modal-notice-error",children:[(0,ri.jsx)("p",{children:(0,i.__)("Sorry, we were unable to send this email.","woocommerce")}),(0,ri.jsx)("strong",{children:p&&(0,i.sprintf)( // translators: %s is an error message. // translators: %s is an error message. (0,i.__)("Error: %s","woocommerce"),p)}),(0,ri.jsxs)("ul",{children:[(0,ri.jsx)("li",{children:f&&(0,di.createInterpolateElement)((0,i.__)("Please check your <link>sending method configuration</link> with your hosting provider.","woocommerce"),{link:(0,ri.jsx)("a",{href:f,target:"_blank",rel:"noopener noreferrer",onClick:()=>$i("send_preview_email_modal_check_sending_method_configuration_link_clicked")})})}),(0,ri.jsx)("li",{children:(0,di.createInterpolateElement)((0,i.__)("Or, sign up for MailPoet Sending Service to easily send emails. <link>Sign up for free</link>","woocommerce"),{link:(0,ri.jsx)("a",{href:`https://account.mailpoet.com/?s=1&g=1&utm_source=woocommerce_email_editor&utm_medium=plugin&utm_source_platform=${d}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>$i("send_preview_email_modal_sign_up_for_mailpoet_sending_service_link_clicked")},"sign-up-for-free")})})]})]}):null,(0,ri.jsx)("p",{children:(0,i.__)("Send yourself a test email to test how your email would look like in different email apps.","woocommerce")}),(0,ri.jsx)(Ai.TextControl,{label:(0,i.__)("Send to","woocommerce"),onChange:e=>{r(e),Vi("send_preview_email_modal_send_to_field_updated")},onKeyDown:e=>{const{keyCode:t}=e;t===tc.ENTER&&(e.preventDefault(),h(),$i("send_preview_email_modal_send_to_field_key_code_enter"))},className:"woocommerce-send-preview-email__send-to-field",value:a,type:"email",ref:e,required:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),c===rc.SUCCESS?(0,ri.jsxs)("p",{className:"woocommerce-send-preview-modal-notice-success",children:[(0,ri.jsx)(al,{icon:ec,style:{fill:"#4AB866"}}),(0,i.__)("Test email sent successfully!","woocommerce")]}):null,(0,ri.jsxs)("div",{className:"woocommerce-send-preview-modal-footer",children:[(0,ri.jsx)(Ai.Button,{variant:"tertiary",onClick:()=>{$i("send_preview_email_modal_close_button_clicked"),m()},children:(0,i.__)("Cancel","woocommerce")}),(0,ri.jsx)(Ai.Button,{variant:"primary",onClick:()=>{h(),$i("send_preview_email_modal_send_test_email_button_clicked")},disabled:l||!(0,nc.isEmail)(a),children:l?(0,i.__)("Sending…","woocommerce"):(0,i.__)("Send test email","woocommerce")})]})]}):null}));function ic(){const{togglePreviewModal:e}=(0,s.useDispatch)(qi);return(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(l.PluginPreviewMenuItem,{icon:Ql,onClick:()=>{$i("header_preview_dropdown_send_test_email_selected"),e(!0)},children:(0,i.__)("Send a test email","woocommerce")}),(0,ri.jsx)(oc,{})]})}const sc=window.wp.preferences,ac=()=>{const e=(0,hi.useViewportMatch)("large");return(0,ri.jsx)(ri.Fragment,{children:e&&(0,ri.jsx)(js,{children:(0,ri.jsx)(sc.PreferenceToggleMenuItem,{scope:qi,name:"fullscreenMode",label:(0,i.__)("Fullscreen mode","woocommerce"),info:(0,i.__)("Show and hide the admin user interface","woocommerce"),messageActivated:(0,i.__)("Fullscreen mode activated.","woocommerce"),messageDeactivated:(0,i.__)("Fullscreen mode deactivated.","woocommerce"),shortcut:tc.displayShortcut.secondary("f")})})})};function lc({label:e,labelSuffix:t,help:n,placeholder:r,attributeName:o,attributeValue:a,updateProperty:l=(()=>{})}){const[c,u]=(0,di.useState)(null),[p,d]=(0,di.useState)(!1),h=(0,s.useSelect)((e=>e(qi).getPersonalizationTagsList()),[]),f=(0,di.useRef)(null),m=(0,di.useCallback)(((e,t,n)=>{const r=n?.start??t.length,i=n?.end??t.length;let s=(0,Pi.create)({html:t});s=(0,Pi.insert)(s,(0,Pi.create)({html:`\x3c!--${e}--\x3e`}),r,i);const a=(0,Pi.toHTMLString)({value:s});l(o,a),u(null)}),[o,l]),g=(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)("span",{children:e}),(0,ri.jsx)(Ai.Button,{className:"woocommerce-settings-panel-personalization-tags-button",icon:"shortcode",title:(0,i.__)("Personalization Tags","woocommerce"),onClick:()=>{d(!0),$i("rich_text_with_button_personalization_tags_shortcode_icon_clicked",{attributeName:o,label:e})}}),t]});return o?(0,ri.jsxs)(Ai.BaseControl,{id:"",label:g,className:`woocommerce-settings-panel-${o}-text`,help:n,__nextHasNoMarginBottom:!0,children:[(0,ri.jsx)(Ui,{isOpened:p,onInsert:e=>{m(e,a??"",c),d(!1),$i("rich_text_with_button_personalization_tags_inserted",{attributeName:o,value:e})},closeCallback:()=>d(!1),openedBy:"RichTextWithButton-BaseControl"}),(0,ri.jsx)(Wi,{contentRef:f,onUpdate:(e,t)=>{const n=(a??"").replace(`\x3c!--[${e}]--\x3e`,`\x3c!--[${t}]--\x3e`);l(o,n)}}),(0,ri.jsx)(_i.RichText,{ref:f,className:"woocommerce-settings-panel-richtext",placeholder:r,onFocus:()=>{u(Ni(f,a??""))},onKeyUp:()=>{u(Ni(f,a??""))},onClick:()=>{u(Ni(f,a??""))},onChange:e=>{e=Ii(e??"",h),l(o,e),Vi("rich_text_with_button_input_field_updated",{attributeName:o})},value:a??"","data-automation-id":`email_${o}`})]}):null}const cc={recordEvent:$i,recordEventOnce:Vi,debouncedRecordEvent:zi},{Fill:uc,Slot:pc}=(0,Ai.createSlotFill)("WooCommerceEmailEditorPostSummarySection");function dc(){const e=(0,di.useMemo)((()=>(0,o.applyFilters)("woocommerce_email_editor_setting_sidebar_extension_component",lc,cc)),[]);return(0,ri.jsxs)(l.PluginDocumentSettingPanel,{name:"email-settings-panel",title:(0,i.__)("Settings","woocommerce"),className:"woocommerce-email-editor__settings-panel",children:[(0,ri.jsx)(pc,{}),(0,ri.jsx)(l.ErrorBoundary,{canCopyContent:!0,children:(0,ri.jsx)(e,{})})]})}const hc={recordEvent:$i,recordEventOnce:Vi,debouncedRecordEvent:zi};function fc(){const e=(0,o.applyFilters)("woocommerce_email_editor_template_sections",[],hc);return 0===e.length?null:(0,ri.jsx)(l.PluginDocumentSettingPanel,{name:"template-settings-panel",title:(0,i.__)("Settings","woocommerce"),className:"woocommerce-email-editor__settings-panel",children:e.map((e=>(0,ri.jsx)(l.ErrorBoundary,{children:(0,ri.jsx)("div",{children:e.render()},e.id)},`error-boundary-${e.id}`)))})}function mc(){const{isDirty:e}=(0,l.useEntitiesSavedStatesIsDirty)(),{hasEmptyContent:t,isEmailSent:n,urls:r}=(0,s.useSelect)((e=>({hasEmptyContent:e(qi).hasEmptyContent(),isEmailSent:e(qi).isEmailSent(),urls:e(qi).getUrls()})),[]);function a(){r.send&&(window.location.href=r.send)}const c=t||n||e,u=(0,o.applyFilters)("woocommerce_email_editor_send_button_label",(0,i.__)("Send","woocommerce"));return(0,ri.jsx)(Ai.Button,{variant:"primary",size:"compact",onClick:()=>{$i("header_send_button_clicked"),(0,o.applyFilters)("woocommerce_email_editor_send_action_callback",a)()},disabled:c,"data-automation-id":"email_editor_send_button",children:u})}function gc({children:e}){const t=(0,di.useRef)(document.createElement("div"));return(0,di.useEffect)((()=>{const e=document.getElementsByClassName("editor-post-publish-button__button")[0];e&&e.parentNode?.insertBefore(t.current,e.nextSibling)}),[t]),(0,di.createPortal)((0,ri.jsx)(ri.Fragment,{children:e}),t.current)}function _c(){const e=(0,di.useRef)(null),{hasNonPostEntityChanges:t,isEditedPostDirty:n,isEditingTemplate:r}=(0,s.useSelect)((e=>({hasNonPostEntityChanges:e(l.store).hasNonPostEntityChanges(),isEditedPostDirty:e(l.store).isEditedPostDirty(),isEditingTemplate:"wp_template"===e(l.store).getCurrentPostType()})),[]),o=r||t||n&&t,i=(0,di.useCallback)(((e,t)=>{t&&e.classList.contains("force-hidden")&&e.classList.remove("force-hidden"),t||e.classList.contains("force-hidden")||e.classList.add("force-hidden")}),[]);return(0,di.useEffect)((()=>{const t=document.getElementsByClassName("editor-post-publish-button__button")[0];return i(t,o),t?(e.current&&e.current.disconnect(),e.current=new MutationObserver((()=>{i(t,o)})),e.current.observe(t,{attributes:!0,childList:!0,subtree:!1}),()=>e.current?.disconnect()):()=>e.current?.disconnect()}),[o,i]),(0,ri.jsx)(gc,{children:!o&&(0,ri.jsx)(mc,{})})}const yc=()=>{const e="email-validation",t=(0,s.useSelect)((t=>t(tl.store).getNotices(e)));return{notices:t,hasValidationNotice:(0,di.useCallback)((e=>e?void 0!==t.find((t=>t.id===e)):t?.length>0),[t]),addValidationNotice:(0,di.useCallback)(((t,n,r=[])=>{(0,s.dispatch)(tl.store).createNotice("error",n,{id:t,isDismissible:!1,actions:r,context:e})}),[e]),removeValidationNotice:(0,di.useCallback)((t=>{(0,s.dispatch)(tl.store).removeNotice(t,e)}),[e])}};function vc(){const{notices:e}=yc();return 0===e.length?null:(0,ri.jsx)(Ai.Notice,{status:"error",className:"woocommerce-email-editor-validation-errors components-editor-notices__pinned",isDismissible:!1,children:(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)("strong",{children:(0,i.__)("Fix errors to continue:","woocommerce")}),(0,ri.jsx)("ul",{children:e.map((({id:e,content:t,actions:n})=>(0,ri.jsxs)("li",{children:[t,n.length>0?n.map((({label:e,onClick:t})=>(0,ri.jsx)(Ai.Button,{onClick:t,variant:"link",children:e},e))):null]},e)))})]})})}const bc=-3;function wc(){const e=(0,s.useSelect)((e=>e(tl.store).getNotices()),[]),{removeNotice:t}=(0,s.useDispatch)(tl.store),n=e.filter((({type:e})=>"snackbar"===e)).slice(bc);return(0,ri.jsx)(Ai.SnackbarList,{notices:n,className:"components-editor-notices__snackbar edit-post-layout__snackbar",onRemove:t})}function xc({children:e}){const[t]=(0,di.useState)(document.createElement("div"));return(0,di.useEffect)((()=>{const e=document.getElementsByClassName("editor-visual-editor ")[0];e&&e.parentNode?.insertBefore(t,e)}),[t]),(0,di.createPortal)((0,ri.jsx)(ri.Fragment,{children:e}),t)}function Sc({disableSnackbarNotices:e=!1}={}){const{notices:t}=(0,s.useSelect)((e=>({notices:e(tl.store).getNotices("email-editor")})),[]),{removeNotice:n}=(0,s.useDispatch)(tl.store),r=t.filter((({isDismissible:e,type:t})=>e&&"default"===t)),o=t.filter((({isDismissible:e,type:t})=>!e&&"default"===t));return(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsxs)(xc,{children:[(0,ri.jsx)(Ai.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),(0,ri.jsx)(Ai.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:e=>n(e,"email-editor")}),(0,ri.jsx)(vc,{})]}),!e&&(0,ri.jsx)(wc,{})]})}const kc=e=>{const t=(0,fi.getBlockSupport)(e,"background");return t&&!1!==t?.backgroundImage};function Ec(){const e=(0,s.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]),t=(0,fi.hasBlockSupport)(e?.name,"border",!1)||(0,fi.hasBlockSupport)(e?.name,"__experimentalBorder",!1);return(0,ri.jsxs)(ri.Fragment,{children:[t&&(0,ri.jsx)(Ai.Fill,{name:"InspectorControlsBorder",children:(0,ri.jsxs)(Ai.Notice,{className:"woocommerce-grid-full-width",status:"warning",isDismissible:!1,children:[(0,i.__)("Border display may vary or be unsupported in some email clients.","woocommerce"),(0,ri.jsx)("br",{}),(0,i.__)("Units other than pixels (px) lack support in old email clients.","woocommerce")]})}),kc(e?.name)&&(0,ri.jsx)(Ai.Fill,{name:"InspectorControlsBackground",children:(0,ri.jsx)(Ai.Notice,{className:"woocommerce-grid-full-width",status:"warning",isDismissible:!1,children:(0,i.__)("Select a background color for email clients that do not support background images.","woocommerce")})})]})}const Cc=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,ri.jsx)(ps.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})}),Tc=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})}),jc={edit:{opacity:0,scale:.2},hover:{opacity:1,scale:1,clipPath:"inset( 22% round 2px )"}},Pc={edit:{clipPath:"inset(0% round 0px)"},hover:{clipPath:"inset( 22% round 2px )"},tap:{clipPath:"inset(0% round 0px)"}},Ac=()=>{const{urls:e}=(0,s.useSelect)((e=>({urls:e(qi).getUrls()})),[]);function t(){e.listings&&(window.location.href=e.back)}return(0,ri.jsxs)(Ai.__unstableMotion.div,{className:"woocommerce-email-editor__view-mode-toggle",transition:{duration:.2},animate:"edit",initial:"edit",whileHover:"hover",whileTap:"tap",children:[(0,ri.jsx)(Ai.Button,{label:(0,i.__)("Close editor","woocommerce"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{$i("header_close_button_clicked"),(0,o.applyFilters)("woocommerce_email_editor_close_action_callback",t)()},children:(0,ri.jsx)(Ai.__unstableMotion.div,{variants:Pc,children:(0,ri.jsx)("div",{className:"woocommerce-email-editor__view-mode-toggle-icon",children:(0,ri.jsx)(al,{className:"woocommerce-email-editor-icon__icon",icon:Cc,size:48})})})}),(0,ri.jsx)(Ai.__unstableMotion.div,{className:"woocommerce-email-editor-icon",variants:jc,children:(0,ri.jsx)(al,{icon:Tc})})]})},Nc=()=>{const e=(0,o.applyFilters)("woocommerce_email_editor_close_content",Ac);return(0,ri.jsx)(Ps,{children:({length:t})=>t<=1&&(0,ri.jsx)(e,{})})};function Ic({postId:e,postType:t,settings:n,contentRef:r,customSavePanel:o}){const{currentPost:i,onNavigateToEntityRecord:u,onNavigateToPreviousEntityRecord:p}=function(e,t,n){const[r,o]=(0,di.useReducer)(((e,{type:t,post:n,previousRenderingMode:r})=>"push"===t?[...e,{post:n,previousRenderingMode:r}]:"pop"===t&&e.length>1?e.slice(0,-1):e),[{post:{postId:e,postType:t}}]),{post:i,previousRenderingMode:a}=r[r.length-1],{getRenderingMode:c}=(0,s.useSelect)(l.store),{setRenderingMode:u}=(0,s.useDispatch)(l.store),p=(0,di.useCallback)((e=>{o({type:"push",post:{postId:e.postId,postType:e.postType},previousRenderingMode:c()}),u(n)}),[c,u,n]),d=(0,di.useCallback)((()=>{o({type:"pop"}),a&&u(a)}),[u,a]);return{currentPost:i,onNavigateToEntityRecord:p,onNavigateToPreviousEntityRecord:r.length>1?d:void 0}}(e,t,"post-only"),{post:d,template:h}=(0,s.useSelect)((e=>{const{getEditedEntityRecord:t}=e(a.store),n=t("postType",i.postType,i.postId);if(!n||"boolean"==typeof n)return{post:null,template:null};const r=n;if("wp_template"===i.postType)return{post:r,template:null};const{getEditedPostTemplate:o}=e(qi);return{post:r,template:o(r.template)}}),[i.postType,i.postId]),{isFullscreenEnabled:f,allCommands:m}=(0,s.useSelect)((e=>({isFullscreenEnabled:e(qi).isFeatureActive("fullscreenMode"),allCommands:e(xs.store).getCommands()})),[]),{isFullScreenForced:g,displaySendEmailButton:_,disableSnackbarNotices:y}=n,{removeEditorPanel:v}=(0,s.useDispatch)(l.store);(0,di.useEffect)((()=>{v("post-status")}),[v]);const[b]=el(),w=(0,di.useMemo)((()=>({...n,onNavigateToEntityRecord:u,onNavigateToPreviousEntityRecord:p,defaultRenderingMode:"wp_template"===i.postType?"post-only":"template-locked",supportsTemplateMode:!0,styles:b})),[n,u,p,i.postType,b]);return d&&("wp_template"===i.postType||d.template===h?.slug||!d.template&&h)?(Vi("editor_layout_loaded"),(0,ri.jsx)(Ai.SlotFillProvider,{children:(0,ri.jsxs)(l.ErrorBoundary,{canCopyContent:!0,children:[(!m||0===m.length)&&(0,ri.jsx)(xs.CommandMenu,{}),(0,ri.jsxs)(Cs,{postId:i.postId,postType:i.postType,settings:w,templateId:h&&h.id,contentRef:r,styles:b,customSavePanel:o,children:[(0,ri.jsx)(l.AutosaveMonitor,{}),(0,ri.jsx)(l.LocalAutosaveMonitor,{}),(0,ri.jsx)(l.UnsavedChangesWarning,{}),(0,ri.jsx)(l.EditorKeyboardShortcutsRegister,{}),(0,ri.jsx)(l.PostLockedModal,{}),(0,ri.jsx)(yl,{}),(0,ri.jsx)(Xl,{}),(0,ri.jsx)(ic,{}),(0,ri.jsx)(nl,{}),(0,ri.jsx)(Ts,{isActive:g||f}),(g||f)&&(0,ri.jsx)(Nc,{}),!g&&(0,ri.jsx)(ac,{}),"wp_template"===i.postType?(0,ri.jsx)(fc,{}):(0,ri.jsx)(dc,{}),_&&(0,ri.jsx)(_c,{}),(0,ri.jsx)(Sc,{disableSnackbarNotices:y}),(0,ri.jsx)(Ec,{}),(0,ri.jsx)(c.PluginArea,{scope:"woocommerce-email-editor"})]})]})})):(0,ri.jsx)("div",{className:"spinner-container",children:(0,ri.jsx)(Ai.ProgressBar,{})})}const Lc=window.wp.dataControls;function Rc(e){return{type:"CHANGE_PREVIEW_STATE",state:{isModalOpened:e}}}function Bc(e){return{type:"CHANGE_PREVIEW_STATE",state:{toEmail:e}}}const Oc=(e,t)=>async({dispatch:n})=>{if(!e||!t)throw new Error("setEmailPost requires valid postId and postType parameters");n({type:"SET_EMAIL_POST",state:{postId:e,postType:t}})},Mc=()=>async({registry:e})=>{const t=e.select(qi).getEmailPostId(),n={context:"view",per_page:-1};t&&(n.post_id=t),e.dispatch(a.store).invalidateResolution("getEntityRecords",[Hi.kind,Hi.name,n])};function Dc(e){if(!e)throw new Error("setEmailPostType requires a valid postType parameter");return{type:"SET_EMAIL_POST",state:{postType:e}}}const Fc=e=>async({registry:t})=>{const n=t.select(qi).getEmailPostId(),r=t.select(qi).getEmailPostType();t.dispatch(a.store).editEntityRecord("postType",r,n,{template:e})};function*$c(e){if(!(0,s.select)(qi).getPreviewState().isSendingPreviewEmail){yield{type:"CHANGE_PREVIEW_STATE",state:{sendingPreviewStatus:null,isSendingPreviewEmail:!0}};try{const t=(0,s.select)(qi).getEmailPostId();yield(0,Lc.apiFetch)({path:"/woocommerce-email-editor/v1/send_preview_email",method:"POST",data:{email:e,postId:t}}),yield{type:"CHANGE_PREVIEW_STATE",state:{sendingPreviewStatus:rc.SUCCESS,isSendingPreviewEmail:!1}},$i("sent_preview_email",{postId:t,email:e})}catch(t){$i("sent_preview_email_error",{email:e}),yield{type:"CHANGE_PREVIEW_STATE",state:{sendingPreviewStatus:rc.ERROR,isSendingPreviewEmail:!1,errorMessage:JSON.stringify(t?.error)}}}}}function Vc(e){return{type:"SET_CONTENT_VALIDATION",validation:e}}function zc(e){return{type:"SET_EDITOR_SETTINGS",editorSettings:e}}function qc(e){return{type:"SET_EDITOR_THEME",theme:e}}function Hc(e){return{type:"SET_EDITOR_URLS",urls:e}}function Uc(e){return{type:"SET_EDITOR_CONFIG",config:e}}function Wc(e,t){switch(t.type){case"CHANGE_PREVIEW_STATE":return{...e,preview:{...e.preview,...t.state}};case"SET_EMAIL_POST":return{...e,...t.state};case"SET_CONTENT_VALIDATION":return{...e,contentValidation:t.validation};case"SET_EDITOR_SETTINGS":return{...e,editorSettings:t.editorSettings};case"SET_EDITOR_THEME":return{...e,theme:t.theme};case"SET_EDITOR_URLS":return{...e,urls:{...e.urls,...t.urls}};case"SET_EDITOR_CONFIG":return{...e,editorSettings:t.config.editorSettings,theme:t.config.theme,urls:t.config.urls,preview:{...e.preview,toEmail:t.config.userEmail},styles:{...e.styles,globalStylesPostId:t.config.globalStylesPostId??null}};default:return e}}function Gc(e){return e?.content&&"function"==typeof e.content?e.content(e):e?.blocks?(0,fi.serialize)(e.blocks):e?.content?e.content:""}const Kc=new WeakMap;function Yc(e){let t=Kc.get(e);return t||(t={...e,get blocks(){return(0,fi.parse)(e.content)},get emailBlocks(){return e.emailContent?(0,fi.parse)(e.emailContent):null}},Kc.set(e,t)),t}function Zc(e){return e?{...e,title:e?.title?.raw||e?.title||"",content:e?.content?.raw||e?.content||""}:null}const Jc=(0,s.createRegistrySelector)((e=>(t,n)=>!!e(sc.store).get(qi,n))),Xc=(0,s.createRegistrySelector)((e=>()=>{const t=e(qi).getEmailPostId(),n=e(qi).getEmailPostType();return!!e(a.store).hasEditsForEntityRecord("postType",n,t)})),Qc=(0,s.createRegistrySelector)((e=>()=>{const t=e(qi).getEmailPostId(),n=e(qi).getEmailPostType(),r=e(a.store).getEntityRecord("postType",n,t);if(!r)return!0;const{content:o}=r;return!o.raw})),eu=(0,s.createRegistrySelector)((e=>()=>{const t=e(qi).getEmailPostId(),n=e(qi).getEmailPostType(),r=e(a.store).getEntityRecord("postType",n,t);return!!r&&"sent"===r.status})),tu=(0,s.createRegistrySelector)((e=>()=>{const t=e(qi).getEmailPostId(),n=e(qi).getEmailPostType(),r=e(a.store).getEditedEntityRecord("postType",n,t);return r?Gc(r):""})),nu=(0,s.createRegistrySelector)((e=>()=>{const t=e(qi).getEmailPostType();return e(a.store).getEntityRecords("postType",t,{per_page:30,status:"publish,sent"})?.filter((e=>""!==e?.content?.raw))||[]})),ru=(0,s.createRegistrySelector)((e=>{const t=e(qi).getEmailPostType();return(0,s.createSelector)((()=>t?e(a.store).getBlockPatterns().filter((({templateTypes:e,postTypes:n})=>Array.isArray(e)&&e.includes("email-template")&&(void 0===n||0===n.length||n.includes(t)))).map(Yc):[]),(()=>[e(a.store).getBlockPatterns(),t]))})),ou=(0,s.createRegistrySelector)((e=>()=>e(a.store).canUser("create",{kind:"postType",name:"wp_template"})));function iu(e,t){return ou()?e(a.store).getEditedEntityRecord("postType","wp_template",t):Zc(e(a.store).getEntityRecord("postType","wp_template",t,{context:"view"}))}const su=(0,s.createRegistrySelector)((e=>(t,n)=>{const r=n||e(l.store).getEditedPostAttribute("template");if(r){const t={context:"view",per_page:-1,_woocommerce_email_editor:"fetch-all-templates"},n=e(a.store).getEntityRecords("postType","wp_template",t)?.find((e=>e.slug===r));return n?iu(e,n.id):null}const o=e(a.store).getDefaultTemplateId({slug:"email-general"});return iu(e,o)})),au=(0,s.createRegistrySelector)((e=>()=>{if("wp_template"===e(l.store).getCurrentPostType()){const t=e(l.store).getCurrentPostId();return e(a.store).getEditedEntityRecord("postType","wp_template",t)}return e(qi).getEditedPostTemplate()})),lu=()=>{const e=au();return e?Gc(e):""},cu=(0,s.createRegistrySelector)((e=>()=>{const t=e(qi).getGlobalStylesPostId();return{postId:t,canEdit:e(a.store).canUser("update",{kind:"root",name:"globalStyles",id:t})}})),uu=(0,s.createRegistrySelector)((e=>()=>{const{postId:t,canEdit:n}=cu();return t&&void 0!==n&&t?n?e(a.store).getEditedEntityRecord("root","globalStyles",t):Zc(e(a.store).getEntityRecord("root","globalStyles",t,{context:"view"})):null})),pu=(0,s.createRegistrySelector)((e=>{const t=e(qi).getEmailPostType();return(0,s.createSelector)((()=>e(a.store).getEntityRecords("postType","wp_template",{per_page:-1,post_type:t,context:"view"})?.filter((e=>e.post_types.includes(t)))),(()=>[e(a.store).getEntityRecords("postType","wp_template",{per_page:-1,post_type:t,context:"view"})]))}));function du(e){return e.postId}function hu(e){return e.postType}function fu(e){return e.editorSettings}function mu(e){return e.editorSettings?.__experimentalFeatures?.color?.palette}function gu(e){return e.preview}const _u=(0,s.createRegistrySelector)((e=>()=>{const t=e(qi).getEmailPostId(),n={context:"view",per_page:-1};t&&(n.post_id=t);const r=e(a.store).getEntityRecords(Hi.kind,Hi.name,n)||[],o=e(qi).getEmailPostType();if(!o)return r;if("wp_template"===o){const t=e(qi).getCurrentTemplate();return r.filter((e=>void 0===e.postTypes||0===e.postTypes.length||Array.isArray(t.post_types)&&t.post_types.some((t=>e.postTypes.includes(t)))))}return r.filter((e=>void 0===e.postTypes||0===e.postTypes.length||e.postTypes.includes(o)))}));function yu(e){return e.theme?.styles}function vu(e){return e.theme}function bu(e){return e.styles.globalStylesPostId}function wu(e){return e.urls}function xu(e){return e.contentValidation}const Su=()=>{if(void 0!==(0,s.select)(qi))return(0,s.select)(qi);const e=(0,s.createReduxStore)(qi,{actions:t,controls:Lc.controls,selectors:r,resolvers:{},reducer:Wc,initialState:{editorSettings:void 0,theme:void 0,styles:{globalStylesPostId:null},urls:{back:"",listings:""},preview:{toEmail:"",isModalOpened:!1,isSendingPreviewEmail:!1,sendingPreviewStatus:null},contentValidation:void 0}});return(0,s.register)(e),(0,s.dispatch)(a.store).addEntities([Hi]),e},ku=()=>{const e={"You’ve tried to select a block that is part of a template that may be used elsewhere on your site. Would you like to edit the template?":{domain:"default",replacementText:(0,i.__)("You’ve tried to select a block that is part of a template that may be used in other emails. Would you like to edit the template?","woocommerce")}};Si("i18n.gettext","woocommerce/email-editor/override-text",((t,n,r)=>e[n]&&e[n].domain===(r||"default")?e[n].replacementText:t))},Eu=e=>{(0,o.doAction)("woocommerce_email_editor_events",e.detail)},Cu=()=>{Mi()&&Fi.addEventListener(Di,Eu)};window.addEventListener("unload",(function(){Mi()&&Fi.removeEventListener(Di,Eu)}));const Tu=(...e)=>{const t=(0,s.select)(l.store).isInserterOpened(),n=!!document.getElementsByClassName("block-editor-inserter__quick-inserter").length;let r="other_inserter";t?r="inserter_sidebar":n&&(r="quick_inserter");const o=e[0],i=e[5];!1===Array.isArray(o)&&"object"==typeof o&&$i(`${r}_library_block_selected`,{blockName:o.name}),Array.isArray(o)&&i&&i.patternName&&$i(`${r}_library_pattern_selected`,{patternName:i.patternName})},ju={"core/editor":{autosave:"editor_content_auto_saved",setDeviceType:e=>{$i(`header_preview_dropdown_${e.toLowerCase()}_selected`)},setRenderingMode:e=>{(0,s.select)(l.store).getRenderingMode()!==e&&document.querySelector(`[aria-label="${(0,i.__)("View options")}"]`)&&$i("preview_dropdown_rendering_mode_changed",{renderingMode:e})}},"core/block-editor":{insertBlock:Tu,insertBlocks:Tu},"core/preferences":{set:(e,t,n)=>{if((0,s.select)(sc.store).get(e,t)===n)return;const r={focusMode:"focus_mode_toggle",fullscreenMode:"full_screen_mode_toggle",distractionFree:"distraction_free_toggle",fixedToolbar:"fixed_toolbar_toggle"};r[t]&&$i(r[t],{isEnabled:n})}},"core/commands":{open:"command_menu_opened",close:"command_menu_closed"}},Pu={},Au={},Nu=()=>{Mi()&&(0,s.use)((e=>({dispatch:t=>{const n="object"==typeof t?t.name:t,r=e.dispatch(n),o=ju[n];if(!o)return r;Pu[n]||(Pu[n]={}),Au[n]||(Au[n]={});for(const[e,t]of Object.entries(o))Au[n][e]||(Au[n][e]=r[e],Pu[n][e]=(...r)=>{try{"function"==typeof t?t(...r):"string"==typeof t&&$i(t)}catch(e){console.error("Error tracking event",e)}return Au[n][e](...r)}),r[e]=Pu[n][e];return r}})))};let Iu=[];function Lu(e){Iu.forEach((t=>{const n=e.target?.matches?.(t.selector)?e.target:e.target?.closest?.(t.selector);n&&("function"==typeof t.track?t.track(n,e):$i(t.track))}))}const Ru=new WeakMap,Bu={core:["saveEditedEntityRecord","saveEntityRecord"]},Ou=()=>{Object.keys(Ru).length>0||(0,s.use)((e=>({dispatch:t=>{const n="object"==typeof t?t.name:t;if(!Bu[n])return e.dispatch(n);const r=e.dispatch(n);Ru[n]||(Ru[n]={});const o=Bu[n].filter((e=>!Ru[n][e]));if(o.length>0)for(const t of o)Ru[n][t]=r[t],r[t]=async(...r)=>{const o=e.select(qi).getContentValidation(),s=o?.validateContent;if(s){let e;try{e=s()}catch(t){e=!1}if(!e)return Promise.reject(new Error((0,i.__)("Content validation failed.","woocommerce")))}return await Ru[n][t](...r)};return r}})))},Mu=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})}),Du=window.wp.htmlEntities,Fu=window.wp.apiFetch;var $u=n.n(Fu);function Vu(e){return"string"==typeof e.title?(0,Du.decodeEntities)(e.title):e.title&&"rendered"in e.title?(0,Du.decodeEntities)(e.title.rendered):e.title&&"raw"in e.title?(0,Du.decodeEntities)(e.title.raw):""}const zu=e=>{"wp_template"===e&&(Ns("postType",e,"duplicate-post"),Ns("postType",e,"reset-post"),As("postType",e,{id:"reset-email-template",label:(0,i.__)("Reset","woocommerce"),supportsBulk:!1,icon:Mu,isEligible(e){if("wp_template"!==e.type)return!1;if("custom"!==e.source)return!1;if(!Boolean(e.plugin)&&!Boolean(e.has_theme_file))return!1;const{permissions:t}=e;return t?.delete},hideModalHeader:!0,modalFocusOnMount:"firstContentElement",RenderModal:({items:e,closeModal:t,onActionPerformed:n})=>{const[r,o]=(0,di.useState)(!1),{createSuccessNotice:l,createErrorNotice:c}=(0,s.useDispatch)(tl.store),{invalidateResolution:u,editEntityRecord:p,saveEditedEntityRecord:d}=(0,s.useDispatch)(a.store),h=e[0],f=(0,i.sprintf)( // translators: %s: The template's title // translators: %s: The template's title (0,i.__)('Are you sure you want to reset "%s" to default?',"woocommerce"),Vu(h));return(0,ri.jsxs)(Ai.__experimentalVStack,{spacing:"5",children:[(0,ri.jsx)(Ai.__experimentalText,{children:f}),(0,ri.jsxs)(Ai.__experimentalHStack,{justify:"right",children:[(0,ri.jsx)(Ai.Button,{variant:"tertiary",onClick:()=>{t?.(),$i("reset_modal_cancel_button_clicked")},disabled:r,__next40pxDefaultSize:!0,children:(0,i.__)("Cancel","woocommerce")}),(0,ri.jsx)(Ai.Button,{variant:"primary",onClick:async()=>{$i("reset_modal_confirm_button_clicked"),o(!0);try{const r=await $u()({path:`/wp/v2/templates/${h.id}?context=edit&source=${h.origin}`}),s=(0,fi.parse)(r.content?.raw||"");p("postType",h.type,h.id,{blocks:s,content:(0,fi.serialize)(s),source:h.origin}),await d("postType",h.type,h.id,{}),await $u()({path:`/wp/v2/templates/${h.id}`,method:"DELETE"}),u("getEntityRecord",["postType",h.type,h.id]);const a=(0,i.sprintf)( /* translators: The template's title. */ /* translators: The template's title. */ (0,i.__)('"%s" reset to default.',"woocommerce"),Vu(h));l(a,{type:"snackbar",id:"reset-email-template-action"}),n?.(e),o(!1),t?.()}catch(e){let n=(0,i.__)("An error occurred while resetting the template.","woocommerce");e&&"object"==typeof e&&"message"in e&&(n=String(e.message)),$i("reset_modal_error",{errorMessage:n}),c(n,{type:"snackbar"}),o(!1),t?.()}},isBusy:r,disabled:r,__next40pxDefaultSize:!0,children:(0,i.__)("Reset","woocommerce")})]})]})}}))},qu=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});function Hu(e){return"string"==typeof e.title?(0,Du.decodeEntities)(e.title):e.title&&"rendered"in e.title?(0,Du.decodeEntities)(e.title.rendered):e.title&&"raw"in e.title?(0,Du.decodeEntities)(e.title.raw):""}function Uu(e,t){return t?e.length>1?(0,i.sprintf)( // translators: %d: number of items to delete. // translators: %d: number of items to delete. (0,i._n)("Are you sure you want to permanently delete %d item?","Are you sure you want to permanently delete %d items?",e.length,"woocommerce"),e.length):(0,i.sprintf)( // translators: %s: The post's title // translators: %s: The post's title (0,i.__)('Are you sure you want to permanently delete "%s"?',"woocommerce"),(0,Du.decodeEntities)(Hu(e[0]))):e.length>1?(0,i.sprintf)( // translators: %d: The number of items (2 or more). // translators: %d: The number of items (2 or more). (0,i._n)("Are you sure you want to move %d item to the trash ?","Are you sure you want to move %d items to the trash ?",e.length,"woocommerce"),e.length):(0,i.sprintf)( // translators: %s: The item's title. // translators: %s: The item's title. (0,i.__)('Are you sure you want to move "%s" to the trash?',"woocommerce"),Hu(e[0]))}const Wu=e=>{Ns("postType",e,"move-to-trash"),As("postType",e,(()=>{const e=(0,o.applyFilters)("woocommerce_email_editor_trash_modal_should_permanently_delete",!1);return{id:"trash-email-post",label:e?(0,i.__)("Permanently delete","woocommerce"):(0,i.__)("Move to trash","woocommerce"),supportsBulk:!0,icon:qu,isEligible(e){if("wp_template"===e.type||"wp_template_part"===e.type||"wp_block"===e.type)return!1;const{permissions:t}=e;return t?.delete},hideModalHeader:!0,modalFocusOnMount:"firstContentElement",RenderModal:({items:t,closeModal:n,onActionPerformed:r})=>{const[o,l]=(0,di.useState)(!1),{createSuccessNotice:c,createErrorNotice:u}=(0,s.useDispatch)(tl.store),{deleteEntityRecord:p}=(0,s.useDispatch)(a.store),{urls:d}=(0,s.useSelect)((e=>({urls:e(qi).getUrls()})),[]);return(0,ri.jsxs)(Ai.__experimentalVStack,{spacing:"5",children:[(0,ri.jsx)(Ai.__experimentalText,{children:Uu(t,e)}),(0,ri.jsxs)(Ai.__experimentalHStack,{justify:"right",children:[(0,ri.jsx)(Ai.Button,{variant:"tertiary",onClick:()=>{n?.(),$i("trash_modal_cancel_button_clicked")},disabled:o,__next40pxDefaultSize:!0,children:(0,i.__)("Cancel","woocommerce")}),(0,ri.jsx)(Ai.Button,{variant:"primary",onClick:async()=>{$i("trash_modal_move_to_trash_button_clicked"),l(!0);const o=await Promise.allSettled(t.map((t=>p("postType",t.type,t.id,{force:e},{throwOnError:!0}))));if(o.every((({status:e})=>"fulfilled"===e))){let n;n=1===o.length?e?(0,i.sprintf)( /* translators: The posts's title. */ /* translators: The posts's title. */ (0,i.__)('"%s" permanently deleted.',"woocommerce"),Hu(t[0])):(0,i.sprintf)( /* translators: The item's title. */ /* translators: The item's title. */ (0,i.__)('"%s" moved to the trash.',"woocommerce"),Hu(t[0])):e?(0,i.__)("The items were permanently deleted.","woocommerce"):(0,i.sprintf)( /* translators: The number of items. */ /* translators: The number of items. */ (0,i._n)("%s item moved to the trash.","%s items moved to the trash.",t.length,"woocommerce"),t.length),c(n,{type:"snackbar",id:"trash-email-post-action"}),r?.(t),d?.listings&&(window.location.href=d.listings)}else{let e;if(1===o.length){const t=o[0];e=t.reason?.message?t.reason.message:(0,i.__)("An error occurred while performing the action.","woocommerce")}else{const t=new Set,n=o.filter((({status:e})=>"rejected"===e));for(const e of n){const n=e;n.reason?.message&&t.add(n.reason.message)}e=0===t.size?(0,i.__)("An error occurred while performing the action.","woocommerce"):1===t.size?(0,i.sprintf)( /* translators: %s: an error message */ /* translators: %s: an error message */ (0,i.__)("An error occurred while performing the action: %s","woocommerce"),[...t][0]):(0,i.sprintf)( /* translators: %s: a list of comma separated error messages */ /* translators: %s: a list of comma separated error messages */ (0,i.__)("Some errors occurred while performing the action: %s","woocommerce"),[...t].join(","))}$i("trash_modal_move_to_trash_error",{errorMessage:e}),u(e,{type:"snackbar"})}l(!1),n?.()},isBusy:o,disabled:o,__next40pxDefaultSize:!0,children:e?(0,i.__)("Delete permanently","woocommerce"):(0,i.__)("Move to trash","woocommerce")})]})]})}}})())};const Gu=window.wp.isShallowEqual;var Ku=n.n(Gu);function Yu(e){const t=(0,di.useRef)(e);return Ku()(e,t.current)||(t.current=e),t.current}const Zu=[],Ju=()=>{const{addValidationNotice:e,hasValidationNotice:t,removeValidationNotice:n}=yc(),{editedContent:r,editedTemplateContent:i}=(0,s.useSelect)((e=>({editedContent:e(qi).getEditedEmailContent(),editedTemplateContent:e(qi).getCurrentTemplateContent()}))),l=Yu(r),c=Yu(i),u=(0,di.useCallback)((()=>((e,t,{addValidationNotice:n,hasValidationNotice:r,removeValidationNotice:i})=>{const s=(0,o.applyFilters)("woocommerce_email_editor_content_validation_rules",Zu);let a=!0;return s.forEach((({id:o,testContent:s,message:l,actions:c})=>{s(e+t)?(n(o,l,c),a=!1):r(o)&&i(o)})),a})(l,c,{addValidationNotice:e,hasValidationNotice:t,removeValidationNotice:n})),[l,c,e,n,t]);return(0,di.useEffect)((()=>((0,s.dispatch)(qi).setContentValidation({validateContent:u}),()=>{(0,s.dispatch)(qi).setContentValidation(void 0)})),[u]),(0,di.useEffect)((()=>{const e=(0,s.subscribe)((()=>{t()&&u()}),a.store);return()=>e()}),[t,u]),{validateContent:u}},Xu=()=>{const e=(0,di.useMemo)((()=>{const e=(0,i.__)("Saving failed.");return new RegExp("^"+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}),[]);(0,di.useEffect)((()=>{const t=(0,s.subscribe)((()=>{(0,s.select)(tl.store).getNotices().forEach((t=>{"string"==typeof t.content&&e.test(t.content)&&(0,s.dispatch)(tl.store).removeNotice(t.id)}))}));return()=>{t()}}),[e])};function Qu(){(0,di.useEffect)((()=>{let e;return(0,s.use)((t=>(e=t.select,{select:t=>{if(function(e){return"object"==typeof e?e.name:e}(t)!==tl.store.name)return e(t);const n=e(t),r=n.getNotices;if(!r)return n;const o=(0,s.createSelector)((e=>function(e){return e.map((e=>function(e){const t={"site-editor-save-success":{content:(0,i.__)("Email design updated.","woocommerce"),removeActions:!0},"editor-save":{content:(0,i.__)("Email saved.","woocommerce"),removeActions:!1,contentCheck:e=>e.includes((0,i.__)("Post updated."))}}[e.id];return t?t.contentCheck&&!t.contentCheck(e.content)?e:{...e,content:t.content,spokenMessage:t.content,actions:t.removeActions?[]:e.actions}:e}(e)))}(e)),(e=>[e]));return{...n,getNotices:e=>o(r(e))}}}))),()=>{(0,s.use)((()=>({select:e})))}}),[])}const ep=()=>{const e=(0,di.useRef)(null),[t,n]=(0,di.useState)(0),r=(0,di.useCallback)((t=>{e.current=t,n((e=>++e))}),[e,n]),i=(0,s.useSelect)((e=>{const{getEditorSettings:t}=e(l.store);return t()?.allowedIframeStyleHandles??[]}));return(0,di.useEffect)((()=>{if(!e.current)return;const{ownerDocument:t}=e.current;Array.from(document.styleSheets).filter((e=>{if(!(e?.ownerNode instanceof Element))return!1;const t=e.ownerNode.getAttribute("id"),n=t&&!i.includes(t);return(0,o.applyFilters)("woocommerce_email_editor_iframe_stylesheet_should_remove",n,e)})).map((e=>e.ownerNode.getAttribute("id"))).forEach((e=>{const n=t.getElementById(e);n&&n.remove();const r=t.createElement("style");r.id=e,t.head.appendChild(r)}))}),[i,t]),r};function tp({postId:e,postType:t,isPreview:n=!1,contentRef:r=null,customSavePanel:o}){const[i,a]=(0,di.useState)(!1),{settings:l}=(0,s.useSelect)((e=>({settings:e(qi).getInitialEditorSettings()})),[]);Ju(),Xu(),Qu();const{setEmailPost:c}=(0,s.useDispatch)(qi);(0,di.useEffect)((()=>{c(e,t),a(!0)}),[e,t,c]);const u=ep(),p=(0,hi.useMergeRefs)([u,r]),d=(0,di.useMemo)((()=>({...l,allowedBlockTypes:mi(),isPreviewMode:n})),[l,n]);return i?(0,ri.jsx)(di.StrictMode,{children:(0,ri.jsx)(Ic,{postId:e,postType:t,settings:d,contentRef:p,customSavePanel:o})}):null}function np(){Cu(),Nu(),Mi()&&(Iu=[{track:"header_preview_dropdown_preview_in_new_tab_selected",selector:".editor-preview-dropdown__button-external"},{track:()=>{const e=document.getElementsByClassName("is-collapsed editor-collapsible-block-toolbar").length;$i("header_blocks_tool_button_clicked",{isBlockToolsCollapsed:e})},selector:".editor-collapsible-block-toolbar__toggle"},{track:e=>{const t=e.classList.contains("is-opened");$i("header_more_menu_dropdown_toggle",{isOpened:t})},selector:`.components-dropdown-menu__toggle[aria-label="${(0,i.__)("Options")}"]`},{track:e=>{(e.textContent===(0,i.__)("Save")&&"false"===e.getAttribute("aria-disabled")||e.textContent===(0,i.__)("Saving…"))&&$i("header_save_button_clicked")},selector:".editor-post-publish-button"},{track:"header_save_email_button_clicked",selector:".editor-post-saved-state.is-saving"},{track:"inserter_sidebar_library_close_icon_clicked",selector:".block-editor-inserter__menu .block-editor-tabbed-sidebar__close-button"},{track:e=>{const t=e.classList.contains("is-opened");$i("header_preview_dropdown_clicked",{isOpened:t})},selector:".editor-preview-dropdown__toggle"},{track:()=>{$i("sidebar_tab_selected",{tab:"document"})},selector:'[data-tab-id="edit-post/document"]'},{track:()=>{$i("sidebar_tab_selected",{tab:"block"})},selector:'[data-tab-id="edit-post/block"]'},{track:e=>{const t=e.classList.contains("is-pressed");$i("header_inserter_sidebar_clicked",{isOpened:t})},selector:".editor-document-tools__inserter-toggle"},{track:e=>{const t=e.classList.contains("is-pressed");$i("header_listview_sidebar_clicked",{isOpened:t})},selector:".editor-document-tools__document-overview-toggle"},{track:e=>{$i("command_bar_command_clicked",{command:e.dataset?.value})},selector:'.commands-command-menu__container [role="option"]'}],document.addEventListener("click",Lu)),Su(),Ou(),cs(),ki("core.registerPostTypeSchema","woocommerce-email-editor/modify-move-to-trash-action",(e=>{Wu(e)})),ki("core.registerPostTypeActions","woocommerce-email-editor/modify-move-to-trash-action",(e=>{Wu(e)})),ki("core.registerPostTypeSchema","woocommerce-email-editor/modify-template-actions",(e=>{zu(e)})),ki("core.registerPostTypeActions","woocommerce-email-editor/modify-template-actions",(e=>{zu(e)})),ku(),(0,fi.getBlockTypes)().forEach((e=>{gs(e.name)&&vi(e.name,(e=>({...e,attributes:{...e.attributes,layout:{type:"object"}}})))})),Si("editor.BlockListBlock","woocommerce-email-editor/with-layout-styles",ws),Si("editor.BlockEdit","woocommerce-email-editor/with-inspector-controls",vs)}function rp(e){const t=document.getElementById(e);if(!t)return;const{current_post_id:n,current_post_type:r}=window.WooCommerceEmailEditor;if(null==n)throw new Error("current_post_id is required but not provided.");if(!r)throw new Error("current_post_type is required but not provided.");const i=(0,o.applyFilters)("woocommerce_email_editor_wrap_editor_component",tp);np();const a=function(){if(!window.WooCommerceEmailEditor)throw new Error("WooCommerceEmailEditor global object is not available. This is required for the email editor to work.");const e=window.WooCommerceEmailEditor.editor_settings,t=window.WooCommerceEmailEditor.editor_theme,n=window.WooCommerceEmailEditor.urls,r=window.WooCommerceEmailEditor.current_wp_user_email,o=window.WooCommerceEmailEditor.user_theme_post_id;if(!e)throw new Error("window.WooCommerceEmailEditor.editor_settings is required.");if(!t)throw new Error("window.WooCommerceEmailEditor.editor_theme is required.");if(!n||"string"!=typeof n.back||"string"!=typeof n.listings)throw new Error("window.WooCommerceEmailEditor.urls.back and .listings are required strings.");return{editorSettings:e,theme:t,urls:n,userEmail:r,globalStylesPostId:o??null}}();(0,s.dispatch)(qi).setEditorConfig(a),(0,di.createRoot)(t).render((0,ri.jsx)(i,{postId:n,postType:r}))}const op=(0,ri.jsx)(ps.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,ri.jsx)(ps.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})});var ip=n(5270),sp=n(8255),ap=n.n(sp);const lp=window.wp.escapeHtml;function cp({installedDaysAgo:e,reviewRequestIllustrationUrl:t,username:n}){const r=Math.round(e/30),o=e>30?(0,i.sprintf)((0,i._n)("You’ve been using MailPoet for %d month now, and we would love to read your own review.","You’ve been using MailPoet for %d months now, and we would love to read your own review.",r,"mailpoet"),r):(0,i.sprintf)((0,i._n)("You’ve been using MailPoet for %d day now, and we would love to read your own review.","You’ve been using MailPoet for %d days now, and we would love to read your own review.",e,"mailpoet"),e);return(0,ri.jsxs)("div",{className:"mailpoet_review_request",children:[(0,ri.jsx)("img",{src:t,height:"280",width:"280",alt:""}),(0,ri.jsx)("h2",{children:(0,i.__)("Thank you! Time to tell the world?","mailpoet")}),(0,ri.jsx)("p",{children:(0,i.sprintf)((0,i.__)("%s, did you know that hundreds of WordPress users read the reviews on the plugin repository? They’re also a source of inspiration for our team.","mailpoet"),(0,lp.escapeHTML)(n))}),(0,ri.jsx)("p",{children:o}),(0,ri.jsx)("p",{children:(0,ri.jsx)("a",{href:"http://bit.ly/2Bi124o",target:"_blank",rel:"noopener noreferrer",className:"button button-primary",children:(0,i.__)("Rate us now","mailpoet")})}),(0,ri.jsx)("p",{children:(0,ri.jsx)("a",{id:"mailpoet_review_request_not_now",children:(0,i.__)("Not now")})})]})}let up=null;const pp=(e=null)=>new Promise(((t,n)=>{window.mailpoet_display_nps_poll&&window.mailpoet_3rd_party_libs_enabled?(up||(up=ui.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"analytics",action:"getTrackingData"})),up).then((({data:n})=>{((e,t)=>{let n;n=t||(window.mailpoet_display_nps_form?"EqOgKsgZd832Sz9w":window.mailpoet_is_new_user?"6L479eVPXk7pBn6S":"k0aJAsQAWI2ERyGv");const r={name:window.mailpoet_current_wp_user.user_nicename,email:window.mailpoet_current_wp_user.user_email,mailpoetVersion:window.mailpoet_version,mailpoetPremiumIsActive:window.mailpoet_premium_active,createdAt:e.installedAtIso,newslettersSent:e.newslettersSent,welcomeEmails:e.welcomeEmails,postnotificationEmails:e.postnotificationEmails,woocommerceEmails:e.woocommerceEmails,subscribers:e.subscribers,lists:e.lists,sendingMethod:e.sendingMethod,woocommerceIsInstalled:e.woocommerceIsInstalled,woocommerceVersion:e.woocommerceVersion,WordPressVersion:e.WordPressVersion,blockTheme:e.blockTheme,themeVersion:e.themeVersion,theme:e.theme};e.gutenbergVersion&&(r.gutenbergVersion=e.gutenbergVersion),e.wooCommerceVersion&&(r.wooCommerceVersion=e.wooCommerceVersion),ap()({writeKey:n,userId:window.mailpoet_current_wp_user.ID+window.mailpoet_site_url,traits:r,events:{submit:e=>{e.rating>=9&&e.completed&&ui.Modal.popup({width:800,template:ip.renderToString(cp({username:window.mailpoet_current_wp_user_firstname||window.mailpoet_current_wp_user.user_login,reviewRequestIllustrationUrl:window.mailpoet_review_request_illustration_url,installedDaysAgo:window.mailpoet_installed_days_ago})),onInit:()=>{document.getElementById("mailpoet_review_request_not_now").addEventListener("click",(()=>ui.Modal.close()))}})}}})})(n,e),t()})):n()}));function dp({close:e}){Vi("edit_template_modal_opened");const{onNavigateToEntityRecord:t,template:n}=(0,s.useSelect)((e=>{const{getEditorSettings:t}=e(l.store),n=t();return{onNavigateToEntityRecord:n?.onNavigateToEntityRecord,template:e(qi).getCurrentTemplate()}}),[]);return(0,ri.jsxs)(Ai.Modal,{size:"medium",onRequestClose:e,__experimentalHideHeader:!0,children:[(0,ri.jsx)("p",{children:(0,i.__)("This template is used by multiple emails. Any changes made would affect other emails on the site. Are you sure you want to edit the template?","woocommerce")}),(0,ri.jsxs)(Ai.Flex,{justify:"end",children:[(0,ri.jsx)(Ai.FlexItem,{children:(0,ri.jsx)(Ai.Button,{variant:"tertiary",onClick:()=>{$i("edit_template_modal_cancel_button_clicked"),e()},children:(0,i.__)("Cancel","woocommerce")})}),(0,ri.jsx)(Ai.FlexItem,{children:(0,ri.jsx)(Ai.Button,{variant:"primary",onClick:()=>{$i("edit_template_modal_continue_button_clicked",{templateId:n.id}),t?.({postId:n.id,postType:"wp_template"})},disabled:!n.id||!t,children:(0,i.__)("Edit template","woocommerce")})})]})]})}function hp(){const{template:e,currentEmailContent:t,canUpdateTemplates:n,postType:r}=(0,s.useSelect)((e=>({template:e(qi).getCurrentTemplate(),currentEmailContent:e(qi).getEditedEmailContent(),canUpdateTemplates:e(qi).canUserEditTemplates(),postType:e(qi).getEmailPostType()})),[]),[o]=sl("swap"),[a,l]=(0,di.useState)(!1),[c,u]=(0,di.useState)(!1);return(0,ri.jsxs)(ri.Fragment,{children:[e&&(0,ri.jsx)(Ai.PanelRow,{children:(0,ri.jsxs)(Ai.Flex,{justify:"start",children:[(0,ri.jsx)(Ai.FlexItem,{className:"editor-post-panel__row-label",children:(0,i.__)("Template","woocommerce")}),(0,ri.jsxs)(Ai.FlexItem,{children:[!(o?.length>1||n)&&(0,ri.jsx)("b",{children:e?.title}),(o?.length>1||n)&&(0,ri.jsx)(Ai.DropdownMenu,{icon:null,text:e?.title,toggleProps:{variant:"tertiary"},label:(0,i.__)("Template actions","woocommerce"),onToggle:t=>$i("sidebar_template_actions_clicked",{currentTemplate:e?.title,isOpen:t}),children:({onClose:e})=>(0,ri.jsxs)(ri.Fragment,{children:[n&&(0,ri.jsx)(Ai.MenuItem,{onClick:()=>{$i("sidebar_template_actions_edit_template_clicked"),l(!0),e()},children:(0,i.__)("Edit template","woocommerce")}),o?.length>1&&(0,ri.jsx)(Ai.MenuItem,{onClick:()=>{$i("sidebar_template_actions_swap_template_clicked"),u(!0),e()},children:(0,i.__)("Swap template","woocommerce")})]})})]})]})}),a&&(0,ri.jsx)(dp,{close:()=>($i("edit_template_modal_closed"),l(!1))}),c&&(0,ri.jsx)(_l,{onSelectCallback:()=>u(!1),closeCallback:()=>u(!1),previewContent:t,postType:r})]})}const fp=window.wp.date,mp=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})});function gp(){const[e]=(0,a.useEntityProp)("postType","mailpoet_email","mailpoet_data"),t=e?.scheduled_at||null,n=(0,di.useRef)(null),r=(0,fp.getSettings)(),o=e=>{const t=(0,s.select)(l.store).getCurrentPostId(),n="mailpoet_email",r=(0,s.select)(a.store).getEditedEntityRecord("postType",n,t),o=r?.mailpoet_data||{};(0,s.dispatch)(a.store).editEntityRecord("postType",n,t,{mailpoet_data:{...o,scheduled_at:e}})},c=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join("")),u=(new Date).setHours(0,0,0,0);return(0,ri.jsx)(Ai.PanelRow,{children:(0,ri.jsxs)(Ai.Flex,{justify:"start",ref:n,children:[(0,ri.jsx)(Ai.FlexItem,{className:"editor-post-panel__row-label",children:(0,i.__)("Send","mailpoet")}),(0,ri.jsx)(Ai.FlexItem,{className:"editor-post-panel__row-control",children:(0,ri.jsx)(Ai.Dropdown,{popoverProps:{anchor:n.current,placement:"left-start",offset:36,shift:!0},renderToggle:({isOpen:e,onToggle:n})=>(0,ri.jsx)(Ai.Button,{variant:"tertiary",onClick:n,"aria-expanded":e,children:t?(0,fp.dateI18n)(r.formats.datetime,t,r.timezone.string):(0,i.__)("Immediately","mailpoet")}),renderContent:({onClose:e})=>(0,ri.jsxs)("div",{className:"mailpoet-status-panel__date-time-picker",children:[(0,ri.jsx)(Ai.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4,children:(0,ri.jsxs)(Ai.__experimentalHStack,{alignment:"center",children:[(0,ri.jsx)(Ai.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13,children:(0,i.__)("Send","mailpoet")}),(0,ri.jsx)(Ai.__experimentalSpacer,{}),(0,ri.jsx)(Ai.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:(0,i.__)("Now","mailpoet"),variant:"tertiary",onClick:()=>o(null),children:(0,i.__)("Now","mailpoet")}),(0,ri.jsx)(Ai.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:(0,i.__)("Close","mailpoet"),icon:mp,onClick:e})]})}),(0,ri.jsx)(Ai.DateTimePicker,{currentDate:t,onChange:e=>o(e),dateOrder:/* translators: Order of day, month, and year. Available formats are 'dmy', 'mdy', and 'ymd'. */ /* translators: Order of day, month, and year. Available formats are 'dmy', 'mdy', and 'ymd'. */ (0,i._x)("dmy","date order","mailpoet"),is12Hour:c,isInvalidDate:e=>e.getTime()<u})]})})})]})})}const _p=[];function yp(){const[e]=(0,a.useEntityProp)("postType","mailpoet_email","mailpoet_data"),t=e?.segment_ids||_p,n=(0,di.useRef)(null),[r,o]=(0,di.useState)([]),[c,u]=(0,di.useState)(!0),[p,d]=(0,di.useState)("segment"),[h,f]=(0,di.useState)(null),[m,g]=(0,di.useState)(!1);(0,di.useEffect)((()=>{let e=!0;u(!0);const t=ui.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"segments",action:"listing",data:{}}),n=ui.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"dynamic_segments",action:"listing",data:{}});return Promise.all([t,n]).then((([t,n])=>{const r=[...t.data||[],...n.data||[]].filter((e=>!e.deleted_at));e&&o(r)})).catch((()=>{e&&o([])})).finally((()=>{e&&u(!1)})),()=>{e=!1}}),[]),(0,di.useEffect)((()=>{if(0===r.length)return;if(0===t.length)return void d("segment");const e=r.find((e=>e.id.toString()===t[0].toString()));d("woocommerce_users"===e?.type?"all_customers":"segment")}),[t,r]),(0,di.useEffect)((()=>{if("segment"!==p||0===t.length)return f(null),void g(!1);let e=!0;return g(!0),ui.Ajax.post({api_version:window.mailpoet_api_version,endpoint:"segments",action:"subscriberCount",data:{segmentIds:t}}).then((t=>{e&&f(t?.data?.count)})).catch((()=>{e&&f(null)})).always((()=>{e&&g(!1)})),()=>{e=!1}}),[p,t]);const _=(e,t)=>{const n=(0,s.select)(l.store).getCurrentPostId(),r="mailpoet_email",o=(0,s.select)(a.store).getEditedEntityRecord("postType",r,n),i=o?.mailpoet_data||{};(0,s.dispatch)(a.store).editEntityRecord("postType",r,n,{mailpoet_data:{...i,[e]:t}})},y=r.filter((e=>"default"===e.type||"dynamic"===e.type)),v=e=>{const t=e.map((e=>{const t=y.find((t=>t.name===e));return t?t.id:null})).filter((e=>null!==e));_("segment_ids",t)},b=r.find((e=>"woocommerce_users"===e.type)),w=parseInt(b?.subscribers_count?.subscribed||"0",10),x=t.map((e=>r.find((t=>t.id.toString()===e.toString())))).filter((e=>void 0!==e)).filter((e=>"default"===e.type||"dynamic"===e.type));let S=(0,i.__)("Select recipients","mailpoet");return"all_customers"===p?S=(0,i.__)("All customers","mailpoet"):x.length>0&&(S=x.map((e=>e.name)).join(", ")),(0,ri.jsx)(Ai.PanelRow,{children:(0,ri.jsxs)(Ai.Flex,{justify:"start",ref:n,children:[(0,ri.jsx)(Ai.FlexItem,{className:"editor-post-panel__row-label",children:(0,i.__)("Recipients","mailpoet")}),(0,ri.jsx)(Ai.FlexItem,{className:"editor-post-panel__row-control",children:(0,ri.jsx)(Ai.Dropdown,{popoverProps:{anchor:n.current,placement:"left-start",offset:36,shift:!0},renderToggle:({isOpen:e,onToggle:t})=>(0,ri.jsx)(Ai.Button,{variant:"tertiary",onClick:t,"aria-expanded":e,disabled:c,children:S}),renderContent:({onClose:e})=>(0,ri.jsxs)("div",{className:"mailpoet-status-panel__recipients-selector",children:[(0,ri.jsx)(Ai.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4,children:(0,ri.jsxs)(Ai.__experimentalHStack,{alignment:"center",children:[(0,ri.jsx)(Ai.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13,children:(0,i.__)("Select recipients","mailpoet")}),(0,ri.jsx)(Ai.__experimentalSpacer,{}),(0,ri.jsx)(Ai.Button,{size:"small",className:"block-editor-inspector-popover-header__action",label:(0,i.__)("Close","mailpoet"),icon:mp,onClick:e})]})}),c?(0,ri.jsx)(Ai.Spinner,{}):(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(Ai.RadioControl,{selected:p,options:[{label:(0,i.__)("Send to all customers","mailpoet"),value:"all_customers",description:(0,i.sprintf)((0,i._n)("%s recipient","%s recipients",w,"mailpoet"),w)},{label:(0,i.__)("Send to a segment","mailpoet"),value:"segment"}],onChange:e=>(e=>{if(d(e),"all_customers"===e){const e=r.find((e=>"woocommerce_users"===e.type));e&&_("segment_ids",[e.id])}else _("segment_ids",[])})(e)}),"segment"===p&&(0,ri.jsxs)("div",{className:"mailpoet-status-panel__recipients-segments",children:[(0,ri.jsx)(Ai.FormTokenField,{label:(0,i.__)("Select segment(s)","mailpoet"),value:x.map((e=>e.name)),suggestions:y.map((e=>e.name)),onChange:v,__experimentalExpandOnFocus:!0,__experimentalAutoSelectFirstMatch:!0,__experimentalShowHowTo:!1}),(0,ri.jsxs)("div",{className:"mailpoet-status-panel__recipients-total-count",children:[(0,i.__)("Total recipients: ","mailpoet")," ",m?(0,ri.jsx)(Ai.Spinner,{className:"mailpoet-status-panel__recipients-loader"}):(h??0).toLocaleString()]})]})]})]})})})]})})}function vp(){return(0,ri.jsxs)(uc,{children:[(0,ri.jsx)(gp,{}),(0,ri.jsx)(yp,{}),(0,ri.jsx)(hp,{})]})}function bp(){const[e]=(0,a.useEntityProp)("postType","mailpoet_email","mailpoet_data"),t=(e,t)=>{const n=(0,s.select)(l.store).getCurrentPostId(),r="mailpoet_email",o=(0,s.select)(a.store).getEditedEntityRecord("postType",r,n),i=o?.mailpoet_data||{};(0,s.dispatch)(a.store).editEntityRecord("postType",r,n,{mailpoet_data:{...i,[e]:t}})},n=e?.subject?.length??0,r=e?.preheader?.length??0,o=(0,ri.jsxs)(Ai.__experimentalHStack,{spacing:2,alignment:"top",children:[(0,ri.jsx)("span",{className:"mailpoet-content-settings-panel__help-text",children:(0,i.__)("Personalise with tags: [site-title], [customer-firstname], [customer-lastname], [customer-email]","mailpoet")}),(0,ri.jsxs)("span",{className:Mo()("mailpoet-content-settings-panel__text-length",{"mailpoet-content-settings-panel__text-length--error":n>60}),children:[n,"/",60]})]}),c=(0,ri.jsxs)(Ai.__experimentalHStack,{spacing:2,alignment:"top",children:[(0,ri.jsx)("span",{className:"mailpoet-content-settings-panel__help-text",children:(0,i.__)("Shown as a preview in the Inbox, next to the subject line.","mailpoet")}),(0,ri.jsxs)("span",{className:Mo()("mailpoet-content-settings-panel__text-length",{"mailpoet-content-settings-panel__text-length--warning":r>80,"mailpoet-content-settings-panel__text-length--error":r>150}),children:[r,"/",150]})]});return(0,ri.jsxs)(l.PluginDocumentSettingPanel,{name:"mailpoet-content-settings",title:(0,i.__)("Content settings","mailpoet"),className:"mailpoet-content-settings-panel",children:[(0,ri.jsx)(Ai.TextareaControl,{label:(0,i.__)("Subject","mailpoet"),value:e?.subject||"",onChange:e=>t("subject",e),help:o,placeholder:(0,i.__)("Eg. The summer sale is here!","mailpoet"),"data-automation-id":"email_subject"}),(0,ri.jsx)(Ai.TextareaControl,{label:(0,i.__)("Preview text","mailpoet"),value:e?.preheader||"",onChange:e=>t("preheader",e),help:c,placeholder:(0,i.__)("Add a preview text to capture subscribers' attention and increase open rates.","mailpoet"),"data-automation-id":"email_preheader"})]})}function wp(){const[e]=(0,a.useEntityProp)("postType","mailpoet_email","mailpoet_data"),t=(0,s.useSelect)((e=>{const t=e("core").getSite();return{title:t?.title||"",email:t?.email||""}}),[]);return(0,ri.jsx)(l.PluginDocumentSettingPanel,{name:"mailpoet-inbox-preview",title:(0,i.__)("Inbox preview","mailpoet"),className:"mailpoet-inbox-preview-panel",children:(0,ri.jsxs)(Ai.Card,{className:"mailpoet-inbox-preview-panel__card",children:[(0,ri.jsx)("div",{className:"mailpoet-inbox-preview-panel__from-address",children:t.title&&t.email?`${t.title} <${t.email}>`:(0,i.__)("(No sender)","mailpoet")}),(0,ri.jsx)("div",{className:"mailpoet-inbox-preview-panel__subject",children:e?.subject||(0,i.__)("(No subject)","mailpoet")}),(0,ri.jsx)("div",{className:"mailpoet-inbox-preview-panel__preheader",children:e?.preheader||(0,i.__)("(No preview text)","mailpoet")})]})})}function xp(){const[e]=(0,a.useEntityProp)("postType","mailpoet_email","mailpoet_data");return(0,ri.jsx)(l.PluginDocumentSettingPanel,{name:"mailpoet-tracking",title:(0,i.__)("Tracking","mailpoet"),children:(0,ri.jsx)(Ai.TextControl,{label:(0,i.__)("utm_campaign","mailpoet"),value:e?.utm_campaign||"",onChange:e=>((e,t)=>{const n=(0,s.select)(l.store).getCurrentPostId(),r="mailpoet_email",o=(0,s.select)(a.store).getEditedEntityRecord("postType",r,n),i=o?.mailpoet_data||{};(0,s.dispatch)(a.store).editEntityRecord("postType",r,n,{mailpoet_data:{...i,[e]:t}})})("utm_campaign",e),help:(0,i.__)("Add a tracking code to use with Google Analytics","mailpoet")})})}const Sp=(0,di.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,di.cloneElement)(e,{width:t,height:t,...n,ref:r})})),kp=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})}),Ep=(0,ri.jsx)(ps.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ri.jsx)(ps.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})});var Cp=n(5795);const Tp=`<a data-link-href="[mailpoet/subscription-unsubscribe-url]" contenteditable="false" style="text-decoration: underline;" class="mailpoet-email-editor__personalization-tags-link">${(0,i.__)("Unsubscribe","mailpoet")}</a> | <a data-link-href="[mailpoet/subscription-manage-url]" contenteditable="false" style="text-decoration: underline;" class="mailpoet-email-editor__personalization-tags-link">${(0,i.__)("Manage subscription","mailpoet")}</a>`,jp={id:"missing-unsubscribe-link",testContent:e=>!e.includes("[mailpoet/subscription-unsubscribe-url]"),message:(0,i.__)('All emails must include an "Unsubscribe" link.',"mailpoet"),actions:[{label:(0,i.__)("Insert link","mailpoet"),onClick:()=>{const e=(0,fi.createBlock)("core/paragraph",{align:"center",fontSize:"small",content:Tp});if("wp_template"===(0,s.select)(l.store).getCurrentPostType()){const t=(0,s.select)(_i.store).getBlocks();(0,s.dispatch)(_i.store).insertBlock(e,t.length,"")}else{const t=[...(0,s.select)(l.store).getEditorBlocks(),e];(0,s.dispatch)(l.store).resetEditorBlocks(t)}}}]},Pp={};let Ap=!1;const Np={core:["saveEntityRecord"]};(0,o.addFilter)("woocommerce_email_editor_wrap_editor_component","mailpoet/email-editor-integration",(e=>{return t=e,function(e){const[n,r]=(0,di.useState)(!1),o=()=>{window.satismeter("track",{event:"Request feedback"})};return(0,di.useLayoutEffect)((()=>{pp("9qCj2SJBE1s5OhnX5NYfRXu82pEDUB9x").then((()=>{window.satismeter&&(r(!0),window.mailpoet_display_nps_email_editor&&(window.mailpoet_display_nps_email_editor=!1,ui.Ajax.post({api_version:ui.apiVersion,endpoint:"user_flags",action:"set",data:{email_editor_survey_seen:ui.Date.toGmtDatetimeString(new Date)}}).then(o)))})).catch((()=>{}))}),[]),(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(t,{...e}),n&&(0,ri.jsx)(Ai.Button,{icon:op,variant:"tertiary",className:"mailpoet-editor-feedback-button",onClick:o,children:(0,i.__)("Share feedback","mailpoet")})]})};var t})),(0,o.addFilter)("woocommerce_email_editor_content_validation_rules","mailpoet/email-editor-integration",(e=>[...e||[],jp]));const Ip=window?.mailpoet_is_automation_newsletter;(0,o.addFilter)("woocommerce_email_editor_send_button_label","mailpoet/email-editor-integration",(()=>{if(Ip)return(0,i.__)("Save and continue","mailpoet");const e=(0,s.select)(l.store).getCurrentPostId(),t=(0,s.select)(a.store).getEditedEntityRecord("postType","mailpoet_email",e),n=t?.mailpoet_data?.scheduled_at;return n?(0,i.__)("Review & schedule","mailpoet"):(0,i.__)("Review & send","mailpoet")}));const Lp=["email_editor_events_editor_layout_loaded","email_editor_events_template_select_modal_template_selected","email_editor_events_template_select_modal_start_from_scratch_clicked","email_editor_events_header_campaign_name_title_updated","email_editor_events_header_preview_dropdown_mobile_selected","email_editor_events_header_preview_dropdown_desktop_selected","email_editor_events_header_preview_dropdown_send_test_email_selected","email_editor_events_sent_preview_email","email_editor_events_header_preview_dropdown_preview_in_new_tab_selected","email_editor_events_rich_text_with_button_personalization_tags_shortcode_icon_clicked","email_editor_events_personalization_tags_modal_tag_insert_button_clicked","email_editor_events_rich_text_with_button_input_field_updated","email_editor_events_styles_sidebar_screen_typography_opened","email_editor_events_styles_sidebar_screen_colors_opened","email_editor_events_styles_sidebar_screen_layout_opened","email_editor_events_header_send_button_clicked","email_editor_events_trash_modal_move_to_trash_button_clicked"];var Rp;(0,o.addAction)("woocommerce_email_editor_events","mailpoet",(e=>{const{name:t,...n}=e;Lp.includes(String(t))&&ui.trackEvent(t,n)})),(0,o.addFilter)("woocommerce_email_editor_events_tracking_enabled","mailpoet/email-editor-integration",(()=>!!window.mailpoet_analytics_enabled)),Ip||(0,c.registerPlugin)("mailpoet-settings-sidebar",{render:function(){return"mailpoet_email"!==(0,s.useSelect)((e=>e(l.store).getCurrentPostType()),[])?null:(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(vp,{}),(0,ri.jsx)(bp,{}),(0,ri.jsx)(wp,{}),(0,ri.jsx)(xp,{})]})},scope:"woocommerce-email-editor"}),Ip&&(0,c.registerPlugin)("mailpoet-automation-save-button",{render:function(){const e=(0,di.useRef)(document.createElement("span")),[t,n]=(0,di.useState)(!1),{isDirty:r,isSaving:o}=(0,s.useSelect)((e=>({isDirty:e(l.store).isEditedPostDirty(),isSaving:e(l.store).isSavingPost()})),[]),{savePost:a}=(0,s.useDispatch)(l.store),c=(0,di.useCallback)((async()=>{await a()}),[a]);if((0,di.useEffect)((()=>{const t=e.current;let r=null;const o=()=>{const e=document.querySelector(".editor-header__settings");return!!e&&(e.insertBefore(t,e.firstChild),n(!0),!0)};return o()||(r=new MutationObserver((()=>{o()&&r?.disconnect()})),r.observe(document.body,{childList:!0,subtree:!0})),()=>{r?.disconnect(),t.remove(),n(!1)}}),[]),!t)return null;let u;return u=o?(0,i.__)("Saving","mailpoet"):r?(0,i.__)("Save draft","mailpoet"):(0,i.__)("Saved","mailpoet"),(0,Cp.createPortal)((0,ri.jsxs)(Ai.Button,{variant:"tertiary",onClick:c,disabled:o||!r,className:"editor-post-saved-state","data-automation-id":"email_editor_save_draft_button",children:[o&&(0,ri.jsx)(Sp,{icon:kp}),!o&&!r&&(0,ri.jsx)(Sp,{icon:Ep}),u]}),e.current)},scope:"woocommerce-email-editor"}),(0,o.addFilter)("woocommerce_email_editor_preferred_template_title","mailpoet/email-editor-integration",((...e)=>{const[,t]=e;return t?.mailpoet_data?.subject||""})),(0,o.addFilter)("sync.providers","mailpoet/email-editor-integration-disable-rtc",(()=>[])),Ap||(Ap=!0,(0,s.use)((e=>({dispatch:t=>{const n="object"==typeof t?t.name:t;if(!Np[n])return e.dispatch(n);const r=e.dispatch(n);Pp[n]||(Pp[n]={});const o=Np[n].filter((e=>!Pp[n][e]));return o.length>0&&o.forEach((t=>{Pp[n][t]=r[t],r[t]=async(...r)=>async function(e,t,n){try{const[r,o,i,s]=e;if("string"!=typeof r||"string"!=typeof o)return await n(...e);const c=t.select(qi).getEmailPostType();if("postType"!==r||o!==c)return await n(...e);if("object"!=typeof i||null===i||"number"!=typeof i?.id)return await n(...e);const u=i,p=t.select(a.store.name).getEntityRecord("postType",c,u.id);if(!p||"string"!=typeof p?.status)return await n(...e);t.dispatch(l.store.name).editPost({status:p.status});const{status:d,...h}=u;return await n(r,o,h,s)}catch(t){return console.error("Error in strip-post-status middleware:",t),await n(...e)}}(r,e,Pp[n][t])})),r}})))),Rp="mailpoet-email-editor","loading"===document.readyState?window.addEventListener("DOMContentLoaded",(()=>{rp(Rp)}),{once:!0}):rp(Rp)})()})();
Save
Back