@emailmaker/emailmaker 1.2.5 → 1.3.2

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.
Files changed (56) hide show
  1. package/emailmaker-core.b63d7b8b.js +859 -0
  2. package/emailmaker-esm.js +11 -11
  3. package/{emailmaker-po.ee1618fa.js → emailmaker-po.b63d7b8b.js} +1 -1
  4. package/emailmaker.js +12 -12
  5. package/iframe/.vite/manifest.json +4 -4
  6. package/iframe/css/sandbox.css +19 -0
  7. package/iframe/{iframe-eblock.ee1618fa.html → iframe-eblock.b63d7b8b.html} +2 -2
  8. package/iframe/{iframe.ee1618fa.html → iframe.b63d7b8b.html} +2 -2
  9. package/iframe/js/elMarkupHelper.C4wWAApZ.js +278 -0
  10. package/iframe/js/iframe-eblock.body.b63d7b8b.js +9 -0
  11. package/iframe/js/iframe-eblock.js +2 -2
  12. package/iframe/js/iframe.body.b63d7b8b.js +129 -0
  13. package/iframe/js/iframe.js +2 -2
  14. package/package.json +1 -1
  15. package/runtime/react/index.js +1 -1
  16. package/static/core/{abcacabc.js → 1922419a.js} +1 -1
  17. package/static/core/{c03be019.js → 253d6f68.js} +2 -2
  18. package/static/core/{5b6e2acb.js → 3a876cdd.js} +1 -1
  19. package/static/core/{6b16159c.js → 40574d12.js} +1 -1
  20. package/static/core/{f35181ec.js → 4f63baad.js} +1 -1
  21. package/static/core/{683a6a53.js → 4fef179c.js} +1 -1
  22. package/static/core/{4de9c323.js → 5e13bbc1.js} +3 -3
  23. package/static/core/{9eaed676.js → 6319e32c.js} +1 -1
  24. package/static/core/{dd230bbb.js → 66a5de32.js} +1 -1
  25. package/static/core/{a8b4352d.js → 69842511.js} +1 -1
  26. package/static/core/{659796a7.js → 7a9faff8.js} +11 -11
  27. package/static/core/{7e167222.js → 85accd9c.js} +1 -1
  28. package/static/core/{64711257.js → 86e5503b.js} +2 -2
  29. package/static/core/{c8443fab.js → 89fb48c9.js} +1 -1
  30. package/static/core/{d2780737.js → 8fdd9471.js} +1 -1
  31. package/static/core/{c67df236.js → 9f6b8cdd.js} +1 -1
  32. package/static/core/{b712bb05.js → 9f7f5230.js} +1 -1
  33. package/static/core/{17fba7af.js → a6518f19.js} +1 -1
  34. package/static/core/{2a042fe3.js → a9d62c49.js} +1 -1
  35. package/static/core/{b7289065.js → aea50cd5.js} +1 -1
  36. package/static/core/bb58b8a1.js +28 -0
  37. package/static/core/c266ad76.js +1 -0
  38. package/static/core/{155e871a.js → cd715a88.js} +3 -3
  39. package/static/core/{50ba806c.js → d0d2525d.js} +1 -1
  40. package/static/core/{d503c406.js → d402573d.js} +1 -1
  41. package/static/core/{63e7f8c1.js → e2694475.js} +2 -2
  42. package/static/core/e6f6edff.js +1 -0
  43. package/static/core/e8edbf21.js +2 -0
  44. package/static/core/{82f8beb4.js → f85176c7.js} +1 -1
  45. package/static/core/{c3d00c5e.js → fa6f5198.js} +1 -1
  46. package/static/esm/{b4f8dfdc.js → 74f083c2.js} +1 -1
  47. package/static/umd-runtime/{runtime.Bsid8PpY.js → runtime.9w1dxMVc.js} +1 -1
  48. package/vendor/@emailmaker/ui-kit/package.json +1 -1
  49. package/emailmaker-core.ee1618fa.js +0 -859
  50. package/iframe/js/elMarkupHelper.Buog1r0c.js +0 -278
  51. package/iframe/js/iframe-eblock.body.ee1618fa.js +0 -9
  52. package/iframe/js/iframe.body.ee1618fa.js +0 -129
  53. package/static/core/987afc3f.js +0 -1
  54. package/static/core/b96e571d.js +0 -2
  55. package/static/core/e7fa68c2.js +0 -28
  56. package/static/core/e88db487.js +0 -1
@@ -0,0 +1,9 @@
1
+ __emailmaker__.define("js/iframe-eblock.js",["require","exports","module","js/elMarkupHelper.C4wWAApZ.js"],function(h,w,M){const t=h("./elMarkupHelper.C4wWAApZ.js");var R=t.require_iframeResizer_contentWindow_min();function k(o){const s=new Map,e=[],c=[],l=[];for(const n of o)if(n instanceof HTMLLinkElement)n.getAttribute("em-class")?.startsWith("em-font-")&&c.push(n);else if(n instanceof HTMLStyleElement){const r=n.getAttribute("em")||"",d=s.get(r);d?d.push(n):s.set(r,[n])}else if(n instanceof Element)if(n.getAttribute("em")==="block")e.push(n);else{const r=n.querySelector("[em='block']");r&&e.push(r)}else n.textContent===`
2
+ `&&l.push(n);const a=[];for(const n of c)a.push(n);for(const[n,r]of s)if(r.length>1){let d=t.minifyStylesheet(r.map(m=>m.innerHTML).join(`
3
+ `),{restructure:!0,forceMediaMerge:!0}).css;if(d=cssbeautify(d,{indent:" ",autosemicolon:!0}),d){const m=document.createElement("style");m.innerHTML=`
4
+ ${d}
5
+ `,n&&m.setAttribute("em",n),a.push(m)}}else a.push(r[0]);for(const n of e)a.push(n);for(let n=a.length-1;n>0;n--)a.splice(n,0,l.length>=n?l[n-1]:document.createTextNode(`
6
+ `));return a}function _(o){return o.hasAttribute("amp-runtime")||o.hasAttribute("amp-extension")||o.hasAttribute("amp-boilerplate")}function S(o,s){let e=s;for(;e&&e.parentNode!==o;)e=e.parentNode;return e}function y(o,s){let e=o.nextSibling;for(;e&&!s.has(e);)e=e.nextSibling;return e}function p(o,s){let e=document.querySelector('body>[em="block-contaner"]');if(e){const c=document.querySelectorAll("style"),l=document.querySelectorAll("[em=block]"),a=document.querySelectorAll("link[em-class]");for(const i of c){if(e.contains(i)&&_(i)){document.head.appendChild(i),s?.markUntracked(i);continue}i.parentNode!==e&&!s?.isUntracked(i)&&!i.dataset.emLocalization&&!i.dataset.themeVaribalse&&(e.insertBefore(document.createTextNode(`
7
+ `),e.firstChild),e.insertBefore(i,e.firstChild))}const n=new Map;for(const i of l)if(i.parentNode!==e&&!s?.isUntracked(i)){const u=S(e,i);u instanceof Element&&u.getAttribute("em")!=="block"?(u.parentNode?.insertBefore(i,n.get(u)?.nextSibling??u),n.set(u,i)):(e.appendChild(document.createTextNode(`
8
+ `)),e.appendChild(i))}for(const i of a)!s?.isUntracked(i)&&!e.querySelector(`link[em-class="${i.getAttribute("em-class")}"]`)&&(e.insertBefore(document.createTextNode(`
9
+ `),e.firstChild),e.insertBefore(i,e.firstChild));const r=[...o??e.childNodes].filter(i=>!s?.isUntracked(i)),d=k(r);for(const i of r){const u=i.parentNode;d.indexOf(i)<0&&u&&u.removeChild(i)}const m=new Set(d);let b=null;for(const i of[...d].reverse())(i.parentNode!==e||y(i,m)!==b)&&e.insertBefore(i,b),b=i;return d}return[]}function g(o,s){if(o.length){const e=document.documentElement||document.appendChild(document.createElement("html"));document.head||e.insertBefore(document.createElement("head"),e.firstChild);const c=document.body||e.appendChild(document.createElement("body"));let l=null;for(const r of o)if(r instanceof Element&&r.tagName!=="STYLE")if(r.getAttribute("em")==="block"){l=r;break}else{const d=r.querySelector("[em='block']");if(d){l=d;break}}const a=l?.tagName.toLowerCase()==="tr"?"table":"div";let n=document.querySelector('body>[em="block-contaner"]');if(n&&n.tagName.toLowerCase()!==a&&n.remove(),!n){let r=c.insertBefore(document.createElement(a),c.firstChild);r.setAttribute("em","block-contaner"),a==="div"?(r.style.width="100%",r.style.margin="0 auto",r.style.maxWidth="100%"):(r.setAttribute("align","center"),r.setAttribute("cellspacing","0"),r.setAttribute("cellpadding","0"),r.setAttribute("border","0"),r.setAttribute("width","100%")),n=c.appendChild(r)}return p(o,s)}return o}var E={name:"block",mapHTMLRoots:g,rootsParent:()=>document.querySelector('body>[em="block-contaner"]'),beforeCommit:o=>{p(void 0,o)}};function T(o){const s=o.tagName==="TABLE"?o.getAttribute("width")||"":o.style.maxWidth;return!s||s.includes("%")?0:parseFloat(s)||0}function C(o){return(s,e)=>{const c=o();if(!c)return e;const l=T(c);return l?Math.min(e,l):e>=Math.round(c.getBoundingClientRect().width)?0:e}}var I=t.defineUnit({name:"sandbox.blockLayout",provides:[t.STYLE_ROOT_ID,t.VML_WIDTH_RESOLVER_ID],setup(o){o.inject(t.STYLE_ROOT_ID,()=>document.querySelector('[em="block"]')),o.inject(t.VML_WIDTH_RESOLVER_ID,C(()=>document.querySelector('body>[em="block-contaner"]')))}}),f='[em="block-contaner"]';function N(o){const s=o.tagName==="TABLE",e=s?o.getAttribute("width"):o.style.maxWidth,c=!!e&&(!s||e!=="auto");return{value:c?parseFloat(e):null,dim:c&&e.indexOf("%")>-1?"%":"px"}}var A=t.defineUnit({name:"sandbox.blockPreview",provides:[t.INIT_PREVIEW_ID],awaits:{services:[t.SYNC_COMMIT_ID,t.EDIT_LOCK_ID]},setup(o){const s=t.commitOf(o),e=t.requireService(o,t.EDIT_LOCK_ID);o.inject(t.INIT_PREVIEW_ID,()=>{e.closeEditorInit(),t.removeHiddenClasses(document);const c=document.querySelector(f);t.state.set("globalHolder",c);const l={structuresMedia:!document.querySelector('[em="block"] div[style*="display: inline-block"]')};c&&(l.width=N(c)),t.markAtomsAndClearRootHeight(),t.messageService.send({operation:t.EVENT_TYPES.APPLICATION_BLOCK_SETTINGS_SET,settings:l}),s(!1)})}}),L=t.defineUnit({name:"sandbox.blockInsertPolicy",provides:[t.INSERT_POLICY_ID],setup:o=>o.inject(t.INSERT_POLICY_ID,{assetsRoot:()=>document.querySelector(`body>${f}`)})}),v=t.defineUnit({name:"sandbox.blockOperations",awaits:{services:[t.SYNC_COMMIT_ID]},setup(o){const s=t.requireService(o,t.SYNC_COMMIT_ID);t.messageService.addListener(e=>{const c=e.data??{};if(c.operation===t.EVENT_TYPES.SANDBOX_BLOCK_SETTINGS_SET){const l=c.settings??{},a=document.querySelector(f);if(t.state.set("globalHolder",a),a&&(l.width||l.backgroundColor==="")){const n=l.width;a.tagName==="TABLE"?a.setAttribute("width",`${n.value}${n.dim==="px"?"":"%"}`):a.style.maxWidth=`${n.value}${n.dim}`}s.commitLockedAsync()}})}}),O=[I,A,L,v],x=t.defineSurface({name:"block",profile:E,units:[t.diagnosticsAgentUnit,...t.CANVAS_CORE_UNITS,t.ampUnit,...t.EMAIL_LAYOUT_UNITS,...O,t.extensionsUnit(),t.paintGateUnit,t.wheelBridgeUnit,t.deviceWidthMediaGuardUnit]});t.startSandbox(x)});
@@ -1,7 +1,7 @@
1
1
  var e=window.__emailmaker__||(window.__emailmaker__={});(function(){"use strict";if(e!==void 0&&e.define)return;e===void 0&&(window.__amdEnv={});var t={},n={},r={},i={},a={},o=null,s={},c={},l=0;function u(e,t){l+=1;try{return e.factory.apply(null,t)}finally{--l}}var d=`./`,f={},p=60,m=`emailmaker:diagnostics`,h=[],g;function _(){if(g!==void 0)return g;g=!1;try{var e=/[?&]diagnostics(?:=([^&]*))?/.exec(window.location.search||``);if(e)return g=e[1]!==`0`,g;if(typeof window.__DIAGNOSTICS__==`boolean`)return g=!!window.__DIAGNOSTICS__,g;g=window.localStorage.getItem(m)===`1`}catch{g=!1}return g}function v(e,t){if(_()){var n={phase:e,at:performance.timeOrigin+performance.now(),kind:`wait`};t&&(n.parent=String(t)),h.push(n)}}function y(e){if(!e||e.__amdLogged)return e;try{Object.defineProperty(e,"__amdLogged",{value:!0,enumerable:!1})}catch{try{e.__amdLogged=!0}catch{}}try{var t=e&&e.message||`loader error`;console.error(`[AMD] `+(t.indexOf(`[AMD]`)===0?t.slice(6):t),e)}catch{}return e}function b(){try{if(e!==void 0&&e&&e.publicPath)return String(e.publicPath)}catch{}return`(not set)`}function x(){var e=b();return String(e).indexOf(`file:`)===0?` The page appears to be opened as a local file (file://) or publicPath was not configured. Serve the host app over HTTP(S) and set publicPath to the origin that serves editor assets (host bundler plugin or __amdEnv.setPublicPath). Current runtime publicPath=`+e+`.`:` Host bundler publicPath may be misconfigured (Vite/Webpack host plugin). In dev, set publicPath to the absolute origin that serves editor assets (for example http://localhost:3001/<outputFolder>/). Current runtime publicPath=`+e+`.`}function S(e){if(typeof fetch!=`function`)return Promise.resolve(``);function t(e){var t=(e.headers.get(`content-type`)||``).toLowerCase();try{e.body&&typeof e.body.cancel==`function`&&e.body.cancel()}catch{}return t.indexOf(`text/html`)>=0?` The URL returned HTML (Content-Type: text/html), not JavaScript — often a SPA fallback when asset paths are wrong.`:e.ok?``:` HTTP status `+e.status+` — the asset URL may be wrong or blocked by the server.`}return fetch(e,{method:`HEAD`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(function(n){return n.status===405||n.status===501?fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t):t(n)}).catch(function(){return fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t).catch(function(){return``})})}function C(e,t){var n=Error(`[AMD] Failed to load module "`+e+`"`+(t?`: `+t.message:``));return n.moduleId=e,n.cause=t,n}function w(e,t,n){var r=Error(`[AMD] Failed to resolve dependency "`+t+`" for module "`+e+`"`+(n?`: `+n.message:``));return r.moduleId=e,r.dependencyId=t,r.cause=n,r}function T(e){for(var t=String(e||``).split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];if(i&&i!==`.`){if(i===`..`){n.length>0&&n.pop();continue}n.push(i)}}return n.join(`/`)}function E(e){var t=String(e||``).replace(/\\/g,`/`),n=String(d||`./`).replace(/\\/g,`/`);return n=n.replace(/^\.\/+/,``),n=n.replace(/^\/+/,``),n&&n.slice(-1)!==`/`&&(n+=`/`),n&&t.indexOf(n)===0&&(t=t.slice(n.length)),t.indexOf(`./`)===0&&(t=t.slice(2)),t}function D(e){return{then:function(t,n){return e.then(t,n)},catch:function(t){return e.catch(t)},finally:function(t){return e.finally(t)}}}function O(e,t){var n=String(e||``);if(!n)return n;if(n.indexOf(`./`)!==0&&n.indexOf(`../`)!==0)return E(T(n));var r=t||``;if(Object.prototype.hasOwnProperty.call(f,r)){var i=String(f[r]||``);i&&!k(i)&&i.charAt(0)!==`/`&&(r=i)}var a=T(r),o=a?a.split(`/`):[];o.length>0&&o.pop();for(var s=n.split(`/`),c=0;c<s.length;c++){var l=s[c];if(l&&l!==`.`){if(l===`..`){o.length>0&&o.pop();continue}o.push(l)}}return E(o.join(`/`))}function k(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||e.indexOf(`//`)===0}function A(e){var t=String(e||``);if(!t||k(t))return t;try{var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return t}}function j(){var t=String(d||`./`);if(t.slice(-1)!==`/`&&(t+=`/`),k(t)||t.charAt(0)===`/`)return t;if(e!==void 0&&e&&e.publicPath)try{return new URL(t,A(e.publicPath)).href}catch{}return A(t)}function M(e,t){var n=O(e,t),r=j(),i=Object.prototype.hasOwnProperty.call(f,n)?String(f[n]||``):n;i.slice(-3)!==`.js`&&(i+=`.js`);try{return new URL(i,r).href}catch{return r+i}}function N(){if(typeof document>`u`)return``;var e=document.currentScript;if(e){var t=e.getAttribute(`data-amd-module-id`);if(t)return t}return``}function P(e,n,r){if(Array.isArray(e)?(r=n,n=e,e=N()):typeof e==`function`?(r=e,n=[],e=N()):typeof n==`function`&&(r=n,n=[]),!e)throw Error(`[AMD] Anonymous define() could not be associated with a module id`);e in t||(t[e]={deps:n||[],factory:r})}P.amd={async:!0};function F(e){var t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}P(`vite/preload-helper`,[`exports`],function(e){e.__vitePreload=function(e){return Promise.resolve().then(function(){return e().catch(F)})}});function I(){return function(){}}function L(e,t){return{id:e,exports:t,uri:M(e)}}function R(e,t,n,r){if(Array.isArray(e)){var i=Promise.all(e.map(function(e){return V(e,r)})).then(function(e){return t&&t.apply(null,e),e});return n&&i.catch(n),i}return V(e,r)}function z(e,o){if(Array.isArray(e))throw Error(`[AMD] syncRequire does not support dependency arrays`);var s=O(e,o);if(s in a)throw y(a[s]);if(s in n)return n[s];if(s in r||s in i)throw y(C(s,Error(`Module is still loading asynchronously`)));if(!(s in t))throw y(C(s,Error(`Module is not available for syncRequire`)));return U(s)}function B(e,i){if(o&&e in o){var s={},c=[e];for(s[e]=!0;c.length>0;){var l=o[c.shift()];if(l)for(var u=0;u<l.length;u++){var d=l[u];s[d]||(s[d]=!0,c.push(d),!(d in n||d in a||d in r)&&(d in o?d in t||K(d,i).catch(function(){}):d in t&&V(d).catch(function(){})))}}}}function V(e,i){var o=O(e,i);if(o in a)return Promise.reject(y(a[o]));if(o in n)return Promise.resolve(n[o]);if(o in r)return r[o];if(v(`core:module:`+o+`:ask`,i),o in t)r[o]=H(o);else{var s=M(o);r[o]=K(o).then(function(){return v(`core:module:`+o+`:loaded`,i),o in t?H(o):S(s).then(function(e){var t=C(o,Error(`Module not defined after script load from "`+s+`".`+e+x()));throw a[o]=t,y(t)})}).catch(function(e){delete r[o];var t=e&&e.moduleId===o?e:C(o,e);throw a[o]=t,y(t)})}return B(o),r[o]}function H(e){var i=t[e],o=W(e),s=I(),l=L(e,s);c[e]=s;function d(t){return n[e]=t,delete r[e],delete c[e],n[e]}return Promise.all(i.deps.map(function(t){return t===`exports`?s:t===`require`?o:t===`module`?l:V(t,e).catch(function(n){throw w(e,t,n)})})).then(function(t){v(`core:module:`+e+`:deps`);var n=u(i,t);return n&&typeof n.then==`function`?n.then(function(t){return v(`core:module:`+e+`:ready`),d(t===void 0?l.exports:t)}):(v(`core:module:`+e+`:ready`),d(n===void 0?l.exports:n))}).catch(function(t){throw delete r[e],delete c[e],a[e]=t,y(t)})}function U(e){var r=t[e],i=W(e),o=I(),s=L(e,o);try{var c=u(r,r.deps.map(function(t){if(t===`exports`)return o;if(t===`require`)return i;if(t===`module`)return s;try{return z(t,e)}catch(n){throw w(e,t,n)}}));if(c&&typeof c.then==`function`)throw C(e,Error(`Module resolved asynchronously and cannot be syncRequired`));return n[e]=c===void 0?s.exports:c,n[e]}catch(t){throw a[e]=t,y(t)}}function W(e){var o=function(o,s,u){if(Array.isArray(o))return R(o,s,u,e);var d=O(o,e);if(d in a)throw y(a[d]);return d in n?n[d]:d in c&&l>0?c[d]:d in r||d in i?D(V(o,e)):d in t?z(o,e):D(V(o,e))};return o.resolve=function(t){return O(t,e)},o.toUrl=function(t){return M(t,e)},o.sync=function(t){return z(t,e)},o}function G(t,n){var r=e!==void 0&&e?e.moduleTransport:null;if(typeof r!=`function`||e.blobBlocked)return null;try{var i=r(t,n);return i&&typeof i.then==`function`?i:null}catch{return null}}function K(t,n){if(t in i)return i[t];if(s[t]&&s[t]!==t)return i[t]=K(s[t],n),i[t];var r=M(t);if(document.querySelector(`script[src="`+r+`"]`))return i[t]=Promise.resolve(),i[t];var a=performance.now();function o(e){return J(t,r,!1,n).then(function(n){return q(t,e,a),n})}var c=G(r,t);return c?(i[t]=c.then(function(r){return r?J(t,URL.createObjectURL(r),!0,n).then(function(e){return q(t,`transport`,a),e},function(){return e.blobBlocked=!0,o(`network-after-blob`)}):o(`network-fallback`)},function(){return o(`network-after-transport-error`)}),i[t]):(i[t]=o(`network`),i[t])}function q(t,n,r){_()&&((e.loaderTimings||=[]).push({id:t,via:n,ms:Math.round((performance.now()-r)*10)/10}),typeof e.onLoaderTiming==`function`&&e.onLoaderTiming())}function J(e,t,n,r){return new Promise(function(a,o){var s=!1,c=document.createElement(`script`);c.src=t,c.setAttribute(`data-amd-module-id`,e),c.async=!0,r===`low`&&(c.fetchPriority=`low`);var l=p>0?p*1e3:0,u=null;function d(){u!=null&&(clearTimeout(u),u=null),c.onload=null,c.onerror=null,n&&typeof URL<`u`&&URL.revokeObjectURL&&URL.revokeObjectURL(t)}function f(e){s||(s=!0,d(),e())}l>0&&(u=setTimeout(function(){f(function(){delete i[e],o(y(C(e,Error(`Timed out after `+l+`ms loading script: `+t+`.`+x()))))})},l)),c.onload=function(){f(function(){a()})},c.onerror=function(){f(function(){delete i[e],o(y(C(e,Error(`Failed to load script: `+t+`.`+x()))))})},document.head.appendChild(c)})}R.config=function(e){if(e.baseUrl&&(d=e.baseUrl),e.paths)for(var t in e.paths)Object.prototype.hasOwnProperty.call(e.paths,t)&&(f[t]=e.paths[t]);if(e.bundles){for(var n in e.bundles)if(Object.prototype.hasOwnProperty.call(e.bundles,n))for(var r=0;r<e.bundles[n].length;r++)s[e.bundles[n][r]]=n}if(e.graph)for(var i in o||={},e.graph)Object.prototype.hasOwnProperty.call(e.graph,i)&&(o[i]=e.graph[i]);typeof e.waitSeconds==`number`&&e.waitSeconds>=0&&(p=e.waitSeconds)},R.warm=function(e,r){var i=r&&r.priority;return Promise.all((e||[]).map(function(e){var r=O(e);if(r in a)return Promise.reject(a[r]);var o=r in t||r in n?Promise.resolve():K(r,i);return B(r,i),o})).then(function(){})},R.modules=t,R.resolved=n,R.errors=a,R.toUrl=M,R.sync=z,e.define=P,e.require=R,e.syncRequire=z,e.diagnosticsBuffer=h})(),e.require.config({baseUrl:`./`});
2
2
 
3
- __emailmaker__.require.config({ paths: {"js/iframe-eblock.js":"js/iframe-eblock.body.ee1618fa.js"} });
3
+ __emailmaker__.require.config({ paths: {"js/iframe-eblock.js":"js/iframe-eblock.body.b63d7b8b.js"} });
4
4
 
5
- __emailmaker__.require.config({"graph":{"js/iframe-eblock.js":["js/elMarkupHelper.Buog1r0c.js"],"js/iframe.js":["js/elMarkupHelper.Buog1r0c.js"],"js/darkreader.CLd5EML2.js":[],"js/elMarkupHelper.Buog1r0c.js":[],"js/rules.CnnzdMsj.js":[],"js/typograf.all.Mun9CrLC.js":[]}});
5
+ __emailmaker__.require.config({"graph":{"js/iframe-eblock.js":["js/elMarkupHelper.C4wWAApZ.js"],"js/iframe.js":["js/elMarkupHelper.C4wWAApZ.js"],"js/darkreader.CLd5EML2.js":[],"js/elMarkupHelper.C4wWAApZ.js":[],"js/rules.CnnzdMsj.js":[],"js/typograf.all.Mun9CrLC.js":[]}});
6
6
 
7
7
  __emailmaker__.require("js/iframe-eblock.js");
