@emailmaker/emailmaker 1.1.104 → 1.1.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/emailmaker-core.7b3c64f5.js +859 -0
- package/emailmaker-esm.js +11 -11
- package/{emailmaker-po.d92031f0.js → emailmaker-po.7b3c64f5.js} +1 -1
- package/emailmaker.d.ts +137 -13
- package/emailmaker.js +12 -12
- package/iframe/.vite/manifest.json +13 -25
- package/iframe/css/sandbox.css +9 -8
- package/iframe/{iframe-eblock.d92031f0.html → iframe-eblock.7b3c64f5.html} +2 -2
- package/iframe/{iframe.d92031f0.html → iframe.7b3c64f5.html} +2 -2
- package/iframe/js/elMarkupHelper.BcpgksI_.js +279 -0
- package/iframe/js/iframe-eblock.body.7b3c64f5.js +9 -0
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/iframe.body.7b3c64f5.js +129 -0
- package/iframe/js/iframe.js +2 -2
- package/iframe/js/{typograf.all.B0pVhMV_.js → typograf.all.Mun9CrLC.js} +12 -12
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{c100433a.js → 1157da89.js} +1 -1
- package/static/core/{4b7442c5.js → 213ffad0.js} +1 -1
- package/static/core/{1cdd0eaa.js → 26473b73.js} +1 -1
- package/static/core/{20fae5cb.js → 26971a74.js} +1 -1
- package/static/core/{d3f1d83d.js → 2e29db3c.js} +1 -1
- package/static/core/2f32a31d.js +4 -0
- package/static/core/{c67adee2.js → 3bfab25b.js} +1 -1
- package/static/core/{0cb54b92.js → 4797d4f7.js} +6 -6
- package/static/core/{f173fdc6.js → 5c4304c8.js} +1 -1
- package/static/core/{e76ed3bd.js → 6314ae82.js} +1 -1
- package/static/core/6fb2f217.js +4 -0
- package/static/core/{2a6bfcb1.js → 756e184f.js} +1 -1
- package/static/core/{fff40495.js → 850805d7.js} +1 -1
- package/static/core/{bd852c3b.js → 86b377fd.js} +1 -1
- package/static/core/874f77d2.js +2 -0
- package/static/core/{eee25d75.js → 87dcdb89.js} +1 -1
- package/static/core/{9596ee39.js → 8c37b60d.js} +1 -1
- package/static/core/{36f15937.js → 98ab1508.js} +1 -1
- package/static/core/9ef544f4.js +7 -0
- package/static/core/{ba4d44b4.js → a85c7f02.js} +1 -1
- package/static/core/{1922419a.js → abcacabc.js} +1 -1
- package/static/core/{dc45a033.js → b35140b6.js} +1 -1
- package/static/core/{9f7f5230.js → b712bb05.js} +1 -1
- package/static/core/{448f5a93.js → cebc7ae2.js} +1 -1
- package/static/core/{25095aa6.js → dfcb8d34.js} +2 -2
- package/static/core/e4b8362a.js +28 -0
- package/static/core/e88db487.js +1 -0
- package/static/core/{2d570b04.js → e8fa95c8.js} +3 -3
- package/static/core/e90908e7.js +1 -0
- package/static/core/{62b7892b.js → ee6c9aa1.js} +11 -11
- package/static/core/{360afb24.js → efb5b933.js} +1 -1
- package/static/core/{432ad49d.js → f115f982.js} +1 -1
- package/static/esm/73c89921.js +1 -0
- package/static/esm/delivery-libs.js +1 -1
- package/static/umd-runtime/delivery-libs.eFZaeVgo.js +1 -0
- package/static/umd-runtime/{runtime.Wy6_YzQx.js → runtime.DaVzSc6X.js} +1 -1
- package/vendor/@emailmaker/ui-kit/package.json +1 -1
- package/emailmaker-core.d92031f0.js +0 -859
- package/iframe/js/discussHandlers.cyZrdU7c.js +0 -88
- package/iframe/js/iframe-eblock.body.d92031f0.js +0 -233
- package/iframe/js/iframe.body.d92031f0.js +0 -319
- package/iframe/js/rolldown-runtime.qcwTIabA.js +0 -1
- package/static/core/123fc796.js +0 -4
- package/static/core/5dc1b7fa.js +0 -7
- package/static/core/a866296c.js +0 -4
- package/static/core/cd6c8848.js +0 -28
- package/static/core/e6f6edff.js +0 -1
- package/static/esm/d4338c39.js +0 -1
- package/static/umd-runtime/delivery-libs.Cmqsjupj.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__emailmaker__.define("static/core/e88db487.js",["require","exports","module"],function(P,u,d){var b=Object.create,l=Object.defineProperty,p=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,O=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,v=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(o){throw t=[o],o}},y=(e,r)=>()=>(r||(e((r={exports:{}}).exports,r),e=null),r.exports),j=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(var f=i(r),n=0,s=f.length,a;n<s;n++)a=f[n],!c.call(e,a)&&a!==t&&l(e,a,{get:(g=>r[g]).bind(null,a),enumerable:!(o=p(r,a))||o.enumerable});return e},m=(e,r,t)=>(t=e==null?{}:b(O(e)),j(r||!e||!e.__esModule||!c.call(e,"default")?l(t,"default",{value:e,enumerable:!0}):t,e));Object.defineProperty(u,"l",{enumerable:!0,get:function(){return m}}),Object.defineProperty(u,"o",{enumerable:!0,get:function(){return v}}),Object.defineProperty(u,"s",{enumerable:!0,get:function(){return y}})});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
__emailmaker__.define("static/core/a54d9b28.js",["require","exports","module","static/core/5dc34752.js"],function(e,t,s){const o=e("./5dc34752.js");var a=[{name:"META",selector:"head > meta[charset]",required:!0,requiredParent:"HEAD",attrs:[{name:"charset",value:["utf-8"],required:!0}],unique:!0},{name:"SCRIPT",selector:"head > script[src]",required:!0,requiredParent:"HEAD",attrs:[{name:"src",value:["https://cdn.ampproject.org/v0.js"],required:!0}],attrLists:["nonce-attr","amphtml-engine-attrs"],unique:!0},{name:"STYLE",selector:"head > style[amp-custom-length-check]",requiredParent:"HEAD",attrs:[{name:"amp-custom-length-check",value:[""],required:!0},{name:"type",value:["text/css"]}],attrLists:["nonce-attr"],unique:!0},{name:"STYLE",selector:"head > style[amp-custom]",requiredParent:"HEAD",attrs:[{name:"amp-custom",value:[""],required:!0},{name:"type",value:["text/css"]}],unique:!0},{name:"STYLE",selector:"head > style[amp-custom]",requiredParent:"HEAD",attrs:[{name:"amp-custom",value:[""],required:!0},{name:"type",value:["text/css"]}],unique:!0},{name:"STYLE",selector:"head > style[amp4email-boilerplate]",requiredParent:"HEAD",attrs:[{name:"amp4email-boilerplate",value:[""],required:!0}],unique:!0},{name:"SCRIPT",selector:"amp-state > script[type]",requiresExtension:["amp-bind"],requiredParent:"AMP-STATE",attrs:[{name:"type",value:["application/json"],required:!0}],attrLists:["nonce-attr"]},{name:"HEAD",selector:"html > head",required:!0,requiredParent:"HTML",attrs:[],unique:!0},{name:"BODY",selector:"html > body",required:!0,requiredParent:"HTML",attrs:[],unique:!0},{name:"SECTION",selector:"amp-accordion > section",requiredParent:"AMP-ACCORDION",attrs:[{name:"expanded",value:[""]},{name:"[data-expand]"}]},{name:"DIV",selector:"div[submit-success][template]",attrs:[{name:"align"},{name:"submit-success",required:!0},{name:"template",required:!0}]},{name:"DIV",selector:"div[submit-error][template]",attrs:[{name:"align"},{name:"submit-error",required:!0},{name:"template",required:!0}]},{name:"SCRIPT",selector:"script[type][template]",requiresExtension:["amp-mustache"],attrs:[{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"type",value:["text/plain"],required:!0},{name:"template",value:["amp-mustache"],required:!0}],attrLists:["nonce-attr"]},{name:"FORM",selector:"form[action-xhr]",requiresExtension:["amp-form"],attrs:[{name:"accept"},{name:"accept-charset"},{name:"action-xhr",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"autocomplete"},{name:"custom-validation-reporting",value:["as-you-go","interact-and-submit","show-all-on-submit","show-first-on-submit"]},{name:"enctype"},{name:"method",value:["post"],required:!0},{name:"novalidate"},{name:"xssi-prefix"}]},{name:"DIV",selector:"div[submitting]",attrs:[{name:"align"},{name:"submitting",required:!0}]},{name:"DIV",selector:"div[submit-success]",attrs:[{name:"align"},{name:"submit-success",required:!0}]},{name:"DIV",selector:"div[submit-error]",attrs:[{name:"align"},{name:"submit-error",required:!0}]},{name:"SCRIPT",selector:"script[type]",attrs:[{name:"type",value:["application/ld+json"],required:!0}],attrLists:["nonce-attr"]},{name:"DIV",selector:"div[fetch-error]",attrs:[{name:"align"},{name:"fetch-error",required:!0}]},{name:"NAV",selector:"nav[toolbar]",requiredParent:"AMP-SIDEBAR",attrs:[{name:"toolbar",required:!0},{name:"toolbar-target",required:!0}]},{name:"HTML",selector:"html",required:!0,requiredParent:"$ROOT",attrs:[{name:"⚡4email",value:[""],required:!0},{name:"data-css-strict",value:[""],required:!0}],unique:!0},{name:"TITLE",selector:"title",deprecation:"Title tags in email have no meaning. This tag may become invalid in the future.",attrs:[{name:"[text]"}]},{name:"META",selector:"meta",attrs:[{name:"content"},{name:"itemprop"},{name:"name",disallowedValueRegex:"(^|\\s)(amp-.*|amp4ads-.*|apple-itunes-app|content-disposition|revisit-after|viewport)(\\s|$)"},{name:"media"},{name:"property"},{name:"scheme"}]},{name:"ARTICLE",selector:"article",attrs:[]},{name:"SECTION",selector:"section",attrs:[]},{name:"NAV",selector:"nav",attrs:[]},{name:"ASIDE",selector:"aside",attrs:[]},{name:"H1",selector:"h1",attrs:[{name:"align"}]},{name:"H2",selector:"h2",attrs:[{name:"align"}]},{name:"H3",selector:"h3",attrs:[{name:"align"}]},{name:"H4",selector:"h4",attrs:[{name:"align"}]},{name:"H5",selector:"h5",attrs:[{name:"align"}]},{name:"H6",selector:"h6",attrs:[{name:"align"}]},{name:"HEADER",selector:"header",attrs:[]},{name:"FOOTER",selector:"footer",attrs:[]},{name:"ADDRESS",selector:"address",attrs:[]},{name:"P",selector:"p",attrs:[{name:"align"}]},{name:"HR",selector:"hr",attrs:[]},{name:"PRE",selector:"pre",attrs:[]},{name:"BLOCKQUOTE",selector:"blockquote",attrs:[{name:"align"}],attrLists:["cite-attr"]},{name:"OL",selector:"ol",attrs:[{name:"reversed",value:[""]},{name:"start",valueRegex:"[0-9]*"},{name:"type",valueRegex:"[1AaIi]"}]},{name:"UL",selector:"ul",attrs:[]},{name:"LI",selector:"li",attrs:[{name:"value",valueRegex:"[0-9]*"}]},{name:"DL",selector:"dl",attrs:[]},{name:"DT",selector:"dt",attrs:[]},{name:"DD",selector:"dd",attrs:[]},{name:"FIGURE",selector:"figure",attrs:[]},{name:"FIGCAPTION",selector:"figcaption",attrs:[]},{name:"DIV",selector:"div",attrs:[{name:"align"}]},{name:"MAIN",selector:"main",attrs:[]},{name:"A",selector:"a",attrs:[{name:"border"},{name:"href",valueUrl:{protocol:["http","https","mailto","tel"],allowRelative:!1},disallowedValueRegex:"__amp_source_origin|(.|\\s){{|}}(.|\\s)|^{{.*[^}][^}]$|^[^{][^{].*}}$|^}}|{{$|{{#|{{/|{{\\^"},{name:"hreflang"},{name:"media"},{name:"role"},{name:"tabindex"},{name:"target",value:["_blank"]},{name:"type",value:["text/html"]}]},{name:"EM",selector:"em",attrs:[]},{name:"STRONG",selector:"strong",attrs:[]},{name:"SMALL",selector:"small",attrs:[]},{name:"S",selector:"s",attrs:[]},{name:"CITE",selector:"cite",attrs:[]},{name:"Q",selector:"q",attrs:[],attrLists:["cite-attr"]},{name:"DFN",selector:"dfn",attrs:[]},{name:"ABBR",selector:"abbr",attrs:[]},{name:"DATA",selector:"data",attrs:[]},{name:"TIME",selector:"time",attrs:[{name:"datetime"},{name:"pubdate",value:[""]}]},{name:"CODE",selector:"code",attrs:[]},{name:"VAR",selector:"var",attrs:[]},{name:"SAMP",selector:"samp",attrs:[]},{name:"KBD",selector:"kbd",attrs:[]},{name:"SUB",selector:"sub",attrs:[]},{name:"SUP",selector:"sup",attrs:[]},{name:"I",selector:"i",attrs:[]},{name:"B",selector:"b",attrs:[]},{name:"U",selector:"u",attrs:[]},{name:"MARK",selector:"mark",attrs:[]},{name:"RUBY",selector:"ruby",attrs:[]},{name:"RB",selector:"rb",attrs:[]},{name:"RT",selector:"rt",attrs:[]},{name:"RP",selector:"rp",attrs:[]},{name:"BDO",selector:"bdo",attrs:[{name:"dir"}]},{name:"SPAN",selector:"span",attrs:[]},{name:"BR",selector:"br",attrs:[]},{name:"WBR",selector:"wbr",attrs:[]},{name:"INS",selector:"ins",attrs:[{name:"datetime"}],attrLists:["cite-attr"]},{name:"DEL",selector:"del",attrs:[{name:"datetime"}],attrLists:["cite-attr"]},{name:"TABLE",selector:"table",attrs:[{name:"align"},{name:"bgcolor"},{name:"border",value:["0","1"]},{name:"cellpadding"},{name:"cellspacing"},{name:"width"}]},{name:"CAPTION",selector:"caption",attrs:[]},{name:"COLGROUP",selector:"colgroup",attrs:[{name:"span"}]},{name:"COL",selector:"col",attrs:[{name:"span"}]},{name:"TBODY",selector:"tbody",attrs:[]},{name:"THEAD",selector:"thead",attrs:[]},{name:"TFOOT",selector:"tfoot",attrs:[]},{name:"TR",selector:"tr",attrs:[{name:"align"},{name:"bgcolor"},{name:"height"},{name:"valign"}]},{name:"TD",selector:"td",attrs:[{name:"align"},{name:"bgcolor"},{name:"colspan"},{name:"headers"},{name:"height"},{name:"rowspan"},{name:"valign"},{name:"width"}]},{name:"TH",selector:"th",attrs:[{name:"abbr"},{name:"align"},{name:"bgcolor"},{name:"colspan"},{name:"headers"},{name:"height"},{name:"rowspan"},{name:"scope"},{name:"valign"},{name:"width"}]},{name:"FORM",selector:"form",requiresExtension:["amp-form"],attrs:[{name:"accept"},{name:"accept-charset"},{name:"action-xhr",valueUrl:{protocol:["https"],allowRelative:!1},disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"autocomplete"},{name:"custom-validation-reporting",value:["as-you-go","interact-and-submit","show-all-on-submit","show-first-on-submit"]},{name:"enctype"},{name:"method",value:["get"]},{name:"novalidate"},{name:"xssi-prefix"}]},{name:"LABEL",selector:"label",attrs:[{name:"for"}]},{name:"INPUT",selector:"input",attrs:[{name:"type",disallowedValueRegex:"(^|\\s)(file|image|password|)(\\s|$)"}],attrLists:["input-common-attr","name-attr"]},{name:"BUTTON",selector:"button",attrs:[{name:"disabled",value:[""]},{name:"role"},{name:"tabindex"},{name:"type"},{name:"value"},{name:"[disabled]"},{name:"[value]"}],attrLists:["name-attr"]},{name:"SELECT",selector:"select",attrs:[{name:"disabled"},{name:"multiple"},{name:"required"},{name:"size"},{name:"[disabled]"},{name:"[multiple]"},{name:"[required]"},{name:"[size]"}],attrLists:["name-attr"]},{name:"DATALIST",selector:"datalist",attrs:[]},{name:"OPTGROUP",selector:"optgroup",requiredParent:"SELECT",attrs:[{name:"disabled"},{name:"label"},{name:"[disabled]"},{name:"[label]"}]},{name:"OPTION",selector:"option",attrs:[{name:"disabled"},{name:"label"},{name:"selected"},{name:"value"},{name:"[disabled]"},{name:"[label]"},{name:"[selected]"},{name:"[value]"}]},{name:"TEXTAREA",selector:"textarea",attrs:[{name:"autocomplete"},{name:"autoexpand"},{name:"cols"},{name:"disabled"},{name:"maxlength"},{name:"minlength"},{name:"pattern"},{name:"placeholder"},{name:"readonly"},{name:"required"},{name:"rows"},{name:"spellcheck"},{name:"wrap"},{name:"[autocomplete]"},{name:"[cols]"},{name:"[defaulttext]"},{name:"[disabled]"},{name:"[maxlength]"},{name:"[minlength]"},{name:"[pattern]"},{name:"[placeholder]"},{name:"[readonly]"},{name:"[required]"},{name:"[rows]"},{name:"[spellcheck]"},{name:"[wrap]"}],attrLists:["name-attr"]},{name:"OUTPUT",selector:"output",attrs:[{name:"for"},{name:"form"}],attrLists:["name-attr"]},{name:"PROGRESS",selector:"progress",attrs:[{name:"max"},{name:"value"}]},{name:"METER",selector:"meter",attrs:[{name:"high"},{name:"low"},{name:"max"},{name:"min"},{name:"optimum"},{name:"value"}]},{name:"FIELDSET",selector:"fieldset",attrs:[{name:"disabled"},{name:"[disabled]"}],attrLists:["name-attr"]},{name:"LEGEND",selector:"legend",attrs:[]},{name:"DETAILS",selector:"details",attrs:[{name:"open",value:[""]},{name:"[open]"}]},{name:"SUMMARY",selector:"summary",requiredParent:"DETAILS",attrs:[]},{name:"AMP-IMG",selector:"amp-img",attrs:[{name:"alt"},{name:"attribution"},{name:"placeholder"},{name:"[alt]"},{name:"[attribution]"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["extended-amp-global","mandatory-src-amp4email","$AMP_LAYOUT_ATTRS"]},{name:"AMP-LAYOUT",selector:"amp-layout",attrs:[{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay","container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-accordion']",attrs:[{name:"custom-element",value:["amp-accordion"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-accordion-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-ACCORDION",selector:"amp-accordion",requiresExtension:["amp-accordion"],attrs:[{name:"animate",value:[""]},{name:"expand-single-section",value:[""]},{name:"layout",value:["container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-anim']",attrs:[{name:"custom-element",value:["amp-anim"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-anim-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-ANIM",selector:"amp-anim",requiresExtension:["amp-anim"],attrs:[{name:"alt"},{name:"attribution"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","nodisplay"],required:!0}],attrLists:["extended-amp-global","mandatory-src-amp4email","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-autocomplete']",attrs:[{name:"custom-element",value:["amp-autocomplete"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-autocomplete-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-AUTOCOMPLETE",selector:"amp-autocomplete",requiresExtension:["amp-autocomplete"],attrs:[{name:"highlight-user-entry"},{name:"inline"},{name:"items"},{name:"max-items"},{name:"min-characters"},{name:"prefetch"},{name:"query"},{name:"submit-on-enter"},{name:"suggest-first"},{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"template"},{name:"layout",value:["container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-bind']",attrs:[{name:"custom-element",value:["amp-bind"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-bind-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-STATE",selector:"amp-state",requiresExtension:["amp-bind"],attrs:[],attrLists:["mandatory-id-attr"]},{name:"AMP-BIND-MACRO",selector:"amp-bind-macro",requiresExtension:["amp-bind"],attrs:[{name:"arguments"},{name:"expression",required:!0}],attrLists:["mandatory-id-attr"]},{name:"SCRIPT",selector:"script[custom-element='amp-carousel']",attrs:[{name:"custom-element",value:["amp-carousel"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-carousel-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-CAROUSEL",selector:"amp-carousel",requiresExtension:["amp-carousel"],attrs:[{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["amp-carousel-common","extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-fit-text']",attrs:[{name:"custom-element",value:["amp-fit-text"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-fit-text-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-FIT-TEXT",selector:"amp-fit-text",requiresExtension:["amp-fit-text"],attrs:[{name:"max-font-size"},{name:"min-font-size"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-form']",attrs:[{name:"custom-element",value:["amp-form"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-form-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"SCRIPT",selector:"script[custom-element='amp-image-lightbox']",deprecation:"amp-image-lightbox cannot be properly positioned in emails and will soon be invalid in AMP4EMAIL.",attrs:[{name:"custom-element",value:["amp-image-lightbox"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-image-lightbox-0.1.js","https://cdn.ampproject.org/v0/amp-image-lightbox-latest.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-IMAGE-LIGHTBOX",selector:"amp-image-lightbox",requiresExtension:["amp-image-lightbox"],attrs:[{name:"controls"},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-lightbox']",deprecation:"amp-lightbox cannot be properly positioned in emails and will soon be invalid in AMP4EMAIL.",attrs:[{name:"custom-element",value:["amp-lightbox"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-lightbox-0.1.js","https://cdn.ampproject.org/v0/amp-lightbox-latest.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-LIGHTBOX",selector:"amp-lightbox",requiresExtension:["amp-lightbox"],attrs:[{name:"animate-in",value:["fade-in","fly-in-bottom","fly-in-top"]},{name:"controls"},{name:"from"},{name:"[open]"},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-list']",attrs:[{name:"custom-element",value:["amp-list"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-list-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-LIST",selector:"amp-list",requiresExtension:["amp-list"],attrs:[{name:"binding",value:["always","no","refresh","refresh-evaluate"]},{name:"diffable",value:[""]},{name:"items"},{name:"max-items"},{name:"single-item"},{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"template"},{name:"xssi-prefix"},{name:"[is-layout-container]"},{name:"layout",value:["responsive","container","fill","fixed","fixed_height","flex_item","nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-template='amp-mustache']",attrs:[{name:"custom-template",value:["amp-mustache"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-mustache-0.1.js","https://cdn.ampproject.org/v0/amp-mustache-0.2.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"TEMPLATE",selector:"template",requiresExtension:["amp-mustache"],attrs:[{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"type",value:["amp-mustache"],required:!0}]},{name:"SCRIPT",selector:"script[custom-element='amp-selector']",attrs:[{name:"custom-element",value:["amp-selector"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-selector-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-SELECTOR",selector:"amp-selector",requiresExtension:["amp-selector"],attrs:[{name:"disabled",value:[""]},{name:"form"},{name:"keyboard-select-mode",value:["focus","none","select"]},{name:"multiple",value:[""]},{name:"[disabled]"},{name:"[selected]"},{name:"layout",value:["responsive","fill","fixed","fixed_height","nodisplay","container"],required:!0}],attrLists:["extended-amp-global","name-attr","$AMP_LAYOUT_ATTRS"]},{name:"$REFERENCE_POINT",selector:"amp-selector option",attrs:[{name:"disabled",value:[""]},{name:"option",required:!0},{name:"selected",value:[""]}]},{name:"$REFERENCE_POINT",selector:"amp-selector child",attrs:[]},{name:"SCRIPT",selector:"script[custom-element='amp-sidebar']",attrs:[{name:"custom-element",value:["amp-sidebar"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-SIDEBAR",selector:"amp-sidebar",requiresExtension:["amp-sidebar"],attrs:[{name:"side",value:["left","right"]},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-timeago']",attrs:[{name:"custom-element",value:["amp-timeago"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-timeago-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-TIMEAGO",selector:"amp-timeago",requiresExtension:["amp-timeago"],attrs:[{name:"cutoff",valueRegex:"\\d+"},{name:"datetime",valueRegex:"\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d(:[0-5]\\d(\\.\\d+)?)?(Z|[+-][0-1][0-9]:[0-5][0-9])",required:!0},{name:"locale"},{name:"[datetime]"},{name:"[title]"},{name:"layout",value:["responsive","fixed","fixed_height"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]}],n=[{name:"cite-attr",attrs:[{name:"cite",valueUrl:{protocol:["http","https"],allowEmpty:!0},disallowedValueRegex:"__amp_source_origin"}]},{name:"input-common-attr",attrs:[{name:"accept"},{name:"accesskey"},{name:"autocomplete"},{name:"checked"},{name:"disabled"},{name:"height"},{name:"max"},{name:"maxlength"},{name:"min"},{name:"minlength"},{name:"multiple"},{name:"pattern"},{name:"placeholder"},{name:"readonly"},{name:"required"},{name:"size"},{name:"spellcheck"},{name:"step"},{name:"tabindex"},{name:"value"},{name:"width"},{name:"[autocomplete]"},{name:"[checked]"},{name:"[disabled]"},{name:"[height]"},{name:"[max]"},{name:"[maxlength]"},{name:"[min]"},{name:"[minlength]"},{name:"[multiple]"},{name:"[pattern]"},{name:"[placeholder]"},{name:"[readonly]"},{name:"[required]"},{name:"[size]"},{name:"[spellcheck]"},{name:"[step]"},{name:"[value]"},{name:"[width]"}]},{name:"amphtml-engine-attrs",attrs:[{name:"async",value:[""],required:!0},{name:"crossorigin",value:["anonymous"]},{name:"type",value:["text/javascript"]}]},{name:"mandatory-src-amp4email",attrs:[{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|(.|\\s){{|}}(.|\\s)|^{{.*[^}][^}]$|^[^{][^{].*}}$|^}}|{{$|{{#|{{/|{{\\^"}]},{name:"extended-amp-global",attrs:[{name:"i-amphtml-layout",value:["container","fill","fixed","fixed-height","flex-item","fluid","intrinsic","nodisplay","responsive"]},{name:"media"},{name:"noloading",value:[""]}]},{name:"$AMP_LAYOUT_ATTRS",attrs:[{name:"disable-inline-width"},{name:"height"},{name:"heights"},{name:"layout"},{name:"sizes"},{name:"width"},{name:"[height]"},{name:"[width]"}]},{name:"nonce-attr",attrs:[]},{name:"common-extension-attrs",attrs:[{name:"async",value:[""],required:!0},{name:"crossorigin",value:["anonymous"]},{name:"type",value:["text/javascript"]}]},{name:"mandatory-id-attr",attrs:[{name:"id",required:!0,disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"}]},{name:"name-attr",attrs:[{name:"name",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"}]},{name:"$GLOBAL_ATTRS",attrs:[{name:"itemid"},{name:"itemprop"},{name:"itemref"},{name:"itemscope"},{name:"itemtype"},{name:"about"},{name:"content"},{name:"datatype"},{name:"inlist"},{name:"prefix"},{name:"property"},{name:"rel",disallowedValueRegex:"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)"},{name:"resource"},{name:"rev"},{name:"style"},{name:"typeof"},{name:"vocab"},{name:"accesskey"},{name:"class"},{name:"dir"},{name:"draggable"},{name:"hidden",value:[""]},{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"lang"},{name:"slot"},{name:"tabindex"},{name:"title"},{name:"translate"},{name:"aria-activedescendant"},{name:"aria-atomic"},{name:"aria-autocomplete"},{name:"aria-busy"},{name:"aria-checked"},{name:"aria-controls"},{name:"aria-current"},{name:"aria-describedby"},{name:"aria-disabled"},{name:"aria-dropeffect"},{name:"aria-expanded"},{name:"aria-flowto"},{name:"aria-grabbed"},{name:"aria-haspopup"},{name:"aria-hidden"},{name:"aria-invalid"},{name:"aria-label"},{name:"aria-labelledby"},{name:"aria-level"},{name:"aria-live"},{name:"aria-modal"},{name:"aria-multiline"},{name:"aria-multiselectable"},{name:"aria-orientation"},{name:"aria-owns"},{name:"aria-posinset"},{name:"aria-pressed"},{name:"aria-readonly"},{name:"aria-relevant"},{name:"aria-required"},{name:"aria-selected"},{name:"aria-setsize"},{name:"aria-sort"},{name:"aria-valuemax"},{name:"aria-valuemin"},{name:"aria-valuenow"},{name:"aria-valuetext"},{name:"on"},{name:"role"},{name:"placeholder",value:[""]},{name:"fallback",value:[""]},{name:"overflow"},{name:"amp-access"},{name:"amp-access-behavior"},{name:"amp-access-hide"},{name:"amp-access-id"},{name:"amp-access-loader"},{name:"amp-access-loading"},{name:"amp-access-off"},{name:"amp-access-on"},{name:"amp-access-show"},{name:"amp-access-style"},{name:"amp-access-template"},{name:"i-amp-access-id"},{name:"validation-for"},{name:"visible-when-invalid",value:["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"]},{name:"amp-fx",valueRegex:"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*"},{name:"subscriptions-action"},{name:"subscriptions-actions",value:[""]},{name:"subscriptions-decorate"},{name:"subscriptions-dialog",value:[""]},{name:"subscriptions-display"},{name:"subscriptions-lang"},{name:"subscriptions-section",value:["actions","content","content-not-granted","loading"]},{name:"subscriptions-service"},{name:"subscriptions-google-rtc"},{name:"next-page-hide"},{name:"next-page-replace"},{name:"[aria-activedescendant]"},{name:"[aria-atomic]"},{name:"[aria-autocomplete]"},{name:"[aria-busy]"},{name:"[aria-checked]"},{name:"[aria-controls]"},{name:"[aria-describedby]"},{name:"[aria-disabled]"},{name:"[aria-dropeffect]"},{name:"[aria-expanded]"},{name:"[aria-flowto]"},{name:"[aria-grabbed]"},{name:"[aria-haspopup]"},{name:"[aria-hidden]"},{name:"[aria-invalid]"},{name:"[aria-label]"},{name:"[aria-labelledby]"},{name:"[aria-level]"},{name:"[aria-live]"},{name:"[aria-multiline]"},{name:"[aria-multiselectable]"},{name:"[aria-orientation]"},{name:"[aria-owns]"},{name:"[aria-posinset]"},{name:"[aria-pressed]"},{name:"[aria-readonly]"},{name:"[aria-relevant]"},{name:"[aria-required]"},{name:"[aria-selected]"},{name:"[aria-setsize]"},{name:"[aria-sort]"},{name:"[aria-valuemax]"},{name:"[aria-valuemin]"},{name:"[aria-valuenow]"},{name:"[aria-valuetext]"},{name:"[class]"},{name:"[hidden]"},{name:"[text]"},{name:"i-amphtml-binding",value:[""]},{name:"autoscroll"}]},{name:"amp-carousel-common",attrs:[{name:"autoplay",valueRegex:"(|[0-9]+)"},{name:"controls"},{name:"delay",valueRegex:"[0-9]+"},{name:"loop",value:[""]},{name:"slide",valueRegex:"[0-9]+"},{name:"type",value:["carousel","slides"]},{name:"[slide]"}]}],r=[{name:"amp-accordion",versions:["0.1"]},{name:"amp-anim",versions:["0.1"]},{name:"amp-autocomplete",versions:["0.1"]},{name:"amp-bind",versions:["0.1"]},{name:"amp-carousel",versions:["0.1"]},{name:"amp-fit-text",versions:["0.1"]},{name:"amp-form",versions:["0.1"]},{name:"amp-image-lightbox",versions:["0.1","latest"]},{name:"amp-lightbox",versions:["0.1","latest"]},{name:"amp-list",versions:["0.1"]},{name:"amp-mustache",versions:["0.1","0.2"]},{name:"amp-selector",versions:["0.1"]},{name:"amp-sidebar",versions:["0.1"]},{name:"amp-timeago",versions:["0.1"]}],m=[{name:"-moz-appearance"},{name:"-webkit-appearance"},{name:"-webkit-tap-highlight-color"},{name:"align-content"},{name:"align-items"},{name:"align-self"},{name:"appearance"},{name:"aspect-ratio"},{name:"azimuth"},{name:"background"},{name:"background-attachment"},{name:"background-blend-mode"},{name:"background-clip"},{name:"background-color"},{name:"background-image"},{name:"background-origin"},{name:"background-position"},{name:"background-repeat"},{name:"background-size"},{name:"border"},{name:"border-bottom"},{name:"border-bottom-color"},{name:"border-bottom-left-radius"},{name:"border-bottom-right-radius"},{name:"border-bottom-style"},{name:"border-bottom-width"},{name:"border-collapse"},{name:"border-color"},{name:"border-left"},{name:"border-left-color"},{name:"border-left-style"},{name:"border-left-width"},{name:"border-radius"},{name:"border-right"},{name:"border-right-color"},{name:"border-right-style"},{name:"border-right-width"},{name:"border-spacing"},{name:"border-style"},{name:"border-top"},{name:"border-top-color"},{name:"border-top-left-radius"},{name:"border-top-right-radius"},{name:"border-top-style"},{name:"border-top-width"},{name:"border-width"},{name:"bottom"},{name:"box-shadow"},{name:"box-sizing"},{name:"break-after"},{name:"break-before"},{name:"break-inside"},{name:"caption-side"},{name:"caret-color"},{name:"clear"},{name:"color"},{name:"color-adjust"},{name:"column-count"},{name:"column-fill"},{name:"column-gap"},{name:"column-rule"},{name:"column-rule-color"},{name:"column-rule-style"},{name:"column-rule-width"},{name:"column-span"},{name:"column-width"},{name:"columns"},{name:"counter-increment"},{name:"counter-reset"},{name:"cursor",value:["initial","pointer"]},{name:"direction"},{name:"display"},{name:"elevation"},{name:"empty-cells"},{name:"filter",valueRegex:"^ *((blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(([^() ]*|(rgb|rgba|hsl|hsla)\\([^()]*\\))( +([^() ]*|(rgb|rgba|hsl|hsla)\\([^()]*\\)))*\\) *)*$"},{name:"flex"},{name:"flex-basis"},{name:"flex-direction"},{name:"flex-flow"},{name:"flex-grow"},{name:"flex-shrink"},{name:"flex-wrap"},{name:"float"},{name:"font"},{name:"font-family"},{name:"font-feature-settings"},{name:"font-kerning"},{name:"font-size"},{name:"font-size-adjust"},{name:"font-stretch"},{name:"font-style"},{name:"font-synthesis"},{name:"font-variant"},{name:"font-variant-alternates"},{name:"font-variant-caps"},{name:"font-variant-east-asian"},{name:"font-variant-ligatures"},{name:"font-variant-numeric"},{name:"font-variation-settings"},{name:"font-weight"},{name:"gap"},{name:"grid"},{name:"grid-area"},{name:"grid-auto-columns"},{name:"grid-auto-flow"},{name:"grid-auto-rows"},{name:"grid-column"},{name:"grid-column-end"},{name:"grid-column-start"},{name:"grid-row"},{name:"grid-row-end"},{name:"grid-row-start"},{name:"grid-template"},{name:"grid-template-areas"},{name:"grid-template-columns"},{name:"grid-template-rows"},{name:"height"},{name:"hyphens"},{name:"image-orientation"},{name:"image-resolution"},{name:"inline-size"},{name:"isolation"},{name:"justify-content"},{name:"justify-items"},{name:"justify-self"},{name:"left"},{name:"letter-spacing"},{name:"line-break"},{name:"line-height"},{name:"list-style"},{name:"list-style-position"},{name:"list-style-type"},{name:"margin"},{name:"margin-bottom"},{name:"margin-left"},{name:"margin-right"},{name:"margin-top"},{name:"max-height"},{name:"max-width"},{name:"min-height"},{name:"min-width"},{name:"mix-blend-mode"},{name:"object-fit"},{name:"object-position"},{name:"offset-distance"},{name:"opacity"},{name:"order"},{name:"outline"},{name:"outline-color"},{name:"outline-offset"},{name:"outline-style"},{name:"outline-width"},{name:"overflow"},{name:"overflow-wrap"},{name:"overflow-x"},{name:"overflow-y"},{name:"padding"},{name:"padding-bottom"},{name:"padding-left"},{name:"padding-right"},{name:"padding-top"},{name:"pause"},{name:"pause-after"},{name:"pause-before"},{name:"perspective"},{name:"perspective-origin"},{name:"pitch"},{name:"pitch-range"},{name:"place-items"},{name:"position"},{name:"quotes"},{name:"resize"},{name:"richness"},{name:"right"},{name:"row-gap"},{name:"speak"},{name:"speak-header"},{name:"speak-numeral"},{name:"speak-punctuation"},{name:"speech-rate"},{name:"stress"},{name:"table-layout"},{name:"text-align"},{name:"text-align-last"},{name:"text-combine-upright"},{name:"text-decoration"},{name:"text-decoration-color"},{name:"text-decoration-line"},{name:"text-decoration-skip"},{name:"text-decoration-style"},{name:"text-emphasis"},{name:"text-emphasis-color"},{name:"text-emphasis-position"},{name:"text-emphasis-style"},{name:"text-indent"},{name:"text-justify"},{name:"text-orientation"},{name:"text-overflow"},{name:"text-shadow"},{name:"text-transform"},{name:"text-underline-position"},{name:"top"},{name:"transform"},{name:"transform-box"},{name:"transform-origin"},{name:"transform-style"},{name:"transition",valueRegex:"^ *((initial|unset)|(((none|offset-distance|opacity|transform|visibility)( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms)( *(linear|(ease|ease-in|ease-out|ease-in-out|cubic-bezier\\( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(, *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?){3} *\\))|(step-start|step-end|steps\\( *(|-|\\+)[0-9]+(, *(jump-start|jump-end|jump-none|jump-both|start|end))? *\\)))( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms))?)?)?)(, *((none|offset-distance|opacity|transform|visibility)( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms)( *(linear|(ease|ease-in|ease-out|ease-in-out|cubic-bezier\\( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(, *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?){3} *\\))|(step-start|step-end|steps\\( *(|-|\\+)[0-9]+(, *(jump-start|jump-end|jump-none|jump-both|start|end))? *\\)))( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms))?)?)?))*)) *$"},{name:"transition-delay"},{name:"transition-duration"},{name:"transition-property",valueRegex:"^ *(initial|unset|(none|offset-distance|opacity|transform|visibility)(, *(none|offset-distance|opacity|transform|visibility))*) *$"},{name:"transition-timing-function"},{name:"unicode-bidi"},{name:"vertical-align"},{name:"visibility",value:["hidden","initial","visible"]},{name:"voice-family"},{name:"white-space"},{name:"width"},{name:"word-break"},{name:"word-spacing"},{name:"word-wrap"},{name:"writing-mode"},{name:"z-index",valueRegex:"([-+]?0)|([-+]?100)|([-+]?[1-9][0-9]?)"}],i={tags:a,attrLists:n,extensions:r,declarations:m};t.default=i});
|
|
2
2
|
|
|
3
|
-
__emailmaker__.define("static/core/
|
|
3
|
+
__emailmaker__.define("static/core/e8fa95c8.js",["require","exports","module","static/core/5dc34752.js","static/core/25b4c1c1.js","static/core/213ffad0.js","vite/preload-helper"],function(R,C,Ae){const ge=R("./5dc34752.js"),d=R("./25b4c1c1.js"),E=R("./213ffad0.js");let G=R("vite/preload-helper");function D(e){let t=e.documentElement;return t||(t=e.createElement("html"),e.appendChild(t)),t}function P(e){let t=e.head;if(!t){t=e.createElement("head");const i=D(e);i.insertBefore(t,i.firstChild)}return t}function I(e){const t=Object.create(null),i=e.getAttributeNames();for(const r of i)t[r]=e.getAttribute(r);return t}function Y(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}function J(e){const t=P(e);if(!e.querySelector("style[amp4email-boilerplate]")){const i=e.createElement("style");i.setAttribute("amp4email-boilerplate",""),i.innerHTML="body{visibility:hidden}",t.prepend(i)}}function K(e){const t=e.querySelector("style[amp4email-boilerplate]");t&&t.remove()}var q="amp-custom";function Q(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}function H(e,t,i){for(const r of t)if(d.css.isStyleRule(r)){const l=r.selectorText.split(/\+>~/).flatMap(s=>s.trim().split(" "));if(l.length===1&&l[0].trim().startsWith(".em-")){for(const s of r.style)if(r.style.getPropertyPriority(s)==="important"){for(const o of e.querySelectorAll(r.selectorText))if(d.isHtmlElement(o)){const u=o.style;for(const c of[...u])if(c.startsWith(s)){const g=i(c,u.getPropertyValue(c)),x=o.getAttribute("class");o.setAttribute("class",x?`${g} ${x}`:g),u.removeProperty(c)}}}}}else d.css.isMediaRule(r)&&H(e,r.cssRules,i)}function U(e,t){const i=t.sheet;if(i){const s=new Set;H(e,i.cssRules,(o,u)=>{const c=Q(o,u),g=[...i.cssRules],x=`.${c} { ${o}: ${u} }`;return!g.find(v=>d.css.isStyleRule(v)&&v.selectorText===`.${c}`)&&!s.has(x)&&(s.add(x),t.innerHTML=`
|
|
4
4
|
.${c} { ${o}: ${u} };
|
|
5
5
|
${t.innerHTML}`),c}),s.size&&(t.innerHTML=`
|
|
6
6
|
${[...s].join(`
|
|
7
7
|
`)};
|
|
8
8
|
${t.innerHTML}`)}const r=t.innerHTML,l=r.replace(/!important/g,"");r!==l&&(t.innerHTML=l)}function X(e){const t=P(e),i=e.querySelectorAll('link[rel="stylesheet"]'),r=[...e.querySelectorAll("style")].filter(s=>!s.hasAttribute("amp4email-boilerplate"));if(r.length===1){const s=r[0];if(s.parentElement===t&&s.getAttribute(q)===""){U(e,s);return}}const l=[];for(const s of r)l.push(s.innerHTML),s.remove();if(l.length){const s=e.createElement("style");s.innerHTML=`
|
|
9
9
|
${l.join("")}
|
|
10
|
-
`,s.setAttribute(q,""),t.append(s),U(e,s)}for(const s of i)s.remove()}function Z(e){const t=e.querySelector(`style[${q}]`);t&&t.removeAttribute(q)}var ee='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',j="<!doctype html>";function te(e){const t=e.doctype;if(t){if(d.getDocType(t)===j)return;const i=new DOMParser().parseFromString(j,"text/html").doctype;e.replaceChild(i,t)}else{const i=new DOMParser().parseFromString(j,"text/html").doctype;e.insertBefore(i,e.firstChild)}}function se(e){const t=e.doctype;if(t&&d.getDocType(t).toLowerCase()===j){const i=new DOMParser().parseFromString(ee,"text/html").doctype;e.replaceChild(i,t)}}async function B(e,t={}){const i=document.createElement("amp-img"),r=await d.getComputedStyleAsync(e)||void 0,l=[];try{let s=e;for(;s&&d.isHtmlElement(s);)getComputedStyle(s)?.display==="none"&&(s.style.display="initial",l.push([s,s.style.display])),s=s.parentElement;const o=r?.height?`${parseInt(r.height)}`:"",u=r?.width?`${parseInt(r.width)}`:"",c=Y(e);let g=!1;if(c){const v=c.getAttribute("width");try{let $=u?`${u}px`:"";v||(c.setAttribute("width","720px"),$=getComputedStyle(e).width||""),c.setAttribute("width",!v||parseInt(v)>320?"320px":"720px"),$!==(getComputedStyle(e).width||"")&&(g=!0)}finally{v&&c.setAttribute("width",v||"")}}const
|
|
11
|
-
`))}}}function fe(e,t){const i=e.querySelectorAll("*"),r=e.querySelectorAll(t.replaceSelectors("script[src]"));for(const l of r)l.getAttribute("src")?.startsWith("https://cdn.ampproject.org/v0")&&l.remove();for(const l of i)E.isAmpElement(l)&&l.tagName!=="FORM"&&l.remove()}var W=void 0;async function M(){return W||(W=await(0,G.__vitePreload)(()=>Promise.resolve().then(()=>R("./a54d9b28.js")).then(e=>e.default),void 0,{}.url))}var _=new Map;async function ue(){if(!_.size){const e=await M(),t=e.tags;for(let i=0;i<t.length;i++){const r=t[i],{selector:l,attrs:s,attrLists:o}=r,u=o?.flatMap(c=>e.attrLists.filter(({name:g})=>g===c).flatMap(g=>g.attrs))||[];_.set(l,{...r,priority:i,attrs:new Map([...s,...u].map(c=>[c.name,c]))})}}return _}var N=new Map;async function me(){if(!N.size){const e=await M();for(const t of e.declarations)N.set(t.name,t)}return N}var pe="$GLOBAL_ATTRS",O=new Map;async function de(){if(!O.size){const e=(await M()).attrLists.find(t=>t.name===pe)?.attrs;if(e)for(const t of e)O.set(t.name,t)}return O}function F(e,t,i){if(!t)return;function r(){const s=t.compareDocumentPosition(e);if(!(s&8)){if(s&2)return t.insertBefore(e,t.firstChild),!0;if(s&4)return t.appendChild(e),!0}return!1}function l(){const s=[...e.childNodes];for(let o=s.length-1;o>=0;o--)F(s[o],t,i)}if(d.isElement(e))switch(e.tagName.toLowerCase()){case"body":return;case i("script"):case"style":case"meta":case"title":return;case"head":case"html":l();break;default:r()||l()}else d.isDocument(e)?l():d.isTextNode(e)&&(e.textContent?.trim()||e.nextSibling?.textContent?.trim()&&d.isTextNode(e.nextSibling))&&r()}async function k(e,t){const i=new Set,r=t.commit,l=a=>t.replaceSelectors(a.toLowerCase());if(t.replaceImages&&await ie(e,r),t.injectExtensions){const a=t.replaceSelectors(E.AMP_BASE_SELECTOR);if(!e.querySelector(a)){const p=t.createElementFn("script");p.setAttribute("src",E.AMP_BASE_SCRIPT),p.setAttribute("async",""),P(e).appendChild(p),r?.()}}t.injectRequiredTags&&(oe(e,t.createElementFn,l),te(e),J(e),le(e),r?.()),t.replaceStylesAndLinks&&(X(e),r?.());const s=await M(),o=await ue(),u=new Set(t.removeUnsupportedTags?e.querySelectorAll("*"):[]),c=new Map;for(let[a,p]of o)if(!p.deprecation){a=l(a);let y=[...e.querySelectorAll(a)].filter(A=>!c.has(A));p.unique&&y.length&&(y=[y[0]]),t.injectRequiredTags&&p.required&&!y.length&&(y=[...y,t.createElementFn(p.name)]);for(const A of y){if(t.injectRequiredAttributes&&A.getAttribute("on")&&!A.getAttribute("tabindex")&&A.setAttribute("tabindex","0"),t.removeUnsupportedStyles){let b=!1;for(const
|
|
10
|
+
`,s.setAttribute(q,""),t.append(s),U(e,s)}for(const s of i)s.remove()}function Z(e){const t=e.querySelector(`style[${q}]`);t&&t.removeAttribute(q)}var ee='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',j="<!doctype html>";function te(e){const t=e.doctype;if(t){if(d.getDocType(t)===j)return;const i=new DOMParser().parseFromString(j,"text/html").doctype;e.replaceChild(i,t)}else{const i=new DOMParser().parseFromString(j,"text/html").doctype;e.insertBefore(i,e.firstChild)}}function se(e){const t=e.doctype;if(t&&d.getDocType(t).toLowerCase()===j){const i=new DOMParser().parseFromString(ee,"text/html").doctype;e.replaceChild(i,t)}}async function B(e,t={}){const i=document.createElement("amp-img"),r=await d.getComputedStyleAsync(e)||void 0,l=[];try{let s=e;for(;s&&d.isHtmlElement(s);)getComputedStyle(s)?.display==="none"&&(s.style.display="initial",l.push([s,s.style.display])),s=s.parentElement;const o=r?.height?`${parseInt(r.height)}`:"",u=r?.width?`${parseInt(r.width)}`:"",c=Y(e);let g=!1;if(c){const v=c.getAttribute("width");try{let $=u?`${u}px`:"";v||(c.setAttribute("width","720px"),$=getComputedStyle(e).width||""),c.setAttribute("width",!v||parseInt(v)>320?"320px":"720px"),$!==(getComputedStyle(e).width||"")&&(g=!0)}finally{v&&c.setAttribute("width",v||"")}}const x=e.src||e.srcset.split(",")[0];e.style.width==="100%"&&e.style.removeProperty("width"),e.style.maxWidth==="100%"&&e.style.removeProperty("max-width"),t={...I(e),alt:e.alt,width:u,height:o,src:x,layout:g?"responsive":"fixed",...t};for(const v of Object.keys(t))d.setAttributeSafe(i,v,t[v])}finally{for(const[s,o]of l)s.style.display=o}return i}function re(e){const t=document.createElement("img"),{layout:i,height:r,...l}=I(e),s=i==="responsive";for(const o of Object.keys(l))d.setAttributeSafe(t,o,l[o]);return s&&(t.style.maxWidth=l.width||"0px",t.style.width="100%"),t}async function ie(e,t){const i=[...e.querySelectorAll("img")],r=[];for(const s of i)r.push(B(s).then(o=>[s,o],()=>[s,void 0]));const l=[...e.querySelectorAll("picture")];for(const s of l){const o=s.querySelector("img");o?r.push(B(o).then(u=>[s,u],()=>[s,void 0])):r.push([s,void 0])}if(r.length){const s=await Promise.all(r);for(const[o,u]of s)u?o.replaceWith(u):o.remove();t?.()}}function ne(e,t){const i=[...e.querySelectorAll("amp-img")];for(const r of i)r.replaceWith(re(r));i.length&&t?.()}function le(e){const t=e.querySelectorAll("meta");for(const l of t){const s=l.getAttribute("charset");if(s){s!=="utf-8"&&l.setAttribute("charset","utf-8");return}}const i=P(e),r=e.createElement("meta");r.setAttribute("charset","utf-8"),i.insertBefore(r,i.firstChild)}function oe(e,t,i){const r=i('script:not([type="application/ld+json"])'),l=e.querySelectorAll(r);for(const s of l)!s.getAttribute("src")?.startsWith("https://cdn.ampproject.org/")&&!(s.closest("amp-state")&&s.getAttribute("type")==="application/json")&&s.remove()}function ce(e,t){return`${E.AMP_SCRIPTS_PATH}/${e.toLowerCase()}-${t}.js`}async function ae(e,t,i){for(const{name:r,versions:l}of t){const s=i.replaceSelectors(r==="amp-mustache"?`script[async][custom-template='${r}']`:`script[async][custom-element='${r}']`);if(!e.querySelector(s)){const o=P(e),u=i.createElementFn("script"),c=ce(r,l.findLast(g=>g!=="latest")||"v0");u.setAttribute("async",""),u.setAttribute(r==="amp-mustache"?"custom-template":"custom-element",r),u.setAttribute("src",c),o.appendChild(u),o.appendChild(e.createTextNode(`
|
|
11
|
+
`))}}}function fe(e,t){const i=e.querySelectorAll("*"),r=e.querySelectorAll(t.replaceSelectors("script[src]"));for(const l of r)l.getAttribute("src")?.startsWith("https://cdn.ampproject.org/v0")&&l.remove();for(const l of i)E.isAmpElement(l)&&l.tagName!=="FORM"&&l.remove()}var W=void 0;async function M(){return W||(W=await(0,G.__vitePreload)(()=>Promise.resolve().then(()=>R("./a54d9b28.js")).then(e=>e.default),void 0,{}.url))}var _=new Map;async function ue(){if(!_.size){const e=await M(),t=e.tags;for(let i=0;i<t.length;i++){const r=t[i],{selector:l,attrs:s,attrLists:o}=r,u=o?.flatMap(c=>e.attrLists.filter(({name:g})=>g===c).flatMap(g=>g.attrs))||[];_.set(l,{...r,priority:i,attrs:new Map([...s,...u].map(c=>[c.name,c]))})}}return _}var N=new Map;async function me(){if(!N.size){const e=await M();for(const t of e.declarations)N.set(t.name,t)}return N}var pe="$GLOBAL_ATTRS",O=new Map;async function de(){if(!O.size){const e=(await M()).attrLists.find(t=>t.name===pe)?.attrs;if(e)for(const t of e)O.set(t.name,t)}return O}function F(e,t,i){if(!t)return;function r(){const s=t.compareDocumentPosition(e);if(!(s&8)){if(s&2)return t.insertBefore(e,t.firstChild),!0;if(s&4)return t.appendChild(e),!0}return!1}function l(){const s=[...e.childNodes];for(let o=s.length-1;o>=0;o--)F(s[o],t,i)}if(d.isElement(e))switch(e.tagName.toLowerCase()){case"body":return;case i("script"):case"style":case"meta":case"title":return;case"head":case"html":l();break;default:r()||l()}else d.isDocument(e)?l():d.isTextNode(e)&&(e.textContent?.trim()||e.nextSibling?.textContent?.trim()&&d.isTextNode(e.nextSibling))&&r()}async function k(e,t){const i=new Set,r=t.commit,l=a=>t.replaceSelectors(a.toLowerCase());if(t.replaceImages&&await ie(e,r),t.injectExtensions){const a=t.replaceSelectors(E.AMP_BASE_SELECTOR);if(!e.querySelector(a)){const p=t.createElementFn("script");p.setAttribute("src",E.AMP_BASE_SCRIPT),p.setAttribute("async",""),P(e).appendChild(p),r?.()}}t.injectRequiredTags&&(oe(e,t.createElementFn,l),te(e),J(e),le(e),r?.()),t.replaceStylesAndLinks&&(X(e),r?.());const s=await M(),o=await ue(),u=new Set(t.removeUnsupportedTags?e.querySelectorAll("*"):[]),c=new Map;for(let[a,p]of o)if(!p.deprecation){a=l(a);let y=[...e.querySelectorAll(a)].filter(A=>!c.has(A));p.unique&&y.length&&(y=[y[0]]),t.injectRequiredTags&&p.required&&!y.length&&(y=[...y,t.createElementFn(p.name)]);for(const A of y){if(t.injectRequiredAttributes&&A.getAttribute("on")&&!A.getAttribute("tabindex")&&A.setAttribute("tabindex","0"),t.removeUnsupportedStyles){let b=!1;for(const w of[...A.classList])w.startsWith("i-amphtml")&&(b=!0,A.classList.remove(w));b&&!A.classList.length&&A.removeAttribute("class")}const S=c.get(A);S&&S.priority>p.priority||c.set(A,p)}}r?.();for(const[a,p]of c){if(t.injectExtensions&&p.requiresExtension)for(const S of p.requiresExtension)i.add(S);const y=p.requiredParent?p.requiredParent==="$ROOT"?e:e.querySelector(p.requiredParent):null;y&&(!a.parentNode||t.moveInvalidTagPosition)?y!==a.parentNode&&(p.name==="HEAD"||d.isElement(y)&&y.tagName==="HEAD"?y.insertBefore(a,y.firstChild):y.appendChild(a)):a.parentNode||e.body.appendChild(a),t.removeUnsupportedTags&&u.delete(a),r?.();const A=await de();if(t.removeUnsupportedAttributes||t.injectRequiredAttributes){const S=p.attrs,b=t.injectRequiredAttributes?new Set([...S].map(([n,m])=>m).filter(n=>n.required&&n.value)):void 0,w=a.getAttributeNames();for(const n of w){const m=S.get(n)||A.get(n);if(m){if(n==="id"||n==="class"||n==="style"){b?.delete(m);continue}if(t.removeUnsupportedAttributes){const f=a.getAttribute(n);if(m.value&&m.value.indexOf(f)<0){a.removeAttribute(n);continue}if(m.valueRegex&&!new RegExp(m.valueRegex).test(f)){a.removeAttribute(n);continue}if(m.disallowedValueRegex&&new RegExp(m.disallowedValueRegex).test(f)){a.removeAttribute(n);continue}const h=m.valueUrl;if(h){if(f===""){if(!h.allowEmpty){a.removeAttribute(n);continue}}else if(!(f.indexOf("<!--")>0&&f.indexOf("-->")>0)){if(!h.allowRelative)if(f.startsWith("#")||f.startsWith("/")){a.removeAttribute(n);continue}else{const T=h.protocol.length?h.protocol:["https"],V=f.substring(0,f.indexOf(":"));if(V){if(T.indexOf(V)<0){const L=T[0]+f.substring(f.indexOf(":"));if(URL.canParse(L))d.setAttributeSafe(a,n,L);else{a.removeAttribute(n);continue}}else if(!URL.canParse(f)){a.removeAttribute(n);continue}}else{const L=T[0]+f;if(URL.canParse(L))d.setAttributeSafe(a,n,L);else{a.removeAttribute(n);continue}}}}}}b?.delete(m)}else{if(n==="id"||n==="class"||n==="style")continue;t.removeUnsupportedAttributes&&a.removeAttribute(n)}}if(b)for(const n of b)d.setAttributeSafe(a,n.name,n.value[0])}r?.()}t.moveInvalidTagPosition&&(F(e,e.body,l),r?.());for(const a of u)a.remove();if(r?.(),t.removeUnsupportedStyles){let y=function(n){const m=n.cssText.replaceAll(/\".*\"/g,"").replaceAll(/\'.*\'/g,"").replaceAll(/\/\*.*\*\/|(-moz-|-ms-|-o-|-webkit-)+\w+(?=:)/g,"").match(/[a-z-]+(?=:[^before|after|hover])/gi)||[];for(const f of m){if(!f)continue;const h=n.getPropertyValue(f);n.getPropertyPriority(f)==="important"&&n.setProperty(f,h);const T=p.get(f);T?T.value?T.value.indexOf(h)<0&&n.removeProperty(f):T.valueRegex&&(new RegExp(T.valueRegex).test(h)||n.removeProperty(f)):n.removeProperty(f)}r?.()},A=function(n){return n.constructor.name==="CSSStyleRule"},S=function(n){return n.constructor.name==="CSSMediaRule"},b=function(n){const m=n.cssRules;for(let f=m.length-1;f>=0;f--){const h=m[f];A(h)?h.selectorText.indexOf("[")>=0||h.selectorText.indexOf(":")>=0?n.deleteRule(f):(y(h.style),h.style.cssText||n.deleteRule(f)):S(h)?(b(h),h.cssRules.length||n.deleteRule(f)):n.deleteRule(f)}};var g=y,x=A,v=S,$=b;const a=e.querySelectorAll("*"),p=await me();for(const n of a)if(d.isHtmlElement(n)){const m=n.getAttribute("style");m&&(y(n.style),n.style.length?n.style.cssText!==m&&n.setAttribute("style",n.style.cssText):n.removeAttribute("style"))}const w=e.querySelector("style[amp-custom]");if(w){const n=w.sheet;n&&(b(n),w.innerHTML=[...n.cssRules].map(m=>m.cssText).join(`
|
|
12
12
|
`)),r?.()}}await ae(e,s.extensions.filter(({name:a})=>i.has(a)),t)}function z(e,t){return Object.keys(t).reduce((i,r)=>i.replaceAll(r,t[r]),e)}function ye(e,t={}){const{correct:i=!0,injectExtensions:r=!0,mappedTags:l={}}=t;return k(e,{replaceImages:i,replaceStylesAndLinks:i,injectRequiredTags:i,injectExtensions:r,formsAsAmpForms:r,injectRequiredAttributes:i,moveInvalidTagPosition:i,removeUnsupportedTags:i,removeUnsupportedAttributes:i,removeUnsupportedStyles:i,createElementFn:s=>e.createElement(l[s.toLowerCase()]||s),replaceSelectors:s=>z(s.toLowerCase(),l),commit:t.commit})}function he(e,t={}){const{correct:i=!0,removeExtensions:r=!0,mappedTags:l={}}=t,s=t.commit,o=c=>e.createElement(l[c.toLowerCase()]||c),u=c=>z(c,l);if(i){ne(e),se(e),Z(e),K(e);const c=D(e);c.removeAttribute("⚡4email"),c.removeAttribute("data-css-strict"),s?.()}r&&(fe(e,{formsAsAmpForms:t.removeExtensions,createElementFn:o,replaceSelectors:u}),s?.())}C.amp2html=he,C.applyAMPRules=k,C.html2amp=ye,C.isAmpElement=E.isAmpElement,C.isAmpScript=E.isAmpScript});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__emailmaker__.define("static/core/e90908e7.js",["require","exports","module","static/core/5dc34752.js","static/core/c9d6507f.js","static/core/25b4c1c1.js","react","react/jsx-runtime","__delivery__/libs"],function(S,ae,he){const K=S("./5dc34752.js"),re=S("./c9d6507f.js"),e=S("./25b4c1c1.js");let n=S("react");n=K.__toESM(n);let I=S("react/jsx-runtime"),N=S("__delivery__/libs");var a=K.__toESM(e.require_prop_types()),x=new WeakMap;function ce(t,B){const E=(x.get(t)??Promise.resolve()).then(B,B);return x.set(t,E.catch(()=>{})),E}var G=({block:t=null,isEditableRights:B,rightCol:E,autoSaveBlockResult:le,disabled:de,ownsDocument:V=!1})=>{const{__:c}=e.useI18n(),{blockId:b}=e.useRouteParams(),C=e.useEditorProjectId();let ue=e.useSelector(e.selectIsCodeMode$1),fe=e.useSelector(e.selectIsCodeMode$1),me=e.useDispatch();const r=e.useNotification(),_=e.useContentReader(),{document:R}=e.useDocumentSessionContext(),H=e.useStore(),$=e.useSendPostMessage(),[U,Y]=(0,n.useState)(!1),[_e,pe]=(0,n.useState)(null),[ge,l]=(0,n.useState)(!1),[p,j]=(0,n.useState)(!1),Se=e.usePushToDataLayer(),Q=e.useEventEmitter(re.events.ON_BLOCK_SAVEBUTTON_CLICK_ID);(0,n.useEffect)(()=>{window?.navigator?.userAgent.includes("Macintosh")&&pe(!0)},[]);const{data:k,refetch:q}=e.useGetProjectQuery(+C,{skip:!+C}),[F]=e.useAddTermMutation(),[M,P]=e.useEditBlockMutation(),[W,v]=e.useAddBlockMutation(),[X]=e.useEditProjectMutation(),{data:z}=e.useGetTermsQuery({project:k,kind:e.BLOCK_TAGS},{skip:!k?.id}),L=(0,n.useCallback)(o=>{if(l(!0),!B&&t.lock&&p){r.error({id:"BLOCK_ACCESS_TO_LOCKED_ERROR",title:c("No access to edit the letter."),data:e.getBlockDesc(t)}),l(!1);return}if((t.tags?.length||t.blocktags?.length)>10&&p){r.error({id:"BLOCK_TOO_MANY_TAGS_ERROR",title:c("Maximum 10 tags available."),data:e.getBlockDesc(t)}),l(!1);return}if(t.type===""){r.error({title:c("Set the type"),description:c("Please set the 'Type' field in the Settings section.")}),l(!1);return}const d=h=>{const Z=t.tags?.map(i=>{const g=z?.find(u=>u.name===i);return g?g.id:F({project:k,kind:e.BLOCK_TAGS,name:i,parent:h}).then(({error:u,data:y})=>{if(u?.status===400)return e.existingTermIdFromError(u);if(y)return y.id;u&&(r.fromError("TAG_CREATING_ERROR",i,u),l(!1))})}),f=V&&R?R:void 0,ee=(i=null)=>{let g=null;const u=f?.get().version,y=f?f.get().serverId==null:!!t?.isNew,se=f?.get().serverId??t?.id,oe=s=>{const m=s?.id;f&&u!==void 0&&f.markSaved(u,y&&m!=null?String(m):void 0),H.dispatch(e.taxonomiesApi.endpoints.getTerms.initiate({project:k,kind:e.BLOCK_TAGS})),q(),s.global_block&&s.id&&$({operation:e.EVENT_TYPES.SANDBOX_EBLOCK_SET_EM_BLOCK_ID,settings:{emBlockId:String(s.id),...g?{emBlockVersion:g}:{}}}),p&&(r.success({id:"BLOCK_EDITING_SUCCESS",title:c("The block was successfully saved."),data:e.getBlockDesc(t)}),l(!1)),fetch(e.blockPreviewHref(e.BLOCK,C,s.id,s.modified),{mode:"no-cors"}).then(()=>{})},ne=e.getTaxonomy(t,e.EMAIL_TAGS).filter(s=>(i||t.blocktags).includes(s.id)).map(s=>s.name);if(y){if(v.status!=="pending")return W({source:o,title:t.title===null?c("New block title"):t.title,project:t.project,type:t.type?t.type:"Other",description:t.description,html:_(),blocktags:i?i.join(","):t.blocktags,tags:ne,...e.hasOwnMeta(t)?{meta:t.meta}:{}}).then(async({data:s,error:m})=>{if(m)r.fromError("BLOCK_CREATING_ERROR",{title:t.title,html:_()},m),l(!1);else{let A=s;const T=_();if(s?.global_block&&s?.id&&T){const O=new Date,ie=e.injectEmBlockIdIntoBlockHtml(T,String(s.id),O);if(g=e.formatEmBlockVersion(O),ie!==T){const D=await M({blockId:s.id,html:ie});!D.error&&D.data&&(A=D.data)}}oe(A)}})}else if(P.status!=="pending"){const s=_(),m=new Date,A=t.global_block?e.injectEmBlockIdIntoBlockHtml(s,String(se),m):s;return t.global_block&&(g=e.formatEmBlockVersion(m)),M({blockId:se,source:o,title:t.title,project:t.project,type:t.type?t.type:"Other",description:t.description,html:A,blocktags:i||t.blocktags,tags:ne,...e.hasOwnMeta(t)?{meta:t.meta}:{}}).then(({data:T,error:O})=>{O&&p?(r.fromError("BLOCK_EDITING_ERROR",e.getBlockDesc(t),O),l(!1)):oe(T)})}return Promise.resolve()},te=i=>f?ce(f,()=>ee(i)):ee(i);Z?Promise.all(Z).then(i=>te(i)):te(null)};l(!0),d(void 0)},[v.status,W,P.status,M,t,B,F,X,C,c,p,_,r,z,q,H,$,V,R]);(0,n.useEffect)(()=>{if(p){const o=L;Q.fire({...t,html:_()}).then(d=>{d.every(h=>h!==!1)&&o()}).catch(d=>r.fromError("SAVE_BUTTON_CLICK_EVENT_ERROR",e.getBlockDesc(t),d,!0)),j(!1)}},[p,L,Q,t,_,r]);const w=(0,n.useCallback)(o=>{(o.ctrlKey||o.metaKey)&&o.keyCode===83&&(o.preventDefault(),j(!0))},[]);(0,n.useEffect)(()=>(document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}),[w]);const Ee=(0,n.useCallback)(o=>{const d=o.data.operation,h=o.data.action;d===e.EVENT_TYPES.APPLICATION_ACTION&&h==="save_email"&&j(!0)},[]);e.useListenPostMessage(Ee),(0,n.useEffect)(()=>{v.isError&&(l(!1),r.error(v))},[me,v]),(0,n.useEffect)(()=>{const o=setTimeout(()=>{Y(!0)},1e4);return()=>{clearTimeout(o)}},[]),(0,n.useEffect)(()=>{t.isNew&&!b&&U&&(L(),Y(!1))},[U,t,L,b]);const ve=P.isLoading||X.isLoading||v.isLoading||ge,J=!!le?.isLoading,Be=ve||J;return(0,I.jsx)(N.ui_kit$Tooltip,{title:c(_e?"Save by ⌘S":"Save by Ctrl+S"),placement:E?"right":"bottomRight",children:(0,I.jsx)("span",{className:"em-analytics__block-save-tooltip-target",children:(0,I.jsx)(N.ui_kit$Button,{type:"primary",block:E,disabled:de||J,className:"em-analytics__block-save",icon:(0,I.jsx)(e.EmIcons,{icon:"SaveOutlined",component:N.icons$SaveOutlined}),onClick:o=>{const d=o.currentTarget;Se({event:"click",action:"save_block"}),j(!0);try{d?.blur?.()}catch{}},loading:Be,children:E||ue||fe?"":c("Save")})})})};G.propTypes={block:a.default.shape({id:a.default.string,isNew:a.default.bool,lock:a.default.bool,type:a.default.string,html:a.default.string,description:a.default.string,project:a.default.number,title:a.default.string}),isEditableRights:a.default.bool.isRequired,ownsDocument:a.default.bool},Object.defineProperty(ae,"SaveBlockBtn",{enumerable:!0,get:function(){return G}})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/ee6c9aa1.js",["require","exports","module","static/core/5dc34752.js","static/core/25b4c1c1.js"],function(g,$,L){const T=g("./5dc34752.js"),u=g("./25b4c1c1.js");function w(t,e){const d={bytes:0,hidden:0,byKind:{}};for(const n of e)if(!(n.finishedAt>t.end||n.finishedAt<t.start)){if(n.transferred===null){d.hidden+=1;continue}d.bytes+=n.transferred,d.byKind[n.kind]=(d.byKind[n.kind]??0)+n.transferred}return d}var y="core:module:";function v(t){const e=[...t].sort((n,r)=>n.start-r.start),d=[];return e.forEach(n=>{const r=d[d.length-1];if(r&&n.start<=r.end){r.end=Math.max(r.end,n.end);return}d.push({start:n.start,end:n.end})}),d}function A(t,e){const d=Math.max(0,t.end-t.start),n=v(e.map(r=>({start:Math.max(t.start,r.startedAt),end:Math.min(t.end,r.finishedAt)})).filter(r=>r.end>r.start)).reduce((r,a)=>r+(a.end-a.start),0);return{networkMs:n,quietMs:d-n}}function P(t){const e=new Map;t.forEach(n=>{if(!n.phase.startsWith(y))return;const r=n.phase.slice(12),a=r.lastIndexOf(":");if(a<=0)return;const s=r.slice(0,a),o=r.slice(a+1),i=e.get(s)??{};o==="ask"?(i.ask=n.at,n.parent&&(i.parent=n.parent)):o==="loaded"?i.loaded=n.at:o==="deps"?i.deps=n.at:o==="ready"&&(i.ready=n.at),e.set(s,i)});const d=[];return e.forEach((n,r)=>{if(n.ask===void 0||n.ready===void 0)return;const a=n.ask,s=n.ready,o=n.deps,i=n.loaded;d.push({id:r,parent:n.parent,askedAt:a,loadedAt:i,depsAt:o,readyAt:s,networkMs:i===void 0?0:i-a,waitingMs:o===void 0?0:o-(i??a),executionMs:o===void 0?0:s-o})}),d}function S(t){const e=new Map;t.forEach(a=>{if(a.parent===void 0)return;const s=e.get(a.parent)??[];s.push(a),e.set(a.parent,s)});let d=t.filter(a=>a.parent===void 0).reduce((a,s)=>a===void 0||s.readyAt>a.readyAt?s:a,void 0);const n=[],r=new Set;for(;d&&!r.has(d.id);)r.add(d.id),n.push(d),d=(e.get(d.id)??[]).reduce((a,s)=>a===void 0||s.readyAt>a.readyAt?s:a,void 0);return n}function E(t,e){const d=u.detectMount(t),n=u.requiredPhases(d),r=new Map;t.forEach(l=>{n.includes(l.phase)&&!r.has(l.phase)&&r.set(l.phase,l.at)});const a=[...r.entries()].sort((l,h)=>l[1]-h[1]),s=q(d),o=a.findIndex(([l])=>l===s),i=o===-1?a:a.slice(0,o+1);return i.slice(1).map(([l,h],m)=>{const[x,p]=i[m],f=A({start:p,end:h},e);return{from:x,to:l,startedAt:p,endedAt:h,durationMs:h-p,networkMs:f.networkMs,quietMs:f.quietMs}})}function q(t){return t==="headless"?u.PHASES.showEnd:u.PHASES.canvasSettled}function M(t,e){const d=t.find(n=>n.phase===e);return d?d.at:null}function j(t,e){return t===null?e:e===null?t:Math.max(t,e)}function z(t,e){const d=u.missingRequiredPhases(t),n=d.length===0,r=t.reduce((p,f)=>p===null||f.at<p?f.at:p,null),a=u.detectMount(t),s=M(t,u.PHASES.canvasPainted),o=a==="headless"?M(t,u.PHASES.showEnd):j(M(t,u.PHASES.canvasSettled),M(t,u.PHASES.editorVisible)),i=P(t),l=i.reduce((p,f)=>p+f.executionMs,0),h=r!==null&&n&&(a==="headless"||s!==null),m=a==="headless"?o:s,x=h&&m!==null?A({start:r,end:m},e):{networkMs:0,quietMs:0};return{startedAt:r,paintedAt:s,settledAt:o,totalMs:h&&s!==null?s-r:null,settledMs:h&&o!==null?o-r:null,settleGapMs:h&&o!==null&&s!==null?o-s:null,segments:h?E(t,e):[],complete:n,missingPhases:d,networkMs:x.networkMs,quietMs:x.quietMs,moduleExecutionMs:l,criticalPath:S(i),transferBeforeFrame:h&&r!==null&&m!==null?w({start:r,end:m},e):{bytes:0,hidden:0,byKind:{}}}}function c(t){return t.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""")}function H(){return"dev"}function k(t,e){return{mode:H(),summary:z(t,e),marks:[...t],resources:[...e]}}function b(t){return t===null?"—":`${Math.round(t)} мс`}function _(t){return t==="dev"?"dev-сервер — AMD-ядро не работает, слой модулей пуст":t==="build"?"собранная версия":"режим неизвестен"}function R(t){const{summary:e}=t,d=e.complete?'<span class="ok">прогон полный</span>':'<span class="bad">прогон неполный — в сравнение не идёт</span>',n=e.missingPhases.length===0?"":`<p class="bad">Не хватает фаз: ${e.missingPhases.map(c).join(", ")}</p>`;return`
|
|
2
2
|
<header>
|
|
3
3
|
<h1>Куда ушло время до показа письма</h1>
|
|
4
4
|
<p class="mode">${c(_(t.mode))}</p>
|
|
@@ -31,7 +31,7 @@ __emailmaker__.define("static/core/62b7892b.js",["require","exports","module","s
|
|
|
31
31
|
</tr>`}).join("")}</tbody>
|
|
32
32
|
<tfoot><tr><th>Сумма</th><th>${Math.round(e)}</th><th>100%</th><th></th><th></th><th></th></tr></tfoot>
|
|
33
33
|
</table>
|
|
34
|
-
</section>`}function
|
|
34
|
+
</section>`}function I(t){return t.length===0?"<section><h2>Критический путь по модулям ядра</h2><p>Отметок модулей нет.</p></section>":`
|
|
35
35
|
<section>
|
|
36
36
|
<h2>Критический путь по модулям ядра</h2>
|
|
37
37
|
<p class="hint">Звено с малыми «едет» и «исполняется», но поздним «попросили», — это «поздно попросили».</p>
|
|
@@ -47,7 +47,7 @@ __emailmaker__.define("static/core/62b7892b.js",["require","exports","module","s
|
|
|
47
47
|
<td>${Math.round(e.readyAt)}</td>
|
|
48
48
|
</tr>`).join("")}</tbody>
|
|
49
49
|
</table>
|
|
50
|
-
</section>`}function
|
|
50
|
+
</section>`}function O(t){const{resources:e,summary:d}=t;if(e.length===0)return"<section><h2>Водопад ресурсов</h2><p>Ресурсов не записано.</p></section>";const n=d.startedAt??Math.min(...e.map(s=>s.startedAt)),r=Math.max(d.paintedAt??0,...e.map(s=>s.finishedAt)),a=Math.max(1,r-n);return`
|
|
51
51
|
<section>
|
|
52
52
|
<h2>Водопад ресурсов</h2>
|
|
53
53
|
<table class="waterfall"><tbody>${[...e].sort((s,o)=>s.startedAt-o.startedAt).map(s=>{const o=(s.startedAt-n)/a*100,i=Math.max(.4,(s.finishedAt-s.startedAt)/a*100),l=s.transferred===null?"размер скрыт":s.fromCache?"из кэша":`${Math.round(s.transferred/1024)} КБ`;return`
|
|
@@ -57,7 +57,7 @@ __emailmaker__.define("static/core/62b7892b.js",["require","exports","module","s
|
|
|
57
57
|
<td class="size">${c(l)}</td>
|
|
58
58
|
<td class="bar"><span style="left:${o.toFixed(2)}%;width:${i.toFixed(2)}%"></span></td>
|
|
59
59
|
</tr>`}).join("")}</tbody></table>
|
|
60
|
-
</section>`}function
|
|
60
|
+
</section>`}function C(t){if(t.length===0)return"<section><h2>Отметки</h2><p>Отметок нет.</p></section>";const e=Math.min(...t.map(d=>d.at));return`
|
|
61
61
|
<section>
|
|
62
62
|
<h2>Отметки</h2>
|
|
63
63
|
<table>
|
|
@@ -69,7 +69,7 @@ __emailmaker__.define("static/core/62b7892b.js",["require","exports","module","s
|
|
|
69
69
|
<td>${c(d.parent??"")}</td>
|
|
70
70
|
</tr>`).join("")}</tbody>
|
|
71
71
|
</table>
|
|
72
|
-
</section>`}var
|
|
72
|
+
</section>`}var D=`
|
|
73
73
|
body { font: 14px/1.5 system-ui, sans-serif; margin: 24px; color: #222; background: #fff; }
|
|
74
74
|
h1 { font-size: 20px; margin: 0 0 4px; }
|
|
75
75
|
h2 { font-size: 16px; margin: 28px 0 8px; }
|
|
@@ -92,22 +92,22 @@ __emailmaker__.define("static/core/62b7892b.js",["require","exports","module","s
|
|
|
92
92
|
.waterfall .bar { position: relative; width: 45%; }
|
|
93
93
|
.waterfall .bar span { position: absolute; top: 4px; height: 10px; background: #3b6fd4; border-radius: 2px; }
|
|
94
94
|
pre { background: #f5f5f5; border-radius: 6px; padding: 12px; overflow: auto; max-height: 320px; }
|
|
95
|
-
`;function
|
|
95
|
+
`;function K(t){const e=c(JSON.stringify(t,null,2));return`<!DOCTYPE html>
|
|
96
96
|
<html lang="ru">
|
|
97
97
|
<head>
|
|
98
98
|
<meta charset="utf-8">
|
|
99
99
|
<title>Диагностика загрузки</title>
|
|
100
|
-
<style>${
|
|
100
|
+
<style>${D}</style>
|
|
101
101
|
</head>
|
|
102
102
|
<body>
|
|
103
103
|
${R(t)}
|
|
104
104
|
${F(t.summary.segments)}
|
|
105
|
-
${
|
|
106
|
-
${
|
|
107
|
-
${
|
|
105
|
+
${I(t.summary.criticalPath)}
|
|
106
|
+
${O(t)}
|
|
107
|
+
${C(t.marks)}
|
|
108
108
|
<section>
|
|
109
109
|
<h2>Выгрузка JSON</h2>
|
|
110
110
|
<pre>${e}</pre>
|
|
111
111
|
</section>
|
|
112
112
|
</body>
|
|
113
|
-
</html>`}$.buildReportPayload=k,$.renderReportHtml=
|
|
113
|
+
</html>`}$.buildReportPayload=k,$.renderReportHtml=K});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
(function(){try{if(typeof document<"u"){var r=".blocks-app .image-editor-modal .ant-modal-container{flex-direction:column;min-height:100vh;display:flex;border-radius:0!important}.blocks-app .image-editor-modal .ant-modal-body{border-bottom:1px solid #d9d9d9;flex-grow:1;display:flex}.blocks-app .image-editor-modal .ant-modal-body #filerobot-editor{flex-grow:1;height:calc(100vh - 70px);min-height:calc(100vh - 70px);overflow:hidden}.blocks-app .image-editor-modal .pi .text-on-primary{background:var(--em-colorPrimary);border-color:var(--em-colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary:hover{background:var(--em-colorPrimaryHover);border-color:var(--em-colorPrimaryHover)}.blocks-app .image-editor-modal .pi .text-on-primary.rounded-full{border-radius:calc(var(--em-borderRadius) * 1px)}.blocks-app .image-editor-modal .pi .shadow-xl{box-shadow:none}.blocks-app .image-editor-modal .w-\\[4ch\\].text-sm.text-center{width:5ch}.blocks-app .image-editor-modal .pi .border-white{border-color:var(--em-colorPrimary)}.blocks-app .image-editor-modal .pi .bg-white\\/50{background-color:var(--em-colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary{color:var(--em-colorWhite)}",e=window.__emailmaker_styles__||(window.__emailmaker_styles__={sheets:{},order:[]}),i=r;if(!e.sheets[i]){var t=null;try{typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype&&(t=new CSSStyleSheet,t.replaceSync(r))}catch{t=null}if(t){if(!e.host||!e.host.isConnected||!e.host.sheet){var o=document.createElement("style");o.setAttribute("data-emailmaker","true"),document.head.appendChild(o),e.host=o}for(var d=e.host.sheet,l=0;l<t.cssRules.length;l++)try{d.insertRule(t.cssRules[l].cssText,d.cssRules.length)}catch{}(e.texts||(e.texts=[])).push(r),(e.listeners||[]).forEach(function(a){try{a(r)}catch{}})}else{var o=document.createElement("style");o.setAttribute("data-emailmaker","true"),o.appendChild(document.createTextNode(r)),document.head.appendChild(o)}e.sheets[i]=!0,e.order.push(i)}}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
__emailmaker__.define("static/core/
|
|
2
|
+
__emailmaker__.define("static/core/efb5b933.js",["require","exports","module","static/core/5dc34752.js","static/core/c9d6507f.js","static/core/25b4c1c1.js","static/core/cebc7ae2.js","static/core/6fb2f217.js","static/core/26971a74.js","static/core/61378c9e.js","react","react/jsx-runtime","__delivery__/libs"],function(r,N,Z){const F=r("./5dc34752.js"),E=r("./c9d6507f.js"),e=r("./25b4c1c1.js"),b=r("./cebc7ae2.js");r("./6fb2f217.js");const d=r("./26971a74.js"),U=r("./61378c9e.js");let s=r("react");s=F.__toESM(s);let c=r("react/jsx-runtime"),_=r("__delivery__/libs");var L={width:"100%",height:"100%"},P=[d.TABS_IDS.ADJUST,d.TABS_IDS.ANNOTATE,d.TABS_IDS.RESIZE],$={presetsItems:b.C};function z(n,l){if(n==="json")return new Blob([l],{type:"application/json"});if(n==="svg")return new Blob([l],{type:"image/svg+xml"});const f=`image/${n}`,m=l.replace(/data:image\/([a-z]*)?;base64,/,"");return U.base64ToBlob(m,f)}var J=({currentImageLink:n,prefetchedBlob:l,resolveImageBlob:f,onSave:m,uploadImageResultIsLoading:Y})=>{const v=e.useCookieManager(),[I,S]=(0,s.useState)(),[R,T]=(0,s.useState)(),{__:D}=e.useI18n();let g=e.useDispatch();const w=e.useStore(),y=e.useAppConfig(),k=e.useEditorLocale(),K=e.useSelector(e.selectSecondModal),O=e.useProjectData();(0,s.useMemo)(()=>{if(!y?.icons)return;const o={};for(const[i,t]of Object.entries(y.icons))typeof t=="string"&&(o[i]=e.sanitizeHtml(t));return Object.keys(o).length>0?o:void 0},[y?.icons]);const[G,x]=(0,s.useState)(!1),h=(0,s.useRef)(),A=(0,s.useRef)(null),j=d.useCornerRadiusSync(A),B=e.useEventEmitter(E.events.FILE_PROXY_EVENT_ID);(0,s.useEffect)(()=>{let o=!1;return(async()=>{const t=n;if(!t&&!l)return;let a=l;if(!a&&t)try{typeof f=="function"?a=await f(t):a=await(await fetch(t)).blob()}catch{if(o)return;if(a=await B.fire({url:t,project:O}).filter(u=>u instanceof Blob)[0],!a){const u=v.get(e.APP_COOKIES.em_token)||await e.di.getContainer(w)?.getInstance(E.TOKEN_ID);a=await(await fetch(`https://app.emailmaker.ru/api/wp-json/cors-proxy/v1/get?url=${encodeURIComponent(t)}`,{headers:{authorization:`Bearer ${u}`}})).blob()}}if(o||!a)return;const p=new FileReader;p.onload=()=>{if(o)return;const u=p.result;typeof u=="string"&&(S(u),T(a.type))},p.onerror=()=>{},p.readAsDataURL(a)})().catch(t=>{}),()=>{o=!0}},[n,l,f,v,B,O,w]);const H=(0,s.useCallback)(()=>{S(null),T(null),x(!1),g(e.closeSecondModal()),g(e.closeModal$1(e.MODALS.UPLOAD_IMAGE_MODAL))},[g]),M=(0,s.useRef)();M.current=async function(o,i,t){try{const a=z(t,o);m&&await m(new File([a],i,{lastModified:Date.now(),type:a.type}))}catch(a){throw a}};const V=(0,s.useCallback)(o=>{x(!!o)},[]),W=(0,s.useCallback)(()=>{if(!h.current)return;const o=n?.split("/").pop().split(".")[0]||"image",i=j.isRounded?"png":R?.split("/")[1]||"png";try{const{imageData:t}=h.current({name:o,extension:i},void 0,!1),a=t.imageBase64??(t.imageCanvas?t.imageCanvas.toDataURL(`image/${i}`):void 0);if(!a)throw new Error("FIE не вернул ни imageBase64, ни imageCanvas");M.current(a,o,i)}catch{}},[j.isRounded,n,R]),C=k?k.replace("_","-"):"ru-RU",X=(0,s.useMemo)(()=>b._(C),[C]);return(0,c.jsxs)(_.ui_kit$Modal,{afterOpenChange:V,width:"100%",style:{maxWidth:"100%",minHeight:"100vh"},className:"image-editor-modal",centered:!0,closable:!1,zIndex:1100,mask:!1,open:K,footer:[(0,c.jsx)(_.ui_kit$Button,{className:"em-analytics__profile-cancel",onClick:H,children:D("Cancel")},"Cancel"),(0,c.jsx)(_.ui_kit$Button,{className:"em-analytics__profile-updafilerobotte",id:"save",type:"primary",onClick:W,children:D("Update")},"Ok")],children:[Y&&(0,c.jsx)("div",{style:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:e.emCssVar("colorBgLayout"),zIndex:10,opacity:.7},children:(0,c.jsx)(_.ui_kit$Spin,{size:"large"})}),(0,c.jsx)("div",{id:"filerobot-editor",ref:A,style:L,children:G&&I&&(0,c.jsx)(d.AssemblyPoint_default,{source:I,useBackendTranslations:!1,language:C.split("-")[0],translations:X,tabsIds:P,defaultTabId:d.TABS_IDS.ADJUST,Crop:$,...j.editorConfig,avoidChangesNotSavedAlertOnLeave:!0,removeSaveButton:!0,getCurrentImgDataFnRef:h})})]})};N.default=J});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){try{if(typeof document<"u"){var n='.monaco-editor{width:100%;height:100%}.monaco-editor .monaco-hover{border-radius:6px}.monaco-editor .monaco-editor .scroll-decoration{box-shadow:none}.monaco-editor,.monaco-editor *,.monaco-editor .view-lines,.monaco-editor .view-lines *,.monaco-editor .view-lines .view-line,.monaco-editor .view-lines .monaco-mouse-cursor-text,.monaco-editor .view-line,.monaco-editor .monaco-mouse-cursor-text{font-family:var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace)!important}.monaco-editor .view-line,.monaco-editor .view-line span,.monaco-editor .view-line span.inline-selected-text{font-variant-ligatures:none;font-feature-settings:"liga" 0, "calt" 0;font-kerning:none;white-space:pre;font-family:var(--monaco-monospace-font,var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace))!important;font-size:var(--monaco-editor-font-size,14px)!important;font-weight:400!important}.monaco-editor .standalone-colorpicker-body{max-width:460px!important}.monaco-editor .standalone-colorpicker-body .colorpicker-body .saturation-wrap{flex:0 auto;max-width:280px}.blocks-app .colorpicker-body .saturation-box,.blocks-app .colorpicker-body .strip{border-radius:4px}.blocks-app .scrollbar.vertical{width:5px!important}.blocks-app .scrollbar.vertical .slider{border-radius:5px!important;width:5px!important}.blocks-app .user-cursor{z-index:10;border-left:2px solid #ff00e1;width:2px;height:20px;position:absolute}.blocks-app .cursor-hover{color:#fff;text-wrap-mode:nowrap;z-index:10000;border-radius:7px 7px 7px 0;margin-left:-2px;padding:0 5px;font-size:12px;position:absolute;top:-17px}.blocks-app .user-selection-decoration{background-color:#8080eb4d}.monaco-editor__spin{z-index:1000;align-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}',o=window.__emailmaker_styles__||(window.__emailmaker_styles__={sheets:{},order:[]}),r=n;if(!o.sheets[r]){var t=null;try{typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype&&(t=new CSSStyleSheet,t.replaceSync(n))}catch{t=null}if(t){if(!o.host||!o.host.isConnected||!o.host.sheet){var e=document.createElement("style");e.setAttribute("data-emailmaker","true"),document.head.appendChild(e),o.host=e}for(var c=o.host.sheet,a=0;a<t.cssRules.length;a++)try{c.insertRule(t.cssRules[a].cssText,c.cssRules.length)}catch{}(o.texts||(o.texts=[])).push(n),(o.listeners||[]).forEach(function(i){try{i(n)}catch{}})}else{var e=document.createElement("style");e.setAttribute("data-emailmaker","true"),e.appendChild(document.createTextNode(n)),document.head.appendChild(e)}o.sheets[r]=!0,o.order.push(r)}}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
-
__emailmaker__.define("static/core/
|
|
2
|
+
__emailmaker__.define("static/core/f115f982.js",["require","exports","module","static/core/5dc34752.js","static/core/c9d6507f.js","static/core/25b4c1c1.js","static/core/370f04c3.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(Q,pt,Ic){const oe=Q("./5dc34752.js"),Mn=Q("./c9d6507f.js"),c=Q("./25b4c1c1.js"),Ln=Q("./370f04c3.js");let k=Q("react"),d=oe.__toESM(k,1);k=oe.__toESM(k);let Ee=Q("react/jsx-runtime"),rr=Q("__delivery__/libs"),An=Q("vite/preload-helper");function or(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function _n(e){if(Array.isArray(e))return e}function Tn(e,t,r){return(t=In(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jn(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(o=i.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(p){u=!0,n=p}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw n}}return s}}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nr(Object(r),!0).forEach(function(o){Tn(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Rn(e,t){if(e==null)return{};var r,o,n=Nn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nn(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function Pn(e,t){return _n(e)||jn(e,t)||qn(e,t)||zn()}function Dn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function In(e){var t=Dn(e,"string");return typeof t=="symbol"?t:t+""}function qn(e,t){if(e){if(typeof e=="string")return or(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?or(e,t):void 0}}function Wn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ar(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ar(Object(r),!0).forEach(function(o){Wn(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ar(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Un(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){return t.reduceRight(function(n,i){return i(n)},o)}}function Oe(e){return function t(){for(var r=this,o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];return n.length>=e.length?e.apply(this,n):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(n,s))}}}function Ue(e){return{}.toString.call(e).includes("Object")}function Fn(e){return!Object.keys(e).length}function Ce(e){return typeof e=="function"}function Vn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bn(e,t){return Ue(t)||ne("changeType"),Object.keys(t).some(function(r){return!Vn(e,r)})&&ne("changeField"),t}function Hn(e){Ce(e)||ne("selectorType")}function Gn(e){Ce(e)||Ue(e)||ne("handlerType"),Ue(e)&&Object.values(e).some(function(t){return!Ce(t)})&&ne("handlersType")}function Qn(e){e||ne("initialIsRequired"),Ue(e)||ne("initialType"),Fn(e)&&ne("initialContent")}function Kn(e,t){throw new Error(e[t]||e.default)}var ne=Oe(Kn)({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),Fe={changes:Bn,selector:Hn,handler:Gn,initial:Qn};function Yn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fe.initial(e),Fe.handler(t);var r={current:e},o=Oe(Xn)(r,t),n=Oe(Jn)(r),i=Oe(Fe.changes)(e),a=Oe(Zn)(r);function s(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return Fe.selector(u),u(r.current)}function l(u){Un(o,n,i,a)(u)}return[s,l]}function Zn(e,t){return Ce(t)?t(e.current):t}function Jn(e,t){return e.current=sr(sr({},e.current),t),t}function Xn(e,t,r){return Ce(t)?t(e.current):Object.keys(r).forEach(function(o){var n;return(n=t[o])===null||n===void 0?void 0:n.call(t,e.current[o])}),r}var ei={create:Yn},ti={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function ri(e){return function t(){for(var r=this,o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];return n.length>=e.length?e.apply(this,n):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(n,s))}}}function oi(e){return{}.toString.call(e).includes("Object")}function ni(e){return e||lr("configIsRequired"),oi(e)||lr("configType"),e.urls?{paths:{vs:e.urls.monacoBase}}:e}function qc(){}function ii(e,t){throw new Error(e[t]||e.default)}var ai={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
4
4
|
You are using deprecated way of configuration.
|
|
5
5
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var g=class Ae{_inner;_isDisposed=!1;constructor(t=[]){this._inner=t}addDisposable(t){return this._inner.push(t),t instanceof Ae&&t.addDispose(()=>{this.removeDisposable(t)}),t}addDispose(t){this.addDisposable({dispose:t})}removeDisposable(t){const r=this._inner.indexOf(t);r>=0&&this._inner.splice(r,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const t of[...this._inner])t.dispose()}}};function k(e){return`service_container_${e}`}var N=new Set,W;function qe(){if(!W)return;const e=new Error("getInstanceAsync"),t=Error;return typeof t.captureStackTrace=="function"&&t.captureStackTrace(e,Ie.prototype.getInstanceAsync),e.stack}function U(e){N.delete(e)&&W?.end(e)}var Ie=class H extends g{_parent;_injectCallbacks=[];_injections=Object.create(null);_runCallbacks(t){[...this._injectCallbacks].forEach(r=>r(t))}constructor(t=null){super(),this._parent=t,t&&this.addDisposable(t.onInject(r=>this._runCallbacks(r)))}onInject=t=>(this._injectCallbacks.push(t),{dispose:()=>{const r=this._injectCallbacks.indexOf(t);r>=0&&this._injectCallbacks.splice(r,1)}});inject(t,r){this._injections[t]=()=>r,this._runCallbacks(t)}injectFactory(t,r,n){const s=this._injections[t];let o=typeof s=="function"?s():s;const i=this._injections[t]=()=>(o=r(this,o),o);n&&i(),this._runCallbacks(t)}_find(t,r=!0){return this._injections[t]||r&&this._parent?._find(t)}_onInject(t,r,n=new g){return n.addDisposable(this.onInject(s=>{t===s&&!n.isDisposed()&&(n.dispose(),r(this.getInstance(s)))})),this._parent&&n.addDisposable(this._parent._onInject(t,r,n)),this.addDisposable(n),n}getInstance(t,r=!0){const n=this._find(t,r);if(typeof n=="function")return n()}getOrCreateInstance(t,r){const n=this._find(t);if(typeof n=="function")return n();const s=r(this);return this.inject(t,s),s}getInstanceAsync(t){const r=this._find(t);if(typeof r=="function")return Promise.resolve(r());const n=qe();return new Promise((s,o)=>{const i={id:String(t),startedAt:Date.now(),origin:n,container:this,reject:o};N.add(i),W?.start(i),this._onInject(t,()=>{U(i),s(this.getInstance(t))})})}failPendingWaits(t){for(const r of Array.from(N))r.container===this&&(U(r),r.reject(t))}pendingWaits(){return[...N].filter(t=>t.container===this)}addService(t,r){const n=k(t);this.injectFactory(n,(o,i=[])=>i.indexOf(r)<0?[...i,r]:i);const s=new g;return s.addDispose(()=>{this.injectFactory(n,(o,i=[])=>i.filter(a=>a!==r))}),s}addServiceFactory(t,r,n){const s=k(t);let o;this.injectFactory(s,(a,c=[])=>(o=r(a,o),o===void 0?c:c.indexOf(o)<0?[...c,o]:c),n);const i=new g;return i.addDispose(()=>{this.injectFactory(s,(a,c=[])=>o===void 0?c:c.filter(_=>_!==o))}),i}getServices(t){const r=k(t);return[...this.getInstance(r,!1)||[],...this._parent?.getServices(t)||[]]}createChild(){return new H(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{const r=this._parent?.getOrCreateIsolatedContainer(t);return new H(r)})}remove(t){const r=this._injections;delete r[String(t)]}injectListenerCount(){return this._injectCallbacks.length}dispose(){for(const t of Array.from(N))t.container===this&&U(t);this._injections=Object.create(null),this._injectCallbacks=[],super.dispose()}};function G(e){return e.startsWith("__")?e:`__${e}__`}function ze(e){if(typeof globalThis>"u")throw new Error("[di] globalThis is required for namespace container access.");const t=G(e),r=globalThis;return r[t]??={}}function Je(e){return e!=null&&typeof e=="object"&&typeof e.inject=="function"&&typeof e.getInstance=="function"}function Ye(e){if(e)return G(e);const t="emailmaker".trim();if(!t)throw new Error("[di] REACT_APP_NAME is required for resolveContainer().");return G(t)}function Oe(e){const t=Ye(e),r=ze(t);if(Je(r.container))return r.container;const n=new Ie(null);return r.container=n,n}function gr(e){return Oe(e)}function Qe(){let e=new Date().getTime(),t=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){let n=Math.random()*16;return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),(r==="x"?n:n&3|8).toString(16)})}function Ze(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():Qe()}function d(e=Ze()){return e}function me(){return"esm".trim()||"unknown"}function et(e){if(typeof globalThis>"u")return;const t=me(),r=globalThis[e]??{};globalThis[e]=r;const n=r.__diagnostics??={},s=n.diModuleEval??={evalCount:0,records:[]};s.records.push({buildSource:t,timestamp:Date.now(),stack:new Error().stack}),s.evalCount+=1}function tt(){const e="emailmaker".trim();if(!e)throw new Error("[di] REACT_APP_NAME is required for DependencyResolver diagnostics.");return`__${e}__`}function rt(e,t){if(et(t),typeof globalThis>"u")return e;const r=me(),n=globalThis,s=n[t]=n[t]||{},o=s.__diagnostics=s.__diagnostics||{},i=o.dependencyResolver=o.dependencyResolver||{entries:[]},a={container:e,source:"packages/runtime-core/di/index.ts",buildSource:r,timestamp:Date.now(),stack:new Error().stack};return i.entries.push(a),e}var w;function nt(){if(w)return w;const e=tt();return w=rt(Oe(e),e),w}var te=new Proxy({},{get(e,t,r){const n=nt(),s=Reflect.get(n,t,r);return typeof s=="function"?s.bind(n):s}});function Tr(e,t="BackendError"){switch(e){case 400:return"ValidationError";case 401:return"AuthenticationFailed";case 403:return"AuthorizationFailed";case 404:return"FileNotFound";case 413:return"PayloadTooLarge";case 415:return"UnsupportedMediaType";case 429:return"RateLimitExceeded";case 500:return"BackendError";case 503:return"ServiceUnavailable";case 504:return"Timeout";default:return t}}function y(e){if(e instanceof DOMException&&e.name==="AbortError")return e;const t=e===void 0?"The operation was aborted.":typeof e=="string"?e:e instanceof Error?e.message:String(e);return new DOMException(t,"AbortError")}function Sr(e){return e instanceof DOMException&&e.name==="AbortError"}function ge(e){if(e?.aborted)throw y(e.reason)}function Dr(e,t){return t?(t.aborted&&e.catch(()=>{}),ge(t),new Promise((r,n)=>{const s=()=>{o(),n(y(t.reason))},o=()=>{t.removeEventListener("abort",s)};t.addEventListener("abort",s),e.then(i=>{o(),r(i)},i=>{o(),n(i)})})):e}var Te=class extends g{_options;_listeners=[];constructor(e={}){super(),this._options=e}getListeners(e){return this._listeners.flatMap(([t])=>typeof t=="function"?t:t.getListeners(e))}hasListeners(){for(const[e]of this._listeners){if(typeof e=="function")return!0;const t=e;if(typeof t.hasListeners=="function"){if(t.hasListeners())return!0;continue}return!0}return!1}_addListener(e,t=0,r){if(this.isDisposed())return{dispose:()=>{}};const n=this._listeners,s=this._options;r&&typeof e=="function"&&(e=e.bind(r));const o=n.findIndex(([,a])=>a<t),i=[e,t];return n.splice(o>=0?o:n.length,0,i),n.length===1&&s.onFirstListenerAdd&&s.onFirstListenerAdd(),{dispose:()=>{const a=n.indexOf(i);a>=0&&(n.splice(a,1),!n.length&&s.onLastListenerRemove&&s.onLastListenerRemove())}}}on=this._addListener.bind(this);event=this._addListener.bind(this);once=(e,t=0,r)=>{const n=this._addListener((...s)=>(n?.dispose(),r?e.call(r,...s):e(...s)),t);return n};un=e=>{const t=this._listeners.findIndex(([r])=>r===e);t>=0&&(this._listeners.splice(t,1),this._listeners.length===0&&this._options.onLastListenerRemove&&this._options.onLastListenerRemove())};dispose(){this._listeners.splice(0,this._listeners.length),this._options.onLastListenerRemove&&this._options.onLastListenerRemove(),super.dispose()}},L=class extends Te{execute(e,t){for(const r of t)try{r(...e)}catch{}}fire(...e){if(!this.isDisposed()){const t=this.execute(e,this.getListeners(e));return t===void 0?void 0:t}}},Nr=class extends L{execute([e],t){for(const r of t)try{r(e)}catch{}}},Cr=class extends L{_suspendCounter=0;_wasFired=!1;execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(const r of t)try{r(e)}catch{}}suspend(){this._suspendCounter++}resume(){--this._suspendCounter===0&&this._wasFired&&(this.fire(),this._wasFired=!1)}},K=class extends L{async execute([e],t){const r=[];for(const n of t)try{r.push(await n(e))}catch{}return r}async fireSettled(e){const t={results:[],errors:[]};if(this.isDisposed())return t;for(const r of this.getListeners([e]))try{t.results.push(await r(e))}catch(n){t.errors.push(n)}return t}};function vr(e,t=0){const r=new Te,n=e(r,t);return n&&r.addDisposable(n),r.event}function yr(e,t,r=0){const n=new L,s=e((...o)=>{if(t(...o))return n.fire(...o)},r);return s&&n.addDisposable(s),n.event}function Lr(e,t=0,r=0){const n=new L;let s,o;const i=e((...a)=>{o=a,s||(s=setTimeout(()=>{o&&n.fire(...o),s=void 0},t))},r);return i&&n.addDisposable(i),n.event}function Pr(e,t){return e.getOrCreateInstance(t,()=>new K)}function l(e){return d(e)}var re;(function(e){e.BEFORE_SAVE_EMAIL=l("events.BEFORE_SAVE_EMAIL"),e.ON_SAVEBUTTON_CLICK_ID=l("events.ON_SAVEBUTTON_CLICK_ID"),e.ON_NEXTBUTTON_CLICK_ID=l("events.ON_NEXTBUTTON_CLICK_ID"),e.ON_PREVIOUSBUTTON_CLICK_ID=l("events.ON_PREVIOUSBUTTON_CLICK_ID"),e.ON_DOCUMENT_SESSION_CHANGE=l("events.ON_DOCUMENT_SESSION_CHANGE"),e.WILL_EMAIL_INIT_ID=l("events.WILL_EMAIL_INIT_ID"),e.ON_EMAIL_INIT_ID=l("events.ON_EMAIL_INIT_ID"),e.ON_BLOCK_INIT_ID=l("events.ON_BLOCK_INIT_ID"),e.ON_CONTENT_CHANGED_ID=l("events.ON_CONTENT_CHANGED_ID"),e.ON_PREHEADER_CHANGED_ID=l("events.ON_PREHEADER_CHANGED_ID"),e.ON_SUBJECT_CHANGED_ID=l("events.ON_SUBJECT_CHANGED_ID"),e.ON_EMAIL_CHANGED_ID=l("events.ON_EMAIL_CHANGED_ID"),e.ON_HEADER_APPLIED_ID=l("events.ON_HEADER_APPLIED_ID"),e.ON_BLOCK_CHANGED_ID=l("events.ON_BLOCK_CHANGED_ID"),e.ON_BLOCK_OPEN_ID=l("events.ON_BLOCK_OPEN_ID"),e.ON_BLOCK_CLOSE_ID=l("events.ON_BLOCK_CLOSE_ID"),e.OPEN_BLOCK_REQUEST_ID=l("events.OPEN_BLOCK_REQUEST_ID"),e.ON_BLOCK_SAVEBUTTON_CLICK_ID=l("events.ON_BLOCK_SAVEBUTTON_CLICK_ID"),e.ON_BLOCK_CLONE_ID=l("events.ON_BLOCK_CLONE_ID"),e.ON_CHUNKS_LOADED=l("events.ON_CHUNKS_LOADED"),e.ON_SEND_TESTEMAIL_ID=l("events.ON_SEND_TESTEMAIL_ID"),e.ON_SEND_LIVEPREVIEW_ID=l("events.ON_SEND_LIVEPREVIEW_ID"),e.ON_SHARE_ID=l("events.ON_SHARE_ID"),e.ON_SHOW_PREVIEW_ID=l("events.ON_SHOW_PREVIEW_ID"),e.ON_EMAIL_CLONE_ID=l("events.ON_EMAIL_CLONE_ID"),e.ON_SEND_EMAIL_MODAL_ID=l("events.ON_SEND_EMAIL_MODAL_ID"),e.ON_NOTIFICATION=l("events.ON_NOTIFICATION"),e.READ_LOCALE=l("events.READ_LOCALE"),e.ON_TRANSLATE_ID=l("events.ON_TRANSLATE_ID"),e.ON_CODE_VALIDATE_ID=l("events.ON_CODE_VALIDATE_ID"),e.UPLOAD_EVENT_ID=l("events.UPLOAD_EVENT_ID"),e.PROXY_URL_EVENT_ID=l("events.PROXY_URL_EVENT_ID"),e.FILE_PROXY_EVENT_ID=l("events.FILE_PROXY_EVENT_ID"),e.ON_LIMIT_ID=l("events.ON_LIMIT_ID"),e.ON_BROWSER_EXTENSION_DETECTED_ID=l("events.ON_BROWSER_EXTENSION_DETECTED_ID"),e.ON_LAYOUT_CONVERT_REQUEST_ID=l("events.ON_LAYOUT_CONVERT_REQUEST_ID"),e.ON_BROWSER_TRANSLATE_DETECTED_ID=l("events.ON_BROWSER_TRANSLATE_DETECTED_ID"),e.AI_TEXT_REQUEST_ID=l("events.AI_TEXT_REQUEST_ID"),e.AI_IMAGE_REQUEST_ID=l("events.AI_IMAGE_REQUEST_ID"),e.AI_TEXT_PROGRESS_ID=l("events.AI_TEXT_PROGRESS_ID"),e.AI_IMAGE_PROGRESS_ID=l("events.AI_IMAGE_PROGRESS_ID"),e.AI_TEXT_STREAM_ID=l("events.AI_TEXT_STREAM_ID")})(re||(re={}));function br(e,t){return e.getOrCreateInstance(t,()=>new K).event}function Rr(e,t){return e.getOrCreateInstance(t,()=>new K)}var xr=d("plugin.app"),wr=d("plugin.disposable"),Mr=d("InitPipelineContext"),Br=d("plugin.instance"),Fr=d("plugin.lateSurfaceListeners"),st=d("plugin.optionsSource"),kr=d("plugin.store"),ot=d("ConfigSource"),Ur=d("plugin.standalone.project"),it=d("plugin.standalone.bootstrapToken"),jr=d("plugin.element"),at=d("plugin.securityModule"),Hr=d("plugin.standalone.activated"),Gr=d("plugin.standalone.fileProxyRegistered"),X=d("plugin.jwt.token"),C=d("plugin.jwt.error"),Xr=d("PluginCollection"),Vr=l("APP_LOAD_EVENT"),$r=l("CONFIG_CHANGED_EVENT");function ct(e,t=window){return{peer:e,send(r){e.postMessage(r,"*")},subscribe(r){const n=s=>{r({data:s.data,source:s.source,ports:s.ports})};return t.addEventListener("message",n),{dispose:()=>t.removeEventListener("message",n)}},close(){}}}function _t(e){let t=!1;return{peer:e,send(r){e.postMessage(r)},subscribe(r){const n=s=>{r({data:s.data,source:e})};return e.addEventListener("message",n),t||(t=!0,e.start()),{dispose:()=>e.removeEventListener("message",n)}},close(){e.close()}}}function Wr(e){return e}function ut(e){return e&&typeof e=="object"}function ne(e,t){return e&&typeof e=="object"&&e.operationId===t}var m="INIT_MESSAGE",lt="em:port-ready",dt="em:window-drained",j="";function se(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}var ft=class extends g{_listeners=Object.create(null);addListenerAsync=(e,t,r=0,n)=>{const s=this._listeners[e]||(this._listeners[e]=[]);n&&typeof t=="function"&&(t=t.bind(n));const o=s.findIndex(([a,c])=>r<=c),i=[t,r];return this.isDisposed()||s.splice(o>=0?o:s.length,0,i),{dispose(){const a=s.indexOf(i);a>=0&&s.splice(a,1)}}};fireAsync=(e,t)=>{if(!this.isDisposed()){const r=this._listeners[e]||(this._listeners[e]=[]);let n;for(let s=0;s<r.length;s++){const o=r[s][0],i=n;n=a=>o(a,i)}if(n)return n(t)}};addListener=(e,t,r=0)=>this.addListenerAsync(e,(n,s)=>{try{t(n)}catch{}return s&&s(n)},r)},Kr=class extends g{_singleton;_target;_transport;_transportSubscription;_ports=new Map;_drained=new WeakSet;_portSendHeld=new WeakSet;_inited=!1;_emitter=this.addDisposable(new ft);_handshaken=new WeakSet;_greeted=new WeakSet;_outgoingFilter;_outgoingObservers=new Set;_offTargetListeners=new Map;constructor(e,t){super(),this._singleton=t,this._transport=ct({postMessage:()=>{}},window),this._transportSubscription=this.addDisposable(this._transport.subscribe(this._onTransportMessage)),this.addListener(m,()=>{this._inited||(this._inited=!0,this._target&&this._handshaken.add(this._target),this.send(m))}),e&&this.setTarget(e)}_onTransportMessage=e=>{const t=e,r=t.data,n=t.source,s=r?.port===!0?t.ports?.[0]:void 0,o=!this._isPortSource(t.source);if(o&&n&&r?.operationId==="em:window-drained"){this._ports.has(n)&&this._drained.add(n);return}if(o&&n&&this._drained.has(n))return;if(n&&n!==this._target&&this._greeted.has(n)&&ne(r,m)){this._greeted.delete(n),this._handshaken.add(n),this._postMessage(n,{operationId:m,data:{}}),s&&this.usePort(s,!0,n);return}const i=t.source===this.target||this._isCurrentPort(t.source);if(i||this._notifyOffTarget(r?.operationId,t.source),ut(r)&&i||this._singleton&&ne(r,m)){if(s&&i){const u=this._target;Promise.resolve().then(()=>this.usePort(s,!0,u))}const a=this._emitter.fireAsync(r.operationId||j,r.operationId===void 0?t:r.data),c=r.result,_=r.error;c&&_&&Promise.resolve(a).then(u=>this._sendMessage(c,u),u=>this._sendMessage(_,u))}};setTarget(e){if(this._target!==e){if(this._target=e,!e){this._inited=!1;return}if(this._handshaken.has(e)){this._inited=!0,this._emitter.fireAsync(m,void 0);return}this._inited=!1,this._postMessage(e,{operationId:m,data:{}})}}sendPort(e,t){this._postMessage(e,{operationId:m,data:{},port:!0},[t])}observeOutgoing(e){return this._outgoingObservers.add(e),{dispose:()=>{this._outgoingObservers.delete(e)}}}_notifyOutgoing(e,t){for(const r of Array.from(this._outgoingObservers))try{r(e,t)}catch{}}addOffTargetListener(e,t){let r=this._offTargetListeners.get(e);return r||(r=new Set,this._offTargetListeners.set(e,r)),r.add(t),{dispose:()=>{r.delete(t)}}}_notifyOffTarget(e,t){const r=typeof e=="string"?this._offTargetListeners.get(e):void 0,n=r?.size?this._knownPeer(t):void 0;if(!(!r||!n))for(const s of Array.from(r))try{s(n)}catch{}}_knownPeer(e){for(const[r,n]of this._ports)if(n.transport.peer===e)return r;const t=e;return typeof e=="object"&&e!==null&&(this._handshaken.has(t)||this._greeted.has(t))?t:void 0}setOutgoingFilter(e){return this._outgoingFilter=e,()=>{this._outgoingFilter===e&&(this._outgoingFilter=void 0)}}sendNow(e){const t=this._target;return!this._inited||!t?!1:(this._postMessage(t,e),!0)}greet(e){this._handshaken.has(e)||this._greeted.has(e)||this._target===e||(this._greeted.add(e),this._postMessage(e,{operationId:m,data:{}}))}forget(e){this._handshaken.delete(e),this._greeted.delete(e),this._closePort(e),this._drained.delete(e),this._target===e&&(this._inited=!1)}usePort(e,t=!1,r=this._target){if(!r||this._ports.has(r))return;const n=_t(e),s=n.subscribe(this._onTransportMessage);this._ports.set(r,{transport:n,subscription:s}),t&&(n.send({operationId:lt,data:{}}),this.drainWindow(r))}holdPort(e=this._target){!e||!this._ports.has(e)||(this._portSendHeld.add(e),this._drained.delete(e))}resumePort(e=this._target){e&&this._portSendHeld.delete(e)}useWindow(e=this._target){e&&(this._closePort(e),this._drained.delete(e))}get usesPort(){return this._target!==void 0&&this._ports.has(this._target)&&!this._portSendHeld.has(this._target)}hasPort(e,t){const r=this._ports.get(e);return r!==void 0&&(t===void 0||r.transport.peer===t)}_closePort(e){const t=this._ports.get(e);t&&(t.subscription.dispose(),t.transport.close(),this._ports.delete(e),this._portSendHeld.delete(e))}drainWindow(e){this._ports.has(e)&&e.postMessage({operationId:dt,data:{}},"*")}isWindowDrained(e){return this._drained.has(e)}_isPortSource(e){for(const t of this._ports.values())if(t.transport.peer===e)return!0;return!1}_isCurrentPort(e){return this._target!==void 0&&this._ports.get(this._target)?.transport.peer===e}getTarget(){return this._target}get target(){return this._target}_postMessage(e,t,r){let n=t;this._outgoingFilter&&!r?.length&&(n="data"in t?{...t,data:this._outgoingFilter(t.data)}:this._outgoingFilter(t));try{const s=this._ports.get(e);if(s&&!this._portSendHeld.has(e)){s.transport.send(n);return}if(r?.length){e.postMessage(n,"*",r);return}e.postMessage(n,"*")}catch(s){if(s?.name==="DataCloneError"){const o=typeof n?.data=="object"&&n?.data!==null?n.data:void 0}throw s}}_sendMessage(e,t,r=!0){if(!r&&!this.isInited())return;e&&this._notifyOutgoing(e,t);const n=this.addDisposable(this.onInit(s=>{const o=e?{operationId:e,data:t}:t;try{this._postMessage(s,{...o})}finally{n.dispose()}}))}send(e,t,r){return typeof e=="string"?this._sendMessage(e,t,r):this._sendMessage(j,e,t)}sendAsync(e,t,r=!0){if(!r&&!this.isInited())return Promise.resolve();this._notifyOutgoing(e,t);const n=se(),s=se();return new Promise((o,i)=>{const a=this.addDisposable(new g);a.addDisposable(this.onInit(c=>{try{this._postMessage(c,{operationId:e,data:t,result:n,error:s})}catch(_){a.dispose(),i(_);return}a.addDisposable(this._onMessage(n,_=>{o(_),a.dispose()})),a.addDisposable(this._onMessage(s,_=>{i(_),a.dispose()}))}))})}_onMessage(e,t,r=0){return this._emitter.addListener(e,t,r)}addListener(e,t,r){return t?this._onMessage(e,t,r):this._onMessage(j,e)}addListenerAsyncPipe(e,t,r=0){return this._emitter.addListenerAsync(e,t,r)}addListenerAsync(e,t,r=0){return this._emitter.addListenerAsync(e,async(n,s)=>{const o=await t(n);return s?s(n):o},r)}isInited(){return this._inited}get inited(){return this._inited}onInit(e,t=!0,r=0){const n=this.addDisposable(new g);return this._inited&&this._target?t&&Promise.resolve().then(()=>{!this._inited||!this._target?n.addDisposable(this.onInit(e,t,r)):e(this._target)}):n.addDisposable(this._onMessage(m,()=>{e(this._target)},r)),n}dispose(){for(const e of Array.from(this._ports.keys()))this._closePort(e);this._transport.close(),super.dispose()}};function P(e){return d(e)}var qr=d("extensions.atomsHandlers"),zr=P("HANDLE_ATOM_INSERT"),Jr=d("HeadlessMode"),Yr=d("extensions.sandboxExtensions"),Qr="SANDBOX_EXTENSION_SCRIPT_STATUS",Zr=d("MESSAGE_SERVICE"),en=P("SETTINGS_PANEL_EVENT"),tn="advanced",rn=P("MODAL_SHOW_EVENT"),nn=P("MODAL_CLOSE_EVENT"),sn=P("MODAL_UPDATE_EVENT"),on=d("client"),an=d("v2_client"),cn=d("ai_client"),_n=d("app.cookieManager"),un=d("app.storageProvider"),ln=d("image-blob-resolver"),dn=d("template-directives"),fn=(function(e){return e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain",e})({}),pt=class{baseUrl="https://api.emailmaker.ru/wp-json";securityData=null;securityWorker;abortControllers=new Map;customFetch=(...e)=>fetch(...e);baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};constructor(e={}){Object.assign(this,e)}setSecurityData=e=>{this.securityData=e};encodeQueryParam(e,t){return`${encodeURIComponent(e)}=${encodeURIComponent(typeof t=="number"?t:`${t}`)}`}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map(r=>this.encodeQueryParam(t,r)).join("&")}toQueryString(e){const t=e||{};return Object.keys(t).filter(r=>typeof t[r]<"u").map(r=>Array.isArray(t[r])?this.addArrayQueryParam(t,r):this.addQueryParam(t,r)).join("&")}addQueryParams(e){const t=this.toQueryString(e);return t?`?${t}`:""}contentFormatters={"application/json":e=>e!==null&&(typeof e=="object"||typeof e=="string")?JSON.stringify(e):e,"text/plain":e=>e!==null&&typeof e!="string"?JSON.stringify(e):e,"multipart/form-data":e=>Object.keys(e||{}).reduce((t,r)=>{const n=e[r];return t.append(r,n instanceof Blob?n:typeof n=="object"&&n!==null?JSON.stringify(n):`${n}`),t},new FormData),"application/x-www-form-urlencoded":e=>this.toQueryString(e)};mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}createAbortSignal=e=>{if(this.abortControllers.has(e)){const r=this.abortControllers.get(e);return r?r.signal:void 0}const t=new AbortController;return this.abortControllers.set(e,t),t.signal};abortRequest=e=>{const t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))};async request({body:e,secure:t,path:r,type:n,query:s,format:o,baseUrl:i,cancelToken:a,extraQuery:c,proxyHandler:_,...u}){const f=(typeof t=="boolean"?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},h=this.mergeRequestParams(u,f);c&&(s=s?{...s,...c}:c);const p=s&&this.toQueryString(s),I=this.contentFormatters[n||"application/json"],E=o||h.format,R=`${i||this.baseUrl||""}${r}${p?`?${p}`:""}`,We=_?_(R,{body:e,secure:t,path:r,type:n,query:s,format:o,baseUrl:i,cancelToken:a,extraQuery:c,proxyHandler:_,...u}):R,Z=new Request(We,{...h,headers:{...h.headers||{},...n&&n!=="multipart/form-data"?{"Content-Type":n}:{}},signal:(a?this.createAbortSignal(a):h.signal)||null,body:typeof e>"u"||e===null?null:I(e)});return this.customFetch(Z).then(async ee=>{const O=ee;O.data=null,O.error=null,O.meta={request:Z,response:O};const Ke=E?await ee[E]().then(x=>(O.ok?O.data=x:O.error={data:x},O)).catch(x=>(O.error=x,O)):O;return a&&this.abortControllers.delete(a),Ke})}},ht=d("prewarm.networkActivity");function Et(){let e=0;const t=new Set,r=()=>{t.forEach(n=>n())};return{begin(){e+=1,r();let n=!1;return()=>{n||(n=!0,e-=1,r())}},inFlight:()=>e,watch(n){return t.add(n),()=>t.delete(n)}}}function At(e){return e.getOrCreateInstance(ht,()=>Et())}var It=Symbol("rest.publicRequest"),q=d("rest.requestHandler"),Ot=d("rest.responseHandler"),Se=d("rest.customFetch"),mt=(e,t)=>fetch(e,t),De=d("rest_transport"),gt=e=>{e.inject(Se,{execute:async(t,r={})=>{const n=e.getServices(q),s={public:r[It]===!0},o=At(e).begin();try{let i=t instanceof Request?t:new Request(t,r);for(const _ of n){const u=await _.execute(i,s);u instanceof Request&&(i=u)}let a=await fetch(i);const c=e.getServices(Ot);for(const _ of c)a=await _.execute(a,i);return a}finally{o()}}})};function pn(e,t){const r=e.getInstance(De);if(!r)throw new Error("[restApi] транспорт не зарегистрирован в контейнере");return Object.assign({},...t.map(n=>new n(r)))}var Tt="INJECTION";function St(e){return e.getState}function hn(e){if(!St(e)){e.dispose();return}const t=e.getState()[Tt];t&&(te.getInstance(t)?.dispose(),te.remove(t))}function En(e,t){for(const r of e)if(r&&t in r)return r[t]}function Dt(e){return Object.assign({},...e)}var Ne=["generic","stockImages","emFiles","cdn"];function z(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function oe(e){return!z(e)||"match"in e||"rewrite"in e||"proxyBase"in e?!1:Object.keys(e).some(t=>Ne.includes(t))}function Ce(e){return e.length===0?[]:e.length===1?e[0]:e}function ve(e){let t=!1,r=[];for(const n of e)if(n!==void 0){if(t=!0,Array.isArray(n)){r=[...n,...r];continue}r=[n,...r]}if(t)return Ce(r)}function Nt(e){return z(e)&&("value"in e||"replace"in e)}function ie(e,t){return t===void 0?e:Array.isArray(t)?[...t,...e]:[t,...e]}function Ct(e){let t=!1,r=[],n=!1;for(const o of e)if(o!==void 0){if(Nt(o)){t=!0,o.replace&&(r=[],n=!0),o.value!==void 0&&(r=ie(r,o.value),n=!0);continue}r=ie(r,o),n=!0}const s=n?Ce(r):void 0;if(!t)return s;if(s!==void 0)return{value:s}}function An(e){const t=e.filter(n=>n!==void 0);if(t.length===0)return;if(!t.some(n=>oe(n)))return ve(t);const r={};for(const n of Ne){const s=Ct(e.map(o=>{if(o!==void 0)return oe(o)?o[n]:n==="generic"?o:void 0}));s!==void 0&&(r[n]=s)}return Object.keys(r).length>0?r:void 0}function In(e){return ve(e)}function vt(e){if(e!==void 0){if(Array.isArray(e))return{replace:!1,hosts:e};if(z(e)&&Array.isArray(e.value))return{replace:!!e.replace,hosts:e.value}}}function yt(e,t){const r=[...e],n=new Set(r.map(s=>s.toLowerCase()));for(const s of t){const o=s.trim().replace(/:\d+$/,"");if(!o)continue;const i=o.toLowerCase();n.has(i)||(n.add(i),r.push(o))}return r}function Lt(e){let t=[],r=!1;for(const n of e){const s=vt(n);s&&(r=!0,s.replace&&(t=[]),t=yt(t,s.hosts))}return r?t:void 0}function On(e){const t=e.filter(s=>s!==void 0);if(t.length===0)return;const r=Dt(t.map(({directHosts:s,...o})=>o)),n=Lt(t.map(s=>s?.directHosts));return n!==void 0&&(r.directHosts=n),r}function J(e){return e?.backendProxy}function v(e){return e.replace(/\/$/,"")}function ye(e){return/^https?:\/\//i.test(e)}function Le(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Pt(e){const t=new Set;return e.filter(r=>!r.url||t.has(r.url)?!1:(t.add(r.url),!0))}function bt(e){const t=J(e);return t?[t]:[]}function Rt(e){return{proxyEmFiles:!0,proxyAi:!1}}function xt(e,t){const r=Rt(t),n=t?.backendProxyPolicy;switch(e){case"emFiles":return n?.proxyEmFiles??r.proxyEmFiles;case"ai":return n?.proxyAi??r.proxyAi;default:return!0}}var wt={url:".+",url_encoded:".+",origin:"https?:\\/\\/[^\\/?#]+",origin_encoded:".+",proxy_url:"https?:\\/\\/[^\\/?#]+",proxy_url_encoded:".+",path:"[^?#]*",pathname:"[^?#]*",path_with_slash:"\\/[^?#]*",pathname_with_slash:"\\/[^?#]*",query:"[^#]*",search:"\\?[^#]*",hash:"#.*",fragment:".*",pathname_after_wp_json:"[^?#]*",pathname_after_wp_json_with_slash:"\\/[^?#]*",rest_namespace:"[^/?#]*",rest_version:"[^/?#]*",rest_route:"[^?#]*",rest_route_with_slash:"\\/[^?#]*"};function Mt(e){const t=[],r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\{([a-z_]+)\\\}/gi,(n,s)=>(t.push(s),`(${wt[s]||".+"})`));return{regex:new RegExp(`^${r}$`,"i"),tokens:t}}function Bt(e){return/[?#]/.test(e)||/\{(?:url|url_encoded|query|search|hash|fragment)\}/i.test(e)}function Ft(e,t){if(Bt(t))return e;try{const r=new URL(e);return`${r.origin}${r.pathname}`}catch{return e.split(/[?#]/)[0]||e}}function kt(e,t,r){if(r.endsWith("_encoded"))return!0;const n=e.slice(0,t),s=n.lastIndexOf("#"),o=n.lastIndexOf("?"),i=n.lastIndexOf("&"),a=n.lastIndexOf("=");return a>Math.max(o,i)&&a>s}function Ut(e){try{const t=new URL(e),r=t.pathname.replace(/^\/+/,""),n=t.search.replace(/^\?/,""),s=t.hash.replace(/^#/,""),o=r.replace(/^wp-json\/?/i,""),i=o?`/${o}`:"/",a=o.match(/^([^/]+)(?:\/([^/]+))?(?:\/(.*))?$/),c=a?.[1]||"",_=a?.[2]||"",u=a?.[3]||"";return{url:e,url_encoded:encodeURIComponent(e),origin:t.origin,origin_encoded:encodeURIComponent(t.origin),proxy_url:t.origin,proxy_url_encoded:encodeURIComponent(t.origin),path:r,pathname:r,path_with_slash:t.pathname||"/",pathname_with_slash:t.pathname||"/",query:n,search:t.search,hash:t.hash,fragment:s,pathname_after_wp_json:o,pathname_after_wp_json_with_slash:i,rest_namespace:c,rest_version:_,rest_route:u,rest_route_with_slash:u?`/${u}`:"/"}}catch{return}}function Y(e,t){if(!e)return{};if(Array.isArray(e)){for(const a of e){const c=Y(a,t);if(c!==void 0)return c}return}if(e==="*")return{};const r=Ft(t,e),{regex:n,tokens:s}=Mt(e),o=n.exec(r);if(!o)return;const i={};return s.forEach((a,c)=>{i[`matched_${a}`]=o[c+1]||""}),i}function M(e,t,r={}){const n=Ut(t);if(!n)return t;const s={...n,...r};let o="",i=0;const a=/\{([a-z_]+)\}/gi;let c;for(;c=a.exec(e);){o+=e.slice(i,c.index);const _=s[c[1]]??"",u=kt(e,c.index,c[1])?encodeURIComponent(_):_;o+=u,i=c.index+c[0].length}o+=e.slice(i);try{const _=new URL(o),u=new URL(t);return!o.includes("{search}")&&!o.includes("{query}")&&u.search&&u.searchParams.forEach((f,h)=>{_.searchParams.has(h)||_.searchParams.append(h,f)}),!o.includes("{hash}")&&!o.includes("{fragment}")&&u.hash&&!_.hash&&(_.hash=u.hash),_.toString()}catch{return o}}function ae(e,t){try{const r=new URL(t);return`${v(e)}/${r.pathname.replace(/^\//,"")}${r.search}${r.hash}`}catch{return t}}function ce(e,t){const r=v(e);return t?ye(t)?t:t.startsWith("?")||t.startsWith("#")?`${r}${t}`:`${r}${t.startsWith("/")?"":"/"}${t}`:r}function Pe(e,t,r,n){const s=e.match;return s?Array.isArray(s)?s.some(o=>Pe({...e,match:o},t,r,n)):typeof s=="function"?!!s({url:t,method:n,requestType:r}):s==="*"?!0:Y(s,t)!==void 0:!0}function jt(e,t,r,n="generic"){if(e==null)return[];const s=Array.isArray(e)?e:[e],o=[];return s.forEach((i,a)=>{if(!i)return;if(typeof i=="string"){const f=i.includes("{")&&i.includes("}")?M(i,t):ae(i,t);o.push({key:`backend:${a}`,url:f,source:"resource"});return}if(!Le(i)||!("rewrite"in i))return;const c=i;if(!Pe(c,t,n,r))return;const _=typeof c.match=="string"||Array.isArray(c.match)?Y(c.match,t)||{}:{},u=typeof c.proxyBase=="string"&&c.proxyBase.trim()?c.proxyBase.trim():void 0;(Array.isArray(c.rewrite)?c.rewrite:[c.rewrite]).filter(Boolean).forEach((f,h)=>{const p=typeof f=="function"?(()=>{const I=f({url:t,proxyBase:u,method:r,requestType:n,..._}),E=u&&!ye(I)?ce(u,I):I;return E.includes("{")&&E.includes("}")?M(E,t,_):E})():u?M(ce(u,f),t,_):f.includes("{")&&f.includes("}")?M(f,t,_):ae(f,t);o.push({key:`backend:${c.id||"rule"}:${a}:${h}`,url:p,source:"resource"})})}),Pt(o)}function Ht(e){try{const t=new URL(e);return/(?:^|\/)wp-json\/em-files\/v\d+(?:\/|$)/i.test(t.pathname)?"emFiles":/(?:^|\/)wp-json\/ai-generator\/v\d+(?:\/|$)/i.test(t.pathname)?"ai":"generic"}catch{return"generic"}}function Gt(e,t=[]){return e==null||(Array.isArray(e)?e:[e]).forEach(r=>{if(r){if(typeof r=="string"){const n=r.split("{")[0]?.trim();n&&t.push(v(n));return}!Le(r)||!("rewrite"in r)||(typeof r.proxyBase=="string"&&r.proxyBase.trim()&&t.push(v(r.proxyBase.trim())),(Array.isArray(r.rewrite)?r.rewrite:[r.rewrite]).forEach(n=>{if(typeof n!="string")return;const s=n.split("{")[0]?.trim();s&&t.push(v(s))}))}}),t}function Xt(e,t){return bt(t).flatMap(r=>Gt(r)).filter(Boolean).some(r=>r&&e.startsWith(r))}function Vt(e,t){return!!J(t)&&xt(e,t)}function $t(e,t={}){const r=t.requestType||Ht(e);return Vt(r,t.config)?jt(J(t.config),e,t.method,r):[]}function Wt(e,t={}){return Xt(e,t.config)?[e]:$t(e,t).map(r=>r.url)}function D(e){for(;e.endsWith("/");)e=e.slice(0,e.length-1);return/\/wp-json$/i.test(e)?e:`${e}/wp-json`}function Kt(...e){const t=e.filter(o=>o!=null);if(t.length===0)return;if(t.length===1)return t[0];const r=t.find(o=>o.aborted);if(r)return r;if(typeof AbortSignal<"u"&&typeof AbortSignal.any=="function")return AbortSignal.any(t);const n=new AbortController,s=o=>{n.signal.aborted||n.abort(o.reason)};for(const o of t)o.addEventListener("abort",()=>s(o),{once:!0});return n.signal}var _e=3e5,ue=15e3,A=null,le=!1;function qt(){return!0}function zt(){const e=String({}.REACT_APP_OPENAPI_FAILOVER_TTL_MS||"").trim();if(!e)return _e;const t=Number(e);return Number.isFinite(t)&&t>0?t:_e}function Jt(){const e=String({}.REACT_APP_OPENAPI_FAILOVER_ATTEMPT_TIMEOUT_MS||"").trim();if(!e)return ue;const t=Number(e);return Number.isFinite(t)&&t>0?t:ue}function Yt(){const e="https://app.emailmaker.ru/api/".trim();return e?D(e):void 0}function Qt(e){const t=e.trim();if(!t)return[];if(t.startsWith("["))try{const r=JSON.parse(t);if(!Array.isArray(r))throw new Error("expected JSON array");return r.map(n=>String(n).trim()).filter(Boolean)}catch{return le||(le=!0),[]}return t.split(",").map(r=>r.trim()).filter(Boolean)}function Zt(e){const t=new Set,r=[];for(const n of e){const s=D(n);t.has(s)||(t.add(s),r.push(s))}return r}function be(e){const t=String(e||"").trim();return t?D(t):Yt()}function Re(e,t=[]){return e?Zt([e,...t]).slice(0,3):[]}function xe(){return Qt(String({}.REACT_APP_OPENAPI_FAILOVER_BASE_URLS||"").trim())}function er(e=Date.now()){return A?e-A.switchedAt>=zt():!0}function we(e=Date.now()){A&&er(e)&&(A=null)}function S(e){if(!qt())return!1;const t=be(e);if(!t)return!1;const r=xe();return r.length===0?!1:Re(t,r).length>1}function b(e){const t=be(e);if(!t)return[];const r=xe();return r.length===0?[t]:Re(t,r)}function Q(e){const t=b(e);if(t.length===0)return"";if(we(),A){const r=t.indexOf(A.activeUrl);if(r>=0)return t[r]}return t[0]}function Me(e){const t=b(e);if(t.length<=1||(we(),!A||!t.includes(A.activeUrl)))return t;const r=A.activeUrl;return[r,...t.filter(n=>n!==r)]}function tr(e){return Q(e)||void 0}function Be(e){const t=e||void 0;if(typeof AbortController>"u")return{signal:t,timeoutError:()=>{},done:()=>{}};const r=Jt(),n=new AbortController;let s;const o=setTimeout(()=>{s=rr(r),n.abort(s)},r);return{signal:Kt(t,n.signal),timeoutError:()=>s,done:()=>clearTimeout(o)}}function rr(e){const t=`[apiOriginFailover] origin attempt timed out after ${e}ms`;if(typeof DOMException=="function")return new DOMException(t,"TimeoutError");const r=new Error(t);return r.name="TimeoutError",r}function Fe(e){return e===502||e===503||e===504}function ke(e){return!(e instanceof Error)&&!(e instanceof DOMException)?!1:e.name==="TimeoutError"?!0:e instanceof TypeError}var Ue;function mn(e){Ue=e}function B(e,t){if(!S(t))return;const r=b(t);if(r.length<=1)return;const n=r.indexOf(D(e));if(n<0)return;const s=n+1;if(s>=r.length)return;const o=r[s],i=A?.activeUrl;A={activeUrl:o,switchedAt:Date.now()},i!==o&&Ue?.()}function je(e,t){if(!S(t))return;const r=D(e),n=b(t);if(n.includes(r)){if(r===n[0]){A=null;return}A?.activeUrl!==r&&(A={activeUrl:r,switchedAt:Date.now()})}}function He(){A=null}var nr=e=>{const t=new FormData,r=(n,s,o)=>{if(s!=null){if(s instanceof Blob){n.append(o,s);return}if(Array.isArray(s)){s.forEach((i,a)=>{const c=o?`${o}[${a}]`:`${a}`;r(n,i,c)});return}if(typeof s=="object"){Object.keys(s).forEach(i=>{const a=s[i],c=o?`${o}[${i}]`:i;r(n,a,c)});return}n.append(o,String(s))}};return r(t,e),t},sr={baseUrl:D("https://app.emailmaker.ru/api/"),baseApiParams:{secure:!0,credentials:"same-origin",format:"json"},securityWorker:()=>({credentials:"same-origin"})},T=new Map;function or(e){const t=e?.getInstance(ot);return t?t.get()??t.bootstrap():void 0}var ir=class extends pt{container;constructor(e={},t){super(e),this.container=t}buildRequestUrl(e){const{path:t,baseUrl:r,extraQuery:n}=e;let{query:s}=e;n&&(s=s?{...s,...n}:n);const o=s&&this.toQueryString(s);return`${r||this.baseUrl||""}${t}${o?`?${o}`:""}`}buildRequestKey(e,t){return`${t.toUpperCase()} ${e}`}getBackendProxyCandidates(e,t){const r=or(this.container),n=this.container?.getInstance(at)!==void 0,s=Wt(e,{config:r,method:t,standalone:n}),o=s.length>0?s:[e],i=this.buildRequestKey(e,t),a=T.get(i);return!a||!o.includes(a)?o:[a,...o.filter(c=>c!==a)]}shouldRetryResponse(e){return e.status===502||e.status===503||e.status===504}resolveFailoverBaseUrl(){return String(this.baseUrl||"").trim()||void 0}async requestOnOrigin(e,t,r=!1){const n={...e,baseUrl:t},s=this.buildRequestUrl(n),o=n.method||"GET",i=this.buildRequestKey(s,o),a=this.getBackendProxyCandidates(s,o);let c,_;for(const u of a){const f=p=>p===s?u:p,h=r?Be(e.signal):void 0;try{const p=await super.request({...n,proxyHandler:f,...h?{signal:h.signal}:{}});if(!p.ok&&this.shouldRetryResponse(p)&&u!==a[a.length-1]){_=p,T.get(i)===u&&T.delete(i);continue}return T.set(i,u),p}catch(p){T.get(i)===u&&T.delete(i);const I=h?.timeoutError();if(I)throw I;if(c=p,(p instanceof DOMException||p instanceof Error)&&p.name==="AbortError")throw p}finally{h?.done()}}if(_)return _;throw c instanceof Error?c:new Error("Backend proxy chain failed")}async request(e){const t=String(e.baseUrl||"").trim();if(t)return this.requestOnOrigin(e,t);const r=this.resolveFailoverBaseUrl(),n=S(r),s=e.failoverAttemptTimeout??n,o=n?Me(r):r?[Q(r)]:[this.baseUrl].filter(Boolean);if(o.length===0)return this.requestOnOrigin(e,this.baseUrl);let i,a;for(let c=0;c<o.length;c++){const _=o[c],u=c===o.length-1;try{const f=await this.requestOnOrigin(e,_,s);if(!f.ok&&Fe(f.status)){if(a=f,!u){B(_,r);continue}break}return f.ok&&je(_,r),f}catch(f){if(!ke(f))throw f;i=f,u||B(_,r)}}if(n&&He(),a)return a;throw i instanceof Error?i:new Error("API origin failover chain failed")}};function ar(e={},t){const r=new ir({...sr,...e},t);return r.contentFormatters["multipart/form-data"]=nr,r}var cr=d("rest.clientFactory"),gn=e=>{gt(e);const t=ar({customFetch:e.getInstance(Se)?.execute??mt},e);e.inject(De,t)},de;(function(e){const t="https://racs.emcdn.ru/v3";function r(s,o){const i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(o)};return fetch(`${t}?resource=${s}&dataset=${document.location.hostname}`,i)}e.post=r;async function n(s,o=0){const i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:`{"filter":{},"limit":${o}}`};return await(await fetch(`${t}/get?resource=${s}&dataset=${document.location.hostname}`,i)).json()}e.getAll=n})(de||(de={}));function F(e,t){if(e!==t){if(!e||!t||typeof e!="object"||typeof t!="object")return!1;const r=Array.isArray(e),n=Array.isArray(t);if(r){if(!n)return!1;const a=e.length;if(t.length!==a)return!1;for(let c=0;c<a;c++)if(!F(e[c],t[c]))return!1}else if(n)return!1;const s=Object.keys(e),o=Object.keys(t),i=s.length;if(i!==o.length)return!1;for(let a=0;a<i;a++){const c=s[a];if(!t.hasOwnProperty(c)||!F(e[c],t[c]))return!1}}return!0}function _r(e){const t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),r=atob(t),n=new Uint8Array(r.length);for(let s=0;s<r.length;s++)n[s]=r.charCodeAt(s);return new TextDecoder().decode(n)}function ur(e){const[t,r,n]=e.split("."),s=JSON.parse(_r(r));return{exp:s.exp,createdAt:s.iat,data:s}}var V=d("plugin.auth.token"),fe=new WeakMap,lr=3e4;function dr(e){let t;try{t=ur(e).exp}catch{return!0}return typeof t!="number"||!Number.isFinite(t)?!0:t*1e3<=Date.now()+lr}function fr(e,t,r,n){const s=fe.get(e);s&&(s.stale=!0);const o={stale:!1};fe.set(e,o),e.injectFactory(V,async(i,a)=>{if(o.stale)return"";try{let c=await a||void 0;if(!c){const _=e.getInstance(it);_&&(c=await _)}return t?!c||dr(c)?await t(r,n,c):c:""}catch{return""}},!0)}var pe=d("auth.oauthProvided"),he=new WeakMap;function Ge(e,t){const r=he.get(e)??{applied:!1};(!r.applied||r.getAuthToken!==t.getAuthToken||!F(r.user,t.user)||r.project!==t.project)&&(he.set(e,{applied:!0,getAuthToken:t.getAuthToken,user:t.user,project:t.project}),fr(e,t.getAuthToken,t.user,t.project))}function pr(e){if(e.getInstance(pe))return;e.inject(pe,!0);let t;e.getInstance(st)?.watch(r=>{t=r}),e.addService(q,{execute:async(r,n)=>{if(n?.public||!t?.getAuthToken)return;e.getInstance(V)===void 0&&Ge(e,t);const s=await e.getInstanceAsync(V);s&&r.headers.set("authorization",`Bearer ${s}`)}})}var Tn={theme:"canvas_fact_theme",flags:"canvas_fact_flags",commonStyles:"canvas_fact_common_styles",lockEditor:"canvas_fact_lock_editor",codeMode:"canvas_fact_code_mode",appName:"canvas_fact_app_name",previewPage:"canvas_fact_preview_page",viewport:"canvas_fact_viewport"},Sn={text:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif"],fontSize:16,fontSizeDim:"px",lineHeight:21,lineHeightDim:"px",color:"#5a5a5a",contrastColor:"#FFFFFF",textAlign:"left",paddingBottom:10,paddingBottomDim:"px"},headings:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif"],fontSize:24,fontSizeDim:"px",lineHeight:32,lineHeightDim:"px",color:"#333333",contrastColor:"#FFFFFF",textAlign:"left",paddingTop:20,paddingTopDim:"px",paddingBottom:20,paddingBottomDim:"px",letterSpacing:0,letterSpacingDim:"px",bold:!0,italic:!1},links:{color:"#1C52DC",contrastColor:"#FFFFFF",underline:!0},buttons:{fontFamily:["Safe Fonts","-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif"],fontSize:16,fontSizeDim:"px",letterSpacing:0,letterSpacingDim:"px",color:"#FFFFFF",contrastColor:"#1C52DC",bold:!1,italic:!1,backgroundColor:"#1C52DC",contrastBackgroundColor:"#FFFFFF",marginTop:10,marginTopDim:"px",marginBottom:10,marginBottomDim:"px",border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:5,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},textAlign:"center",padding:{all:null,top:null,right:null,bottom:null,left:null}},block:{backgroundColor:"#FFFFFF",contrastBackgroundColor:"#1C52DC",padding:{all:null,top:null,right:null,bottom:null,left:null}},cards:{contrastBackgroundColor:"#1C52DC",contrastTextColor:"#FFFFFF",baseBackgroundColor:"#F8F8F8",baseTextColor:"#333333",border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:10,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null}}},Xe="ERROR",Dn="useblocks",Nn={em_token:"em_access_token",em_refresh_token:"em_refresh_token",em_admin_token:"em_admin_access_token",em_admin_refresh_token:"em_admin_refresh_token",em_impersonation:"em_impersonation",em_elements_view:"em_elements_view",em_new_block:"em_new_block",em_new_email:"em_new_email",em_id:"em_id",em_name:"em_name",em_email:"em_email",em_locale:"em_locale",em_carrotquest_hash:"em_carrotquest_hash",em_ducalis_hash:"em_ducalis_hash",em_email_subscription_consent:"em_email_subscription_consent",em_folder:"em_folder",promocode:"promocode",em_active_tab:"em_active_tab"},Cn={em_color_scheme:"em_color_scheme",em_code_mode_pane_sizes:"em_code_mode_pane_sizes",em_preview_pane_sizes:"em_preview_pane_sizes",em_default_sizes:"em_default_sizes",em_pane_sizes:"em_pane_sizes",em_test_emails:"em_test_emails",em_menu_is_locked:"em_menu_is_locked",em_code_mode_settings:"em_code_mode_settings",em_folder_is_open:"em_folder_is_open",em_active_tab:"em_active_tab",em_ai_settings:"em_ai_settings",em_last_active_page:"em_last_active_page",em_layout_convert_never_suggest:"em_layout_convert_never_suggest",em_filemanager_v2:"em_filemanager_v2",em_projects_v2:"em_projects_v2",em_translations_v2:"em_translations_v2",em_defer_chrome:"em_defer_chrome",em_stripo_import:"em_stripo_import",em_guest_locale:"em_guest_locale"},vn="light",yn="dark",Ln="system",Pn="(prefers-color-scheme: dark)",bn={MESSAGE:"message",INIT_PREVIEW:"init_preview",UPDATE_EDITOR:"update_editor",UPDATE_EDITOR_POSITION:"update_editor_position",UPDATE_SIDE_MENU_EDITOR:"update_side_menu_editor",SAVE_EMAIL:"saveEmail",SANDBOX_ELEMENT_SETTINGS_SET:"sandbox_element_settings_set",SANDBOX_IMAGE_RESET:"sandbox_image_reset",SANDBOX_NATIVE_IMAGE_DROP_CLEAR:"sandbox_native-image-drop-clear",SANDBOX_EMAIL_SETTINGS_SET:"sandbox_email_settings_set",SANDBOX_BLOCK_SETTINGS_SET:"sandbox_block_settings_set",SANDBOX_ELEMENT_PARENT_GET:"sandbox_element_parent_get",SANDBOX_ELEMENT_PARENT_TABLE_GET:"sandbox_element_parent_table_get",SANDBOX_ELEMENT_PREV_GET:"sandbox_element_prev_get",SANDBOX_ELEMENT_NEXT_GET:"sandbox_element_next_get",SANDBOX_ELEMENT_REMOVE:"sandbox_element_remove",SANDBOX_ELEMENT_ACTIVE_RESET:"sandbox_element_active_reset",SANDBOX_ELEMENT_ACTIVE_SET:"sandbox_element_active_set",SANDBOX_ELEMENT_HOVER_SET:"sandbox_element_hover_set",SANDBOX_ELEMENT_IMG_LINK:"sandbox_element_img_link",SANDBOX_ELEMENT_TEXT:"sandbox_element_text",SANDBOX_EMAIL_CONTENT_GET:"sandbox_email_content_get",SANDBOX_SET_POSITION_TO_IMG:"sandbox_set_position_to_img",SANDBOX_SET_POSITION_TO_LINK:"sandbox_set_position_to_link",SANDBOX_ACCORDION_ADD_SECTION:"sandbox_accordion_add_section",SANDBOX_ACCORDION_REMOVE_SECTION:"sandbox_accordion_remove_section",APPLICATION_FOCUS_IN_IFRAME:"application_focus_in_iframe",APPLICATION_EMAIL_SETTINGS_SET:"application_email_settings_set",APPLICATION_BLOCK_SETTINGS_SET:"application_block_settings_set",APPLICATION_ELEMENT_SETTINGS_SET:"application_element_settings_set",_APPLICATION_ELEMENT_SETTINGS_SET:"application_element_settings_set",APPLICATION_ELEMENT_SETTINGS_CLOSE:"application_element_settings_close",APPLICATION_ACTION:"application_action",APPLICATION_EBLOCK_ADD:"application_eblock_add",SANDBOX_EBLOCK_SET_EM_BLOCK_ID:"sandbox_eblock_set_em_block_id",SANDBOX_GLOBAL_BLOCK_REPLACE:"sandbox_global_block_replace",APPLICATION_SCROLL_TO:"application_scroll-to",APPLICATION_SCROLL_BLOCK_SHOW:"application_scroll-block-show",APPLICATION_SCROLL_BLOCK_HIDE:"application_scroll-block-hide",APPLICATION_DISCUSS_SET_ID:"application_discuss_set_id",APPLICATION_DISCUSS_GET_COMMENT:"application_discuss_get_comment",APPLICATION_DISCUSS_NO_COMMENT:"application_discuss_no_comment",APPLICATION_DISCUSS_SAVE_TARGET:"application_discuss_save_target",APPLICATION_IFRAME_SET_HEIGHT:"application_iframe_set_height",APPLICATION_COMMON_STYLES_UPDATE:"application_commonStyles_update",APPLICATION_EMAIL_CONTENT_GET:"application_email_content_get",APPLICATION_OPEN_IMAGE_AI_POPUP:"application_open-image-ai-popup",APPLICATION_OPEN_IMAGE_UPLOAD_POPUP:"application_open-image-upload-popup",APPLICATION_OPEN_IMAGE_EDIT_POPUP:"application_open-image-edit-popup",APPLICATION_OPEN_IMAGE_GIF_POPUP:"application_open-image-gif-popup",APPLICATION_OPEN_IMAGE_STOCK_POPUP:"application_open-image-stock-popup",APPLICATION_CLOSE_IMAGE_EDIT_POPUP:"application_close-image-edit-popup",APPLICATION_NATIVE_IMAGE_DROP:"application_native-image-drop",APPLICATION_SUBJECT_UPDATE:"application_subject_update",APPLICATION_PREHEADER_UPDATE:"application_preheader_update",APPLICATION_DOMPARSER_ERROR:"application_domparser_error",APPLICATION_SYNC_DRIFT:"application_sync_drift",APPLICATION_UPDATE_ENTITY:"application_update_entity",APPLICATION_IFRAME_DRAG_EVENT:"application_iframe_drag_event",APPLICATION_HAS_AMP:"application_has_amp",APPLICATION_CANVAS_IMAGE_GET:"application_canvas_image_get",APPLICATION_PREVIEW_ALERT_SHOW:"application_preview_alert_show",APPLICATION_ATOM_INSERTED:"application_atom_inserted",APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW:"application_template_not_em_alert_show",SANDBOX_IFRAME_SETSIZE:"sandbox_iframe-setsize",SANDBOX_BLOCK_INSERT:"sandbox_block-insert",SANDBOX_ATOM_INSERT:"sandbox_atom-insert",SANDBOX_DRAG_CANCEL:"sandbox_drag-cancel",UPDATE_EDITOR_POSITION_FROM_EDITOR:"update_position_from_editor",UPDATE_EDITOR_POSITION_FROM_IFRAME:"update_position_from_iframe",SANDBOX_CHANGE_PREVIEW:"sandbox_change_preview",APPLICATION_CHANGE_PREVIEW:"application_change_preview",SANDBOX_LOCK_EDIT:"sandbox_lock_edit",SANDBOX_FLOATBLOCK_ADD:"sandbox_floatBlock_add",SANDBOX_FLOATBLOCK_REMOVE:"sandbox_floatBlock_remove",SANDBOX_FLOATBLOCK_COPY:"sandbox_floatBlock_copy",SANDBOX_FLOATBLOCK_SWAP:"sandbox_floatBlock_swap",EDITOR_CHANGE_FOCUS:"editor_change_focus",SANDBOX_RESIZED:"sandbox_resized",SANDBOX_LOCK_DISCUSS:"sandbox_lock_discuss",SANDBOX_DISCUSS_SET_TARGET:"sandbox_discuss_set_target",SANDBOX_DISCUSS_REMOVE_TARGET:"sandbox_discuss_remove_target",SANDBOX_DISCUSS_RESET:"sandbox_discuss_reset",SANDBOX_DISCUSS_GET_TARGET:"sandbox_discuss_get_target",SANDBOX_READY:"SANDBOX_READY",SANDBOX_FLOATBLOCK_WRAP:"sandbox_floatblock_wrap",SANDBOX_FLOATBLOCK_DIR:"sandbox_floatblock_dir",SANDBOX_SUBJECT_UPDATE:"sandbox_subject_update",SANDBOX_PREHEADER_UPDATE:"sandbox_preheader_update",SANDBOX_DRAG_EVENT:"sandbox_drag_event",SANDBOX_WHEEL:"sandbox_wheel",SANDBOX_TRANSLATIONS:"sandbox_send_translations",SANDBOX_SET_THEME_VARIABLES:"sandbox_send_theme_variables",SANDBOX_SET_PROJECT_FONTS:"sandbox_set_project_fonts",SANDBOX_CANVAS_IMAGE_CACHE_SETUP:"sandbox_canvas_image_cache_setup",SANDBOX_SET_ENTITY:"sandbox_set_entity",SANDBOX_INIT_START:"sandbox_init_start",SANDBOX_INITED:"sandbox_inited",SANDBOX_UPDATE_ENTITY:"sandbox_update_entity",RELOAD:"reload",SANDBOX_ADD_EXTENSIONS:"sandbox_add_extensions",SANDBOX_REMOVE_EXTENSIONS:"sandbox_remove_extensions",SANDBOX_ADD_SCRIPT:"sandbox_add_script",SANDBOX_IS_EMAIL_EMPTY:"sandbox_is_email_empty",SANDBOX_SWITCH_THEME:"sandbox_switch_theme",SANDBOX_CANVAS_HEALTH:"sandbox_canvas_health"},Rn={language:"html",detectIndentation:!1,wordWrap:"on",wrappingIndent:"same",smoothScrolling:!0,automaticLayout:!0,tabSize:2,indentSize:2},hr=e=>{const t={current:Promise.resolve(),state:e,decorate:(r,n)=>(n&&(r=r.bind(n)),function(...s){const o=t.current.then(()=>r(...s));return t.current=o.then(i=>{t.state=i},i=>{}),o})};return t};function Ve(e){return function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...e(t)||{}}}}function xn(e){return t=>{const r={},n=[];for(const i of e)n.push(i(t));for(const i of n)Object.assign(r,i.instance);return{instance:r,setOptions:async i=>{for(const a of n)await a.setOptions(i)},dispose:()=>{for(const i of n)i.dispose()}}}}function Er(e=Xe){const t=new Error(e);return t.name="AuthPipelineError",t}async function Ar(e,t,r,n){const s=n?.attemptTimeout??S(r),o=S(r)?Me(r):b(r).length>0?[Q(r)]:[];if(o.length===0)throw new Error("[apiOriginFailover] no API base URL configured");const i=e.startsWith("/")?e:`/${e}`;let a,c;for(let _=0;_<o.length;_++){const u=o[_],f=_===o.length-1,h=s?Be(t.signal):void 0;try{const p=await fetch(`${u}${i}`,{...t,...h?{signal:h.signal}:{}});if(!p.ok&&Fe(p.status)){if(a=p,!f){B(u,r);continue}break}return p.ok&&je(u,r),p}catch(p){const I=h?.timeoutError();if(!I&&!ke(p))throw p;c=I||p,f||B(u,r)}finally{h?.done()}}if(S(r)&&He(),a)return a;throw c instanceof Error?c:new Error("[apiOriginFailover] fetch chain failed")}function Ee(e){e.inject(C,void 0),e.inject(X,void 0)}var wn=Ve(e=>{let t,r;const n=hr();return e.addService(q,{execute:n.decorate(async(s,o)=>{if(o?.public||!t)return;const i=String(e.getInstance(X)||"").trim();if(i){s.headers.append("authorization",`Bearer ${i}`);return}if(!e.getInstance(C))try{const a=e.getInstance(cr),c=String(a?.getOptions()?.baseUrl||"").trim(),_=tr(r||c||void 0);if(!_)throw new Error("JWT auth requires baseUrl");const u=await Ar("/jwt-auth/token",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)},_);if(!u.ok)throw new Error(`JWT auth failed: ${u.status}`);const f=await u.json(),h=String(f.token||"").trim();if(!h)throw new Error("JWT auth failed: empty token");e.inject(C,void 0),e.inject(X,h),s.headers.append("authorization",`Bearer ${h}`)}catch{throw e.inject(C,Xe),Er()}})}),{setOptions(s){const o=s.jwtAuth,i=String(s.baseUrl||"").trim()||void 0,a=!F(o,t),c=i!==r;if(t=o,r=i,!o){Ee(e);return}a||c?Ee(e):e.inject(C,void 0)}}}),Mn=Ve(e=>(pr(e),{setOptions(t){Ge(e,t)}}));function Ir(e){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/([^a-zA-Z0-9_-])/g,"\\$1")}function $(e,t=document){try{const n=t.querySelector(e);if(n)return n}catch{return null}const r=t.querySelectorAll("*");for(let n=0;n<r.length;n++){const s=r[n]?.shadowRoot;if(!s)continue;const o=$(e,s);if(o)return o}return null}function $e(e,t=[]){const r=e.querySelectorAll("*");for(let n=0;n<r.length;n++){const s=r[n]?.shadowRoot;s&&(t.push(s),$e(s,t))}return t}function Or(e,t,r){if(e.isConnected)return e;const n=e.id?.trim();return n?mr(`#${Ir(n)}`,t,r):Promise.reject(y("Editor mount element was disconnected and has no id — pass a CSS selector or call init() again after the host remounts the container."))}function mr(e,t,r){if(ge(r),typeof e<"u"){if(typeof e=="string"){const n=e,s=$(n);if(s)return s;const o=t.addDisposable(new g);return new Promise((i,a)=>{const c=E=>{o.dispose(),E()},_=()=>{c(()=>a(y(r?.reason)))};if(r?.aborted){_();return}r?.addEventListener("abort",_),o.addDispose(()=>r?.removeEventListener("abort",_));const u=document.body??document.documentElement;if(!u){c(()=>a(y("Document is not ready to observe mount element")));return}const f=new Set,h=new MutationObserver(()=>{const E=$(n);if(E){c(()=>i(E));return}I()}),p=E=>{f.has(E)||(f.add(E),h.observe(E,{attributes:!0,childList:!0,subtree:!0}))},I=()=>{const E=document.documentElement;if(E)for(const R of $e(E))p(R)};p(u),I(),o.addDispose(()=>h.disconnect())})}return e instanceof Element?Or(e,t,r):e}return e}var Bn=new Map;export{en as $,An as A,y as At,fn as B,g as Bt,cr as C,K as Ct,mn as D,Lr as Dt,tr as E,Cr as Et,Se as F,te as Ft,zr as G,dn as H,It as I,d as It,nn as J,Jr as K,q as L,Ze as Lt,Dt as M,Dr as Mt,En as N,ge as Nt,Kt as O,yr as Ot,hn as P,Tr as Pt,Qr as Q,De as R,gr as Rt,F as S,Pr as St,Q as T,Nr as Tt,tn as U,_n as V,qr as W,sn as X,rn as Y,Yr as Z,Dn as _,Ur as _t,Ar as a,$r as at,pr as b,Rr as bt,hr as c,Mr as ct,bn as d,st as dt,Kr as et,vn as f,Xr as ft,Ln as g,Gr as gt,Pn as h,it as ht,wn as i,Vr as it,On as j,Sr as jt,In as k,vr as kt,Nn as l,Br as lt,Rn as m,Hr as mt,mr as n,Wr as nt,xn as o,ot,Cn as p,at as pt,Zr as q,Mn as r,xr as rt,Ve as s,wr as st,Bn as t,lt as tt,yn as u,Fr as ut,Sn as v,kr as vt,gn as w,L as wt,ur as x,br as xt,Tn as y,re as yt,pn as z,k as zt};
|