@@ -0,0 +1,129 @@
1
+ __emailmaker__.define("js/iframe.js",["require","exports","module","js/elMarkupHelper.C4wWAApZ.js"],function(ee,ht,gt){const l=ee("./elMarkupHelper.C4wWAApZ.js");var te="confetti:open-settings",oe="confetti:start",ie="confetti:stop",re="confetti:complete",ne=class{constructor(e){l._defineProperty(this,"_app",void 0),l._defineProperty(this,"_state","idle"),l._defineProperty(this,"_activeEffects",new Map),l._defineProperty(this,"_onDocumentClick",t=>{const r=t.target;if(!r)return;const n=r.closest(".confetti-placeholder");if(!n)return;const a=n.getAttribute("data-confetti-preset")||void 0;this._app.use("MessageService").send(te,{preset:a})}),this._app=e}init(){const e=this._app.use("MessageService");e.addListener(oe,t=>this._handleStart(t.id,t.options)),e.addListener(ie,t=>this._handleStop(t.id)),document.addEventListener("click",this._onDocumentClick,!0)}_handleStart(e,t){const r={id:e,options:t,startTime:Date.now()};this._activeEffects.set(e,r),this._state="running",this.onEffectStart(e,t),this.renderConfetti(e,t);const n=t.duration||3e3;setTimeout(()=>{this._completeEffect(e)},n)}_handleStop(e){if(this._state="stopping",e==="all")for(const t of this._activeEffects.keys())this._completeEffect(t,!0);else this._completeEffect(e,!0)}_completeEffect(e,t=!1){this._activeEffects.get(e)&&(this._activeEffects.delete(e),this.clearConfetti(e,t),this.onEffectComplete(e),this._activeEffects.size===0&&(this._state="idle"),this._app.use("MessageService").send(re,{id:e}))}onEffectStart(e,t){}onEffectComplete(e){}getState(){return this._state}isRunning(){return this._state==="running"}dispose(){document.removeEventListener("click",this._onDocumentClick,!0),this._handleStop("all"),this._activeEffects.clear()}},le=class extends ne{constructor(e){super(e),l._defineProperty(this,"_containers",new Map)}renderConfetti(e,t){const r=this._getRenderBounds(),n=document.createElement("div");n.id=`confetti-${e}`,n.setAttribute("data-confetti-overlay","true"),n.style.cssText=`
2
+ position: absolute;
3
+ top: ${r.top}px;
4
+ left: ${r.left}px;
5
+ width: ${r.width}px;
6
+ height: ${r.height}px;
7
+ pointer-events: none;
8
+ z-index: 2147483647;
9
+ overflow: hidden;
10
+ display: block;
11
+ line-height: 0;
12
+ font-size: 0;
13
+ `,n.innerHTML=this._generateStaticSvg(t,r.width,r.height),document.body.appendChild(n),this._containers.set(e,n)}clearConfetti(e,t){const r=this._containers.get(e);r&&(r.remove(),this._containers.delete(e))}_generateStaticSvg(e,t,r){const{particleCount:n=100,angle:a=90,spread:o=45,colors:i=["#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff"],originX:s=.5,originY:c=.5}=e,d=Math.max(t,320),u=Math.max(r,220),m=Math.max(Math.min(d,u)*.48,140),f=(Math.max(e.duration||3e3,1800)/1e3).toFixed(2),b=s===.5?.22:s,y=c===.5?.62:c,p=d*b,h=u*y,w=[],V=[];for(let I=0;I<n;I++){const X=(a-o/2+Math.random()*o)*(Math.PI/180),K=30+Math.random()*m,ft=p+Math.cos(X)*K,pt=h-Math.sin(X)*K,A=ft-p,B=pt-h,J=i[Math.floor(Math.random()*i.length)],S=6+Math.random()*10,L=Math.random()*360,Z=90+Math.random()*180,C=.78+Math.random()*.22,E=(1.6+Math.random()*1.8).toFixed(2),T=(Math.random()*.35).toFixed(2);if(Math.random()>.5?w.push(`
14
+ <g transform="translate(${p} ${h})">
15
+ <circle cx="0" cy="0" r="${S/2}" fill="${J}" opacity="${C}">
16
+ <animateTransform attributeName="transform" type="translate" values="0 0; ${A*.72} ${B*.72}; ${A} ${B}" dur="${E}s" begin="${T}s" repeatCount="indefinite" />
17
+ <animate attributeName="opacity" values="0; ${C}; ${C}; 0" dur="${E}s" begin="${T}s" repeatCount="indefinite" />
18
+ <animate attributeName="r" values="${Math.max(S*.28,2)}; ${S/2}; ${Math.max(S*.18,1.5)}" dur="${E}s" begin="${T}s" repeatCount="indefinite" />
19
+ </circle>
20
+ </g>
21
+ `):w.push(`
22
+ <g transform="translate(${p} ${h}) rotate(${L})">
23
+ <rect x="${-S/2}" y="${-Math.max(S/4,2)}" width="${S}" height="${Math.max(S/2,4)}" fill="${J}" opacity="${C}" rx="2" ry="2">
24
+ <animateTransform attributeName="transform" type="translate" values="0 0; ${A*.74} ${B*.74}; ${A} ${B}" dur="${E}s" begin="${T}s" repeatCount="indefinite" additive="sum" />
25
+ <animateTransform attributeName="transform" type="rotate" values="${L}; ${L+Z}; ${L+Z*1.7}" dur="${E}s" begin="${T}s" repeatCount="indefinite" additive="sum" />
26
+ <animate attributeName="opacity" values="0; ${C}; ${C}; 0" dur="${E}s" begin="${T}s" repeatCount="indefinite" />
27
+ </rect>
28
+ </g>
29
+ `),I<Math.max(8,Math.floor(n/6))){const g=10+Math.random()*10,yt=p+A*(.35+Math.random()*.45),bt=h+B*(.2+Math.random()*.5),Q=(Math.random()*.6).toFixed(2);V.push(`
30
+ <g transform="translate(${yt} ${bt})">
31
+ <path
32
+ d="M0 ${-g/2} L${g/6} ${-g/6} L${g/2} 0 L${g/6} ${g/6} L0 ${g/2} L${-g/6} ${g/6} L${-g/2} 0 L${-g/6} ${-g/6} Z"
33
+ fill="rgba(255,255,255,0.9)"
34
+ opacity="0"
35
+ filter="url(#confettiGlow)"
36
+ >
37
+ <animate attributeName="opacity" values="0;0.9;0" dur="1.4s" begin="${Q}s" repeatCount="indefinite" />
38
+ <animateTransform attributeName="transform" type="scale" values="0.6;1;0.6" dur="1.4s" begin="${Q}s" repeatCount="indefinite" />
39
+ </path>
40
+ </g>
41
+ `)}}return`
42
+ <svg
43
+ xmlns="http://www.w3.org/2000/svg"
44
+ viewBox="0 0 ${d} ${u}"
45
+ width="${d}"
46
+ height="${u}"
47
+ preserveAspectRatio="none"
48
+ style="display:block;width:100%;height:100%;pointer-events:none"
49
+ >
50
+ <defs>
51
+ <filter id="confettiGlow" x="-50%" y="-50%" width="200%" height="200%">
52
+ <feGaussianBlur stdDeviation="2.5" result="blur" />
53
+ <feMerge>
54
+ <feMergeNode in="blur" />
55
+ <feMergeNode in="SourceGraphic" />
56
+ </feMerge>
57
+ </filter>
58
+ <radialGradient id="confettiAura" cx="50%" cy="50%" r="50%">
59
+ <stop offset="0%" stop-color="rgba(255,255,255,0.95)" />
60
+ <stop offset="45%" stop-color="rgba(255,255,255,0.32)" />
61
+ <stop offset="100%" stop-color="rgba(255,255,255,0)" />
62
+ </radialGradient>
63
+ <linearGradient id="confettiTrail" x1="0" y1="0" x2="1" y2="1">
64
+ <stop offset="0%" stop-color="rgba(255,255,255,0.9)" />
65
+ <stop offset="100%" stop-color="rgba(255,255,255,0)" />
66
+ </linearGradient>
67
+ </defs>
68
+ <rect width="100%" height="100%" fill="transparent" />
69
+ <g transform="translate(${p} ${h})">
70
+ <circle cx="0" cy="0" r="18" fill="url(#confettiAura)" opacity="0.7">
71
+ <animate attributeName="r" values="12;34;18" dur="${f}s" repeatCount="indefinite" />
72
+ <animate attributeName="opacity" values="0.75;0.18;0.55" dur="${f}s" repeatCount="indefinite" />
73
+ </circle>
74
+ <circle cx="0" cy="0" r="4" fill="#ffffff" opacity="0.95" filter="url(#confettiGlow)">
75
+ <animate attributeName="r" values="3;7;3" dur="1.6s" repeatCount="indefinite" />
76
+ <animate attributeName="opacity" values="0.7;1;0.55" dur="1.6s" repeatCount="indefinite" />
77
+ </circle>
78
+ <path d="M0 0 L58 -14" stroke="url(#confettiTrail)" stroke-width="5" stroke-linecap="round" opacity="0.65">
79
+ <animate attributeName="opacity" values="0.1;0.7;0.1" dur="1.8s" repeatCount="indefinite" />
80
+ </path>
81
+ </g>
82
+ ${V.join("")}
83
+ ${w.join("")}
84
+ </svg>
85
+ `}_getRenderBounds(){const e=this._getPlaceholderElement();if(e){const n=e.getBoundingClientRect(),a=320,o=220,i=Math.max(document.documentElement.clientWidth,window.innerWidth||0),s=Math.max(document.documentElement.clientHeight,window.innerHeight||0),c=n.right+12,d=n.left-a-12,u=c+a<=i?c:Math.max(8,d);return{top:Math.min(Math.max(8,n.top+n.height/2-o/2),Math.max(8,s-o-8))+window.scrollY,left:u+window.scrollX,width:a,height:o}}const t=this._getRenderRoot();if(!t)return{top:window.scrollY,left:window.scrollX,width:Math.max(window.innerWidth,800),height:Math.max(window.innerHeight,600)};const r=t.getBoundingClientRect();return{top:r.top+window.scrollY,left:r.left+window.scrollX,width:Math.max(Math.ceil(t.scrollWidth||r.width),Math.ceil(r.width),320),height:Math.max(Math.ceil(t.scrollHeight||r.height),Math.ceil(r.height),240)}}_getRenderRoot(){for(const e of['[em="block-contaner"]',".es-wrapper-color",".es-content-body",".es-content","body > table","body > div"]){const t=document.querySelector(e);if(t instanceof HTMLElement)return t}return document.body}_getPlaceholderElement(){const e=document.querySelector(".confetti-placeholder");return e instanceof HTMLElement?e:null}onEffectStart(e,t){}onEffectComplete(e){}dispose(){for(const e of this._containers.values())e.remove();this._containers.clear(),super.dispose()}},ae=[le];function se(e){const t=e.find(i=>i instanceof DocumentType),r=document.documentElement;let n=e.find(i=>i instanceof HTMLHtmlElement);if(!n){n=r||document.createElement("html");let i=e.find(c=>c instanceof HTMLHeadElement);if(i&&i.parentNode!==n){const c=document.head;if(c){n.replaceChild(i,c);for(const d of c.childNodes)i.appendChild(d)}else n.insertBefore(i,n.firstChild)}let s=e.find(c=>c instanceof HTMLBodyElement);if(!s){s=document.body||document.createElement("body");const c=e.filter(d=>d!==i&&d!==t).reverse();if(c.length){let d=null;for(const u of c)(u.parentNode!==s||u.nextSibling!==d)&&s.insertBefore(u,d),d=u}}if(s.parentNode!==n){const c=document.body;if(c){n.replaceChild(s,c);for(const d of c.childNodes)s.appendChild(d)}else n.appendChild(s)}}const a=[...n.childNodes];if(!a.find(i=>i instanceof HTMLHeadElement)){const i=e.find(s=>s instanceof HTMLHeadElement)||document.createElement("head");n.insertBefore(i,n.firstChild)}if(!a.find(i=>i instanceof HTMLBodyElement)){const i=e.find(s=>s instanceof HTMLBodyElement)||document.createElement("body");n.appendChild(i)}const o=document.doctype;return o!==t&&(o?t?document.replaceChild(t,o):document.removeChild(o):t&&document.insertBefore(t,document.firstChild)),r!==n&&(r?n?document.replaceChild(n,r):document.removeChild(r):n&&document.appendChild(n)),e}var ce='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',de={name:"email",mapHTMLRoots:se,createRoot:(e,t)=>{const n=t.length;let a=e.find(d=>d.tag==="html"),o=e.find(d=>d.type===l.NodeType.DOCTYPE);if(!a){e=e.filter(d=>d!==o),a=new l.Node(0,n,e),a.createdBy="createRoot",a.tag="html",a.children=e;for(const d of e)d.parent=a;a.startTagEnd=0,a.endTagStart=n,e=[a]}let i=a.children.find(d=>d.tag==="body"),s=a.children.find(d=>d.tag==="head");if(!i){const d=a.children.filter(u=>u!==s);i=new l.Node(s?s.end:a.startTagEnd||a.start,a.endTagStart||a.end,d,a),i.createdBy="createRoot",i.startTagEnd=i.start,i.endTagStart=i.end;for(const u of d)u.parent=i;i.tag="body",a.children=s?[s,i]:[i]}s||(s=new l.Node(a.startTagEnd||a.start,a.startTagEnd||a.start,[],a),s.createdBy="createRoot",s.startTagEnd=s.start,s.endTagStart=s.start,s.tag="head",a.children.unshift(s)),o||(o=new l.Node(0,0,[]),o.createdBy="createRoot",o.startTagEnd=0,o.endTagStart=0,o.type=l.NodeType.DOCTYPE,o.content=ce,e.unshift(o));const c=new l.Node(0,n,e);c.type=l.NodeType.ROOT;for(const d of e)d.parent=c,d.type===l.NodeType.ELEMENT&&d.tag!=="html"?(d.type=l.NodeType.COMMENT,d.content=t.substring(d.start,d.end),d.children=[]):d.type===l.NodeType.HTML&&(d.type=l.NodeType.COMMENT,d.content=d.content||"");return c}},St=l.require_iframeResizer_contentWindow_min();function _(){let e=null;if(document.querySelector(".preheader"))document.querySelectorAll(".preheader").length>1?document.querySelectorAll(".preheader").forEach(t=>{t.innerHTML.match(/[a-zA-Zа-яА-Я0-9]/gi)&&(e=t)}):e=document.querySelector(".preheader");else if(document.querySelector(".mcnPreviewText"))e=document.querySelector(".mcnPreviewText");else if(document.querySelector(".mail_preheader"))e=document.querySelector(".mail_preheader");else if(document.querySelector(".dvPreheader"))e=document.querySelector(".dvPreheader");else if(document.querySelector('[class*="letteros"]')||document.querySelector("[letteros-link]"))e=document.querySelector("body > div");else for(let t of document.querySelectorAll('[style*="display:none"], [style*="display: none"]'))if(t instanceof HTMLElement&&(parseInt(t.style.opacity)==0||t.style["mso-hide"]=="all"||t.style.overflow=="hidden"||parseInt(t.style.maxHeight)==0||parseInt(t.style.width)==0)&&t.tagName!="IMG"&&t.tagName!="TABLE"&&[...t.childNodes].filter(r=>r.nodeType==Node.TEXT_NODE).length>0){e=t;break}return e&&e.querySelector("div")?e=e.querySelector("div"):e&&e.querySelector("span")&&!e.querySelector("span")?.classList.contains("em-code")&&(e=e.querySelector("span")),e??void 0}function R(e){return!!e&&!document.querySelector("title")}function P(){const e=document.querySelector("title")?.textContent?.replaceAll("&nbsp;"," ").replaceAll("&zwnj;","").replace(/\u200C/g,"").replaceAll("<!--","").replaceAll("-->","")||"";return l.stripSubjectTags(e).replace(/\s+/g," ").trim()}function k(e=_()){const t=document.createElement("div");return t.innerHTML=e?.innerHTML||"",t.querySelectorAll(".em-code").forEach(r=>r.remove()),l.getElementInnerHTML(t).trim().replaceAll(/<vk-snippet-end\/>/g,"").replaceAll(/[\u034F\u200C\u2007\uFEFF]+/g,"").replaceAll("&amp;","&").replaceAll("&#847;","").replaceAll("&#65279;","").replaceAll("&#8199;","").replaceAll("&zwnj;","").replace(/\u200C/g,"").replaceAll("<!--","").replaceAll("-->","").replace(/(?:&nbsp;|\s)+$/,"").trim()}function M(e){e.nodeName=="#comment"&&e.textContent&&e.textContent.indexOf("mso")>=0?e.remove():e.previousSibling&&M(e.previousSibling)}function F(e){e.nodeName=="#comment"&&e.textContent&&e.textContent.indexOf("endif")>=0?e.remove():e.nextSibling&&F(e.nextSibling)}var ue="&#847;&zwnj; &#8199;&#65279;",H="#f0f1f3",D='<span style="display:none !important;font-size:0;height:0;line-height:0;max-height:0;max-width:0;opacity:0;overflow:hidden;visibility:hidden;width:0">⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀'+new Array(200).fill("&nbsp;&zwnj;").join("")+"</span>";function x(e){return!!e&&e instanceof HTMLElement&&e.tagName==="SPAN"&&e.style&&e.style.display==="none"&&e.style.fontSize==="0px"&&e.style.visibility==="hidden"}function W(e){const t=e.nextSibling;return t&&l.isComment(t)&&t.data==="<![endif]"?t:null}function me(e){const t=W(e);t&&t.nextSibling&&x(t.nextSibling)?t.nextSibling.remove():!t&&e.nextSibling&&x(e.nextSibling)&&e.nextSibling.remove();const r=l.parseFromString(D);r.length&&(t&&t.parentNode?t.parentNode.insertBefore(r[0],t.nextSibling):e.parentNode&&e.parentNode.insertBefore(r[0],e.nextSibling))}var O=e=>{M(e),F(e);const t=e.nextElementSibling;t instanceof HTMLElement&&t.style&&t.style.color==="transparent"&&(M(t),F(t),t.remove());const r=e instanceof HTMLElement?W(e):null;for(r&&r.nextSibling&&x(r.nextSibling)?r.nextSibling.remove():e.nextSibling&&x(e.nextSibling)&&e.nextSibling.remove();e.previousSibling&&l.isTextNode(e.previousSibling)&&e.previousSibling.data.trim()==="";)e.previousSibling.remove();for(;e.nextSibling&&l.isTextNode(e.nextSibling)&&e.nextSibling.data.trim()==="";)e.nextSibling.remove();e.remove()};function fe(e){return!(e.tagName!=="DIV"||l.rgbToHex(e.style.color)!==H||e.style.lineHeight!=="0px"||e.style.fontSize!=="0px"||!e.previousSibling||!l.isComment(e.previousSibling)||e.previousSibling.data!=="[if !mso]><!"||!e.nextSibling||!l.isComment(e.nextSibling)||e.nextSibling.data!=="<![endif]")}function pe(e,t){let r=_(),n="";(e.length||t)&&(e=e.endsWith(" ")?e:e+" ",e=e+"<vk-snippet-end>͏‌</vk-snippet-end>͏",n=e.padEnd(e.length+5460,ue));const a=l.parseFromString(n);if(r&&!fe(r)&&(O(r),r=null),r)a.length?(r.replaceChildren(...a),me(r)):O(r);else if(a.length){const o=document.createElement("div");o.classList.add("preheader"),o.style.color=H,o.style.lineHeight=o.style.fontSize="0px",o.replaceChildren(...a),document.body?.prepend(o),o.insertAdjacentHTML("afterend",D)}}function ye(e,t){return!!t&&(k()||"")!==e}function be(e,t){return!!t&&(document.querySelector("title")?.textContent??"")!==e}function he(){return document.querySelector("title")?.textContent??void 0}async function $(e,t,r,n){const a=r();await e.whenSent(),t()&&r()===a&&n()}function ge(e,t){let r;const n=new l.Disposable;let a=!1,o="",i=0;const s=u=>{a=!1,r=void 0,o=u.guid,i+=1},c=u=>(a=!0,r=k()||"",l.messageService.sendAsync(l.EVENT_TYPES.APPLICATION_PREHEADER_UPDATE,{guid:o,value:r})),d=async({guid:u,value:m,force:f,fromAI:b,echo:y,undoStep:p})=>{if(f||await t.whenEditorLostFocusAsync("preheader"),typeof m=="string"&&u===o&&(r!==m||ye(m,f))){const h=i;r=m,pe(m),await e.commit(!!b||!!p,!0),(b||y)&&await $(e,()=>h===i,()=>k(),()=>l.messageService.send(l.EVENT_TYPES.APPLICATION_PREHEADER_UPDATE,{guid:o,value:r,forced:!!y&&!b}))}};return n.addDisposable(l.messageService.addListenerAsync(l.EVENT_TYPES.SANDBOX_PREHEADER_UPDATE,d)),n.addDisposable(l.messageService.addListenerAsync(l.EVENT_TYPES.SANDBOX_INIT_START,s)),n.addDisposable(l.messageService.addListenerAsync(l.EVENT_TYPES.SANDBOX_INITED,c)),n.addDisposable(e.onChange(()=>{if(a){const u=k()||"";u!==r&&(r=u,l.messageService.send(l.EVENT_TYPES.APPLICATION_PREHEADER_UPDATE,{guid:o,value:r}))}})),n}function Se(e,t){let r;const n=new l.Disposable;let a="",o=!1,i=0;const s=u=>{o=!1,r=void 0,a=u.guid,i+=1},c=u=>{if(!(u?.guid&&a&&u.guid!==a))return o=!0,R(r)||(r=P()||""),l.messageService.sendAsync(l.EVENT_TYPES.APPLICATION_SUBJECT_UPDATE,{guid:a,value:r})},d=async({guid:u,value:m,force:f,fromAI:b,echo:y,undoStep:p})=>{if(f||await t.whenEditorLostFocusAsync("subject"),typeof m=="string"&&u===a&&(r!==m||be(m,f))){const h=i;r=m,document.title=m,await e.commit(!!b||!!p,!0),(b||y)&&await $(e,()=>h===i,he,()=>l.messageService.send(l.EVENT_TYPES.APPLICATION_SUBJECT_UPDATE,{value:m,guid:a,forced:!!y&&!b}))}};return n.addDisposable(l.messageService.addListenerAsync(l.EVENT_TYPES.SANDBOX_SUBJECT_UPDATE,d)),n.addDisposable(l.messageService.addListenerAsync(l.EVENT_TYPES.SANDBOX_INIT_START,s)),n.addDisposable(l.messageService.addListenerAsync(l.EVENT_TYPES.SANDBOX_INITED,c)),n.addDisposable(e.onChange(()=>{if(o){if(R(r))return;const u=P()||"";u!==r&&(r=u,l.messageService.send(l.EVENT_TYPES.APPLICATION_SUBJECT_UPDATE,{value:u,guid:a}))}})),n}function ve(){return l.messageService.addListenerAsync(l.EVENT_TYPES.SANDBOX_IS_EMAIL_EMPTY,e=>{const t=document.querySelector(".em-narrow-table");return t?!(t.querySelectorAll("tr").length>0):!0})}function Ce(e){return{blocks:e.querySelectorAll('[em="block"]').length,textLength:(e.body?.textContent??"").replace(/\s+/g," ").trim().length}}function Ee(){return l.messageService.addListenerAsync(l.EVENT_TYPES.SANDBOX_CANVAS_HEALTH,()=>Ce(document))}function Te(e){if(!e)return{backgroundColor:void 0,backgroundImage:void 0,backgroundPositionX:void 0,backgroundPositionY:void 0,backgroundRepeat:void 0,backgroundSize:void 0};const t={};if(e.style.backgroundColor?t.backgroundColor=e.style.backgroundColor:e.getAttribute("bgcolor")&&(t.backgroundColor=e.getAttribute("bgcolor")||void 0),e.style.backgroundImage){const r=e.style.backgroundImage;t.backgroundImage=[{type:"url",value:r?r.substring(5,r.length-2):""}]}else e.getAttribute("background")&&(t.backgroundImage=[{type:"url",value:e.getAttribute("background")||""}]);return t.backgroundPositionX=e.style.backgroundPositionX||void 0,t.backgroundPositionY=e.style.backgroundPositionY||void 0,t.backgroundRepeat=e.style.backgroundRepeat||void 0,t.backgroundSize=e.style.backgroundSize||void 0,t}function ke(e){if(e){if(document.querySelector(".es-header")||document.querySelector(".es-content")||document.querySelector(".es-footer")){const t=e.querySelector(".es-content"),r=e.querySelector(".es-content-body");return parseFloat(t?.style.width||"")||parseFloat(r?.style.width||"")||void 0}if(document.querySelector(".nl-container")&&document.querySelector(".row")){const t=document.querySelector(".row-content");return parseFloat(t?.style.width||"")||parseFloat(t?.getAttribute("width")||"")||void 0}if(document.querySelector(".nl-container")&&!document.querySelector(".row")){const t=e.querySelector('[style*="max-width"]');return parseFloat(t?.style.maxWidth||"")||void 0}if(document.querySelector('[class*="letteros"]')||document.querySelector("[letteros-link]")){const t=e.querySelector("table:first-child");if(t?.style.maxWidth)return parseFloat(t.style.maxWidth)||void 0}if(document.querySelector(".container-div")){const t=e.querySelector("div:first-child");if(t?.style.maxWidth)return parseFloat(t.style.maxWidth)||void 0}if(document.querySelector(".email-container")){const t=document.querySelector(".email-container");return parseFloat(t?.getAttribute("width")||"")||void 0}return we(e)}}function we(e){const t=e.querySelector("table:first-child");if(!t)return;const r=parseFloat(t.getAttribute("width")||""),n=parseFloat(t.style.maxWidth||"");if(r>700||n>700){const o=e.querySelector('table:first-child [em="block"] > td > table');if(o){const i=o.getAttribute("width");return i&&i.indexOf("%")===-1?parseFloat(i):o.style.maxWidth?parseFloat(o.style.maxWidth):e.querySelector('table:first-child [em="block"]')?.clientWidth||660}return 660}const a=t.getAttribute("width");if(a&&a.indexOf("%")===-1)return parseFloat(a);if(t.style.maxWidth)return parseFloat(t.style.maxWidth)}function Ae(e,t){const r={shutdown:void 0,styles:!0};if(!e||!t)return r;const n=e.querySelector("table:first-child");if(!n)return r;const a=n.getAttribute("width"),o=parseFloat(n.style.minWidth||"");return a&&a.indexOf("%")===-1&&o===parseFloat(a)||e.querySelector(".noresp-em-narrow-table")?{shutdown:!1,styles:!1}:{shutdown:!0,styles:!0}}var Be=2;function xe(e,t){!e||!t||document.querySelector(".noresp-em-narrow-table, .em-narrow-table")&&(e.getBoundingClientRect().width<=t||document.querySelectorAll("img").forEach(r=>{const n=r.closest("td")?.getBoundingClientRect().width;n&&parseFloat(r.getAttribute("width")||"")>n+Be&&n>10&&r.style.display!=="none"&&(r.setAttribute("width",String(Math.ceil(n))),r.style.maxWidth=Math.ceil(n)+"px")}))}function Le(e){const t=e.findGlobalHolder();e.setGlobalHolder(t);const r={operation:"application_email_settings_set",settings:{subject:e.getSubject(),preheader:e.getPreheader(),responsive:{shutdown:void 0,styles:!0},structuresMedia:!(document.querySelector('[em="block"] div[style*="display: inline-block"]')&&!document.querySelector('[em="block"] .em-mob-wrap, [em="block"] .noresp-em-mob-wrap')),usedColors:e.getUsedColors(),noBlocks:!1,width:{value:void 0,dim:"px"},backgroundColor:void 0,backgroundImage:void 0,backgroundPositionX:void 0,backgroundPositionY:void 0,backgroundRepeat:void 0,backgroundSize:void 0,backgroundColorContent:void 0}};if(t){const s=Te(t);s.backgroundColor&&s.backgroundColor.startsWith("rgb")&&(s.backgroundColor=e.rgbToHex(s.backgroundColor)),Object.assign(r.settings,s)}e.elMarkupHelper(),document.querySelector('[em="block"]')||(r.settings.noBlocks=!0);const n=ke(t),a=e.state.get("emailWidth"),o=e.getEmailWidth(),i=typeof a=="number"&&a>=320?a:typeof o=="number"&&o>=320?o:n;r.settings.width.value=i,t&&(r.settings.responsive=Ae(t,i),typeof i=="number"&&e.state.set("emailWidth",i)),e.messageService.send(r),xe(t,e.getEmailWidth())}function _e(e,t=!1){e.closeEditorInit(),document.body&&(e.removeHiddenClasses(document),Le(e),e.commit(!1))}function q(e,t){t[1]==="Sans Serif"?e.style.fontFamily="Helvetica, Arial, sans-serif":t[1]==="Serif"?e.style.fontFamily='"Times New Roman", Times, serif':t[1]==="Project Fonts"&&l.applyProjectFontInlineFallback(e,t[2])}function Pe(e,t){const r=e?.toLowerCase();return r==="#ffffff"&&r!==t?.toLowerCase()}function Me(e,t){const{lockEditor:r,commonStyles:n,globalHolder:a}=t;if(r)return;const o=document.querySelectorAll('div[style*="font-family"]');Fe(e,o,t),qe(e,o,t),Ie(e,t),Re(e,t),Oe(e,t),$e(e,t);const i={operation:"application_commonStyles_update",settings:{commonStyles:n}};t.messageService.send(i)}function Fe(e,t,r){const{commonStyles:n,rgbToHex:a}=r;if(e.textFontFamily!==void 0){let o=[];t.forEach(i=>{const s=i;let c;!s.style.display&&parseFloat(s.style.fontSize)<=20&&(o=e.textFontFamily,o[0]==="Safe Fonts"?(s.style.fontFamily=o[1],(c=[...s.classList].filter(d=>d.startsWith("em-font-"))[0])&&(s.classList.remove(c),n.text.fontFamily?.[2]&&r.clearLinkTags({elem:document.documentElement,fontFamilyClassName:l.buildEmFontClassName(n.text.fontFamily[2],n.text.fontFamily[3])}),r.clearProjectFontFaces())):o[0]==="Google Fonts"&&(q(s,o),r.removeClassesByPrefix(s,"em-font"),s.classList.add(r.createFontClassName(o)),l.markProjectFontClass(s,o)))}),o.length>0&&o[0]==="Google Fonts"&&r.addFontFamilyClass({fontFamilyArray:o}),r.clearProjectFontFaces(),n.text.fontFamily=e.textFontFamily}e.textFontSize!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)<=20&&parseFloat(i.style.fontSize)>14&&(i.style.fontSize=e.textFontSize+"px")}),n.text.fontSize=e.textFontSize),e.textLineHeight!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)<=20&&parseFloat(i.style.fontSize)>14&&(i.style.lineHeight=e.textLineHeight+"px")}),n.text.lineHeight=e.textLineHeight),e.textColor!==void 0&&(t.forEach(o=>{const i=o;!i.closest(".em-contrast-block")&&!i.style.display&&parseFloat(i.style.fontSize)<=20&&!Pe(a(i.style.color),a(n.text.color))&&(i.style.color=e.textColor)}),n.text.color=e.textColor),e.textContrastColor!==void 0&&(t.forEach(o=>{const i=o;i.closest(".em-contrast-block")&&!i.style.display&&parseFloat(i.style.fontSize)<=20&&(i.style.color=e.textContrastColor)}),n.text.contrastColor=e.textContrastColor),e.textPaddingBottom!==void 0&&(t.forEach(o=>{const i=o;if(i.closest('[em="atom"]')){if(!i.style.display&&parseFloat(i.style.fontSize)<=20&&i.closest("table")?.getAttribute("em")=="atom"){const s=i.closest('[em="atom"]')?.querySelector(":scope > tr > td, :scope > tbody > tr > td");s&&(s.style.paddingBottom=e.textPaddingBottom+"px",s.querySelector(":scope > .em-vindent-paddingBottom")?.remove())}}else if(i.nextElementSibling){const s=i.nextElementSibling;if(!i.style.display&&parseFloat(i.style.fontSize)<=20&&i.parentElement?.getAttribute("em")=="atom"&&s&&s.tagName=="TABLE"&&(s.classList.contains("em-vindent-table")||s.querySelector("td")?.innerHTML=="")){s.querySelector("td")?.setAttribute("height",e.textPaddingBottom);const c=s.querySelector(".em-element-vindent-value");c&&(c.innerHTML=e.textPaddingBottom+"px",e.textPaddingBottom<30?s.querySelector(".em-vindent")?.classList.add("em-vindent_low"):s.querySelector(".em-vindent")?.classList.remove("em-vindent_low"))}}}),n.text.paddingBottom=e.textPaddingBottom)}function qe(e,t,r){const{commonStyles:n,rgbToHex:a}=r;if(e.headingFontFamily!==void 0){let o=[];t.forEach(i=>{const s=i;let c;!s.style.display&&parseFloat(s.style.fontSize)>20&&a(s.style.color).toLowerCase()!=="#eb3737"&&(o=e.headingFontFamily,o[0]==="Safe Fonts"?(s.style.fontFamily=o[1],(c=[...s.classList].filter(d=>d.startsWith("em-font-"))[0])&&(s.classList.remove(c),n.headings.fontFamily?.[2]&&r.clearLinkTags({elem:document.documentElement,fontFamilyClassName:l.buildEmFontClassName(n.headings.fontFamily[2],n.headings.fontFamily[3])}),r.clearProjectFontFaces())):o[0]==="Google Fonts"&&(q(s,o),r.removeClassesByPrefix(s,"em-font"),s.classList.add(r.createFontClassName(o)),l.markProjectFontClass(s,o)))}),o.length>0&&o[0]==="Google Fonts"&&r.addFontFamilyClass({fontFamilyArray:o}),r.clearProjectFontFaces(),n.headings.fontFamily=e.headingFontFamily}e.headingFontSize!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)>=20&&a(i.style.color).toLowerCase()!=="#eb3737"&&parseFloat(i.style.fontSize)<=40&&(i.style.fontSize=e.headingFontSize+"px")}),n.headings.fontSize=e.headingFontSize),e.headingLineHeight!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)>20&&a(i.style.color).toLowerCase()!=="#eb3737"&&parseFloat(i.style.fontSize)<=40&&(i.style.lineHeight=e.headingLineHeight+"px")}),n.headings.lineHeight=e.headingLineHeight),e.headingLetterSpacing!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)>20&&a(i.style.color).toLowerCase()!=="#eb3737"&&(e.headingLetterSpacing>0?i.style.letterSpacing=e.headingLetterSpacing+"px":i.style.removeProperty("letter-spacing"))}),n.headings.letterSpacing=e.headingLetterSpacing),e.headingBold!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)>20&&a(i.style.color).toLowerCase()!=="#eb3737"&&(e.headingBold?i.querySelector("b")?i.querySelector("b").replaceWith(...i.querySelector("b").childNodes):i.querySelector("strong")||(i.innerHTML="<strong>"+i.innerHTML+"</strong>"):i.querySelector("strong")?i.querySelector("strong").replaceWith(...i.querySelector("strong").childNodes):i.querySelector("b")&&i.querySelector("b").replaceWith(...i.querySelector("b").childNodes),i.style.fontWeight&&i.style.removeProperty("font-weight"))}),n.headings.bold=e.headingBold),e.headingItalic!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)>20&&a(i.style.color).toLowerCase()!=="#eb3737"&&(e.headingItalic?i.querySelector("i")?i.querySelector("i").replaceWith(...i.querySelector("i").childNodes):i.querySelector("em")||(i.innerHTML="<em>"+i.innerHTML+"</em>"):i.querySelector("em")?i.querySelector("em").replaceWith(...i.querySelector("em").childNodes):i.querySelector("i")&&i.querySelector("i").replaceWith(...i.querySelector("i").childNodes),i.style.fontStyle&&i.style.removeProperty("font-style"))}),n.headings.italic=e.headingItalic),e.headingColor!==void 0&&(t.forEach(o=>{const i=o;!i.closest(".em-contrast-block")&&!i.style.display&&parseFloat(i.style.fontSize)>20&&a(i.style.color).toLowerCase()!=="#eb3737"&&(i.style.color=e.headingColor)}),n.headings.color=e.headingColor),e.headingContrastColor!==void 0&&(t.forEach(o=>{const i=o;i.closest(".em-contrast-block")&&!i.style.display&&parseFloat(i.style.fontSize)>20&&(i.style.color=e.headingContrastColor)}),n.headings.contrastColor=e.headingContrastColor),Ne(e,t,r),e.blockDarkBackgroundColor!==void 0&&(n.block.darkBackgroundColor=e.blockDarkBackgroundColor)}function Ne(e,t,r){const{commonStyles:n,rgbToHex:a}=r;e.headingPaddingTop!==void 0&&(t.forEach(o=>{const i=o;if(i.closest('[em="atom"]')){if(!i.style.display&&parseFloat(i.style.fontSize)>20&&a(i.style.color).toLowerCase()!=="#eb3737"&&i.closest("table")?.getAttribute("em")=="atom"){const s=i.closest('[em="atom"]')?.querySelector(":scope > tr > td, :scope > tbody > tr > td");s&&(s.style.paddingTop=e.headingPaddingTop+"px",s.querySelector(":scope > .em-vindent-paddingTop")?.remove())}}else if(i.previousElementSibling){const s=i.previousElementSibling;if(!i.style.display&&parseFloat(i.style.fontSize)>20&&a(i.style.color).toLowerCase()!=="#eb3737"&&i.parentElement?.getAttribute("em")=="atom"&&s&&s.tagName=="TABLE"&&(s.classList.contains("em-vindent-table")||s.querySelector("td")?.innerHTML=="")){s.querySelector("td")?.setAttribute("height",e.headingPaddingTop);const c=s.querySelector(".em-element-vindent-value");c&&(c.innerHTML=e.headingPaddingTop+"px",e.headingPaddingTop<30?s.querySelector(".em-vindent")?.classList.add("em-vindent_low"):s.querySelector(".em-vindent")?.classList.remove("em-vindent_low"))}}}),n.headings.paddingTop=e.headingPaddingTop),e.headingPaddingBottom!==void 0&&(document.querySelectorAll('div[style*="font-family"]').forEach(o=>{const i=o,s=i.closest('[em="atom"]');if(s){const c=s.querySelector(":scope > tr > td, :scope > tbody > tr > td");c?.style.paddingBottom&&!i.style.display&&parseFloat(i.style.fontSize)>20&&a(i.style.color).toLowerCase()!=="#eb3737"&&i.closest("table")?.getAttribute("em")=="atom"&&(c.style.paddingBottom=e.headingPaddingBottom+"px",c.querySelector(":scope > .em-vindent-paddingBottom")?.remove())}else if(i.nextElementSibling){const c=i.nextElementSibling;if(!i.style.display&&parseFloat(i.style.fontSize)>20&&a(i.style.color).toLowerCase()!=="#eb3737"&&i.parentElement?.getAttribute("em")=="atom"&&c&&c.tagName=="TABLE"&&(c.classList.contains("em-vindent-table")||c.querySelector("td")?.innerHTML=="")){c.querySelector("td")?.setAttribute("height",e.headingPaddingBottom);const d=c.querySelector(".em-element-vindent-value");d&&(d.innerHTML=e.headingPaddingBottom+"px",e.headingPaddingBottom<30?c.querySelector(".em-vindent")?.classList.add("em-vindent_low"):c.querySelector(".em-vindent")?.classList.remove("em-vindent_low"))}}}),n.headings.paddingBottom=e.headingPaddingBottom)}function Ie(e,t){const{commonStyles:r}=t,n=document.querySelectorAll('a[style*="color"]');e.linkColor!==void 0&&(n.forEach(a=>{const o=a;!o.closest(".em-contrast-block")&&!o.style.display&&(o.style.color=e.linkColor)}),r.links.color=e.linkColor),e.linkContrastColor!==void 0&&(n.forEach(a=>{const o=a;o.closest(".em-contrast-block")&&!o.style.display&&(o.style.color=e.linkContrastColor)}),r.links.contrastColor=e.linkContrastColor),e.linkUnderline!==void 0&&(n.forEach(a=>{const o=a;if(!o.style.display){o.style.textDecoration=e.linkUnderline?"underline":"none";const i=o.parentElement;i&&i.tagName=="SPAN"&&i.style.textDecoration=="underline"&&i.replaceWith(...i.childNodes)}}),r.links.underline=e.linkUnderline)}function Re(e,t){const{commonStyles:r}=t,n=document.querySelectorAll('a[style*="font-family"]');if(e.buttonsFontFamily!==void 0){let a=[];n.forEach(o=>{const i=o;let s;i.style.display&&i.style.display=="block"&&(a=e.buttonsFontFamily,a[0]==="Safe Fonts"?(i.style.fontFamily=a[1],(s=[...i.classList].filter(c=>c.startsWith("em-font-"))[0])&&(i.classList.remove(s),r.buttons.fontFamily?.[2]&&t.clearLinkTags({elem:document.documentElement,fontFamilyClassName:l.buildEmFontClassName(r.buttons.fontFamily[2],r.buttons.fontFamily[3])}),t.clearProjectFontFaces())):a[0]==="Google Fonts"&&(q(i,a),t.removeClassesByPrefix(i,"em-font"),i.classList.add(t.createFontClassName(a)),l.markProjectFontClass(i,a)))}),a.length>0&&a[0]==="Google Fonts"&&t.addFontFamilyClass({fontFamilyArray:a}),t.clearProjectFontFaces(),r.buttons.fontFamily=e.buttonsFontFamily}e.buttonsFontSize!==void 0&&(n.forEach(a=>{const o=a;o.style.display&&o.style.display=="block"&&(o.style.fontSize=e.buttonsFontSize+"px")}),r.buttons.fontSize=e.buttonsFontSize),e.buttonsLetterSpacing!==void 0&&(n.forEach(a=>{const o=a;o.style.display&&o.style.display=="block"&&(e.buttonsLetterSpacing>0?o.style.letterSpacing=e.buttonsLetterSpacing+"px":o.style.removeProperty("letter-spacing"))}),r.buttons.letterSpacing=e.buttonsLetterSpacing),He(e,n,t),De(e,n,t),We(e,n,t)}function He(e,t,r){const{commonStyles:n}=r;e.buttonsColor!==void 0&&(t.forEach(a=>{const o=a;!o.closest(".em-contrast-block")&&o.style.display&&o.style.display=="block"&&(o.style.color=e.buttonsColor)}),n.buttons.color=e.buttonsColor),e.buttonsContrastColor!==void 0&&(t.forEach(a=>{const o=a;o.closest(".em-contrast-block")&&o.style.display&&o.style.display=="block"&&(o.style.color=e.buttonsContrastColor)}),n.buttons.contrastColor=e.buttonsContrastColor),e.buttonsBold!==void 0&&(t.forEach(a=>{const o=a;o.style.display&&o.style.display=="block"&&(e.buttonsBold?o.querySelector("b")?o.querySelector("b").replaceWith(...o.querySelector("b").childNodes):o.querySelector("strong")||(o.innerHTML="<strong>"+o.innerHTML+"</strong>"):o.querySelector("strong")?o.querySelector("strong").replaceWith(...o.querySelector("strong").childNodes):o.querySelector("b")&&o.querySelector("b").replaceWith(...o.querySelector("b").childNodes),o.style.fontWeight&&o.style.removeProperty("font-weight"))}),n.buttons.bold=e.buttonsBold),e.buttonsItalic!==void 0&&(t.forEach(a=>{const o=a;o.style.display&&o.style.display=="block"&&(e.buttonsItalic?o.querySelector("i")?o.querySelector("i").replaceWith(...o.querySelector("i").childNodes):o.querySelector("em")||(o.innerHTML="<em>"+o.innerHTML+"</em>"):o.querySelector("em")?o.querySelector("em").replaceWith(...o.querySelector("em").childNodes):o.querySelector("i")&&o.querySelector("i").replaceWith(...o.querySelector("i").childNodes),o.style.fontStyle&&o.style.removeProperty("font-style"))}),n.buttons.italic=e.buttonsItalic),e.buttonsBackgroundColor!==void 0&&(t.forEach(a=>{const o=a;if(!o.closest(".em-contrast-block")&&o.style.display&&o.style.display=="block"){const i=o.closest("td");i&&(i.getAttribute("bgcolor")&&(e.buttonsBackgroundColor?i.setAttribute("bgcolor",e.buttonsBackgroundColor):i.removeAttribute("bgcolor")),e.buttonsBackgroundColor?i.style.backgroundColor=e.buttonsBackgroundColor:i.style.removeProperty("background-color"))}}),n.buttons.backgroundColor=e.buttonsBackgroundColor),e.buttonsContrastBackgroundColor!==void 0&&(t.forEach(a=>{const o=a;if(o.closest(".em-contrast-block")&&o.style.display&&o.style.display=="block"){const i=o.closest("td");i&&(i.getAttribute("bgcolor")&&(e.buttonsContrastBackgroundColor?i.setAttribute("bgcolor",e.buttonsContrastBackgroundColor):i.removeAttribute("bgcolor")),e.buttonsContrastBackgroundColor?i.style.backgroundColor=e.buttonsContrastBackgroundColor:i.style.removeProperty("background-color"))}}),n.buttons.contrastBackgroundColor=e.buttonsContrastBackgroundColor),e.buttonsAlign!==void 0&&(t.forEach(a=>{const o=a;o.style.display&&o.style.display=="block"&&o.closest("td")?.setAttribute("align",e.buttonsAlign)}),n.buttons.textAlign=e.buttonsAlign)}function De(e,t,r){const{commonStyles:n}=r;e.buttonsMarginTop!==void 0&&(t.forEach(a=>{const o=a,i=o.closest('[em="atom"]');if(i){const s=i.querySelector(":scope > tr > td, :scope > tbody > tr > td");s?.style.paddingTop&&o.style.display&&o.style.display=="block"&&(s.style.paddingTop=e.buttonsMarginTop+"px",s.querySelector(":scope > .em-vindent-paddingTop")?.remove())}else{const s=o.closest("table");if(s?.previousElementSibling){const c=s.previousElementSibling,d=o.closest("div");if(o.style.display&&o.style.display=="block"&&d&&d.getAttribute("em")=="atom"&&c&&c.tagName=="TABLE"&&(c.classList.contains("em-vindent-table")||c.querySelector("td")?.innerHTML=="")){c.querySelector("td")?.setAttribute("height",e.buttonsMarginTop);const u=c.querySelector(".em-element-vindent-value");u&&(u.innerHTML=e.buttonsMarginTop+"px",e.buttonsMarginTop<30?c.querySelector(".em-vindent")?.classList.add("em-vindent_low"):c.querySelector(".em-vindent")?.classList.remove("em-vindent_low"))}}}}),n.buttons.marginTop=e.buttonsMarginTop),e.buttonsMarginBottom!==void 0&&(t.forEach(a=>{const o=a,i=o.closest('[em="atom"]');if(i){const s=i.querySelector(":scope > tr > td, :scope > tbody > tr > td");s?.style.paddingBottom&&o.style.display&&o.style.display=="block"&&(s.style.paddingBottom=e.buttonsMarginBottom+"px",s.querySelector(":scope > .em-vindent-paddingBottom")?.remove())}else{const s=o.closest("table");if(s?.previousElementSibling){const c=s.nextElementSibling,d=o.closest("div");if(o.style.display&&o.style.display=="block"&&d&&d.getAttribute("em")=="atom"&&c&&c.tagName=="TABLE"&&(c.classList.contains("em-vindent-table")||c.querySelector("td")?.innerHTML=="")){c.querySelector("td")?.setAttribute("height",e.buttonsMarginBottom);const u=c.querySelector(".em-element-vindent-value");u&&(u.innerHTML=e.buttonsMarginBottom+"px",e.buttonsMarginBottom<30?c.querySelector(".em-vindent")?.classList.add("em-vindent_low"):c.querySelector(".em-vindent")?.classList.remove("em-vindent_low"))}}}}),n.buttons.marginBottom=e.buttonsMarginBottom)}function We(e,t,r){const{commonStyles:n,setElementBorder:a,setElementBorderRadius:o}=r;e.buttonsBorder!==void 0&&(t.forEach(i=>{const s=i;if(s.style.display&&s.style.display=="block"){const c=s.closest("td");c&&a({settings:{border:e.buttonsBorder},elem:c})}}),e.buttonsBorder.all!==void 0&&(n.buttons.border.all=e.buttonsBorder.all),e.buttonsBorder.top!==void 0&&(n.buttons.border.top=e.buttonsBorder.top),e.buttonsBorder.right!==void 0&&(n.buttons.border.right=e.buttonsBorder.right),e.buttonsBorder.bottom!==void 0&&(n.buttons.border.bottom=e.buttonsBorder.bottom),e.buttonsBorder.left!==void 0&&(n.buttons.border.left=e.buttonsBorder.left)),e.buttonsBorderRadius!==void 0&&(t.forEach(i=>{const s=i;if(s.style.display&&s.style.display=="block"){const c=s.closest("td");c&&o({settings:{borderRadius:e.buttonsBorderRadius},elem:c})}}),e.buttonsBorderRadius.all!==void 0&&(n.buttons.borderRadius.all=e.buttonsBorderRadius.all),e.buttonsBorderRadius.topLeft!==void 0&&(n.buttons.borderRadius.topLeft=e.buttonsBorderRadius.topLeft),e.buttonsBorderRadius.topRight!==void 0&&(n.buttons.borderRadius.topRight=e.buttonsBorderRadius.topRight),e.buttonsBorderRadius.bottomRight!==void 0&&(n.buttons.borderRadius.bottomRight=e.buttonsBorderRadius.bottomRight),e.buttonsBorderRadius.bottomLeft!==void 0&&(n.buttons.borderRadius.bottomLeft=e.buttonsBorderRadius.bottomLeft)),e.buttonsPadding!==void 0&&(t.forEach(i=>{const s=i;s.style.display&&s.style.display=="block"&&(e.buttonsPadding.all!==void 0?(s.style.paddingTop=e.buttonsPadding.all+"px",s.style.paddingRight=e.buttonsPadding.all+"px",s.style.paddingBottom=e.buttonsPadding.all+"px",s.style.paddingLeft=e.buttonsPadding.all+"px"):((e.buttonsPadding.top!==void 0||e.buttonsPadding.top==0)&&(s.style.paddingTop=e.buttonsPadding.top+"px"),(e.buttonsPadding.right!==void 0||e.buttonsPadding.right==0)&&(s.style.paddingRight=e.buttonsPadding.right+"px"),(e.buttonsPadding.bottom!==void 0||e.buttonsPadding.bottom==0)&&(s.style.paddingBottom=e.buttonsPadding.bottom+"px"),(e.buttonsPadding.left!==void 0||e.buttonsPadding.left==0)&&(s.style.paddingLeft=e.buttonsPadding.left+"px")))}),e.buttonsPadding.all!==void 0&&(n.buttons.padding={all:e.buttonsPadding.all}),e.buttonsPadding.top!==void 0&&(n.buttons.padding={top:e.buttonsPadding.top}),e.buttonsPadding.right!==void 0&&(n.buttons.padding={right:e.buttonsPadding.right}),e.buttonsPadding.bottom!==void 0&&(n.buttons.padding={bottom:e.buttonsPadding.bottom}),e.buttonsPadding.left!==void 0&&(n.buttons.padding={left:e.buttonsPadding.left}))}function Oe(e,t){const{commonStyles:r,setElementBorder:n,setElementBorderRadius:a}=t;r.cards||(r.cards={});const o=document.querySelectorAll(".em-contrast-card");e.cardsContrastBackgroundColor!==void 0&&(o.forEach(c=>{const d=c;d.getAttribute("bgcolor")&&(e.cardsContrastBackgroundColor?d.setAttribute("bgcolor",e.cardsContrastBackgroundColor):d.removeAttribute("bgcolor")),e.cardsContrastBackgroundColor?d.style.backgroundColor=e.cardsContrastBackgroundColor:d.style.removeProperty("background-color")}),r.cards.contrastBackgroundColor=e.cardsContrastBackgroundColor),e.cardsContrastTextColor!==void 0&&(o.forEach(c=>{c.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach(d=>{d.style.color=e.cardsContrastTextColor})}),r.cards.contrastTextColor=e.cardsContrastTextColor);const i=document.querySelectorAll(".em-card");e.cardsBaseBackgroundColor!==void 0&&(i.forEach(c=>{const d=c;d.getAttribute("bgcolor")&&(e.cardsBaseBackgroundColor?d.setAttribute("bgcolor",e.cardsBaseBackgroundColor):d.removeAttribute("bgcolor")),e.cardsBaseBackgroundColor?d.style.backgroundColor=e.cardsBaseBackgroundColor:d.style.removeProperty("background-color")}),r.cards.baseBackgroundColor=e.cardsBaseBackgroundColor),e.cardsBaseTextColor!==void 0&&(i.forEach(c=>{c.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach(d=>{d.style.color=e.cardsBaseTextColor})}),r.cards.baseTextColor=e.cardsBaseTextColor);const s=document.querySelectorAll(".em-card, .em-contrast-card");e.cardsBorderRadius!==void 0&&(r.cards.borderRadius||(r.cards.borderRadius={}),s.forEach(c=>{a({settings:{borderRadius:e.cardsBorderRadius},elem:c})}),e.cardsBorderRadius.all!==void 0&&(r.cards.borderRadius.all=e.cardsBorderRadius.all),e.cardsBorderRadius.topLeft!==void 0&&(r.cards.borderRadius.topLeft=e.cardsBorderRadius.topLeft),e.cardsBorderRadius.topRight!==void 0&&(r.cards.borderRadius.topRight=e.cardsBorderRadius.topRight),e.cardsBorderRadius.bottomRight!==void 0&&(r.cards.borderRadius.bottomRight=e.cardsBorderRadius.bottomRight),e.cardsBorderRadius.bottomLeft!==void 0&&(r.cards.borderRadius.bottomLeft=e.cardsBorderRadius.bottomLeft)),e.cardsBorder!==void 0&&(r.cards.border||(r.cards.border={}),s.forEach(c=>{n({settings:{border:e.cardsBorder},elem:c})}),e.cardsBorder.all&&(r.cards.border.all=e.cardsBorder.all),e.cardsBorder.top&&(r.cards.border.top=e.cardsBorder.top),e.cardsBorder.right&&(r.cards.border.right=e.cardsBorder.right),e.cardsBorder.bottom&&(r.cards.border.bottom=e.cardsBorder.bottom),e.cardsBorder.left&&(r.cards.border.left=e.cardsBorder.left))}function $e(e,t){const{commonStyles:r,globalHolder:n}=t;if(!n)return;const a=n.classList.contains("full-wrap")?n.querySelector("td"):n;if(!a)return;(e.blockBackgroundColor!==void 0||e.blockBackgroundColor==="")&&z(e.blockBackgroundColor,a,!1,r),(e.blockContrastBackgroundColor!==void 0||e.blockContrastBackgroundColor==="")&&z(e.blockContrastBackgroundColor,a,!0,r);const o=document.querySelectorAll('[em="block"] > td');if(e.blockPadding!==void 0){const i=e.blockPadding;r.block||(r.block={}),r.block.padding||(r.block.padding={});const s=i.left!==void 0||i.right!==void 0;o.forEach(c=>{const d=c;i.top!==void 0&&(d.style.paddingTop=`${i.top}px`),i.right!==void 0&&(d.style.paddingRight=`${i.right}px`),i.bottom!==void 0&&(d.style.paddingBottom=`${i.bottom}px`),i.left!==void 0&&(d.style.paddingLeft=`${i.left}px`)}),["top","right","bottom","left"].forEach(c=>{i[c]!==void 0&&(r.block.padding[c]=i[c])}),s&&o.forEach(c=>{const d=c,u=d.querySelector(".em-mob-wrap"),m=d.parentElement?.getAttribute("em")==="block";u&&m&&d.querySelectorAll(":scope > table").forEach(f=>{t.setStructureBlocksWidth(f)})})}}function z(e,t,r,n){const a=t.querySelector(".em-narrow-table"),o=r?'[em="block"].em-contrast-block > td':'[em="block"]:not(.em-contrast-block) > td',i=r?'[em="block"] > td > table > tr > [bgcolor]':'[em="block"]:not(.em-contrast-block) > td > table > tr > [bgcolor]',s=r?'[em="block"] > td > table > tr > [style*="background-color"]':'[em="block"]:not(.em-contrast-block) > td > table > tr > [style*="background-color"]';a?e===""?t.querySelectorAll(o).forEach(c=>{const d=c;d.removeAttribute("bgcolor"),d.style.removeProperty("background-color")}):t.querySelectorAll(o).forEach(c=>{const d=c;d.setAttribute("bgcolor",e),d.style.backgroundColor=e}):e===""?t.querySelector(i)?t.querySelectorAll(i).forEach(c=>{const d=c;d.removeAttribute("bgcolor"),d.style.removeProperty("background-color")}):t.querySelector(s)&&t.querySelectorAll(s).forEach(c=>{const d=c;d.removeAttribute("bgcolor"),d.style.removeProperty("background-color")}):t.querySelector(i)?t.querySelectorAll(i).forEach(c=>{const d=c;d.style.backgroundColor=e,d.setAttribute("bgcolor",e)}):t.querySelector(s)&&t.querySelectorAll(s).forEach(c=>{const d=c;d.style.backgroundColor=e,d.setAttribute("bgcolor",e)}),r?n.block.contrastBackgroundColor=e:n.block.backgroundColor=e}var ze=320;function U(e){if(e==null||e==="")return null;if(typeof e=="number"&&!Number.isNaN(e))return e;if(typeof e=="object"&&e!==null&&"value"in e){const t=Number(e.value);return Number.isNaN(t)?null:t}return null}function j(){for(const e of document.body.children)if(e.tagName==="DIV"||e.tagName==="CENTER"){const t=e;if(t.style.background||t.style.backgroundColor)return e;for(const r of e.children)if(r.tagName==="DIV"){if(t.style.background||t.style.backgroundColor)return e;for(const n of r.children){const a=n;if(a.getAttribute("width")==="100%"||a.style.width==="100%")return n}}else{const n=r;if(n.getAttribute("width")==="100%"||n.style.width==="100%")return r}}else{const t=e;if(t.getAttribute("width")==="100%"||t.style.width==="100%")return e}return null}function Ue(e,t){const{globalHolder:r,emailWidth:n,state:a,findParentTr:o}=t,i=U(e.width);if(i==null||i<ze||!r)return!1;function s(c){if(c.elem.nodeName==="#comment"&&c.elem.textContent?.indexOf("mso")!==-1)c.elem.textContent=c.elem.textContent.replace(/width=".*"/gi,`width="${c.width}"`);else{const d=c.elem.previousSibling;d&&s({elem:d,width:c.width})}}return r.querySelector(".em-narrow-table")||r.querySelector(".noresp-em-narrow-table")?(je(r,i,n,s),Ye(r,e,n,o,s)):Xe(r,i,n,s),n>500&&r.querySelectorAll(`[width="${n}"]`).forEach(c=>{c.setAttribute("width",String(i))}),Ke(i),a.set("emailWidth",i),!0}function je(e,t,r,n){e.querySelectorAll('[style*="width"]').forEach(a=>{const o=a;o.style.verticalAlign||(o.style.width&&parseFloat(o.style.width)===r&&(o.style.width=t+"px"),o.style.maxWidth&&parseFloat(o.style.maxWidth)===r&&(o.style.maxWidth=t+"px"),o.style.minWidth&&parseFloat(o.style.minWidth)===r&&(o.style.minWidth=t+"px"),n({elem:o,width:t}))})}function Ye(e,t,r,n,a){const o=[];e.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)").forEach(s=>{const c=n(s);c&&!o.includes(c)&&o.push(c)});const i=t.project==="useblocks"?640:660;o.forEach(s=>{const c=s.querySelector(".em-mob-wrap, .noresp-em-mob-wrap");if(!c)return;const d=c.parentElement?.closest("td"),u=parseFloat(d?.style.paddingLeft||"0")||0,m=parseFloat(d?.style.paddingRight||"0")||0,f=c.closest("table")?.parentElement?.getBoundingClientRect().width||0,b=s.querySelector(".em-mob-wrap:empty, .noresp-em-mob-wrap:empty")?660:i;if(s.querySelectorAll(".em-mob-wrap, .noresp-em-mob-wrap").length>1)Ge(s)&&Ve(s,f,u,m,b);else if(c.getAttribute("width")&&!c.classList.contains("em-insert-ignore")){const y=Math.round(f-u-m);c.setAttribute("width",String(y))}})}function Ge(e){const t=e.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)");for(let r=0;r<t.length;r++){const n=t[r];if(n.classList.contains("em-insert-ignore"))continue;const a=n.getAttribute("width");if(a!=null&&a!=="")return!0}return!1}function Ve(e,t,r,n,a){const o=e.querySelector(".em-mob-wrap:nth-child(even), .noresp-em-mob-wrap:nth-child(even)"),i=o?parseFloat(o.getAttribute("width")||"0"):0,s=e.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)"),c=s.length;let d=0,u=0;s.forEach(b=>{const y=b;if(y.getAttribute("width")&&!y.classList.contains("em-insert-ignore")){const p=parseFloat(y.getAttribute("width")||"0")/a,h=Math.round(t*p-i/(c*2));y.setAttribute("width",String(h)),d+=h}});const m=t-(r+n+i*(c-1)+d);s.forEach(b=>{const y=b;if(y.getAttribute("width")&&!y.classList.contains("em-insert-ignore")){const p=parseFloat(y.getAttribute("width")||"0")+Math.round(m/c);u+=p,y.setAttribute("width",String(p)),y.querySelectorAll("img").forEach(h=>{parseFloat(h.getAttribute("width")||"0")>p&&(h.setAttribute("width",String(p)),h.style.maxWidth=p+"px")})}}),u=u+i*(c-1)+r+n;const f=t-u;if(f!==0&&d>0){const b=e.querySelector(".em-mob-wrap:last-child, .noresp-em-mob-wrap:last-child");if(b&&!b.classList.contains("em-insert-ignore")){const y=parseFloat(b.getAttribute("width")||"0");b.setAttribute("width",String(y+f))}else{const y=e.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)");for(let p=y.length-1;p>=0;p--){const h=y[p];if(h.classList.contains("em-insert-ignore"))continue;const w=parseFloat(h.getAttribute("width")||"0");h.setAttribute("width",String(w+f));break}}}}function Xe(e,t,r,n){e.querySelectorAll('div[style*="inline-block"]').forEach(a=>{const o=a;if(!o.getAttribute("em-floatblock-width")){const i=o.parentElement?.getBoundingClientRect().width||1;o.setAttribute("em-floatblock-width",String(o.getBoundingClientRect().width/i))}}),e.querySelectorAll('[style*="width"]').forEach(a=>{const o=a;o.style.verticalAlign||(o.style.width&&parseFloat(o.style.width)===r&&(o.style.width=t+"px"),o.style.maxWidth&&parseFloat(o.style.maxWidth)===r&&(o.style.maxWidth=t+"px"),o.style.minWidth&&parseFloat(o.style.minWidth)===r&&(o.style.minWidth=t+"px"),n({elem:o,width:t}))}),e.querySelectorAll('div[style*="inline-block"]').forEach(a=>{const o=a,i=o.parentElement?.getBoundingClientRect().width||0,s=parseFloat(o.getAttribute("em-floatblock-width")||"0"),c=o.getBoundingClientRect().width-(o.firstElementChild?.getBoundingClientRect().width||0),d=o.getBoundingClientRect().width-c;let u=0;o.style.maxWidth?(o.style.maxWidth=Math.floor(i*s)+"px",u=o.getBoundingClientRect().width-c,o.firstElementChild&&(o.firstElementChild.setAttribute("width",String(Math.round(u))),o.firstElementChild.style.maxWidth=Math.round(u)+"px")):o.style.width&&(o.style.width=Math.floor(i*s)+"px",u=o.getBoundingClientRect().width-c,o.firstElementChild?.setAttribute("width",String(u))),n({elem:o,width:Math.floor(i*s)}),o.removeAttribute("em-floatblock-width"),o.querySelectorAll("img").forEach(m=>{const f=parseFloat(m.getAttribute("width")||"0");(f>=u||f===d)&&(m.setAttribute("width",String(u)),m.style.maxWidth=u+"px")})})}function Ke(e){for(const t of document.head.querySelectorAll("style"))if(t.innerHTML.match(/@media.*?max((.|\n|\r)*?){/)){t.innerHTML=t.innerHTML.replace(/max-device-width:\d+px/gi,`max-device-width:${e}px`),t.innerHTML=t.innerHTML.replace(/max-width:\d+px/gi,`max-width:${e}px`);break}}function Je(e,t){e.querySelectorAll("img, amp-img").forEach(r=>{const n=r;if(t){const a=n.getAttribute("width");if(a)if(n.style.width="100%",a.includes("%"))n.style.maxWidth=a;else{const o=parseFloat(a);Number.isNaN(o)||(n.style.maxWidth=`${o}px`)}}else n.style.removeProperty("width"),n.style.removeProperty("max-width")})}function Ze(e,t){if(e.responsive===void 0||!t)return;const r=U(e.width);if(e.responsive.shutdown){const n=t.querySelector(".noresp-em-narrow-table");if(n)n.className=n.className.replace(/noresp-em-narrow/gi,"em-narrow");else{const a=t.querySelector("table:first-child");a&&(a.setAttribute("width","100%"),a.style.width="100%",r!=null&&(a.style.maxWidth=r+"px"),a.style.minWidth="320px")}document.querySelectorAll('[class*="noresp-em-mob"]').forEach(a=>{a.className=a.className.replace(/noresp-em-mob/gi,"em-mob")}),document.documentElement.removeAttribute("style")}else{const n=t.querySelector(".em-narrow-table");if(n)n.className=n.className.replace(/em-narrow/gi,"noresp-em-narrow");else{const a=t.querySelector("table:first-child");a&&r!=null&&(a.setAttribute("width",String(r)),a.style.width=r+"px",a.style.maxWidth=r+"px",a.style.minWidth=r+"px")}document.querySelectorAll('[class*="em-mob"]:not([class*="noresp-em-mob"])').forEach(a=>{a.className=a.className.replace(/em-mob/gi,"noresp-em-mob")})}Je(t,!!e.responsive.shutdown)}function Qe(e,t){if(!e||!e.length)return;let r=document.head.querySelector('style[em="styles"]'),n="";r?n=t.getInnerHtml(r):(r=document.createElement("style"),r.setAttribute("em","styles"),r=document.head.insertAdjacentElement("beforeend",r));const a=document.createElement("div");a.insertAdjacentHTML("afterbegin",e.join(`
86
+ `));let o=l.minifyStylesheet(n+`
87
+ `+[...a.querySelectorAll("style")].map(i=>i.innerHTML).join(`
88
+ `),{restructure:!0,forceMediaMerge:!0}).css;o=cssbeautify(o,{indent:" ",autosemicolon:!0}),r&&(r.textContent=`
89
+ `+o+`
90
+ `)}var Y=`<style em="styles">
91
+ @media only screen and (max-device-width:660px),only screen and (max-width:660px) {
92
+ .em-mob-width-100perc {
93
+ width: 100%!important;
94
+ max-width: 100%!important;
95
+ }
96
+ }
97
+ </style>
98
+ <table cellpadding="0" cellspacing="0" border="0" width="100%" class="em-mob-width-100perc" em="atom"><tr><td style="padding-bottom: 10px;">
99
+ <div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
100
+ </td></tr></table>`,et=`<style>
101
+ @media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {
102
+ .em-mob-wrap {
103
+ display: block!important;
104
+ }
105
+ .em-mob-width-100perc {
106
+ width: 100%!important;
107
+ max-width: 100%!important;
108
+ }
109
+ .em-mob-padding_right-20 {
110
+ padding-right: 20px!important;
111
+ }
112
+ .em-mob-padding_left-20 {
113
+ padding-left: 20px!important;
114
+ }
115
+ }
116
+ </style>
117
+ <tr em="block" class="em-structure">
118
+ <td align="center" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20" bgcolor="#ffffff">
119
+ <table align="center" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">
120
+ <tr>
121
+ <td width="600" valign="top" class="em-mob-wrap em-mob-width-100perc">
122
+ {{ATOM_HTML}}
123
+ </td>
124
+ </tr>
125
+ </table>
126
+ </td>
127
+ </tr>`;function tt(e,t){if(!(e&&(l.isEmptyTable(e)||!e.innerHTML.trim()))||t.getLockEditor())return!1;const r=Y.match(/<style((.|\n|\r)*?)<\/style>/g);t.applyStylesToDocument(r||[]);let n=Y.replaceAll(/<style((.|\n|\r)*?)<\/style>/gi,"").trim();n=t.commonStylesApply({html:n});let a=et.replace("{{ATOM_HTML}}",n);const o=a.match(/<style((.|\n|\r)*?)<\/style>/g);t.applyStylesToDocument(o||[]),a=t.commonStylesApplyToBlock({html:a}),(a.indexOf("empty-structure")>-1||a.indexOf("em-structure")>-1)&&(a=t.setFloatBlocksWidth({blockHTML:a,targetBlock:e,project:t.appName})),l.insertAdjacentHTML(l.rowsHost(e),"beforeend",`
128
+ `+a+`
129
+ `);const i=e.querySelector('[em="block"]:last-child [em="atom"]');if(i){const s=i.querySelector("div");let c=null;s&&(s.innerHTML="",s.appendChild(document.createTextNode("​")),t.wrapEditor(s,!0),s.classList.add("em-just-inserted"),setTimeout(()=>{const d=s.closest("editor")||s,u=d?.querySelector("div")||s,m=u||d||s,f=m.getBoundingClientRect();["mouseover","mousedown","mouseup","click"].forEach(p=>{const h=new MouseEvent(p,{bubbles:!0,cancelable:!0,view:window,clientX:f.left+Math.min(1,Math.max(0,f.width/2)),clientY:f.top+Math.min(1,Math.max(0,f.height/2)),button:0});l.withForeignListenersPaused(()=>m.dispatchEvent(h))});let b=u.firstChild;b||(b=document.createTextNode("​"),u.appendChild(b)),l.withForeignListenersPaused(()=>d?.focus?.());const y=window.getSelection();if(y&&b){const p=document.createRange();p.setStart(b,0),p.collapse(!0),y.removeAllRanges(),l.withForeignListenersPaused(()=>y.addRange(p))}t.setCursorPosition(d||s),t.commit()},0),c=s.closest("editor")||s),s&&t.setCursorPosition(c||s)}return t.messageService.send("application_atom_inserted","text"),t.commit(),!0}function ot({getGlobalHolder:e,view:t=window}){let r=0;const n=()=>{r=0,l.state.get("previewPage")&&l.fitEmailToWidth(e(),t)},a=()=>{!r&&l.state.get("previewPage")&&(r=t.requestAnimationFrame(n))},o=l.state.subscribeToKey("previewPage",i=>{i?a():l.applyRootScale(t.document.documentElement,1)&&t.parentIFrame?.size?.()});return t.addEventListener("resize",a),a(),{refit:a,dispose:()=>{o(),t.removeEventListener("resize",a),r&&(t.cancelAnimationFrame(r),r=0)}}}var v=l.createIdentifier("SandboxEmailGlobalHolder"),N=l.createIdentifier("SandboxPreviewFit");function it(){l.setBlockGroupControlsPosition({scrollTop:l.state.get("scrollTop")})}var rt=l.defineUnit({name:"sandbox.emailInitialState",setup(){l.editLock.reset(),l.state.update({activeCell:[],globalHolder:null,applicationTheme:"light",iframeOffsetTop:0,scrollTop:0,previewHeight:0,applicationMode:"default",emailWidth:0,elementPath:[],copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,elementAIimageEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,blocksAddPanelEnabled:!0,codeMode:!0,appName:"",commonStyles:{},isProgrammaticSelection:!1}),l.implementPolyfills()}}),nt=l.defineUnit({name:"sandbox.emailGlobalHolder",provides:[v],setup(e){let t=null;l.state.subscribe(r=>{"globalHolder"in r&&(t=r.globalHolder??null)}),e.inject(v,{get:()=>t,set:r=>{t=r}})}}),lt=l.defineUnit({name:"sandbox.emailPreview",provides:[l.INIT_PREVIEW_ID,N],awaits:{services:[v,l.SYNC_COMMIT_ID,l.EDIT_LOCK_ID]},setup(e){const t=l.requireService(e,v),r=l.commitOf(e),n=l.requireService(e,l.EDIT_LOCK_ID),a=ot({getGlobalHolder:()=>t.get()});e.inject(N,a),e.inject(l.INIT_PREVIEW_ID,(o=!1)=>{_e({state:l.state,getEmailWidth:()=>l.state.get("emailWidth"),closeEditorInit:()=>n.closeEditorInit(),messageService:l.messageService,removeHiddenClasses:l.removeHiddenClasses,findGlobalHolder:j,elMarkupHelper:()=>l.elMarkupHelper(t.get()),rgbToHex:l.rgbToHex,getSubject:P,getPreheader:k,getUsedColors:l.getUsedColors,commit:r,setGlobalHolder:i=>t.set(i)},o),a.refit()})}}),at=l.defineUnit({name:"sandbox.emailInsertPolicy",provides:[l.INSERT_POLICY_ID],setup:e=>e.inject(l.INSERT_POLICY_ID,{})});function G(e){const t=l.requireService(e,l.HTML_DOCUMENT_ID),r=l.commitOf(e);return{commit:r,htmlDocument:t,applyStylesToDocument:n=>Qe(n,t),setFloatBlocksWidth:n=>l.setFloatBlocksWidth(n,t),setBlockMaxWidth:n=>l.setBlockMaxWidth(n,t),commonStylesApply:n=>l.commonStylesApply(n,r)}}var st=l.defineUnit({name:"sandbox.emailNarrowTable",provides:[l.NARROW_TABLE_TEXT_ATOM_ID],awaits:{services:[l.HTML_DOCUMENT_ID,l.SYNC_COMMIT_ID,l.WRAP_EDITOR_ID,l.SET_CURSOR_ID,l.EDIT_LOCK_ID]},setup(e){const t=G(e),r=l.requireService(e,l.EDIT_LOCK_ID),n=l.requireService(e,l.WRAP_EDITOR_ID).now,a=l.requireService(e,l.SET_CURSOR_ID);e.inject(l.NARROW_TABLE_TEXT_ATOM_ID,o=>tt(o,{getLockEditor:()=>r.isIntegratorLocked(),applyStylesToDocument:t.applyStylesToDocument,commonStylesApply:t.commonStylesApply,commonStylesApplyToBlock:l.commonStylesApplyToBlock,setFloatBlocksWidth:i=>t.setFloatBlocksWidth({...i,targetBlock:i.targetBlock}),appName:l.state.get("appName"),wrapEditor:n,setCursorPosition:a,messageService:l.messageService,commit:()=>t.commit()}))}}),ct=l.defineUnit({name:"sandbox.emailDocumentServices",awaits:{services:[l.HTML_DOCUMENT_ID,l.FOCUS_ID]},setup(e){const t=l.requireService(e,l.HTML_DOCUMENT_ID),{controller:r}=l.requireService(e,l.FOCUS_ID);ve(),Ee(),ge(t,r),Se(t,r)}}),dt=l.defineUnit({name:"sandbox.emailOperations",awaits:{services:[v,l.HTML_DOCUMENT_ID,l.SYNC_COMMIT_ID,l.SELECTION_LOCK_ID,l.EDIT_LOCK_ID]},setup(e){const t=l.requireService(e,v),r=l.requireService(e,l.SYNC_COMMIT_ID),n=l.requireService(e,l.SELECTION_LOCK_ID),a=l.requireService(e,l.EDIT_LOCK_ID),o=G(e),{commit:i,htmlDocument:s}=o,c=()=>({state:l.state,previewHeight:l.state.get("previewHeight"),iframeOffsetTop:l.state.get("iframeOffsetTop"),scrollTop:l.state.get("scrollTop"),globalHolder:t.get(),setBlockGroupControlsPosition:it,messageService:l.messageService});l.messageService.addListener(function(d){const u=d.data??{};if(u.operation===l.EVENT_TYPES.SANDBOX_EMAIL_SETTINGS_SET){const m=u.settings??{};t.set(j());const f=t.get();if(f){const p=f.classList.contains("full-wrap")?f.querySelector("td"):f;p&&l.setEmailBackgroundSettings(p,m,_())}m.subject!==void 0&&(document.title=m.subject);const b=Ue(m,{globalHolder:f,emailWidth:l.state.get("emailWidth"),state:l.state,findParentTr:l.findParentTr});Ze(m,f),Me(m,{globalHolder:f,commonStyles:l.state.get("commonStyles"),lockEditor:a.isIntegratorLocked(),removeClassesByPrefix:l.removeClassesByPrefix,createFontClassName:l.createFontClassName,addFontFamilyClass:p=>l.addFontFamilyClass(p,i),clearLinkTags:p=>l.clearLinkTags(p,i),clearProjectFontFaces:()=>l.clearProjectFontFaces(p=>i(p)),rgbToHex:l.rgbToHex,setElementBorder:l.setElementBorder,setElementBorderRadius:l.setElementBorderRadius,setStructureBlocksWidth:l.setStructureBlocksWidth,messageService:l.messageService});const y=Object.keys(m).filter(p=>m[p]!==void 0);(b||!(y.length===1&&y[0]==="width"))&&r.commitLockedAsync()}if(u.operation===l.EVENT_TYPES.SANDBOX_IFRAME_SETSIZE&&(l.state.get("previewPage")?e.getInstance(N)?.refit():l.iframeSetSize(u.settings,c())),u.operation===l.EVENT_TYPES.SANDBOX_GLOBAL_BLOCK_REPLACE){const m=u.settings??{};l.globalBlockReplace({emBlockId:m.emBlockId,blockHTML:m.blockHTML,type:m.type,project:m.project,name:m.name},{selectionLock:n,commit:i,lockEditor:a.isIntegratorLocked(),emailWidth:l.state.get("emailWidth"),iframeOffsetTop:l.state.get("iframeOffsetTop"),previewHeight:l.state.get("previewHeight"),parseFromString:f=>l.parseFromString(f),getOuterHtml:l.getOuterHtml,HTMLDocument:s,minify:l.minifyStylesheet,cssbeautify,insertAdjacentHTML:(f,b,y)=>l.insertNewHTML(f,b,y),messageService:l.messageService,setDocumentStyles:f=>l.setDocumentStyles(f,{minify:l.minifyStylesheet,cssbeautify,HTMLDocument:s}),setImageWidth:l.setImageWidth,commonStylesApply:o.commonStylesApply,commonStylesApplyToBlock:l.commonStylesApplyToBlock,insertCountdown:f=>l.insertCountdown(f,i),uptimeCountdown:l.uptimeCountdown,setBlockMaxWidth:o.setBlockMaxWidth,setFloatBlocksWidth:o.setFloatBlocksWidth,fitImagesToColumns:l.fitImagesToColumns,checkBlockAdaptivity:l.checkBlockAdaptivity})}})}}),ut=[nt,lt,at,st,ct,dt],mt=l.defineSurface({name:"email",profile:de,units:[l.diagnosticsAgentUnit,rt,...l.CANVAS_CORE_UNITS,l.ampUnit,...l.EMAIL_LAYOUT_UNITS,...ut,l.extensionsUnit(ae),l.paintGateUnit,l.wheelBridgeUnit,l.deviceWidthMediaGuardUnit]});l.startSandbox(mt)});
@@ -1,7 +1,7 @@
1
1
  var e=window.__emailmaker__||(window.__emailmaker__={});(function(){"use strict";if(e!==void 0&&e.define)return;e===void 0&&(window.__amdEnv={});var t={},n={},r={},i={},a={},o=null,s={},c={},l=0;function u(e,t){l+=1;try{return e.factory.apply(null,t)}finally{--l}}var d=`./`,f={},p=60,m=`emailmaker:diagnostics`,h=[],g;function _(){if(g!==void 0)return g;g=!1;try{var e=/[?&]diagnostics(?:=([^&]*))?/.exec(window.location.search||``);if(e)return g=e[1]!==`0`,g;if(typeof window.__DIAGNOSTICS__==`boolean`)return g=!!window.__DIAGNOSTICS__,g;g=window.localStorage.getItem(m)===`1`}catch{g=!1}return g}function v(e,t){if(_()){var n={phase:e,at:performance.timeOrigin+performance.now(),kind:`wait`};t&&(n.parent=String(t)),h.push(n)}}function y(e){if(!e||e.__amdLogged)return e;try{Object.defineProperty(e,"__amdLogged",{value:!0,enumerable:!1})}catch{try{e.__amdLogged=!0}catch{}}try{var t=e&&e.message||`loader error`;console.error(`[AMD] `+(t.indexOf(`[AMD]`)===0?t.slice(6):t),e)}catch{}return e}function b(){try{if(e!==void 0&&e&&e.publicPath)return String(e.publicPath)}catch{}return`(not set)`}function x(){var e=b();return String(e).indexOf(`file:`)===0?` The page appears to be opened as a local file (file://) or publicPath was not configured. Serve the host app over HTTP(S) and set publicPath to the origin that serves editor assets (host bundler plugin or __amdEnv.setPublicPath). Current runtime publicPath=`+e+`.`:` Host bundler publicPath may be misconfigured (Vite/Webpack host plugin). In dev, set publicPath to the absolute origin that serves editor assets (for example http://localhost:3001/<outputFolder>/). Current runtime publicPath=`+e+`.`}function S(e){if(typeof fetch!=`function`)return Promise.resolve(``);function t(e){var t=(e.headers.get(`content-type`)||``).toLowerCase();try{e.body&&typeof e.body.cancel==`function`&&e.body.cancel()}catch{}return t.indexOf(`text/html`)>=0?` The URL returned HTML (Content-Type: text/html), not JavaScript — often a SPA fallback when asset paths are wrong.`:e.ok?``:` HTTP status `+e.status+` — the asset URL may be wrong or blocked by the server.`}return fetch(e,{method:`HEAD`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(function(n){return n.status===405||n.status===501?fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t):t(n)}).catch(function(){return fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t).catch(function(){return``})})}function C(e,t){var n=Error(`[AMD] Failed to load module "`+e+`"`+(t?`: `+t.message:``));return n.moduleId=e,n.cause=t,n}function w(e,t,n){var r=Error(`[AMD] Failed to resolve dependency "`+t+`" for module "`+e+`"`+(n?`: `+n.message:``));return r.moduleId=e,r.dependencyId=t,r.cause=n,r}function T(e){for(var t=String(e||``).split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];if(i&&i!==`.`){if(i===`..`){n.length>0&&n.pop();continue}n.push(i)}}return n.join(`/`)}function E(e){var t=String(e||``).replace(/\\/g,`/`),n=String(d||`./`).replace(/\\/g,`/`);return n=n.replace(/^\.\/+/,``),n=n.replace(/^\/+/,``),n&&n.slice(-1)!==`/`&&(n+=`/`),n&&t.indexOf(n)===0&&(t=t.slice(n.length)),t.indexOf(`./`)===0&&(t=t.slice(2)),t}function D(e){return{then:function(t,n){return e.then(t,n)},catch:function(t){return e.catch(t)},finally:function(t){return e.finally(t)}}}function O(e,t){var n=String(e||``);if(!n)return n;if(n.indexOf(`./`)!==0&&n.indexOf(`../`)!==0)return E(T(n));var r=t||``;if(Object.prototype.hasOwnProperty.call(f,r)){var i=String(f[r]||``);i&&!k(i)&&i.charAt(0)!==`/`&&(r=i)}var a=T(r),o=a?a.split(`/`):[];o.length>0&&o.pop();for(var s=n.split(`/`),c=0;c<s.length;c++){var l=s[c];if(l&&l!==`.`){if(l===`..`){o.length>0&&o.pop();continue}o.push(l)}}return E(o.join(`/`))}function k(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||e.indexOf(`//`)===0}function A(e){var t=String(e||``);if(!t||k(t))return t;try{var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return t}}function j(){var t=String(d||`./`);if(t.slice(-1)!==`/`&&(t+=`/`),k(t)||t.charAt(0)===`/`)return t;if(e!==void 0&&e&&e.publicPath)try{return new URL(t,A(e.publicPath)).href}catch{}return A(t)}function M(e,t){var n=O(e,t),r=j(),i=Object.prototype.hasOwnProperty.call(f,n)?String(f[n]||``):n;i.slice(-3)!==`.js`&&(i+=`.js`);try{return new URL(i,r).href}catch{return r+i}}function N(){if(typeof document>`u`)return``;var e=document.currentScript;if(e){var t=e.getAttribute(`data-amd-module-id`);if(t)return t}return``}function P(e,n,r){if(Array.isArray(e)?(r=n,n=e,e=N()):typeof e==`function`?(r=e,n=[],e=N()):typeof n==`function`&&(r=n,n=[]),!e)throw Error(`[AMD] Anonymous define() could not be associated with a module id`);e in t||(t[e]={deps:n||[],factory:r})}P.amd={async:!0};function F(e){var t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}P(`vite/preload-helper`,[`exports`],function(e){e.__vitePreload=function(e){return Promise.resolve().then(function(){return e().catch(F)})}});function I(){return function(){}}function L(e,t){return{id:e,exports:t,uri:M(e)}}function R(e,t,n,r){if(Array.isArray(e)){var i=Promise.all(e.map(function(e){return V(e,r)})).then(function(e){return t&&t.apply(null,e),e});return n&&i.catch(n),i}return V(e,r)}function z(e,o){if(Array.isArray(e))throw Error(`[AMD] syncRequire does not support dependency arrays`);var s=O(e,o);if(s in a)throw y(a[s]);if(s in n)return n[s];if(s in r||s in i)throw y(C(s,Error(`Module is still loading asynchronously`)));if(!(s in t))throw y(C(s,Error(`Module is not available for syncRequire`)));return U(s)}function B(e,i){if(o&&e in o){var s={},c=[e];for(s[e]=!0;c.length>0;){var l=o[c.shift()];if(l)for(var u=0;u<l.length;u++){var d=l[u];s[d]||(s[d]=!0,c.push(d),!(d in n||d in a||d in r)&&(d in o?d in t||K(d,i).catch(function(){}):d in t&&V(d).catch(function(){})))}}}}function V(e,i){var o=O(e,i);if(o in a)return Promise.reject(y(a[o]));if(o in n)return Promise.resolve(n[o]);if(o in r)return r[o];if(v(`core:module:`+o+`:ask`,i),o in t)r[o]=H(o);else{var s=M(o);r[o]=K(o).then(function(){return v(`core:module:`+o+`:loaded`,i),o in t?H(o):S(s).then(function(e){var t=C(o,Error(`Module not defined after script load from "`+s+`".`+e+x()));throw a[o]=t,y(t)})}).catch(function(e){delete r[o];var t=e&&e.moduleId===o?e:C(o,e);throw a[o]=t,y(t)})}return B(o),r[o]}function H(e){var i=t[e],o=W(e),s=I(),l=L(e,s);c[e]=s;function d(t){return n[e]=t,delete r[e],delete c[e],n[e]}return Promise.all(i.deps.map(function(t){return t===`exports`?s:t===`require`?o:t===`module`?l:V(t,e).catch(function(n){throw w(e,t,n)})})).then(function(t){v(`core:module:`+e+`:deps`);var n=u(i,t);return n&&typeof n.then==`function`?n.then(function(t){return v(`core:module:`+e+`:ready`),d(t===void 0?l.exports:t)}):(v(`core:module:`+e+`:ready`),d(n===void 0?l.exports:n))}).catch(function(t){throw delete r[e],delete c[e],a[e]=t,y(t)})}function U(e){var r=t[e],i=W(e),o=I(),s=L(e,o);try{var c=u(r,r.deps.map(function(t){if(t===`exports`)return o;if(t===`require`)return i;if(t===`module`)return s;try{return z(t,e)}catch(n){throw w(e,t,n)}}));if(c&&typeof c.then==`function`)throw C(e,Error(`Module resolved asynchronously and cannot be syncRequired`));return n[e]=c===void 0?s.exports:c,n[e]}catch(t){throw a[e]=t,y(t)}}function W(e){var o=function(o,s,u){if(Array.isArray(o))return R(o,s,u,e);var d=O(o,e);if(d in a)throw y(a[d]);return d in n?n[d]:d in c&&l>0?c[d]:d in r||d in i?D(V(o,e)):d in t?z(o,e):D(V(o,e))};return o.resolve=function(t){return O(t,e)},o.toUrl=function(t){return M(t,e)},o.sync=function(t){return z(t,e)},o}function G(t,n){var r=e!==void 0&&e?e.moduleTransport:null;if(typeof r!=`function`||e.blobBlocked)return null;try{var i=r(t,n);return i&&typeof i.then==`function`?i:null}catch{return null}}function K(t,n){if(t in i)return i[t];if(s[t]&&s[t]!==t)return i[t]=K(s[t],n),i[t];var r=M(t);if(document.querySelector(`script[src="`+r+`"]`))return i[t]=Promise.resolve(),i[t];var a=performance.now();function o(e){return J(t,r,!1,n).then(function(n){return q(t,e,a),n})}var c=G(r,t);return c?(i[t]=c.then(function(r){return r?J(t,URL.createObjectURL(r),!0,n).then(function(e){return q(t,`transport`,a),e},function(){return e.blobBlocked=!0,o(`network-after-blob`)}):o(`network-fallback`)},function(){return o(`network-after-transport-error`)}),i[t]):(i[t]=o(`network`),i[t])}function q(t,n,r){_()&&((e.loaderTimings||=[]).push({id:t,via:n,ms:Math.round((performance.now()-r)*10)/10}),typeof e.onLoaderTiming==`function`&&e.onLoaderTiming())}function J(e,t,n,r){return new Promise(function(a,o){var s=!1,c=document.createElement(`script`);c.src=t,c.setAttribute(`data-amd-module-id`,e),c.async=!0,r===`low`&&(c.fetchPriority=`low`);var l=p>0?p*1e3:0,u=null;function d(){u!=null&&(clearTimeout(u),u=null),c.onload=null,c.onerror=null,n&&typeof URL<`u`&&URL.revokeObjectURL&&URL.revokeObjectURL(t)}function f(e){s||(s=!0,d(),e())}l>0&&(u=setTimeout(function(){f(function(){delete i[e],o(y(C(e,Error(`Timed out after `+l+`ms loading script: `+t+`.`+x()))))})},l)),c.onload=function(){f(function(){a()})},c.onerror=function(){f(function(){delete i[e],o(y(C(e,Error(`Failed to load script: `+t+`.`+x()))))})},document.head.appendChild(c)})}R.config=function(e){if(e.baseUrl&&(d=e.baseUrl),e.paths)for(var t in e.paths)Object.prototype.hasOwnProperty.call(e.paths,t)&&(f[t]=e.paths[t]);if(e.bundles){for(var n in e.bundles)if(Object.prototype.hasOwnProperty.call(e.bundles,n))for(var r=0;r<e.bundles[n].length;r++)s[e.bundles[n][r]]=n}if(e.graph)for(var i in o||={},e.graph)Object.prototype.hasOwnProperty.call(e.graph,i)&&(o[i]=e.graph[i]);typeof e.waitSeconds==`number`&&e.waitSeconds>=0&&(p=e.waitSeconds)},R.warm=function(e,r){var i=r&&r.priority;return Promise.all((e||[]).map(function(e){var r=O(e);if(r in a)return Promise.reject(a[r]);var o=r in t||r in n?Promise.resolve():K(r,i);return B(r,i),o})).then(function(){})},R.modules=t,R.resolved=n,R.errors=a,R.toUrl=M,R.sync=z,e.define=P,e.require=R,e.syncRequire=z,e.diagnosticsBuffer=h})(),e.require.config({baseUrl:`./`});
2
2
 
3
- __emailmaker__.require.config({ paths: {"js/iframe.js":"js/iframe.body.ee1618fa.js"} });
3
+ __emailmaker__.require.config({ paths: {"js/iframe.js":"js/iframe.body.b63d7b8b.js"} });
4
4
 
5
- __emailmaker__.require.config({"graph":{"js/iframe-eblock.js":["js/elMarkupHelper.Buog1r0c.js"],"js/iframe.js":["js/elMarkupHelper.Buog1r0c.js"],"js/darkreader.CLd5EML2.js":[],"js/elMarkupHelper.Buog1r0c.js":[],"js/rules.CnnzdMsj.js":[],"js/typograf.all.Mun9CrLC.js":[]}});
5
+ __emailmaker__.require.config({"graph":{"js/iframe-eblock.js":["js/elMarkupHelper.C4wWAApZ.js"],"js/iframe.js":["js/elMarkupHelper.C4wWAApZ.js"],"js/darkreader.CLd5EML2.js":[],"js/elMarkupHelper.C4wWAApZ.js":[],"js/rules.CnnzdMsj.js":[],"js/typograf.all.Mun9CrLC.js":[]}});
6
6
 
7
7
  __emailmaker__.require("js/iframe.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emailmaker/emailmaker",
3
- "version": "1.2.5",
3
+ "version": "1.3.2",
4
4
  "private": false,
5
5
  "main": "emailmaker.js",
6
6
  "module": "emailmaker-esm.js",
@@ -1 +1 @@
1
- import e from"../../vendor/react/index.js";var f=e&&e.default?e.default:e,{Activity:m,Children:n,Component:o,Fragment:c,Profiler:E,PureComponent:v,StrictMode:d,Suspense:R,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:S,__COMPILER_RUNTIME:h,cache:T,cacheSignal:g,cloneElement:N,createContext:k,createElement:_,createRef:b,forwardRef:A,isValidElement:O,lazy:I,memo:D,startTransition:L,unstable_useCacheRefresh:M,use:P,useActionState:U,useCallback:V,useContext:x,useDebugValue:H,useDeferredValue:z,useEffect:F,useEffectEvent:G,useId:W,useImperativeHandle:Y,useInsertionEffect:j,useLayoutEffect:p,useMemo:q,useOptimistic:w,useReducer:B,useRef:J,useState:Q,useSyncExternalStore:X,useTransition:Z,version:$}=e;try{var u=Symbol.for("editor-runtime.react.copies"),a=globalThis[u];a||(a=[],globalThis[u]=a);for(var s=!1,r=0;r<a.length;r++){var t=a[r];t&&t.react===e&&t.package==="@emailmaker/emailmaker"&&t.version==="1.2.5"&&(s=!0)}s||a.push({package:"@emailmaker/emailmaker",version:"1.2.5",react:e})}catch{}export{m as Activity,n as Children,o as Component,c as Fragment,E as Profiler,v as PureComponent,d as StrictMode,R as Suspense,S as __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,h as __COMPILER_RUNTIME,T as cache,g as cacheSignal,N as cloneElement,k as createContext,_ as createElement,b as createRef,f as default,A as forwardRef,O as isValidElement,I as lazy,D as memo,L as startTransition,M as unstable_useCacheRefresh,P as use,U as useActionState,V as useCallback,x as useContext,H as useDebugValue,z as useDeferredValue,F as useEffect,G as useEffectEvent,W as useId,Y as useImperativeHandle,j as useInsertionEffect,p as useLayoutEffect,q as useMemo,w as useOptimistic,B as useReducer,J as useRef,Q as useState,X as useSyncExternalStore,Z as useTransition,$ as version};
1
+ import e from"../../vendor/react/index.js";var f=e&&e.default?e.default:e,{Activity:m,Children:n,Component:o,Fragment:c,Profiler:E,PureComponent:v,StrictMode:d,Suspense:R,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:S,__COMPILER_RUNTIME:h,cache:T,cacheSignal:g,cloneElement:N,createContext:k,createElement:_,createRef:b,forwardRef:A,isValidElement:O,lazy:I,memo:D,startTransition:L,unstable_useCacheRefresh:M,use:P,useActionState:U,useCallback:V,useContext:x,useDebugValue:H,useDeferredValue:z,useEffect:F,useEffectEvent:G,useId:W,useImperativeHandle:Y,useInsertionEffect:j,useLayoutEffect:p,useMemo:q,useOptimistic:w,useReducer:B,useRef:J,useState:Q,useSyncExternalStore:X,useTransition:Z,version:$}=e;try{var u=Symbol.for("editor-runtime.react.copies"),a=globalThis[u];a||(a=[],globalThis[u]=a);for(var s=!1,r=0;r<a.length;r++){var t=a[r];t&&t.react===e&&t.package==="@emailmaker/emailmaker"&&t.version==="1.3.2"&&(s=!0)}s||a.push({package:"@emailmaker/emailmaker",version:"1.3.2",react:e})}catch{}export{m as Activity,n as Children,o as Component,c as Fragment,E as Profiler,v as PureComponent,d as StrictMode,R as Suspense,S as __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,h as __COMPILER_RUNTIME,T as cache,g as cacheSignal,N as cloneElement,k as createContext,_ as createElement,b as createRef,f as default,A as forwardRef,O as isValidElement,I as lazy,D as memo,L as startTransition,M as unstable_useCacheRefresh,P as use,U as useActionState,V as useCallback,x as useContext,H as useDebugValue,z as useDeferredValue,F as useEffect,G as useEffectEvent,W as useId,Y as useImperativeHandle,j as useInsertionEffect,p as useLayoutEffect,q as useMemo,w as useOptimistic,B as useReducer,J as useRef,Q as useState,X as useSyncExternalStore,Z as useTransition,$ as version};
@@ -1 +1 @@
1
- __emailmaker__.define("static/core/abcacabc.js",["require","exports","module","static/core/5dc34752.js"],function(et,w,Dt){const Tt=et("./5dc34752.js");var Sr={},it=(function(r,n,t,e,i){var a=new Worker(Sr[n]||(Sr[n]=URL.createObjectURL(new Blob([r+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(f){var s=f.data,l=s.$e$;if(l){var o=new Error(l[0]);o.code=l[1],o.stack=l[2],i(o,null)}else i(null,s)},a.postMessage(t,e),a}),D=Uint8Array,R=Uint16Array,En=Int32Array,cn=new D([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),gn=new D([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Gn=new D([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ur=function(r,n){for(var t=new R(31),e=0;e<31;++e)t[e]=n+=1<<r[e-1];for(var i=new En(t[30]),e=1;e<30;++e)for(var a=t[e];a<t[e+1];++a)i[a]=a-t[e]<<5|e;return{b:t,r:i}},Mr=Ur(cn,2),rr=Mr.b,$n=Mr.r;rr[28]=258,$n[258]=28;for(var Dr=Ur(gn,0),Tr=Dr.b,tr=Dr.r,qn=new R(32768),L=0;L<32768;++L){var fn=(L&43690)>>1|(L&21845)<<1;fn=(fn&52428)>>2|(fn&13107)<<2,fn=(fn&61680)>>4|(fn&3855)<<4,qn[L]=((fn&65280)>>8|(fn&255)<<8)>>1}for(var Q=(function(r,n,t){for(var e=r.length,i=0,a=new R(n);i<e;++i)r[i]&&++a[r[i]-1];var f=new R(n);for(i=1;i<n;++i)f[i]=f[i-1]+a[i-1]<<1;var s;if(t){s=new R(1<<n);var l=15-n;for(i=0;i<e;++i)if(r[i])for(var o=i<<4|r[i],h=n-r[i],u=f[r[i]-1]++<<h,v=u|(1<<h)-1;u<=v;++u)s[qn[u]>>l]=o}else for(s=new R(e),i=0;i<e;++i)r[i]&&(s[i]=qn[f[r[i]-1]++]>>15-r[i]);return s}),an=new D(288),L=0;L<144;++L)an[L]=8;for(var L=144;L<256;++L)an[L]=9;for(var L=256;L<280;++L)an[L]=7;for(var L=280;L<288;++L)an[L]=8;for(var pn=new D(32),L=0;L<32;++L)pn[L]=5;var Ir=Q(an,9,0),Zr=Q(an,9,1),Cr=Q(pn,5,0),Fr=Q(pn,5,1),Hn=function(r){for(var n=r[0],t=1;t<r.length;++t)r[t]>n&&(n=r[t]);return n},X=function(r,n,t){var e=n/8|0;return(r[e]|r[e+1]<<8)>>(n&7)&t},Nn=function(r,n){var t=n/8|0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>(n&7)},yn=function(r){return(r+7)/8|0},b=function(r,n,t){return(n==null||n<0)&&(n=0),(t==null||t>r.length)&&(t=r.length),new D(r.subarray(n,t))},at={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Er=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],c=function(r,n,t){var e=new Error(n||Er[r]);if(e.code=r,Error.captureStackTrace&&Error.captureStackTrace(e,c),!t)throw e;return e},On=function(r,n,t,e){var i=r.length,a=e?e.length:0;if(!i||n.f&&!n.l)return t||new D(0);var f=!t,s=f||n.i!=2,l=n.i;f&&(t=new D(i*3));var o=function(Bn){var Cn=t.length;if(Bn>Cn){var Fn=new D(Math.max(Cn*2,Bn));Fn.set(t),t=Fn}},h=n.f||0,u=n.p||0,v=n.b||0,U=n.l,z=n.d,A=n.m,g=n.n,S=i*8;do{if(!U){h=X(r,u,1);var T=X(r,u+1,3);if(u+=3,T)if(T==1)U=Zr,z=Fr,A=9,g=5;else if(T==2){var G=X(r,u,31)+257,I=X(r,u+10,15)+4,m=G+X(r,u+5,31)+1;u+=14;for(var p=new D(m),q=new D(19),F=0;F<I;++F)q[Gn[F]]=X(r,u+F*3,7);u+=I*3;for(var E=Hn(q),k=(1<<E)-1,$=Q(q,E,1),F=0;F<m;){var d=$[X(r,u,k)];u+=d&15;var M=d>>4;if(M<16)p[F++]=M;else{var P=0,O=0;for(M==16?(O=3+X(r,u,3),u+=2,P=p[F-1]):M==17?(O=3+X(r,u,7),u+=3):M==18&&(O=11+X(r,u,127),u+=7);O--;)p[F++]=P}}var N=p.subarray(0,G),H=p.subarray(G);A=Hn(N),g=Hn(H),U=Q(N,A,1),z=Q(H,g,1)}else c(1);else{var M=yn(u)+4,y=r[M-4]|r[M-3]<<8,C=M+y;if(C>i){l&&c(0);break}s&&o(v+y),t.set(r.subarray(M,C),v),n.b=v+=y,n.p=u=C*8,n.f=h;continue}if(u>S){l&&c(0);break}}s&&o(v+131072);for(var vn=(1<<A)-1,J=(1<<g)-1,nn=u;;nn=u){var P=U[Nn(r,u)&vn],Y=P>>4;if(u+=P&15,u>S){l&&c(0);break}if(P||c(2),Y<256)t[v++]=Y;else if(Y==256){nn=u,U=null;break}else{var K=Y-254;if(Y>264){var F=Y-257,B=cn[F];K=X(r,u,(1<<B)-1)+rr[F],u+=B}var en=z[Nn(r,u)&J],In=en>>4;en||c(3),u+=en&15;var H=Tr[In];if(In>3){var B=gn[In];H+=Nn(r,u)&(1<<B)-1,u+=B}if(u>S){l&&c(0);break}s&&o(v+131072);var Zn=v+K;if(v<H){var jn=a-H,nr=Math.min(H,Zn);for(jn+v<0&&c(3);v<nr;++v)t[v]=e[jn+v]}for(;v<Zn;++v)t[v]=t[v-H]}}n.l=U,n.p=nn,n.b=v,n.f=h,U&&(h=1,n.m=A,n.d=z,n.n=g)}while(!h);return v!=t.length&&f?b(t,0,v):t.subarray(0,v)},rn=function(r,n,t){t<<=n&7;var e=n/8|0;r[e]|=t,r[e+1]|=t>>8},wn=function(r,n,t){t<<=n&7;var e=n/8|0;r[e]|=t,r[e+1]|=t>>8,r[e+2]|=t>>16},Rn=function(r,n){for(var t=[],e=0;e<r.length;++e)r[e]&&t.push({s:e,f:r[e]});var i=t.length,a=t.slice();if(!i)return{t:tn,l:0};if(i==1){var f=new D(t[0].s+1);return f[t[0].s]=1,{t:f,l:1}}t.sort(function(C,G){return C.f-G.f}),t.push({s:-1,f:25001});var s=t[0],l=t[1],o=0,h=1,u=2;for(t[0]={s:-1,f:s.f+l.f,l:s,r:l};h!=i-1;)s=t[t[o].f<t[u].f?o++:u++],l=t[o!=h&&t[o].f<t[u].f?o++:u++],t[h++]={s:-1,f:s.f+l.f,l:s,r:l};for(var v=a[0].s,e=1;e<i;++e)a[e].s>v&&(v=a[e].s);var U=new R(v+1),z=Vn(t[h-1],U,0);if(z>n){var e=0,A=0,g=z-n,S=1<<g;for(a.sort(function(G,I){return U[I.s]-U[G.s]||G.f-I.f});e<i;++e){var T=a[e].s;if(U[T]>n)A+=S-(1<<z-U[T]),U[T]=n;else break}for(A>>=g;A>0;){var M=a[e].s;U[M]<n?A-=1<<n-U[M]++-1:++e}for(;e>=0&&A;--e){var y=a[e].s;U[y]==n&&(--U[y],++A)}z=n}return{t:new D(U),l:z}},Vn=function(r,n,t){return r.s==-1?Math.max(Vn(r.l,n,t+1),Vn(r.r,n,t+1)):n[r.s]=t},er=function(r){for(var n=r.length;n&&!r[--n];);for(var t=new R(++n),e=0,i=r[0],a=1,f=function(l){t[e++]=l},s=1;s<=n;++s)if(r[s]==i&&s!=n)++a;else{if(!i&&a>2){for(;a>138;a-=138)f(32754);a>2&&(f(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(f(i),--a;a>6;a-=6)f(8304);a>2&&(f(a-3<<5|8208),a=0)}for(;a--;)f(i);a=1,i=r[s]}return{c:t.subarray(0,e),n}},zn=function(r,n){for(var t=0,e=0;e<n.length;++e)t+=r[e]*n[e];return t},Wn=function(r,n,t){var e=t.length,i=yn(n+2);r[i]=e&255,r[i+1]=e>>8,r[i+2]=r[i]^255,r[i+3]=r[i+1]^255;for(var a=0;a<e;++a)r[i+a+4]=t[a];return(i+4+e)*8},ir=function(r,n,t,e,i,a,f,s,l,o,h){rn(n,h++,t),++i[256];for(var u=Rn(i,15),v=u.t,U=u.l,z=Rn(a,15),A=z.t,g=z.l,S=er(v),T=S.c,M=S.n,y=er(A),C=y.c,G=y.n,I=new R(19),m=0;m<T.length;++m)++I[T[m]&31];for(var m=0;m<C.length;++m)++I[C[m]&31];for(var p=Rn(I,7),q=p.t,F=p.l,E=19;E>4&&!q[Gn[E-1]];--E);var k=o+5<<3,$=zn(i,an)+zn(a,pn)+f,d=zn(i,v)+zn(a,A)+f+14+3*E+zn(I,q)+2*I[16]+3*I[17]+7*I[18];if(l>=0&&k<=$&&k<=d)return Wn(n,h,r.subarray(l,l+o));var P,O,N,H;if(rn(n,h,1+(d<$)),h+=2,d<$){P=Q(v,U,0),O=v,N=Q(A,g,0),H=A;var vn=Q(q,F,0);rn(n,h,M-257),rn(n,h+5,G-1),rn(n,h+10,E-4),h+=14;for(var m=0;m<E;++m)rn(n,h+3*m,q[Gn[m]]);h+=3*E;for(var J=[T,C],nn=0;nn<2;++nn)for(var Y=J[nn],m=0;m<Y.length;++m){var K=Y[m]&31;rn(n,h,vn[K]),h+=q[K],K>15&&(rn(n,h,Y[m]>>5&127),h+=Y[m]>>12)}}else P=Ir,O=an,N=Cr,H=pn;for(var m=0;m<s;++m){var B=e[m];if(B>255){var K=B>>18&31;wn(n,h,P[K+257]),h+=O[K+257],K>7&&(rn(n,h,B>>23&31),h+=cn[K]);var en=B&31;wn(n,h,N[en]),h+=H[en],en>3&&(wn(n,h,B>>5&8191),h+=gn[en])}else wn(n,h,P[B]),h+=O[B]}return wn(n,h,P[256]),h+O[256]},Gr=new En([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),tn=new D(0),qr=function(r,n,t,e,i,a){var f=a.z||r.length,s=new D(e+f+5*(1+Math.ceil(f/7e3))+i),l=s.subarray(e,s.length-i),o=a.l,h=(a.r||0)&7;if(n){h&&(l[0]=a.r>>3);for(var u=Gr[n-1],v=u>>13,U=u&8191,z=(1<<t)-1,A=a.p||new R(32768),g=a.h||new R(z+1),S=Math.ceil(t/3),T=2*S,M=function(Fn){return(r[Fn]^r[Fn+1]<<S^r[Fn+2]<<T)&z},y=new En(25e3),C=new R(288),G=new R(32),I=0,m=0,p=a.i||0,q=0,F=a.w||0,E=0;p+2<f;++p){var k=M(p),$=p&32767,d=g[k];if(A[$]=d,g[k]=$,F<=p){var P=f-p;if((I>7e3||q>24576)&&(P>423||!o)){h=ir(r,l,0,y,C,G,m,q,E,p-E,h),q=I=m=0,E=p;for(var O=0;O<286;++O)C[O]=0;for(var O=0;O<30;++O)G[O]=0}var N=2,H=0,vn=U,J=$-d&32767;if(P>2&&k==M(p-J))for(var nn=Math.min(v,P)-1,Y=Math.min(32767,p),K=Math.min(258,P);J<=Y&&--vn&&$!=d;){if(r[p+N]==r[p+N-J]){for(var B=0;B<K&&r[p+B]==r[p+B-J];++B);if(B>N){if(N=B,H=J,B>nn)break;for(var en=Math.min(J,B-2),In=0,O=0;O<en;++O){var Zn=p-J+O&32767,jn=Zn-A[Zn]&32767;jn>In&&(In=jn,d=Zn)}}}$=d,d=A[$],J+=$-d&32767}if(H){y[q++]=268435456|$n[N]<<18|tr[H];var nr=$n[N]&31,Bn=tr[H]&31;m+=cn[nr]+gn[Bn],++C[257+nr],++G[Bn],F=p+N,++I}else y[q++]=r[p],++C[r[p]]}}for(p=Math.max(p,F);p<f;++p)y[q++]=r[p],++C[r[p]];h=ir(r,l,o,y,C,G,m,q,E,p-E,h),o||(a.r=h&7|l[h/8|0]<<3,h-=7,a.h=g,a.p=A,a.i=p,a.w=F)}else{for(var p=a.w||0;p<f+o;p+=65535){var Cn=p+65535;Cn>=f&&(l[h/8|0]=o,Cn=f),h=Wn(l,h+1,r.subarray(p,Cn))}a.i=f}return b(s,0,e+yn(h)+i)},Or=(function(){for(var r=new Int32Array(256),n=0;n<256;++n){for(var t=n,e=9;--e;)t=(t&1&&-306674912)^t>>>1;r[n]=t}return r})(),mn=function(){var r=-1;return{p:function(n){for(var t=r,e=0;e<n.length;++e)t=Or[t&255^n[e]]^t>>>8;r=t},d:function(){return~r}}},Yn=function(){var r=1,n=0;return{p:function(t){for(var e=r,i=n,a=t.length|0,f=0;f!=a;){for(var s=Math.min(f+2655,a);f<s;++f)i+=e+=t[f];e=(e&65535)+15*(e>>16),i=(i&65535)+15*(i>>16)}r=e,n=i},d:function(){return r%=65521,n%=65521,(r&255)<<24|(r&65280)<<8|(n&255)<<8|n>>8}}},un=function(r,n,t,e,i){if(!i&&(i={l:1},n.dictionary)){var a=n.dictionary.subarray(-32768),f=new D(a.length+r.length);f.set(a),f.set(r,a.length),r=f,i.w=a.length}return qr(r,n.level==null?6:n.level,n.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+n.mem,t,e,i)},dn=function(r,n){var t={};for(var e in r)t[e]=r[e];for(var e in n)t[e]=n[e];return t},dr=function(r,n,t){for(var e=r(),i=r.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),f=0;f<e.length;++f){var s=e[f],l=a[f];if(typeof s=="function"){n+=";"+l+"=";var o=s.toString();if(s.prototype)if(o.indexOf("[native code]")!=-1){var h=o.indexOf(" ",8)+1;n+=o.slice(h,o.indexOf("(",h))}else{n+=o;for(var u in s.prototype)n+=";"+l+".prototype."+u+"="+s.prototype[u].toString()}else n+=o}else t[l]=s}return n},kn=[],ft=function(r){var n=[];for(var t in r)r[t].buffer&&n.push((r[t]=new r[t].constructor(r[t])).buffer);return n},Pr=function(r,n,t,e){if(!kn[t]){for(var i="",a={},f=r.length-1,s=0;s<f;++s)i=dr(r[s],i,a);kn[t]={c:dr(r[f],i,a),e:a}}var l=dn({},kn[t].e);return it(kn[t].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+n.toString()+"}",t,l,ft(l),e)},An=function(){return[D,R,En,cn,gn,Gn,rr,Tr,Zr,Fr,qn,Er,Q,Hn,X,Nn,yn,b,c,On,Dn,sn,ar]},Sn=function(){return[D,R,En,cn,gn,Gn,$n,tr,Ir,an,Cr,pn,qn,Gr,tn,Q,rn,wn,Rn,Vn,er,zn,Wn,ir,yn,b,qr,un,Pn,sn]},Lr=function(){return[sr,hr,Z,mn,Or]},jr=function(){return[or,Hr]},Br=function(){return[ur,Z,Yn]},$r=function(){return[lr]},sn=function(r){return postMessage(r,[r.buffer])},ar=function(r){return r&&{out:r.size&&new D(r.size),dictionary:r.dictionary}},Un=function(r,n,t,e,i,a){var f=Pr(t,e,i,function(s,l){f.terminate(),a(s,l)});return f.postMessage([r,n],n.consume?[r.buffer]:[]),function(){f.terminate()}},x=function(r){return r.ondata=function(n,t){return postMessage([n,t],[n.buffer])},function(n){n.data[0]?(r.push(n.data[0],n.data[1]),postMessage([n.data[0].length])):r.flush(n.data[1])}},Mn=function(r,n,t,e,i,a,f){var s,l=Pr(r,e,i,function(o,h){o?(l.terminate(),n.ondata.call(n,o)):Array.isArray(h)?h.length==1?(n.queuedSize-=h[0],n.ondrain&&n.ondrain(h[0])):(h[1]&&l.terminate(),n.ondata.call(n,o,h[0],h[1])):f(h)});l.postMessage(t),n.queuedSize=0,n.push=function(o,h){n.ondata||c(5),s&&n.ondata(c(4,0,1),null,!!h),n.queuedSize+=o.length,l.postMessage([o,s=h],o.buffer instanceof ArrayBuffer?[o.buffer]:[])},n.terminate=function(){l.terminate()},a&&(n.flush=function(o){l.postMessage([0,o])})},V=function(r,n){return r[n]|r[n+1]<<8},j=function(r,n){return(r[n]|r[n+1]<<8|r[n+2]<<16|r[n+3]<<24)>>>0},fr=function(r,n){return j(r,n)+j(r,n+4)*4294967296},Z=function(r,n,t){for(;t;++n)r[n]=t,t>>>=8},sr=function(r,n){var t=n.filename;if(r[0]=31,r[1]=139,r[2]=8,r[8]=n.level<2?4:n.level==9?2:0,r[9]=3,n.mtime!=0&&Z(r,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),t){r[3]=8;for(var e=0;e<=t.length;++e)r[e+10]=t.charCodeAt(e)}},or=function(r){(r[0]!=31||r[1]!=139||r[2]!=8)&&c(6,"invalid gzip data");var n=r[3],t=10;n&4&&(t+=(r[10]|r[11]<<8)+2);for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!r[t++]);return t+(n&2)},Hr=function(r){var n=r.length;return(r[n-4]|r[n-3]<<8|r[n-2]<<16|r[n-1]<<24)>>>0},hr=function(r){return 10+(r.filename?r.filename.length+1:0)},ur=function(r,n){var t=n.level,e=t==0?0:t<6?1:t==9?3:2;if(r[0]=120,r[1]=e<<6|(n.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,n.dictionary){var i=Yn();i.p(n.dictionary),Z(r,2,i.d())}},lr=function(r,n){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&c(6,"invalid zlib data"),(r[1]>>5&1)==+!n&&c(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function ln(r,n){return typeof r=="function"&&(n=r,r={}),this.ondata=n,r}var _=(function(){function r(n,t){if(typeof n=="function"&&(t=n,n={}),this.ondata=t,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new D(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return r.prototype.p=function(n,t){this.ondata(un(n,this.o,0,0,this.s),t)},r.prototype.push=function(n,t){this.ondata||c(5),this.s.l&&c(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new D(e&-32768);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=t&1,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2),t&&(this.s=this.o={},this.b=tn)},r.prototype.flush=function(n){if(this.ondata||c(5),this.s.l&&c(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,n){var t=new D(6);t[0]=this.s.r>>3;var e=Wn(t,this.s.r,tn);this.s.r=0,this.ondata(t.subarray(0,e>>3),!1)}},r})(),Nr=(function(){function r(n,t){Mn([Sn,function(){return[x,_]}],this,ln.call(this,n,t),function(e){onmessage=x(new _(e.data))},6,1)}return r})();function Rr(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),Un(r,n,[Sn],function(e){return sn(Pn(e.data[0],e.data[1]))},0,t)}function Pn(r,n){return un(r,n||{},0,0)}var W=(function(){function r(n,t){typeof n=="function"&&(t=n,n={}),this.ondata=t;var e=n&&n.dictionary&&n.dictionary.subarray(-32768);this.s={i:0,b:e?e.length:0},this.o=new D(32768),this.p=new D(0),e&&this.o.set(e)}return r.prototype.e=function(n){if(this.ondata||c(5),this.d&&c(4),!this.p.length)this.p=n;else if(n.length){var t=new D(this.p.length+n.length);t.set(this.p),t.set(n,this.p.length),this.p=t}},r.prototype.c=function(n){this.s.i=+(this.d=n||!1);var t=this.s.b,e=On(this.p,this.s,this.o);this.ondata(b(e,t,this.s.b),this.d),this.o=b(e,this.s.b-32768),this.s.b=this.o.length,this.p=b(this.p,this.s.p/8|0),this.s.p&=7},r.prototype.push=function(n,t){this.e(n),this.c(t)},r})(),vr=(function(){function r(n,t){Mn([An,function(){return[x,W]}],this,ln.call(this,n,t),function(e){onmessage=x(new W(e.data))},7,0)}return r})();function cr(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),Un(r,n,[An],function(e){return sn(Dn(e.data[0],ar(e.data[1])))},1,t)}function Dn(r,n){return On(r,{i:2},n&&n.out,n&&n.dictionary)}var Jn=(function(){function r(n,t){this.c=mn(),this.l=0,this.v=1,_.call(this,n,t)}return r.prototype.push=function(n,t){this.c.p(n),this.l+=n.length,_.prototype.push.call(this,n,t)},r.prototype.p=function(n,t){var e=un(n,this.o,this.v&&hr(this.o),t&&8,this.s);this.v&&(sr(e,this.o),this.v=0),t&&(Z(e,e.length-8,this.c.d()),Z(e,e.length-4,this.l)),this.ondata(e,t)},r.prototype.flush=function(n){_.prototype.flush.call(this,n)},r})(),Vr=(function(){function r(n,t){Mn([Sn,Lr,function(){return[x,_,Jn]}],this,ln.call(this,n,t),function(e){onmessage=x(new Jn(e.data))},8,1)}return r})();function Wr(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),Un(r,n,[Sn,Lr,function(){return[Kn]}],function(e){return sn(Kn(e.data[0],e.data[1]))},2,t)}function Kn(r,n){n||(n={});var t=mn(),e=r.length;t.p(r);var i=un(r,n,hr(n),8),a=i.length;return sr(i,n),Z(i,a-8,t.d()),Z(i,a-4,e),i}var Qn=(function(){function r(n,t){this.v=1,this.r=0,W.call(this,n,t)}return r.prototype.push=function(n,t){if(W.prototype.e.call(this,n),this.r+=n.length,this.v){var e=this.p.subarray(this.v-1),i=e.length>3?or(e):4;if(i>e.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-e.length);this.p=e.subarray(i),this.v=0}W.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=yn(this.s.p)+9,this.s={i:0},this.o=new D(0),this.push(new D(0),t)):t&&W.prototype.c.call(this,t)},r})(),Yr=(function(){function r(n,t){var e=this;Mn([An,jr,function(){return[x,W,Qn]}],this,ln.call(this,n,t),function(i){var a=new Qn(i.data);a.onmember=function(f){return postMessage(f)},onmessage=x(a)},9,0,function(i){return e.onmember&&e.onmember(i)})}return r})();function kr(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),Un(r,n,[An,jr,function(){return[Xn]}],function(e){return sn(Xn(e.data[0],e.data[1]))},3,t)}function Xn(r,n){var t=or(r);return t+8>r.length&&c(6,"invalid gzip data"),On(r.subarray(t,-8),{i:2},n&&n.out||new D(Hr(r)),n&&n.dictionary)}var gr=(function(){function r(n,t){this.c=Yn(),this.v=1,_.call(this,n,t)}return r.prototype.push=function(n,t){this.c.p(n),_.prototype.push.call(this,n,t)},r.prototype.p=function(n,t){var e=un(n,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(ur(e,this.o),this.v=0),t&&Z(e,e.length-4,this.c.d()),this.ondata(e,t)},r.prototype.flush=function(n){_.prototype.flush.call(this,n)},r})(),st=(function(){function r(n,t){Mn([Sn,Br,function(){return[x,_,gr]}],this,ln.call(this,n,t),function(e){onmessage=x(new gr(e.data))},10,1)}return r})();function ot(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),Un(r,n,[Sn,Br,function(){return[pr]}],function(e){return sn(pr(e.data[0],e.data[1]))},4,t)}function pr(r,n){n||(n={});var t=Yn();t.p(r);var e=un(r,n,n.dictionary?6:2,4);return ur(e,n),Z(e,e.length-4,t.d()),e}var bn=(function(){function r(n,t){W.call(this,n,t),this.v=n&&n.dictionary?2:1}return r.prototype.push=function(n,t){if(W.prototype.e.call(this,n),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(lr(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&c(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),W.prototype.c.call(this,t)},r})(),Jr=(function(){function r(n,t){Mn([An,$r,function(){return[x,W,bn]}],this,ln.call(this,n,t),function(e){onmessage=x(new bn(e.data))},11,0)}return r})();function Kr(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),Un(r,n,[An,$r,function(){return[xn]}],function(e){return sn(xn(e.data[0],ar(e.data[1])))},5,t)}function xn(r,n){return On(r.subarray(lr(r,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}var yr=(function(){function r(n,t){this.o=ln.call(this,n,t)||{},this.G=Qn,this.I=W,this.Z=bn}return r.prototype.i=function(){var n=this;this.s.ondata=function(t,e){n.ondata(t,e)}},r.prototype.push=function(n,t){if(this.ondata||c(5),this.s)this.s.push(n,t);else{if(this.p&&this.p.length){var e=new D(this.p.length+n.length);e.set(this.p),e.set(n,this.p.length)}else this.p=n;this.p.length>2&&(this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},r})(),ht=(function(){function r(n,t){yr.call(this,n,t),this.queuedSize=0,this.G=Yr,this.I=vr,this.Z=Jr}return r.prototype.i=function(){var n=this;this.s.ondata=function(t,e,i){n.ondata(t,e,i)},this.s.ondrain=function(t){n.queuedSize-=t,n.ondrain&&n.ondrain(t)}},r.prototype.push=function(n,t){this.queuedSize+=n.length,yr.prototype.push.call(this,n,t)},r})();function ut(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),r[0]==31&&r[1]==139&&r[2]==8?kr(r,n,t):(r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31?cr(r,n,t):Kr(r,n,t)}function lt(r,n){return r[0]==31&&r[1]==139&&r[2]==8?Xn(r,n):(r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31?Dn(r,n):xn(r,n)}var wr=function(r,n,t,e){for(var i in r){var a=r[i],f=n+i,s=e;Array.isArray(a)&&(s=dn(e,a[1]),a=a[0]),ArrayBuffer.isView(a)?t[f]=[a,s]:(t[f+="/"]=[new D(0),s],wr(a,f,t,e))}},Qr=typeof TextEncoder<"u"&&new TextEncoder,zr=typeof TextDecoder<"u"&&new TextDecoder,Xr=0;try{zr.decode(tn,{stream:!0}),Xr=1}catch{}var br=function(r){for(var n="",t=0;;){var e=r[t++],i=(e>127)+(e>223)+(e>239);if(t+i>r.length)return{s:n,r:b(r,t-1)};i?i==3?(e=((e&15)<<18|(r[t++]&63)<<12|(r[t++]&63)<<6|r[t++]&63)-65536,n+=String.fromCharCode(55296|e>>10,56320|e&1023)):i&1?n+=String.fromCharCode((e&31)<<6|r[t++]&63):n+=String.fromCharCode((e&15)<<12|(r[t++]&63)<<6|r[t++]&63):n+=String.fromCharCode(e)}},vt=(function(){function r(n){this.ondata=n,Xr?this.t=new TextDecoder:this.p=tn}return r.prototype.push=function(n,t){if(this.ondata||c(5),t=!!t,this.t){this.ondata(this.t.decode(n,{stream:!0}),t),t&&(this.t.decode().length&&c(8),this.t=null);return}this.p||c(4);var e=new D(this.p.length+n.length);e.set(this.p),e.set(n,this.p.length);var i=br(e),a=i.s,f=i.r;t?(f.length&&c(8),this.p=null):this.p=f,this.ondata(a,t)},r})(),ct=(function(){function r(n){this.ondata=n}return r.prototype.push=function(n,t){this.ondata||c(5),this.d&&c(4),this.ondata(on(n),this.d=t||!1)},r})();function on(r,n){if(n){for(var t=new D(r.length),e=0;e<r.length;++e)t[e]=r.charCodeAt(e);return t}if(Qr)return Qr.encode(r);for(var i=r.length,a=new D(r.length+(r.length>>1)),f=0,s=function(h){a[f++]=h},e=0;e<i;++e){if(f+5>a.length){var l=new D(f+8+(i-e<<1));l.set(a),a=l}var o=r.charCodeAt(e);o<128||n?s(o):o<2048?(s(192|o>>6),s(128|o&63)):o>55295&&o<57344?(o=65536+(o&1047552)|r.charCodeAt(++e)&1023,s(240|o>>18),s(128|o>>12&63),s(128|o>>6&63),s(128|o&63)):(s(224|o>>12),s(128|o>>6&63),s(128|o&63))}return b(a,0,f)}function mr(r,n){if(n){for(var t="",e=0;e<r.length;e+=16384)t+=String.fromCharCode.apply(null,r.subarray(e,e+16384));return t}else{if(zr)return zr.decode(r);var i=br(r),a=i.s,t=i.r;return t.length&&c(8),a}}var xr=function(r){return r==1?3:r<6?2:r==9?1:0},_r=function(r,n){return n+30+V(r,n+26)+V(r,n+28)},nt=function(r,n,t){var e=V(r,n+28),i=V(r,n+30),a=mr(r.subarray(n+46,n+46+e),!(V(r,n+8)&2048)),f=n+46+e,s=rt(r,f,i,t,j(r,n+20),j(r,n+24),j(r,n+42)),l=s[0],o=s[1],h=s[2];return[V(r,n+10),l,o,a,f+i+V(r,n+32),h]},rt=function(r,n,t,e,i,a,f){var s=i==4294967295,l=a==4294967295,o=f==4294967295,h=n+t,u=s+l+o;if(e&&u){for(;n+4<h;n+=4+V(r,n+2))if(V(r,n)==1)return[s?fr(r,n+4+8*l):i,l?fr(r,n+4):a,o?fr(r,n+4+8*(l+s)):f,1];e<2&&c(13)}return[i,a,f,0]},hn=function(r){var n=0;if(r)for(var t in r){var e=r[t].length;e>65535&&c(9),n+=e+4}return n},Tn=function(r,n,t,e,i,a,f,s){var l=e.length,o=t.extra,h=s&&s.length,u=hn(o);Z(r,n,f!=null?33639248:67324752),n+=4,f!=null&&(r[n++]=20,r[n++]=t.os),r[n]=20,n+=2,r[n++]=t.flag<<1|(a<0&&8),r[n++]=i&&8,r[n++]=t.compression&255,r[n++]=t.compression>>8;var v=new Date(t.mtime==null?Date.now():t.mtime),U=v.getFullYear()-1980;if((U<0||U>119)&&c(10),Z(r,n,U<<25|v.getMonth()+1<<21|v.getDate()<<16|v.getHours()<<11|v.getMinutes()<<5|v.getSeconds()>>1),n+=4,a!=-1&&(Z(r,n,t.crc),Z(r,n+4,a<0?-a-2:a),Z(r,n+8,t.size)),Z(r,n+12,l),Z(r,n+14,u),n+=16,f!=null&&(Z(r,n,h),Z(r,n+6,t.attrs),Z(r,n+10,f),n+=14),r.set(e,n),n+=l,u)for(var z in o){var A=o[z],g=A.length;Z(r,n,+z),Z(r,n+2,g),r.set(A,n+4),n+=4+g}return h&&(r.set(s,n),n+=h),n},Ar=function(r,n,t,e,i){Z(r,n,101010256),Z(r,n+8,t),Z(r,n+10,t),Z(r,n+12,e),Z(r,n+16,i)},Ln=(function(){function r(n){this.filename=n,this.c=mn(),this.size=0,this.compression=0}return r.prototype.process=function(n,t){this.ondata(null,n,t)},r.prototype.push=function(n,t){this.ondata||c(5),this.c.p(n),this.size+=n.length,t&&(this.crc=this.c.d()),this.process(n,t||!1)},r})(),gt=(function(){function r(n,t){var e=this;t||(t={}),Ln.call(this,n),this.d=new _(t,function(i,a){e.ondata(null,i,a)}),this.compression=8,this.flag=xr(t.level)}return r.prototype.process=function(n,t){try{this.d.push(n,t)}catch(e){this.ondata(e,null,t)}},r.prototype.push=function(n,t){Ln.prototype.push.call(this,n,t)},r})(),pt=(function(){function r(n,t){var e=this;t||(t={}),Ln.call(this,n),this.d=new Nr(t,function(i,a,f){e.ondata(i,a,f)}),this.compression=8,this.flag=xr(t.level),this.terminate=this.d.terminate}return r.prototype.process=function(n,t){this.d.push(n,t)},r.prototype.push=function(n,t){Ln.prototype.push.call(this,n,t)},r})(),yt=(function(){function r(n){this.ondata=n,this.u=[],this.d=1}return r.prototype.add=function(n){var t=this;if(this.ondata||c(5),this.d&2)this.ondata(c(4+(this.d&1)*8,0,1),null,!1);else{var e=on(n.filename),i=e.length,a=n.comment,f=a&&on(a),s=i!=n.filename.length||f&&a.length!=f.length,l=i+hn(n.extra)+30;i>65535&&this.ondata(c(11,0,1),null,!1);var o=new D(l);Tn(o,0,n,e,s,-1);var h=[o],u=function(){for(var g=0,S=h;g<S.length;g++){var T=S[g];t.ondata(null,T,!1)}h=[]},v=this.d;this.d=0;var U=this.u.length,z=dn(n,{f:e,u:s,o:f,t:function(){n.terminate&&n.terminate()},r:function(){if(u(),v){var g=t.u[U+1];g?g.r():t.d=1}v=1}}),A=0;n.ondata=function(g,S,T){if(g)t.ondata(g,S,T),t.terminate();else if(A+=S.length,h.push(S),T){var M=new D(16);Z(M,0,134695760),Z(M,4,n.crc),Z(M,8,A),Z(M,12,n.size),h.push(M),z.c=A,z.b=l+A+16,z.crc=n.crc,z.size=n.size,v&&z.r(),v=1}else v&&u()},this.u.push(z)}},r.prototype.end=function(){var n=this;if(this.d&2){this.ondata(c(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:function(){n.d&1&&(n.u.splice(-1,1),n.e())},t:function(){}}),this.d=3},r.prototype.e=function(){for(var n=0,t=0,e=0,i=0,a=this.u;i<a.length;i++){var f=a[i];e+=46+f.f.length+hn(f.extra)+(f.o?f.o.length:0)}for(var s=new D(e+22),l=0,o=this.u;l<o.length;l++){var f=o[l];Tn(s,n,f,f.f,f.u,-f.c-2,t,f.o),n+=46+f.f.length+hn(f.extra)+(f.o?f.o.length:0),t+=f.b}Ar(s,n,this.u.length,e,t),this.ondata(null,s,!0),this.d=2},r.prototype.terminate=function(){for(var n=0,t=this.u;n<t.length;n++)t[n].t();this.d=2},r})();function wt(r,n,t){t||(t=n,n={}),typeof t!="function"&&c(7);var e={};wr(r,"",e,n);var i=Object.keys(e),a=i.length,f=0,s=0,l=a,o=new Array(a),h=[],u=function(){for(var g=0;g<h.length;++g)h[g]()},v=function(g,S){_n(function(){t(g,S)})};_n(function(){v=t});var U=function(){var g=new D(s+22),S=f,T=s-f;s=0;for(var M=0;M<l;++M){var y=o[M];try{var C=y.c.length;Tn(g,s,y,y.f,y.u,C);var G=30+y.f.length+hn(y.extra),I=s+G;g.set(y.c,I),Tn(g,f,y,y.f,y.u,C,s,y.m),f+=16+G+(y.m?y.m.length:0),s=I+C}catch(m){return v(m,null)}}Ar(g,f,o.length,T,S),v(null,g)};a||U();for(var z=function(g){var S=i[g],T=e[S],M=T[0],y=T[1],C=mn(),G=M.length;C.p(M);var I=on(S),m=I.length,p=y.comment,q=p&&on(p),F=q&&q.length,E=hn(y.extra),k=y.level==0?0:8,$=function(d,P){if(d)u(),v(d,null);else{var O=P.length;o[g]=dn(y,{size:G,crc:C.d(),c:P,f:I,m:q,u:m!=S.length||q&&p.length!=F,compression:k}),f+=30+m+E+O,s+=76+2*(m+E)+(F||0)+O,--a||U()}};if(m>65535&&$(c(11,0,1),null),!k)$(null,M);else if(G<16e4)try{$(null,Pn(M,y))}catch(d){$(d,null)}else h.push(Rr(M,y,$))},A=0;A<l;++A)z(A);return u}function zt(r,n){n||(n={});var t={},e=[];wr(r,"",t,n);var i=0,a=0;for(var f in t){var s=t[f],l=s[0],o=s[1],h=o.level==0?0:8,u=on(f),v=u.length,U=o.comment,z=U&&on(U),A=z&&z.length,g=hn(o.extra);v>65535&&c(11);var S=h?Pn(l,o):l,T=S.length,M=mn();M.p(l),e.push(dn(o,{size:l.length,crc:M.d(),c:S,f:u,m:z,u:v!=f.length||z&&U.length!=A,o:i,compression:h})),i+=30+v+g+T,a+=76+2*(v+g)+(A||0)+T}for(var y=new D(a+22),C=i,G=a-i,I=0;I<e.length;++I){var u=e[I];Tn(y,u.o,u,u.f,u.u,u.c.length);var m=30+u.f.length+hn(u.extra);y.set(u.c,u.o+m),Tn(y,i,u,u.f,u.u,u.c.length,u.o,u.m),i+=16+m+(u.m?u.m.length:0)}return Ar(y,i,e.length,G,C),y}var tt=(function(){function r(){}return r.prototype.push=function(n,t){this.ondata(null,n,t)},r.compression=0,r})(),mt=(function(){function r(){var n=this;this.i=new W(function(t,e){n.ondata(null,t,e)})}return r.prototype.push=function(n,t){try{this.i.push(n,t)}catch(e){this.ondata(e,null,t)}},r.compression=8,r})(),At=(function(){function r(n,t){var e=this;t<32e4?this.i=new W(function(i,a){e.ondata(null,i,a)}):(this.i=new vr(function(i,a,f){e.ondata(i,a,f)}),this.terminate=this.i.terminate)}return r.prototype.push=function(n,t){this.i.terminate&&(n=b(n,0)),this.i.push(n,t)},r.compression=8,r})(),St=(function(){function r(n){this.onfile=n,this.k=[],this.o={0:tt},this.p=tn}return r.prototype.push=function(n,t){var e=this;if(this.onfile||c(5),this.p||c(4),this.c>0){var i=Math.min(this.c,n.length),a=n.subarray(0,i);if(this.c-=i,this.d?this.d.push(a,!this.c):this.k[0].push(a),n=n.subarray(i),n.length)return this.push(n,t)}else{var f=0,s=0,l=void 0,o=void 0;this.p.length?n.length?(o=new D(this.p.length+n.length),o.set(this.p),o.set(n,this.p.length)):o=this.p:o=n;for(var h=o.length,u=this.c,v=u&&this.d,U=function(){var g=j(o,s);if(g==67324752){f=1,l=s,z.d=null,z.c=0;var S=V(o,s+6),T=V(o,s+8),M=S&2048,y=S&8,C=V(o,s+26),G=V(o,s+28);if(h>s+30+C+G){var I=[];z.k.unshift(I),f=2;var m=j(o,s+18),p=j(o,s+22),q=mr(o.subarray(s+30,s+=30+C),!M),F=rt(o,s,G,2,m,p,0),E=F[0],k=F[1],$=F[3];y&&(E=-1-$),s+=G,z.c=E;var d,P={name:q,compression:T,start:function(){if(P.ondata||c(5),!E)P.ondata(null,tn,!0);else{var O=e.o[T];O||P.ondata(c(14,"unknown compression type "+T,1),null,!1),d=E<0?new O(q):new O(q,E,k),d.ondata=function(J,nn,Y){P.ondata(J,nn,Y)};for(var N=0,H=I;N<H.length;N++){var vn=H[N];d.push(vn,!1)}e.k[0]==I&&e.c?e.d=d:d.push(tn,!0)}},terminate:function(){d&&d.terminate&&d.terminate()}};E>=0&&(P.size=E,P.originalSize=k),z.onfile(P)}return"break"}else if(u){if(g==134695760)return l=s+=12+(u==-2&&8),f=3,z.c=0,"break";if(g==33639248)return l=s-=4,f=3,z.c=0,"break"}},z=this;s<h-4&&U()!=="break";++s);if(this.p=tn,u<0){var A=f?o.subarray(0,l-12-(u==-2&&8)-(j(o,l-16)==134695760&&4)):o.subarray(0,s);v?v.push(A,!!f):this.k[+(f==2)].push(A)}if(f&2)return this.push(o.subarray(s),t);this.p=o.subarray(s)}t&&(this.c&&c(13),this.p=null)},r.prototype.register=function(n){this.o[n.compression]=n},r})(),_n=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(r){r()};function Ut(r,n,t){t||(t=n,n={}),typeof t!="function"&&c(7);var e=[],i=function(){for(var g=0;g<e.length;++g)e[g]()},a={},f=function(g,S){_n(function(){t(g,S)})};_n(function(){f=t});for(var s=r.length-22;j(r,s)!=101010256;--s)if(!s||r.length-s>65558)return f(c(13,0,1),null),i;var l=V(r,s+8);if(l){var o=l,h=j(r,s+16),u=j(r,s-20)==117853008;if(u){var v=j(r,s-12);u=j(r,v)==101075792,u&&(o=l=j(r,v+32),h=j(r,v+48))}for(var U=n&&n.filter,z=function(g){var S=nt(r,h,u),T=S[0],M=S[1],y=S[2],C=S[3],G=S[4],I=S[5],m=_r(r,I);h=G;var p=function(F,E){F?(i(),f(F,null)):(E&&(a[C]=E),--l||f(null,a))};if(!U||U({name:C,size:M,originalSize:y,compression:T}))if(!T)p(null,b(r,m,m+M));else if(T==8){var q=r.subarray(m,m+M);if(y<524288||M>.8*y)try{p(null,Dn(q,{out:new D(y)}))}catch(F){p(F,null)}else e.push(cr(q,{size:y},p))}else p(c(14,"unknown compression type "+T,1),null);else p(null,null)},A=0;A<o;++A)z(A)}else f(null,{});return i}function Mt(r,n){for(var t={},e=r.length-22;j(r,e)!=101010256;--e)(!e||r.length-e>65558)&&c(13);var i=V(r,e+8);if(!i)return{};var a=j(r,e+16),f=j(r,e-20)==117853008;if(f){var s=j(r,e-12);f=j(r,s)==101075792,f&&(i=j(r,s+32),a=j(r,s+48))}for(var l=n&&n.filter,o=0;o<i;++o){var h=nt(r,a,f),u=h[0],v=h[1],U=h[2],z=h[3],A=h[4],g=h[5],S=_r(r,g);a=A,(!l||l({name:z,size:v,originalSize:U,compression:u}))&&(u?u==8?t[z]=Dn(r.subarray(S,S+v),{out:new D(U)}):c(14,"unknown compression type "+u):t[z]=b(r,S,S+v))}return t}w.AsyncCompress=Vr,w.AsyncGzip=Vr,w.AsyncDecompress=ht,w.AsyncDeflate=Nr,w.AsyncGunzip=Yr,w.AsyncInflate=vr,w.AsyncUnzipInflate=At,w.AsyncUnzlib=Jr,w.AsyncZipDeflate=pt,w.AsyncZlib=st,w.Compress=Jn,w.Gzip=Jn,w.DecodeUTF8=vt,w.Decompress=yr,w.Deflate=_,w.EncodeUTF8=ct,w.FlateErrorCode=at,w.Gunzip=Qn,w.Inflate=W,w.Unzip=St,w.UnzipInflate=mt,w.UnzipPassThrough=tt,w.Unzlib=bn,w.Zip=yt,w.ZipDeflate=gt,w.ZipPassThrough=Ln,w.Zlib=gr,w.compress=Wr,w.gzip=Wr,w.compressSync=Kn,w.gzipSync=Kn,w.decompress=ut,w.decompressSync=lt,w.deflate=Rr,w.deflateSync=Pn,w.gunzip=kr,w.gunzipSync=Xn,w.inflate=cr,w.inflateSync=Dn,w.strFromU8=mr,w.strToU8=on,w.unzip=Ut,w.unzipSync=Mt,w.unzlib=Kr,w.unzlibSync=xn,w.zip=wt,w.zipSync=zt,w.zlib=ot,w.zlibSync=pr});
1
+ __emailmaker__.define("static/core/1922419a.js",["require","exports","module","static/core/5dc34752.js"],function(et,w,Dt){const Tt=et("./5dc34752.js");var Sr={},it=(function(r,n,t,e,i){var a=new Worker(Sr[n]||(Sr[n]=URL.createObjectURL(new Blob([r+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(f){var s=f.data,l=s.$e$;if(l){var o=new Error(l[0]);o.code=l[1],o.stack=l[2],i(o,null)}else i(null,s)},a.postMessage(t,e),a}),D=Uint8Array,R=Uint16Array,En=Int32Array,cn=new D([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),gn=new D([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Gn=new D([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ur=function(r,n){for(var t=new R(31),e=0;e<31;++e)t[e]=n+=1<<r[e-1];for(var i=new En(t[30]),e=1;e<30;++e)for(var a=t[e];a<t[e+1];++a)i[a]=a-t[e]<<5|e;return{b:t,r:i}},Mr=Ur(cn,2),rr=Mr.b,jn=Mr.r;rr[28]=258,jn[258]=28;for(var Dr=Ur(gn,0),Tr=Dr.b,tr=Dr.r,qn=new R(32768),L=0;L<32768;++L){var fn=(L&43690)>>1|(L&21845)<<1;fn=(fn&52428)>>2|(fn&13107)<<2,fn=(fn&61680)>>4|(fn&3855)<<4,qn[L]=((fn&65280)>>8|(fn&255)<<8)>>1}for(var Q=(function(r,n,t){for(var e=r.length,i=0,a=new R(n);i<e;++i)r[i]&&++a[r[i]-1];var f=new R(n);for(i=1;i<n;++i)f[i]=f[i-1]+a[i-1]<<1;var s;if(t){s=new R(1<<n);var l=15-n;for(i=0;i<e;++i)if(r[i])for(var o=i<<4|r[i],h=n-r[i],u=f[r[i]-1]++<<h,v=u|(1<<h)-1;u<=v;++u)s[qn[u]>>l]=o}else for(s=new R(e),i=0;i<e;++i)r[i]&&(s[i]=qn[f[r[i]-1]++]>>15-r[i]);return s}),an=new D(288),L=0;L<144;++L)an[L]=8;for(var L=144;L<256;++L)an[L]=9;for(var L=256;L<280;++L)an[L]=7;for(var L=280;L<288;++L)an[L]=8;for(var pn=new D(32),L=0;L<32;++L)pn[L]=5;var Ir=Q(an,9,0),Zr=Q(an,9,1),Cr=Q(pn,5,0),Fr=Q(pn,5,1),Hn=function(r){for(var n=r[0],t=1;t<r.length;++t)r[t]>n&&(n=r[t]);return n},X=function(r,n,t){var e=n/8|0;return(r[e]|r[e+1]<<8)>>(n&7)&t},Nn=function(r,n){var t=n/8|0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>(n&7)},yn=function(r){return(r+7)/8|0},b=function(r,n,t){return(n==null||n<0)&&(n=0),(t==null||t>r.length)&&(t=r.length),new D(r.subarray(n,t))},at={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Er=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],c=function(r,n,t){var e=new Error(n||Er[r]);if(e.code=r,Error.captureStackTrace&&Error.captureStackTrace(e,c),!t)throw e;return e},On=function(r,n,t,e){var i=r.length,a=e?e.length:0;if(!i||n.f&&!n.l)return t||new D(0);var f=!t,s=f||n.i!=2,l=n.i;f&&(t=new D(i*3));var o=function($n){var Cn=t.length;if($n>Cn){var Fn=new D(Math.max(Cn*2,$n));Fn.set(t),t=Fn}},h=n.f||0,u=n.p||0,v=n.b||0,U=n.l,z=n.d,A=n.m,g=n.n,S=i*8;do{if(!U){h=X(r,u,1);var T=X(r,u+1,3);if(u+=3,T)if(T==1)U=Zr,z=Fr,A=9,g=5;else if(T==2){var G=X(r,u,31)+257,I=X(r,u+10,15)+4,m=G+X(r,u+5,31)+1;u+=14;for(var p=new D(m),q=new D(19),F=0;F<I;++F)q[Gn[F]]=X(r,u+F*3,7);u+=I*3;for(var E=Hn(q),k=(1<<E)-1,j=Q(q,E,1),F=0;F<m;){var d=j[X(r,u,k)];u+=d&15;var M=d>>4;if(M<16)p[F++]=M;else{var P=0,O=0;for(M==16?(O=3+X(r,u,3),u+=2,P=p[F-1]):M==17?(O=3+X(r,u,7),u+=3):M==18&&(O=11+X(r,u,127),u+=7);O--;)p[F++]=P}}var N=p.subarray(0,G),H=p.subarray(G);A=Hn(N),g=Hn(H),U=Q(N,A,1),z=Q(H,g,1)}else c(1);else{var M=yn(u)+4,y=r[M-4]|r[M-3]<<8,C=M+y;if(C>i){l&&c(0);break}s&&o(v+y),t.set(r.subarray(M,C),v),n.b=v+=y,n.p=u=C*8,n.f=h;continue}if(u>S){l&&c(0);break}}s&&o(v+131072);for(var vn=(1<<A)-1,J=(1<<g)-1,nn=u;;nn=u){var P=U[Nn(r,u)&vn],Y=P>>4;if(u+=P&15,u>S){l&&c(0);break}if(P||c(2),Y<256)t[v++]=Y;else if(Y==256){nn=u,U=null;break}else{var K=Y-254;if(Y>264){var F=Y-257,$=cn[F];K=X(r,u,(1<<$)-1)+rr[F],u+=$}var en=z[Nn(r,u)&J],In=en>>4;en||c(3),u+=en&15;var H=Tr[In];if(In>3){var $=gn[In];H+=Nn(r,u)&(1<<$)-1,u+=$}if(u>S){l&&c(0);break}s&&o(v+131072);var Zn=v+K;if(v<H){var Bn=a-H,nr=Math.min(H,Zn);for(Bn+v<0&&c(3);v<nr;++v)t[v]=e[Bn+v]}for(;v<Zn;++v)t[v]=t[v-H]}}n.l=U,n.p=nn,n.b=v,n.f=h,U&&(h=1,n.m=A,n.d=z,n.n=g)}while(!h);return v!=t.length&&f?b(t,0,v):t.subarray(0,v)},rn=function(r,n,t){t<<=n&7;var e=n/8|0;r[e]|=t,r[e+1]|=t>>8},wn=function(r,n,t){t<<=n&7;var e=n/8|0;r[e]|=t,r[e+1]|=t>>8,r[e+2]|=t>>16},Rn=function(r,n){for(var t=[],e=0;e<r.length;++e)r[e]&&t.push({s:e,f:r[e]});var i=t.length,a=t.slice();if(!i)return{t:tn,l:0};if(i==1){var f=new D(t[0].s+1);return f[t[0].s]=1,{t:f,l:1}}t.sort(function(C,G){return C.f-G.f}),t.push({s:-1,f:25001});var s=t[0],l=t[1],o=0,h=1,u=2;for(t[0]={s:-1,f:s.f+l.f,l:s,r:l};h!=i-1;)s=t[t[o].f<t[u].f?o++:u++],l=t[o!=h&&t[o].f<t[u].f?o++:u++],t[h++]={s:-1,f:s.f+l.f,l:s,r:l};for(var v=a[0].s,e=1;e<i;++e)a[e].s>v&&(v=a[e].s);var U=new R(v+1),z=Vn(t[h-1],U,0);if(z>n){var e=0,A=0,g=z-n,S=1<<g;for(a.sort(function(G,I){return U[I.s]-U[G.s]||G.f-I.f});e<i;++e){var T=a[e].s;if(U[T]>n)A+=S-(1<<z-U[T]),U[T]=n;else break}for(A>>=g;A>0;){var M=a[e].s;U[M]<n?A-=1<<n-U[M]++-1:++e}for(;e>=0&&A;--e){var y=a[e].s;U[y]==n&&(--U[y],++A)}z=n}return{t:new D(U),l:z}},Vn=function(r,n,t){return r.s==-1?Math.max(Vn(r.l,n,t+1),Vn(r.r,n,t+1)):n[r.s]=t},er=function(r){for(var n=r.length;n&&!r[--n];);for(var t=new R(++n),e=0,i=r[0],a=1,f=function(l){t[e++]=l},s=1;s<=n;++s)if(r[s]==i&&s!=n)++a;else{if(!i&&a>2){for(;a>138;a-=138)f(32754);a>2&&(f(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(f(i),--a;a>6;a-=6)f(8304);a>2&&(f(a-3<<5|8208),a=0)}for(;a--;)f(i);a=1,i=r[s]}return{c:t.subarray(0,e),n}},zn=function(r,n){for(var t=0,e=0;e<n.length;++e)t+=r[e]*n[e];return t},Wn=function(r,n,t){var e=t.length,i=yn(n+2);r[i]=e&255,r[i+1]=e>>8,r[i+2]=r[i]^255,r[i+3]=r[i+1]^255;for(var a=0;a<e;++a)r[i+a+4]=t[a];return(i+4+e)*8},ir=function(r,n,t,e,i,a,f,s,l,o,h){rn(n,h++,t),++i[256];for(var u=Rn(i,15),v=u.t,U=u.l,z=Rn(a,15),A=z.t,g=z.l,S=er(v),T=S.c,M=S.n,y=er(A),C=y.c,G=y.n,I=new R(19),m=0;m<T.length;++m)++I[T[m]&31];for(var m=0;m<C.length;++m)++I[C[m]&31];for(var p=Rn(I,7),q=p.t,F=p.l,E=19;E>4&&!q[Gn[E-1]];--E);var k=o+5<<3,j=zn(i,an)+zn(a,pn)+f,d=zn(i,v)+zn(a,A)+f+14+3*E+zn(I,q)+2*I[16]+3*I[17]+7*I[18];if(l>=0&&k<=j&&k<=d)return Wn(n,h,r.subarray(l,l+o));var P,O,N,H;if(rn(n,h,1+(d<j)),h+=2,d<j){P=Q(v,U,0),O=v,N=Q(A,g,0),H=A;var vn=Q(q,F,0);rn(n,h,M-257),rn(n,h+5,G-1),rn(n,h+10,E-4),h+=14;for(var m=0;m<E;++m)rn(n,h+3*m,q[Gn[m]]);h+=3*E;for(var J=[T,C],nn=0;nn<2;++nn)for(var Y=J[nn],m=0;m<Y.length;++m){var K=Y[m]&31;rn(n,h,vn[K]),h+=q[K],K>15&&(rn(n,h,Y[m]>>5&127),h+=Y[m]>>12)}}else P=Ir,O=an,N=Cr,H=pn;for(var m=0;m<s;++m){var $=e[m];if($>255){var K=$>>18&31;wn(n,h,P[K+257]),h+=O[K+257],K>7&&(rn(n,h,$>>23&31),h+=cn[K]);var en=$&31;wn(n,h,N[en]),h+=H[en],en>3&&(wn(n,h,$>>5&8191),h+=gn[en])}else wn(n,h,P[$]),h+=O[$]}return wn(n,h,P[256]),h+O[256]},Gr=new En([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),tn=new D(0),qr=function(r,n,t,e,i,a){var f=a.z||r.length,s=new D(e+f+5*(1+Math.ceil(f/7e3))+i),l=s.subarray(e,s.length-i),o=a.l,h=(a.r||0)&7;if(n){h&&(l[0]=a.r>>3);for(var u=Gr[n-1],v=u>>13,U=u&8191,z=(1<<t)-1,A=a.p||new R(32768),g=a.h||new R(z+1),S=Math.ceil(t/3),T=2*S,M=function(Fn){return(r[Fn]^r[Fn+1]<<S^r[Fn+2]<<T)&z},y=new En(25e3),C=new R(288),G=new R(32),I=0,m=0,p=a.i||0,q=0,F=a.w||0,E=0;p+2<f;++p){var k=M(p),j=p&32767,d=g[k];if(A[j]=d,g[k]=j,F<=p){var P=f-p;if((I>7e3||q>24576)&&(P>423||!o)){h=ir(r,l,0,y,C,G,m,q,E,p-E,h),q=I=m=0,E=p;for(var O=0;O<286;++O)C[O]=0;for(var O=0;O<30;++O)G[O]=0}var N=2,H=0,vn=U,J=j-d&32767;if(P>2&&k==M(p-J))for(var nn=Math.min(v,P)-1,Y=Math.min(32767,p),K=Math.min(258,P);J<=Y&&--vn&&j!=d;){if(r[p+N]==r[p+N-J]){for(var $=0;$<K&&r[p+$]==r[p+$-J];++$);if($>N){if(N=$,H=J,$>nn)break;for(var en=Math.min(J,$-2),In=0,O=0;O<en;++O){var Zn=p-J+O&32767,Bn=Zn-A[Zn]&32767;Bn>In&&(In=Bn,d=Zn)}}}j=d,d=A[j],J+=j-d&32767}if(H){y[q++]=268435456|jn[N]<<18|tr[H];var nr=jn[N]&31,$n=tr[H]&31;m+=cn[nr]+gn[$n],++C[257+nr],++G[$n],F=p+N,++I}else y[q++]=r[p],++C[r[p]]}}for(p=Math.max(p,F);p<f;++p)y[q++]=r[p],++C[r[p]];h=ir(r,l,o,y,C,G,m,q,E,p-E,h),o||(a.r=h&7|l[h/8|0]<<3,h-=7,a.h=g,a.p=A,a.i=p,a.w=F)}else{for(var p=a.w||0;p<f+o;p+=65535){var Cn=p+65535;Cn>=f&&(l[h/8|0]=o,Cn=f),h=Wn(l,h+1,r.subarray(p,Cn))}a.i=f}return b(s,0,e+yn(h)+i)},Or=(function(){for(var r=new Int32Array(256),n=0;n<256;++n){for(var t=n,e=9;--e;)t=(t&1&&-306674912)^t>>>1;r[n]=t}return r})(),mn=function(){var r=-1;return{p:function(n){for(var t=r,e=0;e<n.length;++e)t=Or[t&255^n[e]]^t>>>8;r=t},d:function(){return~r}}},Yn=function(){var r=1,n=0;return{p:function(t){for(var e=r,i=n,a=t.length|0,f=0;f!=a;){for(var s=Math.min(f+2655,a);f<s;++f)i+=e+=t[f];e=(e&65535)+15*(e>>16),i=(i&65535)+15*(i>>16)}r=e,n=i},d:function(){return r%=65521,n%=65521,(r&255)<<24|(r&65280)<<8|(n&255)<<8|n>>8}}},un=function(r,n,t,e,i){if(!i&&(i={l:1},n.dictionary)){var a=n.dictionary.subarray(-32768),f=new D(a.length+r.length);f.set(a),f.set(r,a.length),r=f,i.w=a.length}return qr(r,n.level==null?6:n.level,n.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+n.mem,t,e,i)},dn=function(r,n){var t={};for(var e in r)t[e]=r[e];for(var e in n)t[e]=n[e];return t},dr=function(r,n,t){for(var e=r(),i=r.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),f=0;f<e.length;++f){var s=e[f],l=a[f];if(typeof s=="function"){n+=";"+l+"=";var o=s.toString();if(s.prototype)if(o.indexOf("[native code]")!=-1){var h=o.indexOf(" ",8)+1;n+=o.slice(h,o.indexOf("(",h))}else{n+=o;for(var u in s.prototype)n+=";"+l+".prototype."+u+"="+s.prototype[u].toString()}else n+=o}else t[l]=s}return n},kn=[],ft=function(r){var n=[];for(var t in r)r[t].buffer&&n.push((r[t]=new r[t].constructor(r[t])).buffer);return n},Pr=function(r,n,t,e){if(!kn[t]){for(var i="",a={},f=r.length-1,s=0;s<f;++s)i=dr(r[s],i,a);kn[t]={c:dr(r[f],i,a),e:a}}var l=dn({},kn[t].e);return it(kn[t].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+n.toString()+"}",t,l,ft(l),e)},An=function(){return[D,R,En,cn,gn,Gn,rr,Tr,Zr,Fr,qn,Er,Q,Hn,X,Nn,yn,b,c,On,Dn,sn,ar]},Sn=function(){return[D,R,En,cn,gn,Gn,jn,tr,Ir,an,Cr,pn,qn,Gr,tn,Q,rn,wn,Rn,Vn,er,zn,Wn,ir,yn,b,qr,un,Pn,sn]},Lr=function(){return[sr,hr,Z,mn,Or]},Br=function(){return[or,Hr]},$r=function(){return[ur,Z,Yn]},jr=function(){return[lr]},sn=function(r){return postMessage(r,[r.buffer])},ar=function(r){return r&&{out:r.size&&new D(r.size),dictionary:r.dictionary}},Un=function(r,n,t,e,i,a){var f=Pr(t,e,i,function(s,l){f.terminate(),a(s,l)});return f.postMessage([r,n],n.consume?[r.buffer]:[]),function(){f.terminate()}},x=function(r){return r.ondata=function(n,t){return postMessage([n,t],[n.buffer])},function(n){n.data[0]?(r.push(n.data[0],n.data[1]),postMessage([n.data[0].length])):r.flush(n.data[1])}},Mn=function(r,n,t,e,i,a,f){var s,l=Pr(r,e,i,function(o,h){o?(l.terminate(),n.ondata.call(n,o)):Array.isArray(h)?h.length==1?(n.queuedSize-=h[0],n.ondrain&&n.ondrain(h[0])):(h[1]&&l.terminate(),n.ondata.call(n,o,h[0],h[1])):f(h)});l.postMessage(t),n.queuedSize=0,n.push=function(o,h){n.ondata||c(5),s&&n.ondata(c(4,0,1),null,!!h),n.queuedSize+=o.length,l.postMessage([o,s=h],o.buffer instanceof ArrayBuffer?[o.buffer]:[])},n.terminate=function(){l.terminate()},a&&(n.flush=function(o){l.postMessage([0,o])})},V=function(r,n){return r[n]|r[n+1]<<8},B=function(r,n){return(r[n]|r[n+1]<<8|r[n+2]<<16|r[n+3]<<24)>>>0},fr=function(r,n){return B(r,n)+B(r,n+4)*4294967296},Z=function(r,n,t){for(;t;++n)r[n]=t,t>>>=8},sr=function(r,n){var t=n.filename;if(r[0]=31,r[1]=139,r[2]=8,r[8]=n.level<2?4:n.level==9?2:0,r[9]=3,n.mtime!=0&&Z(r,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),t){r[3]=8;for(var e=0;e<=t.length;++e)r[e+10]=t.charCodeAt(e)}},or=function(r){(r[0]!=31||r[1]!=139||r[2]!=8)&&c(6,"invalid gzip data");var n=r[3],t=10;n&4&&(t+=(r[10]|r[11]<<8)+2);for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!r[t++]);return t+(n&2)},Hr=function(r){var n=r.length;return(r[n-4]|r[n-3]<<8|r[n-2]<<16|r[n-1]<<24)>>>0},hr=function(r){return 10+(r.filename?r.filename.length+1:0)},ur=function(r,n){var t=n.level,e=t==0?0:t<6?1:t==9?3:2;if(r[0]=120,r[1]=e<<6|(n.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,n.dictionary){var i=Yn();i.p(n.dictionary),Z(r,2,i.d())}},lr=function(r,n){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&c(6,"invalid zlib data"),(r[1]>>5&1)==+!n&&c(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function ln(r,n){return typeof r=="function"&&(n=r,r={}),this.ondata=n,r}var _=(function(){function r(n,t){if(typeof n=="function"&&(t=n,n={}),this.ondata=t,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new D(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return r.prototype.p=function(n,t){this.ondata(un(n,this.o,0,0,this.s),t)},r.prototype.push=function(n,t){this.ondata||c(5),this.s.l&&c(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new D(e&-32768);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=t&1,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2),t&&(this.s=this.o={},this.b=tn)},r.prototype.flush=function(n){if(this.ondata||c(5),this.s.l&&c(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,n){var t=new D(6);t[0]=this.s.r>>3;var e=Wn(t,this.s.r,tn);this.s.r=0,this.ondata(t.subarray(0,e>>3),!1)}},r})(),Nr=(function(){function r(n,t){Mn([Sn,function(){return[x,_]}],this,ln.call(this,n,t),function(e){onmessage=x(new _(e.data))},6,1)}return r})();function Rr(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),Un(r,n,[Sn],function(e){return sn(Pn(e.data[0],e.data[1]))},0,t)}function Pn(r,n){return un(r,n||{},0,0)}var W=(function(){function r(n,t){typeof n=="function"&&(t=n,n={}),this.ondata=t;var e=n&&n.dictionary&&n.dictionary.subarray(-32768);this.s={i:0,b:e?e.length:0},this.o=new D(32768),this.p=new D(0),e&&this.o.set(e)}return r.prototype.e=function(n){if(this.ondata||c(5),this.d&&c(4),!this.p.length)this.p=n;else if(n.length){var t=new D(this.p.length+n.length);t.set(this.p),t.set(n,this.p.length),this.p=t}},r.prototype.c=function(n){this.s.i=+(this.d=n||!1);var t=this.s.b,e=On(this.p,this.s,this.o);this.ondata(b(e,t,this.s.b),this.d),this.o=b(e,this.s.b-32768),this.s.b=this.o.length,this.p=b(this.p,this.s.p/8|0),this.s.p&=7},r.prototype.push=function(n,t){this.e(n),this.c(t)},r})(),vr=(function(){function r(n,t){Mn([An,function(){return[x,W]}],this,ln.call(this,n,t),function(e){onmessage=x(new W(e.data))},7,0)}return r})();function cr(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),Un(r,n,[An],function(e){return sn(Dn(e.data[0],ar(e.data[1])))},1,t)}function Dn(r,n){return On(r,{i:2},n&&n.out,n&&n.dictionary)}var Jn=(function(){function r(n,t){this.c=mn(),this.l=0,this.v=1,_.call(this,n,t)}return r.prototype.push=function(n,t){this.c.p(n),this.l+=n.length,_.prototype.push.call(this,n,t)},r.prototype.p=function(n,t){var e=un(n,this.o,this.v&&hr(this.o),t&&8,this.s);this.v&&(sr(e,this.o),this.v=0),t&&(Z(e,e.length-8,this.c.d()),Z(e,e.length-4,this.l)),this.ondata(e,t)},r.prototype.flush=function(n){_.prototype.flush.call(this,n)},r})(),Vr=(function(){function r(n,t){Mn([Sn,Lr,function(){return[x,_,Jn]}],this,ln.call(this,n,t),function(e){onmessage=x(new Jn(e.data))},8,1)}return r})();function Wr(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),Un(r,n,[Sn,Lr,function(){return[Kn]}],function(e){return sn(Kn(e.data[0],e.data[1]))},2,t)}function Kn(r,n){n||(n={});var t=mn(),e=r.length;t.p(r);var i=un(r,n,hr(n),8),a=i.length;return sr(i,n),Z(i,a-8,t.d()),Z(i,a-4,e),i}var Qn=(function(){function r(n,t){this.v=1,this.r=0,W.call(this,n,t)}return r.prototype.push=function(n,t){if(W.prototype.e.call(this,n),this.r+=n.length,this.v){var e=this.p.subarray(this.v-1),i=e.length>3?or(e):4;if(i>e.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-e.length);this.p=e.subarray(i),this.v=0}W.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=yn(this.s.p)+9,this.s={i:0},this.o=new D(0),this.push(new D(0),t)):t&&W.prototype.c.call(this,t)},r})(),Yr=(function(){function r(n,t){var e=this;Mn([An,Br,function(){return[x,W,Qn]}],this,ln.call(this,n,t),function(i){var a=new Qn(i.data);a.onmember=function(f){return postMessage(f)},onmessage=x(a)},9,0,function(i){return e.onmember&&e.onmember(i)})}return r})();function kr(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),Un(r,n,[An,Br,function(){return[Xn]}],function(e){return sn(Xn(e.data[0],e.data[1]))},3,t)}function Xn(r,n){var t=or(r);return t+8>r.length&&c(6,"invalid gzip data"),On(r.subarray(t,-8),{i:2},n&&n.out||new D(Hr(r)),n&&n.dictionary)}var gr=(function(){function r(n,t){this.c=Yn(),this.v=1,_.call(this,n,t)}return r.prototype.push=function(n,t){this.c.p(n),_.prototype.push.call(this,n,t)},r.prototype.p=function(n,t){var e=un(n,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(ur(e,this.o),this.v=0),t&&Z(e,e.length-4,this.c.d()),this.ondata(e,t)},r.prototype.flush=function(n){_.prototype.flush.call(this,n)},r})(),st=(function(){function r(n,t){Mn([Sn,$r,function(){return[x,_,gr]}],this,ln.call(this,n,t),function(e){onmessage=x(new gr(e.data))},10,1)}return r})();function ot(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),Un(r,n,[Sn,$r,function(){return[pr]}],function(e){return sn(pr(e.data[0],e.data[1]))},4,t)}function pr(r,n){n||(n={});var t=Yn();t.p(r);var e=un(r,n,n.dictionary?6:2,4);return ur(e,n),Z(e,e.length-4,t.d()),e}var bn=(function(){function r(n,t){W.call(this,n,t),this.v=n&&n.dictionary?2:1}return r.prototype.push=function(n,t){if(W.prototype.e.call(this,n),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(lr(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&c(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),W.prototype.c.call(this,t)},r})(),Jr=(function(){function r(n,t){Mn([An,jr,function(){return[x,W,bn]}],this,ln.call(this,n,t),function(e){onmessage=x(new bn(e.data))},11,0)}return r})();function Kr(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),Un(r,n,[An,jr,function(){return[xn]}],function(e){return sn(xn(e.data[0],ar(e.data[1])))},5,t)}function xn(r,n){return On(r.subarray(lr(r,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}var yr=(function(){function r(n,t){this.o=ln.call(this,n,t)||{},this.G=Qn,this.I=W,this.Z=bn}return r.prototype.i=function(){var n=this;this.s.ondata=function(t,e){n.ondata(t,e)}},r.prototype.push=function(n,t){if(this.ondata||c(5),this.s)this.s.push(n,t);else{if(this.p&&this.p.length){var e=new D(this.p.length+n.length);e.set(this.p),e.set(n,this.p.length)}else this.p=n;this.p.length>2&&(this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},r})(),ht=(function(){function r(n,t){yr.call(this,n,t),this.queuedSize=0,this.G=Yr,this.I=vr,this.Z=Jr}return r.prototype.i=function(){var n=this;this.s.ondata=function(t,e,i){n.ondata(t,e,i)},this.s.ondrain=function(t){n.queuedSize-=t,n.ondrain&&n.ondrain(t)}},r.prototype.push=function(n,t){this.queuedSize+=n.length,yr.prototype.push.call(this,n,t)},r})();function ut(r,n,t){return t||(t=n,n={}),typeof t!="function"&&c(7),r[0]==31&&r[1]==139&&r[2]==8?kr(r,n,t):(r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31?cr(r,n,t):Kr(r,n,t)}function lt(r,n){return r[0]==31&&r[1]==139&&r[2]==8?Xn(r,n):(r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31?Dn(r,n):xn(r,n)}var wr=function(r,n,t,e){for(var i in r){var a=r[i],f=n+i,s=e;Array.isArray(a)&&(s=dn(e,a[1]),a=a[0]),ArrayBuffer.isView(a)?t[f]=[a,s]:(t[f+="/"]=[new D(0),s],wr(a,f,t,e))}},Qr=typeof TextEncoder<"u"&&new TextEncoder,zr=typeof TextDecoder<"u"&&new TextDecoder,Xr=0;try{zr.decode(tn,{stream:!0}),Xr=1}catch{}var br=function(r){for(var n="",t=0;;){var e=r[t++],i=(e>127)+(e>223)+(e>239);if(t+i>r.length)return{s:n,r:b(r,t-1)};i?i==3?(e=((e&15)<<18|(r[t++]&63)<<12|(r[t++]&63)<<6|r[t++]&63)-65536,n+=String.fromCharCode(55296|e>>10,56320|e&1023)):i&1?n+=String.fromCharCode((e&31)<<6|r[t++]&63):n+=String.fromCharCode((e&15)<<12|(r[t++]&63)<<6|r[t++]&63):n+=String.fromCharCode(e)}},vt=(function(){function r(n){this.ondata=n,Xr?this.t=new TextDecoder:this.p=tn}return r.prototype.push=function(n,t){if(this.ondata||c(5),t=!!t,this.t){this.ondata(this.t.decode(n,{stream:!0}),t),t&&(this.t.decode().length&&c(8),this.t=null);return}this.p||c(4);var e=new D(this.p.length+n.length);e.set(this.p),e.set(n,this.p.length);var i=br(e),a=i.s,f=i.r;t?(f.length&&c(8),this.p=null):this.p=f,this.ondata(a,t)},r})(),ct=(function(){function r(n){this.ondata=n}return r.prototype.push=function(n,t){this.ondata||c(5),this.d&&c(4),this.ondata(on(n),this.d=t||!1)},r})();function on(r,n){if(n){for(var t=new D(r.length),e=0;e<r.length;++e)t[e]=r.charCodeAt(e);return t}if(Qr)return Qr.encode(r);for(var i=r.length,a=new D(r.length+(r.length>>1)),f=0,s=function(h){a[f++]=h},e=0;e<i;++e){if(f+5>a.length){var l=new D(f+8+(i-e<<1));l.set(a),a=l}var o=r.charCodeAt(e);o<128||n?s(o):o<2048?(s(192|o>>6),s(128|o&63)):o>55295&&o<57344?(o=65536+(o&1047552)|r.charCodeAt(++e)&1023,s(240|o>>18),s(128|o>>12&63),s(128|o>>6&63),s(128|o&63)):(s(224|o>>12),s(128|o>>6&63),s(128|o&63))}return b(a,0,f)}function mr(r,n){if(n){for(var t="",e=0;e<r.length;e+=16384)t+=String.fromCharCode.apply(null,r.subarray(e,e+16384));return t}else{if(zr)return zr.decode(r);var i=br(r),a=i.s,t=i.r;return t.length&&c(8),a}}var xr=function(r){return r==1?3:r<6?2:r==9?1:0},_r=function(r,n){return n+30+V(r,n+26)+V(r,n+28)},nt=function(r,n,t){var e=V(r,n+28),i=V(r,n+30),a=mr(r.subarray(n+46,n+46+e),!(V(r,n+8)&2048)),f=n+46+e,s=rt(r,f,i,t,B(r,n+20),B(r,n+24),B(r,n+42)),l=s[0],o=s[1],h=s[2];return[V(r,n+10),l,o,a,f+i+V(r,n+32),h]},rt=function(r,n,t,e,i,a,f){var s=i==4294967295,l=a==4294967295,o=f==4294967295,h=n+t,u=s+l+o;if(e&&u){for(;n+4<h;n+=4+V(r,n+2))if(V(r,n)==1)return[s?fr(r,n+4+8*l):i,l?fr(r,n+4):a,o?fr(r,n+4+8*(l+s)):f,1];e<2&&c(13)}return[i,a,f,0]},hn=function(r){var n=0;if(r)for(var t in r){var e=r[t].length;e>65535&&c(9),n+=e+4}return n},Tn=function(r,n,t,e,i,a,f,s){var l=e.length,o=t.extra,h=s&&s.length,u=hn(o);Z(r,n,f!=null?33639248:67324752),n+=4,f!=null&&(r[n++]=20,r[n++]=t.os),r[n]=20,n+=2,r[n++]=t.flag<<1|(a<0&&8),r[n++]=i&&8,r[n++]=t.compression&255,r[n++]=t.compression>>8;var v=new Date(t.mtime==null?Date.now():t.mtime),U=v.getFullYear()-1980;if((U<0||U>119)&&c(10),Z(r,n,U<<25|v.getMonth()+1<<21|v.getDate()<<16|v.getHours()<<11|v.getMinutes()<<5|v.getSeconds()>>1),n+=4,a!=-1&&(Z(r,n,t.crc),Z(r,n+4,a<0?-a-2:a),Z(r,n+8,t.size)),Z(r,n+12,l),Z(r,n+14,u),n+=16,f!=null&&(Z(r,n,h),Z(r,n+6,t.attrs),Z(r,n+10,f),n+=14),r.set(e,n),n+=l,u)for(var z in o){var A=o[z],g=A.length;Z(r,n,+z),Z(r,n+2,g),r.set(A,n+4),n+=4+g}return h&&(r.set(s,n),n+=h),n},Ar=function(r,n,t,e,i){Z(r,n,101010256),Z(r,n+8,t),Z(r,n+10,t),Z(r,n+12,e),Z(r,n+16,i)},Ln=(function(){function r(n){this.filename=n,this.c=mn(),this.size=0,this.compression=0}return r.prototype.process=function(n,t){this.ondata(null,n,t)},r.prototype.push=function(n,t){this.ondata||c(5),this.c.p(n),this.size+=n.length,t&&(this.crc=this.c.d()),this.process(n,t||!1)},r})(),gt=(function(){function r(n,t){var e=this;t||(t={}),Ln.call(this,n),this.d=new _(t,function(i,a){e.ondata(null,i,a)}),this.compression=8,this.flag=xr(t.level)}return r.prototype.process=function(n,t){try{this.d.push(n,t)}catch(e){this.ondata(e,null,t)}},r.prototype.push=function(n,t){Ln.prototype.push.call(this,n,t)},r})(),pt=(function(){function r(n,t){var e=this;t||(t={}),Ln.call(this,n),this.d=new Nr(t,function(i,a,f){e.ondata(i,a,f)}),this.compression=8,this.flag=xr(t.level),this.terminate=this.d.terminate}return r.prototype.process=function(n,t){this.d.push(n,t)},r.prototype.push=function(n,t){Ln.prototype.push.call(this,n,t)},r})(),yt=(function(){function r(n){this.ondata=n,this.u=[],this.d=1}return r.prototype.add=function(n){var t=this;if(this.ondata||c(5),this.d&2)this.ondata(c(4+(this.d&1)*8,0,1),null,!1);else{var e=on(n.filename),i=e.length,a=n.comment,f=a&&on(a),s=i!=n.filename.length||f&&a.length!=f.length,l=i+hn(n.extra)+30;i>65535&&this.ondata(c(11,0,1),null,!1);var o=new D(l);Tn(o,0,n,e,s,-1);var h=[o],u=function(){for(var g=0,S=h;g<S.length;g++){var T=S[g];t.ondata(null,T,!1)}h=[]},v=this.d;this.d=0;var U=this.u.length,z=dn(n,{f:e,u:s,o:f,t:function(){n.terminate&&n.terminate()},r:function(){if(u(),v){var g=t.u[U+1];g?g.r():t.d=1}v=1}}),A=0;n.ondata=function(g,S,T){if(g)t.ondata(g,S,T),t.terminate();else if(A+=S.length,h.push(S),T){var M=new D(16);Z(M,0,134695760),Z(M,4,n.crc),Z(M,8,A),Z(M,12,n.size),h.push(M),z.c=A,z.b=l+A+16,z.crc=n.crc,z.size=n.size,v&&z.r(),v=1}else v&&u()},this.u.push(z)}},r.prototype.end=function(){var n=this;if(this.d&2){this.ondata(c(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:function(){n.d&1&&(n.u.splice(-1,1),n.e())},t:function(){}}),this.d=3},r.prototype.e=function(){for(var n=0,t=0,e=0,i=0,a=this.u;i<a.length;i++){var f=a[i];e+=46+f.f.length+hn(f.extra)+(f.o?f.o.length:0)}for(var s=new D(e+22),l=0,o=this.u;l<o.length;l++){var f=o[l];Tn(s,n,f,f.f,f.u,-f.c-2,t,f.o),n+=46+f.f.length+hn(f.extra)+(f.o?f.o.length:0),t+=f.b}Ar(s,n,this.u.length,e,t),this.ondata(null,s,!0),this.d=2},r.prototype.terminate=function(){for(var n=0,t=this.u;n<t.length;n++)t[n].t();this.d=2},r})();function wt(r,n,t){t||(t=n,n={}),typeof t!="function"&&c(7);var e={};wr(r,"",e,n);var i=Object.keys(e),a=i.length,f=0,s=0,l=a,o=new Array(a),h=[],u=function(){for(var g=0;g<h.length;++g)h[g]()},v=function(g,S){_n(function(){t(g,S)})};_n(function(){v=t});var U=function(){var g=new D(s+22),S=f,T=s-f;s=0;for(var M=0;M<l;++M){var y=o[M];try{var C=y.c.length;Tn(g,s,y,y.f,y.u,C);var G=30+y.f.length+hn(y.extra),I=s+G;g.set(y.c,I),Tn(g,f,y,y.f,y.u,C,s,y.m),f+=16+G+(y.m?y.m.length:0),s=I+C}catch(m){return v(m,null)}}Ar(g,f,o.length,T,S),v(null,g)};a||U();for(var z=function(g){var S=i[g],T=e[S],M=T[0],y=T[1],C=mn(),G=M.length;C.p(M);var I=on(S),m=I.length,p=y.comment,q=p&&on(p),F=q&&q.length,E=hn(y.extra),k=y.level==0?0:8,j=function(d,P){if(d)u(),v(d,null);else{var O=P.length;o[g]=dn(y,{size:G,crc:C.d(),c:P,f:I,m:q,u:m!=S.length||q&&p.length!=F,compression:k}),f+=30+m+E+O,s+=76+2*(m+E)+(F||0)+O,--a||U()}};if(m>65535&&j(c(11,0,1),null),!k)j(null,M);else if(G<16e4)try{j(null,Pn(M,y))}catch(d){j(d,null)}else h.push(Rr(M,y,j))},A=0;A<l;++A)z(A);return u}function zt(r,n){n||(n={});var t={},e=[];wr(r,"",t,n);var i=0,a=0;for(var f in t){var s=t[f],l=s[0],o=s[1],h=o.level==0?0:8,u=on(f),v=u.length,U=o.comment,z=U&&on(U),A=z&&z.length,g=hn(o.extra);v>65535&&c(11);var S=h?Pn(l,o):l,T=S.length,M=mn();M.p(l),e.push(dn(o,{size:l.length,crc:M.d(),c:S,f:u,m:z,u:v!=f.length||z&&U.length!=A,o:i,compression:h})),i+=30+v+g+T,a+=76+2*(v+g)+(A||0)+T}for(var y=new D(a+22),C=i,G=a-i,I=0;I<e.length;++I){var u=e[I];Tn(y,u.o,u,u.f,u.u,u.c.length);var m=30+u.f.length+hn(u.extra);y.set(u.c,u.o+m),Tn(y,i,u,u.f,u.u,u.c.length,u.o,u.m),i+=16+m+(u.m?u.m.length:0)}return Ar(y,i,e.length,G,C),y}var tt=(function(){function r(){}return r.prototype.push=function(n,t){this.ondata(null,n,t)},r.compression=0,r})(),mt=(function(){function r(){var n=this;this.i=new W(function(t,e){n.ondata(null,t,e)})}return r.prototype.push=function(n,t){try{this.i.push(n,t)}catch(e){this.ondata(e,null,t)}},r.compression=8,r})(),At=(function(){function r(n,t){var e=this;t<32e4?this.i=new W(function(i,a){e.ondata(null,i,a)}):(this.i=new vr(function(i,a,f){e.ondata(i,a,f)}),this.terminate=this.i.terminate)}return r.prototype.push=function(n,t){this.i.terminate&&(n=b(n,0)),this.i.push(n,t)},r.compression=8,r})(),St=(function(){function r(n){this.onfile=n,this.k=[],this.o={0:tt},this.p=tn}return r.prototype.push=function(n,t){var e=this;if(this.onfile||c(5),this.p||c(4),this.c>0){var i=Math.min(this.c,n.length),a=n.subarray(0,i);if(this.c-=i,this.d?this.d.push(a,!this.c):this.k[0].push(a),n=n.subarray(i),n.length)return this.push(n,t)}else{var f=0,s=0,l=void 0,o=void 0;this.p.length?n.length?(o=new D(this.p.length+n.length),o.set(this.p),o.set(n,this.p.length)):o=this.p:o=n;for(var h=o.length,u=this.c,v=u&&this.d,U=function(){var g=B(o,s);if(g==67324752){f=1,l=s,z.d=null,z.c=0;var S=V(o,s+6),T=V(o,s+8),M=S&2048,y=S&8,C=V(o,s+26),G=V(o,s+28);if(h>s+30+C+G){var I=[];z.k.unshift(I),f=2;var m=B(o,s+18),p=B(o,s+22),q=mr(o.subarray(s+30,s+=30+C),!M),F=rt(o,s,G,2,m,p,0),E=F[0],k=F[1],j=F[3];y&&(E=-1-j),s+=G,z.c=E;var d,P={name:q,compression:T,start:function(){if(P.ondata||c(5),!E)P.ondata(null,tn,!0);else{var O=e.o[T];O||P.ondata(c(14,"unknown compression type "+T,1),null,!1),d=E<0?new O(q):new O(q,E,k),d.ondata=function(J,nn,Y){P.ondata(J,nn,Y)};for(var N=0,H=I;N<H.length;N++){var vn=H[N];d.push(vn,!1)}e.k[0]==I&&e.c?e.d=d:d.push(tn,!0)}},terminate:function(){d&&d.terminate&&d.terminate()}};E>=0&&(P.size=E,P.originalSize=k),z.onfile(P)}return"break"}else if(u){if(g==134695760)return l=s+=12+(u==-2&&8),f=3,z.c=0,"break";if(g==33639248)return l=s-=4,f=3,z.c=0,"break"}},z=this;s<h-4&&U()!=="break";++s);if(this.p=tn,u<0){var A=f?o.subarray(0,l-12-(u==-2&&8)-(B(o,l-16)==134695760&&4)):o.subarray(0,s);v?v.push(A,!!f):this.k[+(f==2)].push(A)}if(f&2)return this.push(o.subarray(s),t);this.p=o.subarray(s)}t&&(this.c&&c(13),this.p=null)},r.prototype.register=function(n){this.o[n.compression]=n},r})(),_n=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(r){r()};function Ut(r,n,t){t||(t=n,n={}),typeof t!="function"&&c(7);var e=[],i=function(){for(var g=0;g<e.length;++g)e[g]()},a={},f=function(g,S){_n(function(){t(g,S)})};_n(function(){f=t});for(var s=r.length-22;B(r,s)!=101010256;--s)if(!s||r.length-s>65558)return f(c(13,0,1),null),i;var l=V(r,s+8);if(l){var o=l,h=B(r,s+16),u=B(r,s-20)==117853008;if(u){var v=B(r,s-12);u=B(r,v)==101075792,u&&(o=l=B(r,v+32),h=B(r,v+48))}for(var U=n&&n.filter,z=function(g){var S=nt(r,h,u),T=S[0],M=S[1],y=S[2],C=S[3],G=S[4],I=S[5],m=_r(r,I);h=G;var p=function(F,E){F?(i(),f(F,null)):(E&&(a[C]=E),--l||f(null,a))};if(!U||U({name:C,size:M,originalSize:y,compression:T}))if(!T)p(null,b(r,m,m+M));else if(T==8){var q=r.subarray(m,m+M);if(y<524288||M>.8*y)try{p(null,Dn(q,{out:new D(y)}))}catch(F){p(F,null)}else e.push(cr(q,{size:y},p))}else p(c(14,"unknown compression type "+T,1),null);else p(null,null)},A=0;A<o;++A)z(A)}else f(null,{});return i}function Mt(r,n){for(var t={},e=r.length-22;B(r,e)!=101010256;--e)(!e||r.length-e>65558)&&c(13);var i=V(r,e+8);if(!i)return{};var a=B(r,e+16),f=B(r,e-20)==117853008;if(f){var s=B(r,e-12);f=B(r,s)==101075792,f&&(i=B(r,s+32),a=B(r,s+48))}for(var l=n&&n.filter,o=0;o<i;++o){var h=nt(r,a,f),u=h[0],v=h[1],U=h[2],z=h[3],A=h[4],g=h[5],S=_r(r,g);a=A,(!l||l({name:z,size:v,originalSize:U,compression:u}))&&(u?u==8?t[z]=Dn(r.subarray(S,S+v),{out:new D(U)}):c(14,"unknown compression type "+u):t[z]=b(r,S,S+v))}return t}w.AsyncCompress=Vr,w.AsyncGzip=Vr,w.AsyncDecompress=ht,w.AsyncDeflate=Nr,w.AsyncGunzip=Yr,w.AsyncInflate=vr,w.AsyncUnzipInflate=At,w.AsyncUnzlib=Jr,w.AsyncZipDeflate=pt,w.AsyncZlib=st,w.Compress=Jn,w.Gzip=Jn,w.DecodeUTF8=vt,w.Decompress=yr,w.Deflate=_,w.EncodeUTF8=ct,w.FlateErrorCode=at,w.Gunzip=Qn,w.Inflate=W,w.Unzip=St,w.UnzipInflate=mt,w.UnzipPassThrough=tt,w.Unzlib=bn,w.Zip=yt,w.ZipDeflate=gt,w.ZipPassThrough=Ln,w.Zlib=gr,w.compress=Wr,w.gzip=Wr,w.compressSync=Kn,w.gzipSync=Kn,w.decompress=ut,w.decompressSync=lt,w.deflate=Rr,w.deflateSync=Pn,w.gunzip=kr,w.gunzipSync=Xn,w.inflate=cr,w.inflateSync=Dn,w.strFromU8=mr,w.strToU8=on,w.unzip=Ut,w.unzipSync=Mt,w.unzlib=Kr,w.unzlibSync=xn,w.zip=wt,w.zipSync=zt,w.zlib=ot,w.zlibSync=pr});