useblocks 1.1.104 → 1.1.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/iframe/.vite/manifest.json +13 -25
- package/iframe/css/sandbox.css +9 -8
- package/iframe/{iframe-eblock.a1be77d6.html → iframe-eblock.facd6272.html} +2 -2
- package/iframe/{iframe.a1be77d6.html → iframe.facd6272.html} +2 -2
- package/iframe/js/elMarkupHelper.JLkggsgY.js +279 -0
- package/iframe/js/iframe-eblock.body.facd6272.js +9 -0
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/iframe.body.facd6272.js +129 -0
- package/iframe/js/iframe.js +2 -2
- package/iframe/js/{typograf.all.BbXdyfMT.js → typograf.all.CGEpDoct.js} +12 -12
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{cbde9d66.js → 19e01848.js} +1 -1
- package/static/core/{b17bcc2f.js → 23ecb0b0.js} +1 -1
- package/static/core/{f422ba3d.js → 2865a0ae.js} +1 -1
- package/static/core/32813d7b.js +4 -0
- package/static/core/{73d6d76e.js → 34804219.js} +1 -1
- package/static/core/{cf249009.js → 38ea9ef6.js} +1 -1
- package/static/core/{727176a9.js → 42ef449b.js} +1 -1
- package/static/core/{ff7d14e8.js → 49be45c4.js} +1 -1
- package/static/core/{485d0f3d.js → 4d698359.js} +1 -1
- package/static/core/{5d9ff4d5.js → 4ec0aff8.js} +1 -1
- package/static/core/{a6303cb2.js → 501559e1.js} +1 -1
- package/static/core/622a2220.js +2 -0
- package/static/core/{4c8d0155.js → 66619f08.js} +6 -6
- package/static/core/{a11fe298.js → 83a7fff3.js} +11 -11
- package/static/core/{1c7109ca.js → 87e91b5e.js} +1 -1
- package/static/core/{319ebaa7.js → 8a452a94.js} +2 -2
- package/static/core/{f7fba0d2.js → 9b50835f.js} +1 -1
- package/static/core/{c7ba829b.js → a77f31cb.js} +1 -1
- package/static/core/{2929f344.js → aa65675c.js} +3 -3
- package/static/core/{beafdd63.js → c6bde249.js} +1 -1
- package/static/core/{559147cb.js → c9cebb1a.js} +1 -1
- package/static/core/cc70a22f.js +4 -0
- package/static/core/{8aef9403.js → d8e8d436.js} +1 -1
- package/static/core/da678146.js +28 -0
- package/static/core/{3acb2fc4.js → e86ffdcb.js} +1 -1
- package/static/core/{cf79afe3.js → e8a44736.js} +1 -1
- package/static/core/ebcc0451.js +1 -0
- package/static/core/{7b850506.js → f369973d.js} +1 -1
- package/static/core/{5d8f3441.js → f50ba1e0.js} +1 -1
- package/static/core/f89490a1.js +7 -0
- package/static/core/{756874c6.js → fe5390c8.js} +1 -1
- package/static/core/{3fbfc93f.js → feb1ffa4.js} +1 -1
- package/static/esm/1e463a71.js +1 -0
- package/static/esm/delivery-libs.js +1 -1
- package/static/umd-runtime/delivery-libs.BymXnePv.js +1 -0
- package/static/umd-runtime/{runtime.UD7TEOVN.js → runtime.DeDiWiET.js} +1 -1
- package/useblocks-core.facd6272.js +859 -0
- package/useblocks-esm.js +11 -11
- package/{useblocks-po.a1be77d6.js → useblocks-po.facd6272.js} +1 -1
- package/useblocks.d.ts +137 -13
- package/useblocks.js +12 -12
- package/vendor/useblocks-ui-kit/package.json +1 -1
- package/iframe/js/discussHandlers.CcQmhTtJ.js +0 -88
- package/iframe/js/iframe-eblock.body.a1be77d6.js +0 -233
- package/iframe/js/iframe.body.a1be77d6.js +0 -319
- package/iframe/js/rolldown-runtime.BRlIiq3h.js +0 -1
- package/static/core/394d0d8b.js +0 -28
- package/static/core/3cacdac0.js +0 -4
- package/static/core/89044032.js +0 -7
- package/static/core/8f653f65.js +0 -4
- package/static/esm/668ee399.js +0 -1
- package/static/umd-runtime/delivery-libs.3Svr0avG.js +0 -1
- package/useblocks-core.a1be77d6.js +0 -859
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/83a7fff3.js",["require","exports","module","static/core/2ff39ddf.js","static/core/15891cd6.js"],function(g,$,L){const T=g("./2ff39ddf.js"),u=g("./15891cd6.js");function w(t,e){const d={bytes:0,hidden:0,byKind:{}};for(const n of e)if(!(n.finishedAt>t.end||n.finishedAt<t.start)){if(n.transferred===null){d.hidden+=1;continue}d.bytes+=n.transferred,d.byKind[n.kind]=(d.byKind[n.kind]??0)+n.transferred}return d}var y="core:module:";function v(t){const e=[...t].sort((n,r)=>n.start-r.start),d=[];return e.forEach(n=>{const r=d[d.length-1];if(r&&n.start<=r.end){r.end=Math.max(r.end,n.end);return}d.push({start:n.start,end:n.end})}),d}function A(t,e){const d=Math.max(0,t.end-t.start),n=v(e.map(r=>({start:Math.max(t.start,r.startedAt),end:Math.min(t.end,r.finishedAt)})).filter(r=>r.end>r.start)).reduce((r,o)=>r+(o.end-o.start),0);return{networkMs:n,quietMs:d-n}}function P(t){const e=new Map;t.forEach(n=>{if(!n.phase.startsWith(y))return;const r=n.phase.slice(12),o=r.lastIndexOf(":");if(o<=0)return;const s=r.slice(0,o),a=r.slice(o+1),i=e.get(s)??{};a==="ask"?(i.ask=n.at,n.parent&&(i.parent=n.parent)):a==="loaded"?i.loaded=n.at:a==="deps"?i.deps=n.at:a==="ready"&&(i.ready=n.at),e.set(s,i)});const d=[];return e.forEach((n,r)=>{if(n.ask===void 0||n.ready===void 0)return;const o=n.ask,s=n.ready,a=n.deps,i=n.loaded;d.push({id:r,parent:n.parent,askedAt:o,loadedAt:i,depsAt:a,readyAt:s,networkMs:i===void 0?0:i-o,waitingMs:a===void 0?0:a-(i??o),executionMs:a===void 0?0:s-a})}),d}function S(t){const e=new Map;t.forEach(o=>{if(o.parent===void 0)return;const s=e.get(o.parent)??[];s.push(o),e.set(o.parent,s)});let d=t.filter(o=>o.parent===void 0).reduce((o,s)=>o===void 0||s.readyAt>o.readyAt?s:o,void 0);const n=[],r=new Set;for(;d&&!r.has(d.id);)r.add(d.id),n.push(d),d=(e.get(d.id)??[]).reduce((o,s)=>o===void 0||s.readyAt>o.readyAt?s:o,void 0);return n}function E(t,e){const d=u.detectMount(t),n=u.requiredPhases(d),r=new Map;t.forEach(l=>{n.includes(l.phase)&&!r.has(l.phase)&&r.set(l.phase,l.at)});const o=[...r.entries()].sort((l,h)=>l[1]-h[1]),s=q(d),a=o.findIndex(([l])=>l===s),i=a===-1?o:o.slice(0,a+1);return i.slice(1).map(([l,h],m)=>{const[x,p]=i[m],f=A({start:p,end:h},e);return{from:x,to:l,startedAt:p,endedAt:h,durationMs:h-p,networkMs:f.networkMs,quietMs:f.quietMs}})}function q(t){return t==="headless"?u.PHASES.showEnd:u.PHASES.canvasSettled}function M(t,e){const d=t.find(n=>n.phase===e);return d?d.at:null}function j(t,e){return t===null?e:e===null?t:Math.max(t,e)}function z(t,e){const d=u.missingRequiredPhases(t),n=d.length===0,r=t.reduce((p,f)=>p===null||f.at<p?f.at:p,null),o=u.detectMount(t),s=M(t,u.PHASES.canvasPainted),a=o==="headless"?M(t,u.PHASES.showEnd):j(M(t,u.PHASES.canvasSettled),M(t,u.PHASES.editorVisible)),i=P(t),l=i.reduce((p,f)=>p+f.executionMs,0),h=r!==null&&n&&(o==="headless"||s!==null),m=o==="headless"?a:s,x=h&&m!==null?A({start:r,end:m},e):{networkMs:0,quietMs:0};return{startedAt:r,paintedAt:s,settledAt:a,totalMs:h&&s!==null?s-r:null,settledMs:h&&a!==null?a-r:null,settleGapMs:h&&a!==null&&s!==null?a-s:null,segments:h?E(t,e):[],complete:n,missingPhases:d,networkMs:x.networkMs,quietMs:x.quietMs,moduleExecutionMs:l,criticalPath:S(i),transferBeforeFrame:h&&r!==null&&m!==null?w({start:r,end:m},e):{bytes:0,hidden:0,byKind:{}}}}function c(t){return t.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""")}function H(){return"dev"}function k(t,e){return{mode:H(),summary:z(t,e),marks:[...t],resources:[...e]}}function b(t){return t===null?"—":`${Math.round(t)} мс`}function _(t){return t==="dev"?"dev-сервер — AMD-ядро не работает, слой модулей пуст":t==="build"?"собранная версия":"режим неизвестен"}function R(t){const{summary:e}=t,d=e.complete?'<span class="ok">прогон полный</span>':'<span class="bad">прогон неполный — в сравнение не идёт</span>',n=e.missingPhases.length===0?"":`<p class="bad">Не хватает фаз: ${e.missingPhases.map(c).join(", ")}</p>`;return`
|
|
2
2
|
<header>
|
|
3
3
|
<h1>Куда ушло время до показа письма</h1>
|
|
4
4
|
<p class="mode">${c(_(t.mode))}</p>
|
|
@@ -31,7 +31,7 @@ __useblocks__.define("static/core/a11fe298.js",["require","exports","module","st
|
|
|
31
31
|
</tr>`}).join("")}</tbody>
|
|
32
32
|
<tfoot><tr><th>Сумма</th><th>${Math.round(e)}</th><th>100%</th><th></th><th></th><th></th></tr></tfoot>
|
|
33
33
|
</table>
|
|
34
|
-
</section>`}function
|
|
34
|
+
</section>`}function I(t){return t.length===0?"<section><h2>Критический путь по модулям ядра</h2><p>Отметок модулей нет.</p></section>":`
|
|
35
35
|
<section>
|
|
36
36
|
<h2>Критический путь по модулям ядра</h2>
|
|
37
37
|
<p class="hint">Звено с малыми «едет» и «исполняется», но поздним «попросили», — это «поздно попросили».</p>
|
|
@@ -47,7 +47,7 @@ __useblocks__.define("static/core/a11fe298.js",["require","exports","module","st
|
|
|
47
47
|
<td>${Math.round(e.readyAt)}</td>
|
|
48
48
|
</tr>`).join("")}</tbody>
|
|
49
49
|
</table>
|
|
50
|
-
</section>`}function
|
|
50
|
+
</section>`}function O(t){const{resources:e,summary:d}=t;if(e.length===0)return"<section><h2>Водопад ресурсов</h2><p>Ресурсов не записано.</p></section>";const n=d.startedAt??Math.min(...e.map(s=>s.startedAt)),r=Math.max(d.paintedAt??0,...e.map(s=>s.finishedAt)),o=Math.max(1,r-n);return`
|
|
51
51
|
<section>
|
|
52
52
|
<h2>Водопад ресурсов</h2>
|
|
53
53
|
<table class="waterfall"><tbody>${[...e].sort((s,a)=>s.startedAt-a.startedAt).map(s=>{const a=(s.startedAt-n)/o*100,i=Math.max(.4,(s.finishedAt-s.startedAt)/o*100),l=s.transferred===null?"размер скрыт":s.fromCache?"из кэша":`${Math.round(s.transferred/1024)} КБ`;return`
|
|
@@ -57,7 +57,7 @@ __useblocks__.define("static/core/a11fe298.js",["require","exports","module","st
|
|
|
57
57
|
<td class="size">${c(l)}</td>
|
|
58
58
|
<td class="bar"><span style="left:${a.toFixed(2)}%;width:${i.toFixed(2)}%"></span></td>
|
|
59
59
|
</tr>`}).join("")}</tbody></table>
|
|
60
|
-
</section>`}function
|
|
60
|
+
</section>`}function C(t){if(t.length===0)return"<section><h2>Отметки</h2><p>Отметок нет.</p></section>";const e=Math.min(...t.map(d=>d.at));return`
|
|
61
61
|
<section>
|
|
62
62
|
<h2>Отметки</h2>
|
|
63
63
|
<table>
|
|
@@ -69,7 +69,7 @@ __useblocks__.define("static/core/a11fe298.js",["require","exports","module","st
|
|
|
69
69
|
<td>${c(d.parent??"")}</td>
|
|
70
70
|
</tr>`).join("")}</tbody>
|
|
71
71
|
</table>
|
|
72
|
-
</section>`}var
|
|
72
|
+
</section>`}var D=`
|
|
73
73
|
body { font: 14px/1.5 system-ui, sans-serif; margin: 24px; color: #222; background: #fff; }
|
|
74
74
|
h1 { font-size: 20px; margin: 0 0 4px; }
|
|
75
75
|
h2 { font-size: 16px; margin: 28px 0 8px; }
|
|
@@ -92,22 +92,22 @@ __useblocks__.define("static/core/a11fe298.js",["require","exports","module","st
|
|
|
92
92
|
.waterfall .bar { position: relative; width: 45%; }
|
|
93
93
|
.waterfall .bar span { position: absolute; top: 4px; height: 10px; background: #3b6fd4; border-radius: 2px; }
|
|
94
94
|
pre { background: #f5f5f5; border-radius: 6px; padding: 12px; overflow: auto; max-height: 320px; }
|
|
95
|
-
`;function
|
|
95
|
+
`;function K(t){const e=c(JSON.stringify(t,null,2));return`<!DOCTYPE html>
|
|
96
96
|
<html lang="ru">
|
|
97
97
|
<head>
|
|
98
98
|
<meta charset="utf-8">
|
|
99
99
|
<title>Диагностика загрузки</title>
|
|
100
|
-
<style>${
|
|
100
|
+
<style>${D}</style>
|
|
101
101
|
</head>
|
|
102
102
|
<body>
|
|
103
103
|
${R(t)}
|
|
104
104
|
${F(t.summary.segments)}
|
|
105
|
-
${
|
|
106
|
-
${
|
|
107
|
-
${
|
|
105
|
+
${I(t.summary.criticalPath)}
|
|
106
|
+
${O(t)}
|
|
107
|
+
${C(t.marks)}
|
|
108
108
|
<section>
|
|
109
109
|
<h2>Выгрузка JSON</h2>
|
|
110
110
|
<pre>${e}</pre>
|
|
111
111
|
</section>
|
|
112
112
|
</body>
|
|
113
|
-
</html>`}$.buildReportPayload=k,$.renderReportHtml=
|
|
113
|
+
</html>`}$.buildReportPayload=k,$.renderReportHtml=K});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){try{if(typeof document<"u"){var n='.monaco-editor{width:100%;height:100%}.monaco-editor .monaco-hover{border-radius:6px}.monaco-editor .monaco-editor .scroll-decoration{box-shadow:none}.monaco-editor,.monaco-editor *,.monaco-editor .view-lines,.monaco-editor .view-lines *,.monaco-editor .view-lines .view-line,.monaco-editor .view-lines .monaco-mouse-cursor-text,.monaco-editor .view-line,.monaco-editor .monaco-mouse-cursor-text{font-family:var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace)!important}.monaco-editor .view-line,.monaco-editor .view-line span,.monaco-editor .view-line span.inline-selected-text{font-variant-ligatures:none;font-feature-settings:"liga" 0, "calt" 0;font-kerning:none;white-space:pre;font-family:var(--monaco-monospace-font,var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace))!important;font-size:var(--monaco-editor-font-size,14px)!important;font-weight:400!important}.monaco-editor .standalone-colorpicker-body{max-width:460px!important}.monaco-editor .standalone-colorpicker-body .colorpicker-body .saturation-wrap{flex:0 auto;max-width:280px}.blocks-app .colorpicker-body .saturation-box,.blocks-app .colorpicker-body .strip{border-radius:4px}.blocks-app .scrollbar.vertical{width:5px!important}.blocks-app .scrollbar.vertical .slider{border-radius:5px!important;width:5px!important}.blocks-app .user-cursor{z-index:10;border-left:2px solid #ff00e1;width:2px;height:20px;position:absolute}.blocks-app .cursor-hover{color:#fff;text-wrap-mode:nowrap;z-index:10000;border-radius:7px 7px 7px 0;margin-left:-2px;padding:0 5px;font-size:12px;position:absolute;top:-17px}.blocks-app .user-selection-decoration{background-color:#8080eb4d}.monaco-editor__spin{z-index:1000;align-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}',o=window.__useblocks_styles__||(window.__useblocks_styles__={sheets:{},order:[]}),r=n;if(!o.sheets[r]){var t=null;try{typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype&&(t=new CSSStyleSheet,t.replaceSync(n))}catch{t=null}if(t){if(!o.host||!o.host.isConnected||!o.host.sheet){var e=document.createElement("style");e.setAttribute("data-useblocks","true"),document.head.appendChild(e),o.host=e}for(var s=o.host.sheet,a=0;a<t.cssRules.length;a++)try{s.insertRule(t.cssRules[a].cssText,s.cssRules.length)}catch{}(o.texts||(o.texts=[])).push(n),(o.listeners||[]).forEach(function(i){try{i(n)}catch{}})}else{var e=document.createElement("style");e.setAttribute("data-useblocks","true"),e.appendChild(document.createTextNode(n)),document.head.appendChild(e)}o.sheets[r]=!0,o.order.push(r)}}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
-
__useblocks__.define("static/core/
|
|
2
|
+
__useblocks__.define("static/core/87e91b5e.js",["require","exports","module","static/core/2ff39ddf.js","static/core/648f17a7.js","static/core/15891cd6.js","static/core/e47dcbb0.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(Q,pt,Ic){const oe=Q("./2ff39ddf.js"),Mn=Q("./648f17a7.js"),c=Q("./15891cd6.js"),Ln=Q("./e47dcbb0.js");let k=Q("react"),d=oe.__toESM(k,1);k=oe.__toESM(k);let Ee=Q("react/jsx-runtime"),rr=Q("__delivery__/libs"),An=Q("vite/preload-helper");function or(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function _n(e){if(Array.isArray(e))return e}function Tn(e,t,r){return(t=In(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jn(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(o=i.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(p){u=!0,n=p}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw n}}return s}}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nr(Object(r),!0).forEach(function(o){Tn(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Rn(e,t){if(e==null)return{};var r,o,n=Nn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nn(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function Pn(e,t){return _n(e)||jn(e,t)||qn(e,t)||zn()}function Dn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function In(e){var t=Dn(e,"string");return typeof t=="symbol"?t:t+""}function qn(e,t){if(e){if(typeof e=="string")return or(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?or(e,t):void 0}}function Wn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ar(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ar(Object(r),!0).forEach(function(o){Wn(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ar(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Un(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){return t.reduceRight(function(n,i){return i(n)},o)}}function Oe(e){return function t(){for(var r=this,o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];return n.length>=e.length?e.apply(this,n):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(n,s))}}}function Ue(e){return{}.toString.call(e).includes("Object")}function Fn(e){return!Object.keys(e).length}function Ce(e){return typeof e=="function"}function Vn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bn(e,t){return Ue(t)||ne("changeType"),Object.keys(t).some(function(r){return!Vn(e,r)})&&ne("changeField"),t}function Hn(e){Ce(e)||ne("selectorType")}function Gn(e){Ce(e)||Ue(e)||ne("handlerType"),Ue(e)&&Object.values(e).some(function(t){return!Ce(t)})&&ne("handlersType")}function Qn(e){e||ne("initialIsRequired"),Ue(e)||ne("initialType"),Fn(e)&&ne("initialContent")}function Kn(e,t){throw new Error(e[t]||e.default)}var ne=Oe(Kn)({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),Fe={changes:Bn,selector:Hn,handler:Gn,initial:Qn};function Yn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fe.initial(e),Fe.handler(t);var r={current:e},o=Oe(Xn)(r,t),n=Oe(Jn)(r),i=Oe(Fe.changes)(e),a=Oe(Zn)(r);function s(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return Fe.selector(u),u(r.current)}function l(u){Un(o,n,i,a)(u)}return[s,l]}function Zn(e,t){return Ce(t)?t(e.current):t}function Jn(e,t){return e.current=sr(sr({},e.current),t),t}function Xn(e,t,r){return Ce(t)?t(e.current):Object.keys(r).forEach(function(o){var n;return(n=t[o])===null||n===void 0?void 0:n.call(t,e.current[o])}),r}var ei={create:Yn},ti={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function ri(e){return function t(){for(var r=this,o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];return n.length>=e.length?e.apply(this,n):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(n,s))}}}function oi(e){return{}.toString.call(e).includes("Object")}function ni(e){return e||lr("configIsRequired"),oi(e)||lr("configType"),e.urls?{paths:{vs:e.urls.monacoBase}}:e}function qc(){}function ii(e,t){throw new Error(e[t]||e.default)}var ai={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
4
4
|
You are using deprecated way of configuration.
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/f74fd241.js",["require","exports","module","static/core/2ff39ddf.js","static/core/49be45c4.js"],function(O,W,Nt){const It=O("./2ff39ddf.js"),P=O("./49be45c4.js");var tt=P.s(((o,s)=>{s.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}})),_=P.s((o=>{var s,a=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];o.getSymbolSize=function(r){if(!r)throw Error('"version" cannot be null or undefined');if(r<1||r>40)throw Error('"version" should be in range from 1 to 40');return r*4+17},o.getSymbolTotalCodewords=function(r){return a[r]},o.getBCHDigit=function(r){let t=0;for(;r!==0;)t++,r>>>=1;return t},o.setToSJISFunction=function(r){if(typeof r!="function")throw Error('"toSJISFunc" is not a valid function.');s=r},o.isKanjiModeEnabled=function(){return s!==void 0},o.toSJIS=function(r){return s(r)}})),H=P.s((o=>{o.L={bit:1},o.M={bit:0},o.Q={bit:3},o.H={bit:2};function s(a){if(typeof a!="string")throw Error("Param is not a string");switch(a.toLowerCase()){case"l":case"low":return o.L;case"m":case"medium":return o.M;case"q":case"quartile":return o.Q;case"h":case"high":return o.H;default:throw Error("Unknown EC Level: "+a)}}o.isValid=function(a){return a&&a.bit!==void 0&&a.bit>=0&&a.bit<4},o.from=function(a,r){if(o.isValid(a))return a;try{return s(a)}catch{return r}}})),rt=P.s(((o,s)=>{function a(){this.buffer=[],this.length=0}a.prototype={get:function(r){let t=Math.floor(r/8);return(this.buffer[t]>>>7-r%8&1)==1},put:function(r,t){for(let e=0;e<t;e++)this.putBit((r>>>t-e-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(r){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),r&&(this.buffer[t]|=128>>>this.length%8),this.length++}},s.exports=a})),et=P.s(((o,s)=>{function a(r){if(!r||r<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}a.prototype.set=function(r,t,e,i){let n=r*this.size+t;this.data[n]=e,i&&(this.reservedBit[n]=!0)},a.prototype.get=function(r,t){return this.data[r*this.size+t]},a.prototype.xor=function(r,t,e){this.data[r*this.size+t]^=e},a.prototype.isReserved=function(r,t){return this.reservedBit[r*this.size+t]},s.exports=a})),nt=P.s((o=>{var s=_().getSymbolSize;o.getRowColCoords=function(a){if(a===1)return[];let r=Math.floor(a/7)+2,t=s(a),e=t===145?26:Math.ceil((t-13)/(2*r-2))*2,i=[t-7];for(let n=1;n<r-1;n++)i[n]=i[n-1]-e;return i.push(6),i.reverse()},o.getPositions=function(a){let r=[],t=o.getRowColCoords(a),e=t.length;for(let i=0;i<e;i++)for(let n=0;n<e;n++)i===0&&n===0||i===0&&n===e-1||i===e-1&&n===0||r.push([t[i],t[n]]);return r}})),ot=P.s((o=>{var s=_().getSymbolSize,a=7;o.getPositions=function(r){let t=s(r);return[[0,0],[t-a,0],[0,t-a]]}})),it=P.s((o=>{o.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var s={N1:3,N2:3,N3:40,N4:10};o.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},o.from=function(r){return o.isValid(r)?parseInt(r,10):void 0},o.getPenaltyN1=function(r){let t=r.size,e=0,i=0,n=0,u=null,c=null;for(let E=0;E<t;E++){i=n=0,u=c=null;for(let w=0;w<t;w++){let l=r.get(E,w);l===u?i++:(i>=5&&(e+=s.N1+(i-5)),u=l,i=1),l=r.get(w,E),l===c?n++:(n>=5&&(e+=s.N1+(n-5)),c=l,n=1)}i>=5&&(e+=s.N1+(i-5)),n>=5&&(e+=s.N1+(n-5))}return e},o.getPenaltyN2=function(r){let t=r.size,e=0;for(let i=0;i<t-1;i++)for(let n=0;n<t-1;n++){let u=r.get(i,n)+r.get(i,n+1)+r.get(i+1,n)+r.get(i+1,n+1);(u===4||u===0)&&e++}return e*s.N2},o.getPenaltyN3=function(r){let t=r.size,e=0,i=0,n=0;for(let u=0;u<t;u++){i=n=0;for(let c=0;c<t;c++)i=i<<1&2047|r.get(u,c),c>=10&&(i===1488||i===93)&&e++,n=n<<1&2047|r.get(c,u),c>=10&&(n===1488||n===93)&&e++}return e*s.N3},o.getPenaltyN4=function(r){let t=0,e=r.data.length;for(let i=0;i<e;i++)t+=r.data[i];return Math.abs(Math.ceil(t*100/e/5)-10)*s.N4};function a(r,t,e){switch(r){case o.Patterns.PATTERN000:return(t+e)%2==0;case o.Patterns.PATTERN001:return t%2==0;case o.Patterns.PATTERN010:return e%3==0;case o.Patterns.PATTERN011:return(t+e)%3==0;case o.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2==0;case o.Patterns.PATTERN101:return t*e%2+t*e%3==0;case o.Patterns.PATTERN110:return(t*e%2+t*e%3)%2==0;case o.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2==0;default:throw Error("bad maskPattern:"+r)}}o.applyMask=function(r,t){let e=t.size;for(let i=0;i<e;i++)for(let n=0;n<e;n++)t.isReserved(n,i)||t.xor(n,i,a(r,n,i))},o.getBestMask=function(r,t){let e=Object.keys(o.Patterns).length,i=0,n=1/0;for(let u=0;u<e;u++){t(u),o.applyMask(u,r);let c=o.getPenaltyN1(r)+o.getPenaltyN2(r)+o.getPenaltyN3(r)+o.getPenaltyN4(r);o.applyMask(u,r),c<n&&(n=c,i=u)}return i}})),V=P.s((o=>{var s=H(),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];o.getBlocksCount=function(t,e){switch(e){case s.L:return a[(t-1)*4+0];case s.M:return a[(t-1)*4+1];case s.Q:return a[(t-1)*4+2];case s.H:return a[(t-1)*4+3];default:return}},o.getTotalCodewordsCount=function(t,e){switch(e){case s.L:return r[(t-1)*4+0];case s.M:return r[(t-1)*4+1];case s.Q:return r[(t-1)*4+2];case s.H:return r[(t-1)*4+3];default:return}}})),at=P.s((o=>{var s=new Uint8Array(512),a=new Uint8Array(256);(function(){let r=1;for(let t=0;t<255;t++)s[t]=r,a[r]=t,r<<=1,r&256&&(r^=285);for(let t=255;t<512;t++)s[t]=s[t-255]})(),o.log=function(r){if(r<1)throw Error("log("+r+")");return a[r]},o.exp=function(r){return s[r]},o.mul=function(r,t){return r===0||t===0?0:s[a[r]+a[t]]}})),st=P.s((o=>{var s=at();o.mul=function(a,r){let t=new Uint8Array(a.length+r.length-1);for(let e=0;e<a.length;e++)for(let i=0;i<r.length;i++)t[e+i]^=s.mul(a[e],r[i]);return t},o.mod=function(a,r){let t=new Uint8Array(a);for(;t.length-r.length>=0;){let e=t[0];for(let n=0;n<r.length;n++)t[n]^=s.mul(r[n],e);let i=0;for(;i<t.length&&t[i]===0;)i++;t=t.slice(i)}return t},o.generateECPolynomial=function(a){let r=new Uint8Array([1]);for(let t=0;t<a;t++)r=o.mul(r,new Uint8Array([1,s.exp(t)]));return r}})),ut=P.s(((o,s)=>{var a=st();function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(t){this.degree=t,this.genPoly=a.generateECPolynomial(this.degree)},r.prototype.encode=function(t){if(!this.genPoly)throw Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let i=a.mod(e,this.genPoly),n=this.degree-i.length;if(n>0){let u=new Uint8Array(this.degree);return u.set(i,n),u}return i},s.exports=r})),q=P.s((o=>{o.isValid=function(s){return!isNaN(s)&&s>=1&&s<=40}})),Q=P.s((o=>{var s="[0-9]+",a="[A-Z $%*+\\-./:]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");var t="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+`)(?:.|[\r
|
|
2
2
|
]))+`;o.KANJI=new RegExp(r,"g"),o.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),o.BYTE=new RegExp(t,"g"),o.NUMERIC=new RegExp(s,"g"),o.ALPHANUMERIC=new RegExp(a,"g");var e=RegExp("^"+r+"$"),i=RegExp("^[0-9]+$"),n=RegExp("^[A-Z0-9 $%*+\\-./:]+$");o.testKanji=function(u){return e.test(u)},o.testNumeric=function(u){return i.test(u)},o.testAlphanumeric=function(u){return n.test(u)}})),k=P.s((o=>{var s=q(),a=Q();o.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},o.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},o.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},o.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},o.MIXED={bit:-1},o.getCharCountIndicator=function(t,e){if(!t.ccBits)throw Error("Invalid mode: "+t);if(!s.isValid(e))throw Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},o.getBestModeForData=function(t){return a.testNumeric(t)?o.NUMERIC:a.testAlphanumeric(t)?o.ALPHANUMERIC:a.testKanji(t)?o.KANJI:o.BYTE},o.toString=function(t){if(t&&t.id)return t.id;throw Error("Invalid mode")},o.isValid=function(t){return t&&t.bit&&t.ccBits};function r(t){if(typeof t!="string")throw Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return o.NUMERIC;case"alphanumeric":return o.ALPHANUMERIC;case"kanji":return o.KANJI;case"byte":return o.BYTE;default:throw Error("Unknown mode: "+t)}}o.from=function(t,e){if(o.isValid(t))return t;try{return r(t)}catch{return e}}})),lt=P.s((o=>{var s=_(),a=V(),r=H(),t=k(),e=q(),i=7973,n=s.getBCHDigit(i);function u(l,m,v){for(let T=1;T<=40;T++)if(m<=o.getCapacity(T,v,l))return T}function c(l,m){return t.getCharCountIndicator(l,m)+4}function E(l,m){let v=0;return l.forEach(function(T){let x=c(T.mode,m);v+=x+T.getBitsLength()}),v}function w(l,m){for(let v=1;v<=40;v++)if(E(l,v)<=o.getCapacity(v,m,t.MIXED))return v}o.from=function(l,m){return e.isValid(l)?parseInt(l,10):m},o.getCapacity=function(l,m,v){if(!e.isValid(l))throw Error("Invalid QR Code version");v===void 0&&(v=t.BYTE);let T=(s.getSymbolTotalCodewords(l)-a.getTotalCodewordsCount(l,m))*8;if(v===t.MIXED)return T;let x=T-c(v,l);switch(v){case t.NUMERIC:return Math.floor(x/10*3);case t.ALPHANUMERIC:return Math.floor(x/11*2);case t.KANJI:return Math.floor(x/13);case t.BYTE:default:return Math.floor(x/8)}},o.getBestVersionForData=function(l,m){let v,T=r.from(m,r.M);if(Array.isArray(l)){if(l.length>1)return w(l,T);if(l.length===0)return 1;v=l[0]}else v=l;return u(v.mode,v.getLength(),T)},o.getEncodedBits=function(l){if(!e.isValid(l)||l<7)throw Error("Invalid QR Code version");let m=l<<12;for(;s.getBCHDigit(m)-n>=0;)m^=i<<s.getBCHDigit(m)-n;return l<<12|m}})),ft=P.s((o=>{var s=_(),a=1335,r=21522,t=s.getBCHDigit(a);o.getEncodedBits=function(e,i){let n=e.bit<<3|i,u=n<<10;for(;s.getBCHDigit(u)-t>=0;)u^=a<<s.getBCHDigit(u)-t;return(n<<10|u)^r}})),ct=P.s(((o,s)=>{var a=k();function r(t){this.mode=a.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e,i,n;for(e=0;e+3<=this.data.length;e+=3)i=this.data.substr(e,3),n=parseInt(i,10),t.put(n,10);let u=this.data.length-e;u>0&&(i=this.data.substr(e),n=parseInt(i,10),t.put(n,u*3+1))},s.exports=r})),ht=P.s(((o,s)=>{var a=k(),r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");function t(e){this.mode=a.ALPHANUMERIC,this.data=e}t.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let i=0;for(;i+2<=this.data.length;i+=2){let n=r.indexOf(this.data[i])*45;n+=r.indexOf(this.data[i+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[i]),6)},s.exports=t})),dt=P.s(((o,s)=>{var a=k();function r(t){this.mode=a.BYTE,this.data=typeof t=="string"?new TextEncoder().encode(t):new Uint8Array(t)}r.getBitsLength=function(t){return t*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){for(let e=0,i=this.data.length;e<i;e++)t.put(this.data[e],8)},s.exports=r})),gt=P.s(((o,s)=>{var a=k(),r=_();function t(e){this.mode=a.KANJI,this.data=e}t.getBitsLength=function(e){return e*13},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let i=0;for(;i<this.data.length;i++){let n=r.toSJIS(this.data[i]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[i]+`
|
|
3
3
|
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},s.exports=t})),pt=P.s(((o,s)=>{var a={single_source_shortest_paths:function(r,t,e){var i={},n={};n[t]=0;var u=a.PriorityQueue.make();u.push(t,0);for(var c,E,w,l,m,v,T,x,C;!u.empty();)for(w in c=u.pop(),E=c.value,l=c.cost,m=r[E]||{},m)m.hasOwnProperty(w)&&(v=m[w],T=l+v,x=n[w],C=n[w]===void 0,(C||x>T)&&(n[w]=T,u.push(w,T),i[w]=E));if(e!==void 0&&n[e]===void 0){var M=["Could not find a path from ",t," to ",e,"."].join("");throw Error(M)}return i},extract_shortest_path_from_predecessor_list:function(r,t){for(var e=[],i=t;i;)e.push(i),r[i],i=r[i];return e.reverse(),e},find_path:function(r,t,e){var i=a.single_source_shortest_paths(r,t,e);return a.extract_shortest_path_from_predecessor_list(i,e)},PriorityQueue:{make:function(r){var t=a.PriorityQueue,e={},i;for(i in r||={},t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e.queue=[],e.sorter=r.sorter||t.default_sorter,e},default_sorter:function(r,t){return r.cost-t.cost},push:function(r,t){var e={value:r,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};s!==void 0&&(s.exports=a)})),mt=P.s((o=>{var s=k(),a=ct(),r=ht(),t=dt(),e=gt(),i=Q(),n=_(),u=pt();function c(C){return unescape(encodeURIComponent(C)).length}function E(C,M,B){let I=[],L;for(;(L=C.exec(B))!==null;)I.push({data:L[0],index:L.index,mode:M,length:L[0].length});return I}function w(C){let M=E(i.NUMERIC,s.NUMERIC,C),B=E(i.ALPHANUMERIC,s.ALPHANUMERIC,C),I,L;return n.isKanjiModeEnabled()?(I=E(i.BYTE,s.BYTE,C),L=E(i.KANJI,s.KANJI,C)):(I=E(i.BYTE_KANJI,s.BYTE,C),L=[]),M.concat(B,I,L).sort(function(R,g){return R.index-g.index}).map(function(R){return{data:R.data,mode:R.mode,length:R.length}})}function l(C,M){switch(M){case s.NUMERIC:return a.getBitsLength(C);case s.ALPHANUMERIC:return r.getBitsLength(C);case s.KANJI:return e.getBitsLength(C);case s.BYTE:return t.getBitsLength(C)}}function m(C){return C.reduce(function(M,B){let I=M.length-1>=0?M[M.length-1]:null;return I&&I.mode===B.mode?(M[M.length-1].data+=B.data,M):(M.push(B),M)},[])}function v(C){let M=[];for(let B=0;B<C.length;B++){let I=C[B];switch(I.mode){case s.NUMERIC:M.push([I,{data:I.data,mode:s.ALPHANUMERIC,length:I.length},{data:I.data,mode:s.BYTE,length:I.length}]);break;case s.ALPHANUMERIC:M.push([I,{data:I.data,mode:s.BYTE,length:I.length}]);break;case s.KANJI:M.push([I,{data:I.data,mode:s.BYTE,length:c(I.data)}]);break;case s.BYTE:M.push([{data:I.data,mode:s.BYTE,length:c(I.data)}])}}return M}function T(C,M){let B={},I={start:{}},L=["start"];for(let R=0;R<C.length;R++){let g=C[R],y=[];for(let A=0;A<g.length;A++){let f=g[A],N=""+R+A;y.push(N),B[N]={node:f,lastCount:0},I[N]={};for(let h=0;h<L.length;h++){let d=L[h];B[d]&&B[d].node.mode===f.mode?(I[d][N]=l(B[d].lastCount+f.length,f.mode)-l(B[d].lastCount,f.mode),B[d].lastCount+=f.length):(B[d]&&(B[d].lastCount=f.length),I[d][N]=l(f.length,f.mode)+4+s.getCharCountIndicator(f.mode,M))}}L=y}for(let R=0;R<L.length;R++)I[L[R]].end=0;return{map:I,table:B}}function x(C,M){let B,I=s.getBestModeForData(C);if(B=s.from(M,I),B!==s.BYTE&&B.bit<I.bit)throw Error('"'+C+'" cannot be encoded with mode '+s.toString(B)+`.
|
|
4
4
|
Suggested mode is: `+s.toString(I));switch(B===s.KANJI&&!n.isKanjiModeEnabled()&&(B=s.BYTE),B){case s.NUMERIC:return new a(C);case s.ALPHANUMERIC:return new r(C);case s.KANJI:return new e(C);case s.BYTE:return new t(C)}}o.fromArray=function(C){return C.reduce(function(M,B){return typeof B=="string"?M.push(x(B,null)):B.data&&M.push(x(B.data,B.mode)),M},[])},o.fromString=function(C,M){let B=T(v(w(C,n.isKanjiModeEnabled())),M),I=u.find_path(B.map,"start","end"),L=[];for(let R=1;R<I.length-1;R++)L.push(B.table[I[R]].node);return o.fromArray(m(L))},o.rawSplit=function(C){return o.fromArray(w(C,n.isKanjiModeEnabled()))}})),vt=P.s((o=>{var s=_(),a=H(),r=rt(),t=et(),e=nt(),i=ot(),n=it(),u=V(),c=ut(),E=lt(),w=ft(),l=k(),m=mt();function v(g,y){let A=g.size,f=i.getPositions(y);for(let N=0;N<f.length;N++){let h=f[N][0],d=f[N][1];for(let p=-1;p<=7;p++)if(!(h+p<=-1||A<=h+p))for(let b=-1;b<=7;b++)d+b<=-1||A<=d+b||(p>=0&&p<=6&&(b===0||b===6)||b>=0&&b<=6&&(p===0||p===6)||p>=2&&p<=4&&b>=2&&b<=4?g.set(h+p,d+b,!0,!0):g.set(h+p,d+b,!1,!0))}}function T(g){let y=g.size;for(let A=8;A<y-8;A++){let f=A%2==0;g.set(A,6,f,!0),g.set(6,A,f,!0)}}function x(g,y){let A=e.getPositions(y);for(let f=0;f<A.length;f++){let N=A[f][0],h=A[f][1];for(let d=-2;d<=2;d++)for(let p=-2;p<=2;p++)d===-2||d===2||p===-2||p===2||d===0&&p===0?g.set(N+d,h+p,!0,!0):g.set(N+d,h+p,!1,!0)}}function C(g,y){let A=g.size,f=E.getEncodedBits(y),N,h,d;for(let p=0;p<18;p++)N=Math.floor(p/3),h=p%3+A-8-3,d=(f>>p&1)==1,g.set(N,h,d,!0),g.set(h,N,d,!0)}function M(g,y,A){let f=g.size,N=w.getEncodedBits(y,A),h,d;for(h=0;h<15;h++)d=(N>>h&1)==1,h<6?g.set(h,8,d,!0):h<8?g.set(h+1,8,d,!0):g.set(f-15+h,8,d,!0),h<8?g.set(8,f-h-1,d,!0):h<9?g.set(8,15-h-1+1,d,!0):g.set(8,15-h-1,d,!0);g.set(f-8,8,1,!0)}function B(g,y){let A=g.size,f=-1,N=A-1,h=7,d=0;for(let p=A-1;p>0;p-=2)for(p===6&&p--;;){for(let b=0;b<2;b++)if(!g.isReserved(N,p-b)){let D=!1;d<y.length&&(D=(y[d]>>>h&1)==1),g.set(N,p-b,D),h--,h===-1&&(d++,h=7)}if(N+=f,N<0||A<=N){N-=f,f=-f;break}}}function I(g,y,A){let f=new r;A.forEach(function(d){f.put(d.mode.bit,4),f.put(d.getLength(),l.getCharCountIndicator(d.mode,g)),d.write(f)});let N=(s.getSymbolTotalCodewords(g)-u.getTotalCodewordsCount(g,y))*8;for(f.getLengthInBits()+4<=N&&f.put(0,4);f.getLengthInBits()%8!=0;)f.putBit(0);let h=(N-f.getLengthInBits())/8;for(let d=0;d<h;d++)f.put(d%2?17:236,8);return L(f,g,y)}function L(g,y,A){let f=s.getSymbolTotalCodewords(y),N=f-u.getTotalCodewordsCount(y,A),h=u.getBlocksCount(y,A),d=h-f%h,p=Math.floor(f/h),b=Math.floor(N/h),D=b+1,Z=p-b,Ct=new c(Z),J=0,z=Array(h),X=Array(h),K=0,Bt=new Uint8Array(g.buffer);for(let F=0;F<h;F++){let j=F<d?b:D;z[F]=Bt.slice(J,J+j),X[F]=Ct.encode(z[F]),J+=j,K=Math.max(K,j)}let Y=new Uint8Array(f),G=0,S,U;for(S=0;S<K;S++)for(U=0;U<h;U++)S<z[U].length&&(Y[G++]=z[U][S]);for(S=0;S<Z;S++)for(U=0;U<h;U++)Y[G++]=X[U][S];return Y}function R(g,y,A,f){let N;if(Array.isArray(g))N=m.fromArray(g);else if(typeof g=="string"){let b=y;if(!b){let D=m.rawSplit(g);b=E.getBestVersionForData(D,A)}N=m.fromString(g,b||40)}else throw Error("Invalid data");let h=E.getBestVersionForData(N,A);if(!h)throw Error("The amount of data is too big to be stored in a QR Code");if(!y)y=h;else if(y<h)throw Error(`
|
|
@@ -7,4 +7,4 @@ Minimum version required to store current data is: `+h+`.
|
|
|
7
7
|
`);let d=I(y,A,N),p=new t(s.getSymbolSize(y));return v(p,y),T(p),x(p,y),M(p,A,0),y>=7&&C(p,y),B(p,d),isNaN(f)&&(f=n.getBestMask(p,M.bind(null,p,A))),n.applyMask(f,p),M(p,A,f),{modules:p,version:y,errorCorrectionLevel:A,maskPattern:f,segments:N}}o.create=function(g,y){if(g===void 0||g==="")throw Error("No input text");let A=a.M,f,N;return y!==void 0&&(A=a.from(y.errorCorrectionLevel,a.M),f=E.from(y.version),N=n.from(y.maskPattern),y.toSJISFunc&&s.setToSJISFunction(y.toSJISFunc)),R(g,f,A,N)}})),$=P.s((o=>{function s(a){if(typeof a=="number"&&(a=a.toString()),typeof a!="string")throw Error("Color should be defined as hex string");let r=a.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw Error("Invalid hex color: "+a);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(e){return[e,e]}))),r.length===6&&r.push("F","F");let t=parseInt(r.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+r.slice(0,6).join("")}}o.getOptions=function(a){a||={},a.color||(a.color={});let r=a.margin===void 0||a.margin===null||a.margin<0?4:a.margin,t=a.width&&a.width>=21?a.width:void 0,e=a.scale||4;return{width:t,scale:t?4:e,margin:r,color:{dark:s(a.color.dark||"#000000ff"),light:s(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},o.getScale=function(a,r){return r.width&&r.width>=a+r.margin*2?r.width/(a+r.margin*2):r.scale},o.getImageWidth=function(a,r){let t=o.getScale(a,r);return Math.floor((a+r.margin*2)*t)},o.qrToImageData=function(a,r,t){let e=r.modules.size,i=r.modules.data,n=o.getScale(e,t),u=Math.floor((e+t.margin*2)*n),c=t.margin*n,E=[t.color.light,t.color.dark];for(let w=0;w<u;w++)for(let l=0;l<u;l++){let m=(w*u+l)*4,v=t.color.light;if(w>=c&&l>=c&&w<u-c&&l<u-c){let T=Math.floor((w-c)/n),x=Math.floor((l-c)/n);v=E[+!!i[T*e+x]]}a[m++]=v.r,a[m++]=v.g,a[m++]=v.b,a[m]=v.a}}})),Et=P.s((o=>{var s=$();function a(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||={},e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}function r(){try{return document.createElement("canvas")}catch{throw Error("You need to specify a canvas element")}}o.render=function(t,e,i){let n=i,u=e;n===void 0&&(!e||!e.getContext)&&(n=e,e=void 0),e||(u=r()),n=s.getOptions(n);let c=s.getImageWidth(t.modules.size,n),E=u.getContext("2d"),w=E.createImageData(c,c);return s.qrToImageData(w.data,t,n),a(E,u,c),E.putImageData(w,0,0),u},o.renderToDataURL=function(t,e,i){let n=i;n===void 0&&(!e||!e.getContext)&&(n=e,e=void 0),n||={};let u=o.render(t,e,n),c=n.type||"image/png",E=n.rendererOpts||{};return u.toDataURL(c,E.quality)}})),wt=P.s((o=>{var s=$();function a(e,i){let n=e.a/255,u=i+'="'+e.hex+'"';return n<1?u+" "+i+'-opacity="'+n.toFixed(2).slice(1)+'"':u}function r(e,i,n){let u=e+i;return n!==void 0&&(u+=" "+n),u}function t(e,i,n){let u="",c=0,E=!1,w=0;for(let l=0;l<e.length;l++){let m=Math.floor(l%i),v=Math.floor(l/i);!m&&!E&&(E=!0),e[l]?(w++,l>0&&m>0&&e[l-1]||(u+=E?r("M",m+n,.5+v+n):r("m",c,0),c=0,E=!1),m+1<i&&e[l+1]||(u+=r("h",w),w=0)):c++}return u}o.render=function(e,i,n){let u=s.getOptions(i),c=e.modules.size,E=e.modules.data,w=c+u.margin*2,l=u.color.light.a?"<path "+a(u.color.light,"fill")+' d="M0 0h'+w+"v"+w+'H0z"/>':"",m="<path "+a(u.color.dark,"stroke")+' d="'+t(E,c,u.margin)+'"/>',v='viewBox="0 0 '+w+" "+w+'"',T='<svg xmlns="http://www.w3.org/2000/svg" '+(u.width?'width="'+u.width+'" height="'+u.width+'" ':"")+v+' shape-rendering="crispEdges">'+l+m+`</svg>
|
|
8
8
|
`;return typeof n=="function"&&n(null,T),T}})),yt=P.s((o=>{var s=tt(),a=vt(),r=Et(),t=wt();function e(i,n,u,c,E){let w=[].slice.call(arguments,1),l=w.length,m=typeof w[l-1]=="function";if(!m&&!s())throw Error("Callback required as last argument");if(m){if(l<2)throw Error("Too few arguments provided");l===2?(E=u,u=n,n=c=void 0):l===3&&(n.getContext&&E===void 0?(E=c,c=void 0):(E=c,c=u,u=n,n=void 0))}else{if(l<1)throw Error("Too few arguments provided");return l===1?(u=n,n=c=void 0):l===2&&!n.getContext&&(c=u,u=n,n=void 0),new Promise(function(v,T){try{v(i(a.create(u,c),n,c))}catch(x){T(x)}})}try{let v=a.create(u,c);E(null,i(v,n,c))}catch(v){E(v)}}o.create=a.create,o.toCanvas=e.bind(null,r.render),o.toDataURL=e.bind(null,r.renderToDataURL),o.toString=e.bind(null,function(i,n,u){return t.render(i,u)})})),At=yt();W.default=At});
|
|
9
9
|
|
|
10
|
-
__useblocks__.define("static/core/
|
|
10
|
+
__useblocks__.define("static/core/8a452a94.js",["require","exports","module","static/core/2ff39ddf.js","static/core/feb1ffa4.js","static/core/49be45c4.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(m,Z,ve){const G=m("./2ff39ddf.js"),P=m("./feb1ffa4.js"),y=m("./49be45c4.js");let o=m("react"),F=G.__toESM(o,1);o=G.__toESM(o);let r=m("react/jsx-runtime"),c=m("__delivery__/libs"),N=m("vite/preload-helper");var S=({size:C=24,color:R="currentColor",...s})=>F.createElement("svg",{viewBox:"0 0 24 24",width:C,height:C,stroke:R,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},F.createElement("path",{d:"m14 10 7-7m0 0h-6m6 0v6m-11 5-7 7m0 0h6m-6 0v-6"}));S.displayName="Expand01";var O=P.sr(),t={"em-filemanager":"em-filemanager",emFilemanager:"em-filemanager",root:"root",controls:"controls",segmentedControl:"segmentedControl",sizeRow:"sizeRow",sizeRowLabel:"sizeRowLabel",sizeInputNumber:"sizeInputNumber",sizeSuffix:"sizeSuffix",colorGrid:"colorGrid",colorCell:"colorCell",colorCellLabel:"colorCellLabel",colorPickerFull:"colorPickerFull",bgExtras:"bgExtras",bgWarning:"bgWarning",previewSection:"previewSection",previewTitle:"previewTitle",previewWrap:"previewWrap",scanLine:"scanLine",scanLineBarcode:"scanLineBarcode",previewWrapBarcode:"previewWrapBarcode",previewCanvas:"previewCanvas",previewCanvasBarcode:"previewCanvasBarcode",actions:"actions"},z=80,D=600,ee=200,E=24,q=130,ae=60,re=280,te=72;function oe(){return typeof window>"u"?2:Math.min(3,Math.max(2,window.devicePixelRatio||2))}var le=({customRequest:C,state:R,setState:s})=>{let{t:l}=P.zn(),{options:ie}=P.B(),Q=ie?.config?.iconStrokeWidth??1.75,U=(0,o.useRef)(null),{mode:d,rawText:x,foregroundHex:p,backgroundHex:f,transparentBackground:g,qrSidePx:j,barcodeBarHeightPx:k}=R,ne=(0,o.useCallback)(e=>s(a=>({...a,mode:e})),[s]),se=(0,o.useCallback)(e=>s(a=>({...a,rawText:e})),[s]),ce=(0,o.useCallback)(e=>s(a=>({...a,foregroundHex:e})),[s]),de=(0,o.useCallback)(e=>s(a=>({...a,backgroundHex:e})),[s]),he=(0,o.useCallback)(e=>s(a=>({...a,transparentBackground:e})),[s]),ue=(0,o.useCallback)(e=>s(a=>({...a,qrSidePx:e})),[s]),me=(0,o.useCallback)(e=>s(a=>({...a,barcodeBarHeightPx:e})),[s]),[T,xe]=(0,o.useState)(x),[$,b]=(0,o.useState)(null),[L,V]=(0,o.useState)(!1),_=(0,o.useMemo)(()=>(0,O.debounce)(e=>xe(e),300),[]);(0,o.useEffect)(()=>(_(x),()=>{_.cancel()}),[x,_]);let M=g?"#00000000":f,Y=(0,o.useCallback)(async(e,a)=>{let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./f74fd241.js")).then(i=>y.l(i.default)),void 0,{}.url)).default,h=a.trim(),u=Math.min(re,Math.max(z,j));if(!h){e.width=u,e.height=u;let i=e.getContext("2d");i&&i.clearRect(0,0,e.width,e.height);return}e.width=u,e.height=u,await n.toCanvas(e,h,{width:u,margin:2,color:{dark:p,light:M}})},[p,M,j]),J=(0,o.useCallback)(async(e,a)=>{let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./501559e1.js")).then(v=>y.l(v.default)),void 0,{}.url)).default,h=a.trim(),u=g?"rgba(0,0,0,0)":f,i=Math.min(te,Math.max(E,k)),W=Math.max(1,Math.round(i/42)),H=Math.max(4,Math.round(i*.07)),I=Math.max(10,Math.round(i*.15));if(!h){e.width=Math.round(i*4),e.height=Math.round(i*1.65);let v=e.getContext("2d");v&&v.clearRect(0,0,e.width,e.height);return}e.width=Math.round(i*4.2),e.height=Math.round(i*1.65),n(e,h,{format:"CODE128",displayValue:!0,background:u,lineColor:p,margin:H,width:W,height:i,fontSize:I})},[p,f,g,k]);(0,o.useEffect)(()=>{let e=U.current;if(!e)return;let a=!1;return(async()=>{try{d==="qr"?await Y(e,T):await J(e,T),a||b(null)}catch(n){let h=n instanceof Error?n.message:String(n);if(!a){b(d==="barcode"?l("Barcode generation failed"):h);let u=e.getContext("2d");u&&u.clearRect(0,0,e.width,e.height)}}})(),()=>{a=!0}},[d,T,J,Y,l]);let K=(0,o.useCallback)(async()=>{_.flush();let e=x.trim();if(!e)throw Error(l("Enter text or URL to preview"));let a=oe();if(d==="qr"){let w=Math.round(Math.min(D,Math.max(z,j))*a),B=document.createElement("canvas");B.width=w,B.height=w,await(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./f74fd241.js")).then(A=>y.l(A.default)),void 0,{}.url)).default.toCanvas(B,e,{width:w,margin:2,color:{dark:p,light:M}});let X=await new Promise(A=>B.toBlob(A,"image/png"));if(!X)throw Error("PNG export failed");return X}let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./501559e1.js")).then(w=>y.l(w.default)),void 0,{}.url)).default,h=document.createElement("canvas"),u=g?"rgba(0,0,0,0)":f,i=Math.min(q,Math.max(E,k)),W=Math.max(6,Math.round(i*.1)),H=Math.max(2,Math.round(i/36)),I=Math.max(12,Math.round(i*.16));n(h,e,{format:"CODE128",displayValue:!0,background:u,lineColor:p,margin:Math.round(W*a),width:Math.round(H*a),height:Math.round(i*a),fontSize:Math.round(I*a)});let v=await new Promise(w=>h.toBlob(w,"image/png"));if(!v)throw Error("PNG export failed");return v},[d,x,p,M,f,g,j,k,_,l]),pe=(0,o.useCallback)(async()=>{if(!L&&x.trim()){V(!0);try{let e;try{e=await K()}catch(n){let h=n instanceof Error?n.message:String(n);b(h);return}let a=new File([e],`${d==="qr"?"qr-code":"barcode"}-${Date.now()}.png`,{type:"image/png",lastModified:Date.now()});await Promise.resolve(C({file:a}))}finally{V(!1)}}},[C,K,d,x,L]),ge=!!x.trim()&&!$;return(0,r.jsx)("div",{className:t.root,children:(0,r.jsxs)("div",{className:t.controls,children:[(0,r.jsx)(c.antd$Segmented,{block:!0,className:t.segmentedControl,value:d,onChange:e=>{ne(e),b(null)},options:[{label:l("QR code"),value:"qr"},{label:l("Barcode"),value:"barcode"}]}),$&&(0,r.jsx)(c.antd$Alert,{type:"error",title:l("Validation error"),description:$,showIcon:!0,closable:!0,onClose:()=>b(null)}),(0,r.jsx)(c.antd$Input.TextArea,{value:x,onChange:e=>{se(e.target.value),b(null)},placeholder:l("Text or URL"),rows:3,spellCheck:!1,autoComplete:"off"}),(0,r.jsxs)("div",{className:t.sizeRow,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.sizeRowLabel,children:l(d==="qr"?"QR image size px":"Barcode bar height px")}),d==="qr"?(0,r.jsx)(c.antd$InputNumber,{className:t.sizeInputNumber,min:z,max:D,step:8,value:j,onChange:e=>ue(typeof e=="number"&&!Number.isNaN(e)?e:ee),prefix:(0,r.jsx)(S,{size:18,strokeWidth:Q}),suffix:(0,r.jsx)("span",{className:t.sizeSuffix,children:"px"}),"aria-label":l("QR image size px")}):(0,r.jsx)(c.antd$InputNumber,{className:t.sizeInputNumber,min:E,max:q,step:4,value:k,onChange:e=>me(typeof e=="number"&&!Number.isNaN(e)?e:ae),prefix:(0,r.jsx)(S,{size:18,strokeWidth:Q}),suffix:(0,r.jsx)("span",{className:t.sizeSuffix,children:"px"}),"aria-label":l("Barcode bar height px")})]}),(0,r.jsxs)("div",{className:t.colorGrid,children:[(0,r.jsxs)("div",{className:t.colorCell,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.colorCellLabel,children:l("Code color","Code color")}),(0,r.jsx)(c.antd$ColorPicker,{className:t.colorPickerFull,value:p,format:"hex",disabledAlpha:!0,showText:!0,onChange:(e,a)=>{let n=typeof e=="string"?e:e?.toHexString?e.toHexString():a;ce(n)}})]}),(0,r.jsxs)("div",{className:t.colorCell,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.colorCellLabel,children:l("Background color","Background color")}),(0,r.jsx)(c.antd$ColorPicker,{className:t.colorPickerFull,value:f,format:"hex",disabledAlpha:!0,showText:!0,disabled:g,onChange:(e,a)=>{let n=typeof e=="string"?e:e?.toHexString?e.toHexString():a;de(n)}})]}),(0,r.jsxs)("div",{className:t.bgExtras,children:[(0,r.jsx)(c.antd$Checkbox,{checked:g,onChange:e=>he(e.target.checked),children:l("Transparent background","Transparent background")}),g&&(0,r.jsx)(c.antd$Alert,{type:"warning",showIcon:!0,title:l("QR transparent background hint"),className:t.bgWarning})]})]}),(0,r.jsxs)("div",{className:t.previewSection,children:[(0,r.jsx)(c.antd$Typography.Text,{className:t.previewTitle,children:l("Preview","Preview")}),(0,r.jsxs)("div",{className:[t.previewWrap,d==="barcode"&&t.previewWrapBarcode].filter(Boolean).join(" "),children:[(0,r.jsx)("div",{className:[t.scanLine,d==="barcode"&&t.scanLineBarcode].filter(Boolean).join(" ")}),(0,r.jsx)("canvas",{ref:U,className:[t.previewCanvas,d==="barcode"&&t.previewCanvasBarcode].filter(Boolean).join(" "),"aria-label":l("Preview")})]})]}),(0,r.jsx)("div",{className:t.actions,children:(0,r.jsx)(c.antd$Button,{type:"primary",onClick:()=>{pe()},loading:L,disabled:!ge,children:l("Add to My files")})})]})})};Z.default=le});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/9b50835f.js",["require","exports","module","static/core/2ff39ddf.js","static/core/15891cd6.js","static/core/42ef449b.js"],function(f,M,it){const D=f("./2ff39ddf.js"),s=f("./15891cd6.js"),h=f("./42ef449b.js");var F=1.25,O=80,$=3,k=1,p=16,L="p, div, td, th";function d(t){if(!t)return;const e=parseFloat(t);if(Number.isFinite(e))return t.trim().endsWith("pt")?e*4/3:e}function A(t){return t.style}function l(t){const e=A(t);if(!e)return!1;if(e.display==="none"||e.visibility==="hidden"||e.opacity==="0")return!0;const r=d(e.fontSize);return r!==void 0&&r<=k&&N(t)<=k?!0:d(e.maxHeight)===0}function u(t){for(let e=t;e;e=e.parentElement){const r=d(A(e)?.fontSize);if(r!==void 0)return r}return p}function w(t,e){for(const r of Array.from(t.childNodes)){if(s.isTextNode(r)){const n=r.data.trim().length;if(n){const i=u(r.parentElement);e.set(i,(e.get(i)??0)+n)}continue}!s.isElement(r)||l(r)||w(r,e)}}function b(t){const e=new Map;w(t,e);let r=p,n=0;for(const[i,o]of e)o>n&&(r=i,n=o);return r}function N(t){let e=u(t);for(const r of Array.from(t.querySelectorAll("*")))r.textContent?.trim()&&(e=Math.max(e,u(r)));return e}function j(t,e){return t.querySelector("a")?.textContent?.trim()===e}function q(t){return Array.from(t.querySelectorAll(L)).some(e=>e.textContent?.trim())}function G(t){const e=b(t),r=[];for(const o of Array.from(t.querySelectorAll(L))){if(l(o)||q(o))continue;const a=o.textContent?.trim()??"";if(!a||a.length>O||j(o,a))continue;const c=N(o);c>=e*F&&r.push({elem:o,size:c})}const n=[...new Set(r.map(o=>o.size))].sort((o,a)=>a-o),i=new Map;for(const{elem:o,size:a}of r)i.set(o,Math.min(n.indexOf(a)+1,$));return{headingLevels:i}}var R=D.__exportAll({markdownAnchor:()=>Y,markdownBlock:()=>X,markdownImage:()=>Q,markdownInline:()=>J,markdownOrderedList:()=>Z,markdownStrong:()=>K,markdownUnorderedList:()=>U}),E=h.formatList,_=20;function W(t){return!t||t.includes("%")?NaN:parseFloat(t)}function m(t,e){const r=t.style,n=e==="width"?"maxWidth":"maxHeight";for(const i of[t.getAttribute(e),r?.[e],r?.[n]]){const o=W(i);if(Number.isFinite(o))return o}return NaN}function S(t){return(t.getAttribute("alt")??"").trim()?!1:m(t,"width")<=_||m(t,"height")<=_}function B(t){return t.replace(/ /g,"%20").replace(/\(/g,"%28").replace(/\)/g,"%29")}function x(t){const e=t.getAttribute("href");return!e||e.startsWith("#")?"":e}function g(t){for(const e of Array.from(t.childNodes)){if(s.isTextNode(e)){if(/\S/.test(e.data))return!0;continue}if(!s.isElement(e))continue;const r=e.tagName.toLowerCase();if(r==="img"){if(e.getAttribute("src")&&!S(e))return!0;continue}if(r==="hr"||r==="a"&&x(e)&&v(e)||g(e))return!0}return!1}function v(t){const e=(t.getAttribute("title")??"").trim();if(e)return e;const r=t.querySelector("img");return r?(r.getAttribute("title")??"").trim():""}function y(t,e,r){r.addLiteral("["),e(),r.addLiteral(`](${B(t)})`)}function I(t,e){return t.parentElement?.tagName.toLowerCase()!=="li"?e:{...e,leadingLineBreaks:1,trailingLineBreaks:1}}var U=(t,e,r,n)=>{E(t,e,r,I(t,n),()=>"- ")},Z=(t,e,r,n)=>{let i=Number(t.getAttribute("start")??"1")||1;E(t,e,r,I(t,n),()=>`${i++}. `)},V={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6};function z(t,e){return V[t.tagName.toLowerCase()]??e.metadata?.headingLevels.get(t)}var X=(t,e,r,n)=>{if(l(t)||!g(t))return;const i=z(t,r);r.openBlock({leadingLineBreaks:i?2:n.leadingLineBreaks}),i&&r.addLiteral(`${"#".repeat(i)} `),e(Array.from(t.childNodes),r),r.closeBlock({trailingLineBreaks:i?2:n.trailingLineBreaks})};function P(t,e){for(let r=t.parentElement;r;r=r.parentElement)if(z(r,e))return!0;return!1}function C(t){return s.isTextNode(t)?!/\S/.test(t.data):s.isElement(t)&&t.tagName.toLowerCase()==="br"}var K=(t,e,r)=>{const n=Array.from(t.childNodes);if(P(t,r)){e(n,r);return}let i=0,o=n.length;for(;i<o&&C(n[i]);)i++;for(;o>i&&C(n[o-1]);)o--;const a=n.slice(i,o),c=a.map(nt=>nt.textContent??"").join("");if(!a.length||c!==c.trim()){e(n,r);return}e(n.slice(0,i),r),r.addLiteral("**"),e(a,r),r.addLiteral("**"),e(n.slice(o),r)},J=(t,e,r)=>{l(t)||e(Array.from(t.childNodes),r)};function T(t){return t.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function H(t,e){const r=m(t,e);return Number.isFinite(r)?` ${e}="${Math.round(r)}"`:""}var Q=(t,e,r)=>{const n=t.getAttribute("src");if(!n||S(t))return;const i=t.getAttribute("alt")??"",o=H(t,"width"),a=H(t,"height");if(o||a){r.addLiteral(`<img src="${T(n)}" alt="${T(i)}"${o}${a}>`);return}r.addLiteral("})`)},Y=(t,e,r)=>{const n=x(t);if(!n){e(Array.from(t.childNodes),r);return}if(g(t)){y(n,()=>e(Array.from(t.childNodes),r),r);return}const i=v(t);i&&y(n,()=>r.addInline(i),r)},tt={"\\":"\\\\","`":"\\`","*":"\\*",_:"\\_","[":"\\[","]":"\\]","#":"\\#",">":"\\>"},et={wordwrap:!1,encodeCharacters:tt,baseElements:{selectors:["body"]},formatters:R,selectors:[{selector:"*",format:"markdownInline"},{selector:"p",format:"markdownBlock",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"div",format:"markdownBlock",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"td",format:"markdownBlock",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"markdownBlock",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"th",format:"markdownBlock",options:{leadingLineBreaks:1,trailingLineBreaks:1}},...["h1","h2","h3","h4","h5","h6"].map(t=>({selector:t,format:"markdownBlock"})),{selector:"a",format:"markdownAnchor"},{selector:"img",format:"markdownImage"},{selector:"ul",format:"markdownUnorderedList"},{selector:"ol",format:"markdownOrderedList"},{selector:"hr",format:"blockString",options:{string:"---",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"b",format:"markdownStrong"},{selector:"strong",format:"markdownStrong"},{selector:"i",format:"inlineSurround",options:{prefix:"*",suffix:"*"}},{selector:"em",format:"inlineSurround",options:{prefix:"*",suffix:"*"}}]};function rt(t){return h.convert(t,et,G(t))}M.htmlToMarkdown=rt});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/a77f31cb.js",["require","exports","module","static/core/2ff39ddf.js","static/core/15891cd6.js"],function(i,d,P){const h=i("./2ff39ddf.js"),p=i("./15891cd6.js");var u={items_per_page:"/ pagina",jump_to:"vai a",jump_to_confirm:"Conferma",page:"Pagina",prev_page:"Pagina precedente",next_page:"Pagina successiva",prev_5:"Precedente 5 pagine",next_5:"Prossime 5 pagine",prev_3:"Precedente 3 pagine",next_3:"Prossime 3 pagine",page_size:"dimensioni della pagina"};function o(a){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(a)}function l(a,e){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(S){return Object.getOwnPropertyDescriptor(a,S).enumerable})),r.push.apply(r,n)}return r}function c(a){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(n){g(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}function g(a,e,r){return e=f(e),e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}function f(a){var e=v(a,"string");return o(e)=="symbol"?e:String(e)}function v(a,e){if(o(a)!="object"||!a)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var n=r.call(a,e||"default");if(o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}var b=c(c({},p.commonLocale),{},{locale:"it_IT",today:"Oggi",now:"Adesso",backToToday:"Torna ad oggi",ok:"OK",clear:"Cancella",week:"Settimana",month:"Mese",year:"Anno",timeSelect:"Seleziona l'ora",dateSelect:"Seleziona la data",monthSelect:"Seleziona il mese",yearSelect:"Seleziona l'anno",decadeSelect:"Seleziona il decennio",previousMonth:"Il mese scorso (PageUp)",nextMonth:"Il prossimo mese (PageDown)",previousYear:"L'anno scorso (Control + sinistra)",nextYear:"L'anno prossimo (Control + destra)",previousDecade:"Ultimo decennio",nextDecade:"Prossimo decennio",previousCentury:"Secolo precedente",nextCentury:"Prossimo secolo",shortWeekDays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"]}),s={placeholder:"Selezionare l'orario",rangePlaceholder:["Inizio orario","Fine orario"]},m={lang:{placeholder:"Selezionare la data",rangePlaceholder:["Data d'inizio","Data di fine"],...b},timePickerLocale:{...s}},y=m,t=" ${label} non è un ${type} valido",$={locale:"it",Pagination:u,DatePicker:m,TimePicker:s,Calendar:y,global:{placeholder:"Selezionare",close:"Chiudi",show:"Mostra",hide:"Nascondi"},Table:{filterTitle:"Menù Filtro",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"Senza filtri",filterCheckAll:"Seleziona tutti",filterSearchPlaceholder:"Cerca nei filtri",emptyText:"Senza dati",selectAll:"Seleziona pagina corrente",selectInvert:"Inverti selezione nella pagina corrente",selectNone:"Deseleziona tutto",selectionAll:"Seleziona tutto",sortTitle:"Ordina",expand:"Espandi riga",collapse:"Comprimi riga ",triggerDesc:"Clicca per ordinare in modo discendente",triggerAsc:"Clicca per ordinare in modo ascendente",cancelSort:"Clicca per eliminare l'ordinamento"},Tour:{Next:"Successivo",Previous:"Precedente",Finish:"Termina"},Modal:{okText:"OK",cancelText:"Annulla",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Annulla"},Transfer:{titles:["",""],searchPlaceholder:"Cerca qui",itemUnit:"elemento",itemsUnit:"elementi",remove:"Elimina",selectCurrent:"Seleziona la pagina corrente",removeCurrent:"Rimuovi la pagina corrente",selectAll:"Seleziona tutti i dati",removeAll:"Rimuovi tutti i dati",selectInvert:"Inverti la pagina corrente"},Upload:{uploading:"Caricamento...",removeFile:"Rimuovi il file",uploadError:"Errore di caricamento",previewFile:"Anteprima file",downloadFile:"Scarica file"},Empty:{description:"Nessun dato"},Icon:{icon:"icona"},Text:{edit:"modifica",copy:"copia",copied:"copia effettuata",expand:"espandi"},Form:{optional:"(opzionale)",defaultValidateMessages:{default:"Errore di convalida del campo ${label}",required:"Si prega di inserire ${label}",enum:"${label} deve essere uno di [${enum}]",whitespace:"${label} non può essere un carattere vuoto",date:{format:"Il formato della data ${label} non è valido",parse:"${label} non può essere convertito in una data",invalid:"${label} non è una data valida"},types:{string:t,method:t,array:t,object:t,number:t,date:t,boolean:t,integer:t,float:t,regexp:t,email:t,url:t,hex:t},string:{len:"${label} deve avere ${len} caratteri",min:"${label} deve contenere almeno ${min} caratteri",max:"${label} deve contenere fino a ${max} caratteri",range:"${label} deve contenere tra ${min}-${max} caratteri"},number:{len:"${label} deve essere uguale a ${len}",min:"${label} valore minimo è ${min}",max:"${label} valor e massimo è ${max}",range:"${label} deve essere compreso tra ${min}-${max}"},array:{len:"Deve essere ${len} ${label}",min:"Almeno ${min} ${label}",max:"Massimo ${max} ${label}",range:"Il totale di ${label} deve essere compreso tra ${min}-${max}"},pattern:{mismatch:"${label} non corrisponde al modello ${pattern}"}}},QRCode:{expired:"Codice QR scaduto",refresh:"Ricarica",scanned:"Scansionato"},ColorPicker:{presetEmpty:"Vuoto",transparent:"Trasparente",singleColor:"Tinta unita",gradientColor:"Gradiente"}};d.default=$});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
__useblocks__.define("static/core/a71c4cd8.js",["require","exports","module","static/core/2ff39ddf.js"],function(e,t,s){const o=e("./2ff39ddf.js");var a=[{name:"META",selector:"head > meta[charset]",required:!0,requiredParent:"HEAD",attrs:[{name:"charset",value:["utf-8"],required:!0}],unique:!0},{name:"SCRIPT",selector:"head > script[src]",required:!0,requiredParent:"HEAD",attrs:[{name:"src",value:["https://cdn.ampproject.org/v0.js"],required:!0}],attrLists:["nonce-attr","amphtml-engine-attrs"],unique:!0},{name:"STYLE",selector:"head > style[amp-custom-length-check]",requiredParent:"HEAD",attrs:[{name:"amp-custom-length-check",value:[""],required:!0},{name:"type",value:["text/css"]}],attrLists:["nonce-attr"],unique:!0},{name:"STYLE",selector:"head > style[amp-custom]",requiredParent:"HEAD",attrs:[{name:"amp-custom",value:[""],required:!0},{name:"type",value:["text/css"]}],unique:!0},{name:"STYLE",selector:"head > style[amp-custom]",requiredParent:"HEAD",attrs:[{name:"amp-custom",value:[""],required:!0},{name:"type",value:["text/css"]}],unique:!0},{name:"STYLE",selector:"head > style[amp4email-boilerplate]",requiredParent:"HEAD",attrs:[{name:"amp4email-boilerplate",value:[""],required:!0}],unique:!0},{name:"SCRIPT",selector:"amp-state > script[type]",requiresExtension:["amp-bind"],requiredParent:"AMP-STATE",attrs:[{name:"type",value:["application/json"],required:!0}],attrLists:["nonce-attr"]},{name:"HEAD",selector:"html > head",required:!0,requiredParent:"HTML",attrs:[],unique:!0},{name:"BODY",selector:"html > body",required:!0,requiredParent:"HTML",attrs:[],unique:!0},{name:"SECTION",selector:"amp-accordion > section",requiredParent:"AMP-ACCORDION",attrs:[{name:"expanded",value:[""]},{name:"[data-expand]"}]},{name:"DIV",selector:"div[submit-success][template]",attrs:[{name:"align"},{name:"submit-success",required:!0},{name:"template",required:!0}]},{name:"DIV",selector:"div[submit-error][template]",attrs:[{name:"align"},{name:"submit-error",required:!0},{name:"template",required:!0}]},{name:"SCRIPT",selector:"script[type][template]",requiresExtension:["amp-mustache"],attrs:[{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"type",value:["text/plain"],required:!0},{name:"template",value:["amp-mustache"],required:!0}],attrLists:["nonce-attr"]},{name:"FORM",selector:"form[action-xhr]",requiresExtension:["amp-form"],attrs:[{name:"accept"},{name:"accept-charset"},{name:"action-xhr",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"autocomplete"},{name:"custom-validation-reporting",value:["as-you-go","interact-and-submit","show-all-on-submit","show-first-on-submit"]},{name:"enctype"},{name:"method",value:["post"],required:!0},{name:"novalidate"},{name:"xssi-prefix"}]},{name:"DIV",selector:"div[submitting]",attrs:[{name:"align"},{name:"submitting",required:!0}]},{name:"DIV",selector:"div[submit-success]",attrs:[{name:"align"},{name:"submit-success",required:!0}]},{name:"DIV",selector:"div[submit-error]",attrs:[{name:"align"},{name:"submit-error",required:!0}]},{name:"SCRIPT",selector:"script[type]",attrs:[{name:"type",value:["application/ld+json"],required:!0}],attrLists:["nonce-attr"]},{name:"DIV",selector:"div[fetch-error]",attrs:[{name:"align"},{name:"fetch-error",required:!0}]},{name:"NAV",selector:"nav[toolbar]",requiredParent:"AMP-SIDEBAR",attrs:[{name:"toolbar",required:!0},{name:"toolbar-target",required:!0}]},{name:"HTML",selector:"html",required:!0,requiredParent:"$ROOT",attrs:[{name:"⚡4email",value:[""],required:!0},{name:"data-css-strict",value:[""],required:!0}],unique:!0},{name:"TITLE",selector:"title",deprecation:"Title tags in email have no meaning. This tag may become invalid in the future.",attrs:[{name:"[text]"}]},{name:"META",selector:"meta",attrs:[{name:"content"},{name:"itemprop"},{name:"name",disallowedValueRegex:"(^|\\s)(amp-.*|amp4ads-.*|apple-itunes-app|content-disposition|revisit-after|viewport)(\\s|$)"},{name:"media"},{name:"property"},{name:"scheme"}]},{name:"ARTICLE",selector:"article",attrs:[]},{name:"SECTION",selector:"section",attrs:[]},{name:"NAV",selector:"nav",attrs:[]},{name:"ASIDE",selector:"aside",attrs:[]},{name:"H1",selector:"h1",attrs:[{name:"align"}]},{name:"H2",selector:"h2",attrs:[{name:"align"}]},{name:"H3",selector:"h3",attrs:[{name:"align"}]},{name:"H4",selector:"h4",attrs:[{name:"align"}]},{name:"H5",selector:"h5",attrs:[{name:"align"}]},{name:"H6",selector:"h6",attrs:[{name:"align"}]},{name:"HEADER",selector:"header",attrs:[]},{name:"FOOTER",selector:"footer",attrs:[]},{name:"ADDRESS",selector:"address",attrs:[]},{name:"P",selector:"p",attrs:[{name:"align"}]},{name:"HR",selector:"hr",attrs:[]},{name:"PRE",selector:"pre",attrs:[]},{name:"BLOCKQUOTE",selector:"blockquote",attrs:[{name:"align"}],attrLists:["cite-attr"]},{name:"OL",selector:"ol",attrs:[{name:"reversed",value:[""]},{name:"start",valueRegex:"[0-9]*"},{name:"type",valueRegex:"[1AaIi]"}]},{name:"UL",selector:"ul",attrs:[]},{name:"LI",selector:"li",attrs:[{name:"value",valueRegex:"[0-9]*"}]},{name:"DL",selector:"dl",attrs:[]},{name:"DT",selector:"dt",attrs:[]},{name:"DD",selector:"dd",attrs:[]},{name:"FIGURE",selector:"figure",attrs:[]},{name:"FIGCAPTION",selector:"figcaption",attrs:[]},{name:"DIV",selector:"div",attrs:[{name:"align"}]},{name:"MAIN",selector:"main",attrs:[]},{name:"A",selector:"a",attrs:[{name:"border"},{name:"href",valueUrl:{protocol:["http","https","mailto","tel"],allowRelative:!1},disallowedValueRegex:"__amp_source_origin|(.|\\s){{|}}(.|\\s)|^{{.*[^}][^}]$|^[^{][^{].*}}$|^}}|{{$|{{#|{{/|{{\\^"},{name:"hreflang"},{name:"media"},{name:"role"},{name:"tabindex"},{name:"target",value:["_blank"]},{name:"type",value:["text/html"]}]},{name:"EM",selector:"em",attrs:[]},{name:"STRONG",selector:"strong",attrs:[]},{name:"SMALL",selector:"small",attrs:[]},{name:"S",selector:"s",attrs:[]},{name:"CITE",selector:"cite",attrs:[]},{name:"Q",selector:"q",attrs:[],attrLists:["cite-attr"]},{name:"DFN",selector:"dfn",attrs:[]},{name:"ABBR",selector:"abbr",attrs:[]},{name:"DATA",selector:"data",attrs:[]},{name:"TIME",selector:"time",attrs:[{name:"datetime"},{name:"pubdate",value:[""]}]},{name:"CODE",selector:"code",attrs:[]},{name:"VAR",selector:"var",attrs:[]},{name:"SAMP",selector:"samp",attrs:[]},{name:"KBD",selector:"kbd",attrs:[]},{name:"SUB",selector:"sub",attrs:[]},{name:"SUP",selector:"sup",attrs:[]},{name:"I",selector:"i",attrs:[]},{name:"B",selector:"b",attrs:[]},{name:"U",selector:"u",attrs:[]},{name:"MARK",selector:"mark",attrs:[]},{name:"RUBY",selector:"ruby",attrs:[]},{name:"RB",selector:"rb",attrs:[]},{name:"RT",selector:"rt",attrs:[]},{name:"RP",selector:"rp",attrs:[]},{name:"BDO",selector:"bdo",attrs:[{name:"dir"}]},{name:"SPAN",selector:"span",attrs:[]},{name:"BR",selector:"br",attrs:[]},{name:"WBR",selector:"wbr",attrs:[]},{name:"INS",selector:"ins",attrs:[{name:"datetime"}],attrLists:["cite-attr"]},{name:"DEL",selector:"del",attrs:[{name:"datetime"}],attrLists:["cite-attr"]},{name:"TABLE",selector:"table",attrs:[{name:"align"},{name:"bgcolor"},{name:"border",value:["0","1"]},{name:"cellpadding"},{name:"cellspacing"},{name:"width"}]},{name:"CAPTION",selector:"caption",attrs:[]},{name:"COLGROUP",selector:"colgroup",attrs:[{name:"span"}]},{name:"COL",selector:"col",attrs:[{name:"span"}]},{name:"TBODY",selector:"tbody",attrs:[]},{name:"THEAD",selector:"thead",attrs:[]},{name:"TFOOT",selector:"tfoot",attrs:[]},{name:"TR",selector:"tr",attrs:[{name:"align"},{name:"bgcolor"},{name:"height"},{name:"valign"}]},{name:"TD",selector:"td",attrs:[{name:"align"},{name:"bgcolor"},{name:"colspan"},{name:"headers"},{name:"height"},{name:"rowspan"},{name:"valign"},{name:"width"}]},{name:"TH",selector:"th",attrs:[{name:"abbr"},{name:"align"},{name:"bgcolor"},{name:"colspan"},{name:"headers"},{name:"height"},{name:"rowspan"},{name:"scope"},{name:"valign"},{name:"width"}]},{name:"FORM",selector:"form",requiresExtension:["amp-form"],attrs:[{name:"accept"},{name:"accept-charset"},{name:"action-xhr",valueUrl:{protocol:["https"],allowRelative:!1},disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"autocomplete"},{name:"custom-validation-reporting",value:["as-you-go","interact-and-submit","show-all-on-submit","show-first-on-submit"]},{name:"enctype"},{name:"method",value:["get"]},{name:"novalidate"},{name:"xssi-prefix"}]},{name:"LABEL",selector:"label",attrs:[{name:"for"}]},{name:"INPUT",selector:"input",attrs:[{name:"type",disallowedValueRegex:"(^|\\s)(file|image|password|)(\\s|$)"}],attrLists:["input-common-attr","name-attr"]},{name:"BUTTON",selector:"button",attrs:[{name:"disabled",value:[""]},{name:"role"},{name:"tabindex"},{name:"type"},{name:"value"},{name:"[disabled]"},{name:"[value]"}],attrLists:["name-attr"]},{name:"SELECT",selector:"select",attrs:[{name:"disabled"},{name:"multiple"},{name:"required"},{name:"size"},{name:"[disabled]"},{name:"[multiple]"},{name:"[required]"},{name:"[size]"}],attrLists:["name-attr"]},{name:"DATALIST",selector:"datalist",attrs:[]},{name:"OPTGROUP",selector:"optgroup",requiredParent:"SELECT",attrs:[{name:"disabled"},{name:"label"},{name:"[disabled]"},{name:"[label]"}]},{name:"OPTION",selector:"option",attrs:[{name:"disabled"},{name:"label"},{name:"selected"},{name:"value"},{name:"[disabled]"},{name:"[label]"},{name:"[selected]"},{name:"[value]"}]},{name:"TEXTAREA",selector:"textarea",attrs:[{name:"autocomplete"},{name:"autoexpand"},{name:"cols"},{name:"disabled"},{name:"maxlength"},{name:"minlength"},{name:"pattern"},{name:"placeholder"},{name:"readonly"},{name:"required"},{name:"rows"},{name:"spellcheck"},{name:"wrap"},{name:"[autocomplete]"},{name:"[cols]"},{name:"[defaulttext]"},{name:"[disabled]"},{name:"[maxlength]"},{name:"[minlength]"},{name:"[pattern]"},{name:"[placeholder]"},{name:"[readonly]"},{name:"[required]"},{name:"[rows]"},{name:"[spellcheck]"},{name:"[wrap]"}],attrLists:["name-attr"]},{name:"OUTPUT",selector:"output",attrs:[{name:"for"},{name:"form"}],attrLists:["name-attr"]},{name:"PROGRESS",selector:"progress",attrs:[{name:"max"},{name:"value"}]},{name:"METER",selector:"meter",attrs:[{name:"high"},{name:"low"},{name:"max"},{name:"min"},{name:"optimum"},{name:"value"}]},{name:"FIELDSET",selector:"fieldset",attrs:[{name:"disabled"},{name:"[disabled]"}],attrLists:["name-attr"]},{name:"LEGEND",selector:"legend",attrs:[]},{name:"DETAILS",selector:"details",attrs:[{name:"open",value:[""]},{name:"[open]"}]},{name:"SUMMARY",selector:"summary",requiredParent:"DETAILS",attrs:[]},{name:"AMP-IMG",selector:"amp-img",attrs:[{name:"alt"},{name:"attribution"},{name:"placeholder"},{name:"[alt]"},{name:"[attribution]"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["extended-amp-global","mandatory-src-amp4email","$AMP_LAYOUT_ATTRS"]},{name:"AMP-LAYOUT",selector:"amp-layout",attrs:[{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay","container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-accordion']",attrs:[{name:"custom-element",value:["amp-accordion"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-accordion-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-ACCORDION",selector:"amp-accordion",requiresExtension:["amp-accordion"],attrs:[{name:"animate",value:[""]},{name:"expand-single-section",value:[""]},{name:"layout",value:["container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-anim']",attrs:[{name:"custom-element",value:["amp-anim"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-anim-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-ANIM",selector:"amp-anim",requiresExtension:["amp-anim"],attrs:[{name:"alt"},{name:"attribution"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","nodisplay"],required:!0}],attrLists:["extended-amp-global","mandatory-src-amp4email","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-autocomplete']",attrs:[{name:"custom-element",value:["amp-autocomplete"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-autocomplete-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-AUTOCOMPLETE",selector:"amp-autocomplete",requiresExtension:["amp-autocomplete"],attrs:[{name:"highlight-user-entry"},{name:"inline"},{name:"items"},{name:"max-items"},{name:"min-characters"},{name:"prefetch"},{name:"query"},{name:"submit-on-enter"},{name:"suggest-first"},{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"template"},{name:"layout",value:["container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-bind']",attrs:[{name:"custom-element",value:["amp-bind"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-bind-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-STATE",selector:"amp-state",requiresExtension:["amp-bind"],attrs:[],attrLists:["mandatory-id-attr"]},{name:"AMP-BIND-MACRO",selector:"amp-bind-macro",requiresExtension:["amp-bind"],attrs:[{name:"arguments"},{name:"expression",required:!0}],attrLists:["mandatory-id-attr"]},{name:"SCRIPT",selector:"script[custom-element='amp-carousel']",attrs:[{name:"custom-element",value:["amp-carousel"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-carousel-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-CAROUSEL",selector:"amp-carousel",requiresExtension:["amp-carousel"],attrs:[{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["amp-carousel-common","extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-fit-text']",attrs:[{name:"custom-element",value:["amp-fit-text"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-fit-text-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-FIT-TEXT",selector:"amp-fit-text",requiresExtension:["amp-fit-text"],attrs:[{name:"max-font-size"},{name:"min-font-size"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-form']",attrs:[{name:"custom-element",value:["amp-form"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-form-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"SCRIPT",selector:"script[custom-element='amp-image-lightbox']",deprecation:"amp-image-lightbox cannot be properly positioned in emails and will soon be invalid in AMP4EMAIL.",attrs:[{name:"custom-element",value:["amp-image-lightbox"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-image-lightbox-0.1.js","https://cdn.ampproject.org/v0/amp-image-lightbox-latest.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-IMAGE-LIGHTBOX",selector:"amp-image-lightbox",requiresExtension:["amp-image-lightbox"],attrs:[{name:"controls"},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-lightbox']",deprecation:"amp-lightbox cannot be properly positioned in emails and will soon be invalid in AMP4EMAIL.",attrs:[{name:"custom-element",value:["amp-lightbox"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-lightbox-0.1.js","https://cdn.ampproject.org/v0/amp-lightbox-latest.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-LIGHTBOX",selector:"amp-lightbox",requiresExtension:["amp-lightbox"],attrs:[{name:"animate-in",value:["fade-in","fly-in-bottom","fly-in-top"]},{name:"controls"},{name:"from"},{name:"[open]"},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-list']",attrs:[{name:"custom-element",value:["amp-list"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-list-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-LIST",selector:"amp-list",requiresExtension:["amp-list"],attrs:[{name:"binding",value:["always","no","refresh","refresh-evaluate"]},{name:"diffable",value:[""]},{name:"items"},{name:"max-items"},{name:"single-item"},{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"template"},{name:"xssi-prefix"},{name:"[is-layout-container]"},{name:"layout",value:["responsive","container","fill","fixed","fixed_height","flex_item","nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-template='amp-mustache']",attrs:[{name:"custom-template",value:["amp-mustache"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-mustache-0.1.js","https://cdn.ampproject.org/v0/amp-mustache-0.2.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"TEMPLATE",selector:"template",requiresExtension:["amp-mustache"],attrs:[{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"type",value:["amp-mustache"],required:!0}]},{name:"SCRIPT",selector:"script[custom-element='amp-selector']",attrs:[{name:"custom-element",value:["amp-selector"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-selector-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-SELECTOR",selector:"amp-selector",requiresExtension:["amp-selector"],attrs:[{name:"disabled",value:[""]},{name:"form"},{name:"keyboard-select-mode",value:["focus","none","select"]},{name:"multiple",value:[""]},{name:"[disabled]"},{name:"[selected]"},{name:"layout",value:["responsive","fill","fixed","fixed_height","nodisplay","container"],required:!0}],attrLists:["extended-amp-global","name-attr","$AMP_LAYOUT_ATTRS"]},{name:"$REFERENCE_POINT",selector:"amp-selector option",attrs:[{name:"disabled",value:[""]},{name:"option",required:!0},{name:"selected",value:[""]}]},{name:"$REFERENCE_POINT",selector:"amp-selector child",attrs:[]},{name:"SCRIPT",selector:"script[custom-element='amp-sidebar']",attrs:[{name:"custom-element",value:["amp-sidebar"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-SIDEBAR",selector:"amp-sidebar",requiresExtension:["amp-sidebar"],attrs:[{name:"side",value:["left","right"]},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-timeago']",attrs:[{name:"custom-element",value:["amp-timeago"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-timeago-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-TIMEAGO",selector:"amp-timeago",requiresExtension:["amp-timeago"],attrs:[{name:"cutoff",valueRegex:"\\d+"},{name:"datetime",valueRegex:"\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d(:[0-5]\\d(\\.\\d+)?)?(Z|[+-][0-1][0-9]:[0-5][0-9])",required:!0},{name:"locale"},{name:"[datetime]"},{name:"[title]"},{name:"layout",value:["responsive","fixed","fixed_height"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]}],n=[{name:"cite-attr",attrs:[{name:"cite",valueUrl:{protocol:["http","https"],allowEmpty:!0},disallowedValueRegex:"__amp_source_origin"}]},{name:"input-common-attr",attrs:[{name:"accept"},{name:"accesskey"},{name:"autocomplete"},{name:"checked"},{name:"disabled"},{name:"height"},{name:"max"},{name:"maxlength"},{name:"min"},{name:"minlength"},{name:"multiple"},{name:"pattern"},{name:"placeholder"},{name:"readonly"},{name:"required"},{name:"size"},{name:"spellcheck"},{name:"step"},{name:"tabindex"},{name:"value"},{name:"width"},{name:"[autocomplete]"},{name:"[checked]"},{name:"[disabled]"},{name:"[height]"},{name:"[max]"},{name:"[maxlength]"},{name:"[min]"},{name:"[minlength]"},{name:"[multiple]"},{name:"[pattern]"},{name:"[placeholder]"},{name:"[readonly]"},{name:"[required]"},{name:"[size]"},{name:"[spellcheck]"},{name:"[step]"},{name:"[value]"},{name:"[width]"}]},{name:"amphtml-engine-attrs",attrs:[{name:"async",value:[""],required:!0},{name:"crossorigin",value:["anonymous"]},{name:"type",value:["text/javascript"]}]},{name:"mandatory-src-amp4email",attrs:[{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|(.|\\s){{|}}(.|\\s)|^{{.*[^}][^}]$|^[^{][^{].*}}$|^}}|{{$|{{#|{{/|{{\\^"}]},{name:"extended-amp-global",attrs:[{name:"i-amphtml-layout",value:["container","fill","fixed","fixed-height","flex-item","fluid","intrinsic","nodisplay","responsive"]},{name:"media"},{name:"noloading",value:[""]}]},{name:"$AMP_LAYOUT_ATTRS",attrs:[{name:"disable-inline-width"},{name:"height"},{name:"heights"},{name:"layout"},{name:"sizes"},{name:"width"},{name:"[height]"},{name:"[width]"}]},{name:"nonce-attr",attrs:[]},{name:"common-extension-attrs",attrs:[{name:"async",value:[""],required:!0},{name:"crossorigin",value:["anonymous"]},{name:"type",value:["text/javascript"]}]},{name:"mandatory-id-attr",attrs:[{name:"id",required:!0,disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"}]},{name:"name-attr",attrs:[{name:"name",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"}]},{name:"$GLOBAL_ATTRS",attrs:[{name:"itemid"},{name:"itemprop"},{name:"itemref"},{name:"itemscope"},{name:"itemtype"},{name:"about"},{name:"content"},{name:"datatype"},{name:"inlist"},{name:"prefix"},{name:"property"},{name:"rel",disallowedValueRegex:"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)"},{name:"resource"},{name:"rev"},{name:"style"},{name:"typeof"},{name:"vocab"},{name:"accesskey"},{name:"class"},{name:"dir"},{name:"draggable"},{name:"hidden",value:[""]},{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"lang"},{name:"slot"},{name:"tabindex"},{name:"title"},{name:"translate"},{name:"aria-activedescendant"},{name:"aria-atomic"},{name:"aria-autocomplete"},{name:"aria-busy"},{name:"aria-checked"},{name:"aria-controls"},{name:"aria-current"},{name:"aria-describedby"},{name:"aria-disabled"},{name:"aria-dropeffect"},{name:"aria-expanded"},{name:"aria-flowto"},{name:"aria-grabbed"},{name:"aria-haspopup"},{name:"aria-hidden"},{name:"aria-invalid"},{name:"aria-label"},{name:"aria-labelledby"},{name:"aria-level"},{name:"aria-live"},{name:"aria-modal"},{name:"aria-multiline"},{name:"aria-multiselectable"},{name:"aria-orientation"},{name:"aria-owns"},{name:"aria-posinset"},{name:"aria-pressed"},{name:"aria-readonly"},{name:"aria-relevant"},{name:"aria-required"},{name:"aria-selected"},{name:"aria-setsize"},{name:"aria-sort"},{name:"aria-valuemax"},{name:"aria-valuemin"},{name:"aria-valuenow"},{name:"aria-valuetext"},{name:"on"},{name:"role"},{name:"placeholder",value:[""]},{name:"fallback",value:[""]},{name:"overflow"},{name:"amp-access"},{name:"amp-access-behavior"},{name:"amp-access-hide"},{name:"amp-access-id"},{name:"amp-access-loader"},{name:"amp-access-loading"},{name:"amp-access-off"},{name:"amp-access-on"},{name:"amp-access-show"},{name:"amp-access-style"},{name:"amp-access-template"},{name:"i-amp-access-id"},{name:"validation-for"},{name:"visible-when-invalid",value:["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"]},{name:"amp-fx",valueRegex:"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*"},{name:"subscriptions-action"},{name:"subscriptions-actions",value:[""]},{name:"subscriptions-decorate"},{name:"subscriptions-dialog",value:[""]},{name:"subscriptions-display"},{name:"subscriptions-lang"},{name:"subscriptions-section",value:["actions","content","content-not-granted","loading"]},{name:"subscriptions-service"},{name:"subscriptions-google-rtc"},{name:"next-page-hide"},{name:"next-page-replace"},{name:"[aria-activedescendant]"},{name:"[aria-atomic]"},{name:"[aria-autocomplete]"},{name:"[aria-busy]"},{name:"[aria-checked]"},{name:"[aria-controls]"},{name:"[aria-describedby]"},{name:"[aria-disabled]"},{name:"[aria-dropeffect]"},{name:"[aria-expanded]"},{name:"[aria-flowto]"},{name:"[aria-grabbed]"},{name:"[aria-haspopup]"},{name:"[aria-hidden]"},{name:"[aria-invalid]"},{name:"[aria-label]"},{name:"[aria-labelledby]"},{name:"[aria-level]"},{name:"[aria-live]"},{name:"[aria-multiline]"},{name:"[aria-multiselectable]"},{name:"[aria-orientation]"},{name:"[aria-owns]"},{name:"[aria-posinset]"},{name:"[aria-pressed]"},{name:"[aria-readonly]"},{name:"[aria-relevant]"},{name:"[aria-required]"},{name:"[aria-selected]"},{name:"[aria-setsize]"},{name:"[aria-sort]"},{name:"[aria-valuemax]"},{name:"[aria-valuemin]"},{name:"[aria-valuenow]"},{name:"[aria-valuetext]"},{name:"[class]"},{name:"[hidden]"},{name:"[text]"},{name:"i-amphtml-binding",value:[""]},{name:"autoscroll"}]},{name:"amp-carousel-common",attrs:[{name:"autoplay",valueRegex:"(|[0-9]+)"},{name:"controls"},{name:"delay",valueRegex:"[0-9]+"},{name:"loop",value:[""]},{name:"slide",valueRegex:"[0-9]+"},{name:"type",value:["carousel","slides"]},{name:"[slide]"}]}],r=[{name:"amp-accordion",versions:["0.1"]},{name:"amp-anim",versions:["0.1"]},{name:"amp-autocomplete",versions:["0.1"]},{name:"amp-bind",versions:["0.1"]},{name:"amp-carousel",versions:["0.1"]},{name:"amp-fit-text",versions:["0.1"]},{name:"amp-form",versions:["0.1"]},{name:"amp-image-lightbox",versions:["0.1","latest"]},{name:"amp-lightbox",versions:["0.1","latest"]},{name:"amp-list",versions:["0.1"]},{name:"amp-mustache",versions:["0.1","0.2"]},{name:"amp-selector",versions:["0.1"]},{name:"amp-sidebar",versions:["0.1"]},{name:"amp-timeago",versions:["0.1"]}],m=[{name:"-moz-appearance"},{name:"-webkit-appearance"},{name:"-webkit-tap-highlight-color"},{name:"align-content"},{name:"align-items"},{name:"align-self"},{name:"appearance"},{name:"aspect-ratio"},{name:"azimuth"},{name:"background"},{name:"background-attachment"},{name:"background-blend-mode"},{name:"background-clip"},{name:"background-color"},{name:"background-image"},{name:"background-origin"},{name:"background-position"},{name:"background-repeat"},{name:"background-size"},{name:"border"},{name:"border-bottom"},{name:"border-bottom-color"},{name:"border-bottom-left-radius"},{name:"border-bottom-right-radius"},{name:"border-bottom-style"},{name:"border-bottom-width"},{name:"border-collapse"},{name:"border-color"},{name:"border-left"},{name:"border-left-color"},{name:"border-left-style"},{name:"border-left-width"},{name:"border-radius"},{name:"border-right"},{name:"border-right-color"},{name:"border-right-style"},{name:"border-right-width"},{name:"border-spacing"},{name:"border-style"},{name:"border-top"},{name:"border-top-color"},{name:"border-top-left-radius"},{name:"border-top-right-radius"},{name:"border-top-style"},{name:"border-top-width"},{name:"border-width"},{name:"bottom"},{name:"box-shadow"},{name:"box-sizing"},{name:"break-after"},{name:"break-before"},{name:"break-inside"},{name:"caption-side"},{name:"caret-color"},{name:"clear"},{name:"color"},{name:"color-adjust"},{name:"column-count"},{name:"column-fill"},{name:"column-gap"},{name:"column-rule"},{name:"column-rule-color"},{name:"column-rule-style"},{name:"column-rule-width"},{name:"column-span"},{name:"column-width"},{name:"columns"},{name:"counter-increment"},{name:"counter-reset"},{name:"cursor",value:["initial","pointer"]},{name:"direction"},{name:"display"},{name:"elevation"},{name:"empty-cells"},{name:"filter",valueRegex:"^ *((blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(([^() ]*|(rgb|rgba|hsl|hsla)\\([^()]*\\))( +([^() ]*|(rgb|rgba|hsl|hsla)\\([^()]*\\)))*\\) *)*$"},{name:"flex"},{name:"flex-basis"},{name:"flex-direction"},{name:"flex-flow"},{name:"flex-grow"},{name:"flex-shrink"},{name:"flex-wrap"},{name:"float"},{name:"font"},{name:"font-family"},{name:"font-feature-settings"},{name:"font-kerning"},{name:"font-size"},{name:"font-size-adjust"},{name:"font-stretch"},{name:"font-style"},{name:"font-synthesis"},{name:"font-variant"},{name:"font-variant-alternates"},{name:"font-variant-caps"},{name:"font-variant-east-asian"},{name:"font-variant-ligatures"},{name:"font-variant-numeric"},{name:"font-variation-settings"},{name:"font-weight"},{name:"gap"},{name:"grid"},{name:"grid-area"},{name:"grid-auto-columns"},{name:"grid-auto-flow"},{name:"grid-auto-rows"},{name:"grid-column"},{name:"grid-column-end"},{name:"grid-column-start"},{name:"grid-row"},{name:"grid-row-end"},{name:"grid-row-start"},{name:"grid-template"},{name:"grid-template-areas"},{name:"grid-template-columns"},{name:"grid-template-rows"},{name:"height"},{name:"hyphens"},{name:"image-orientation"},{name:"image-resolution"},{name:"inline-size"},{name:"isolation"},{name:"justify-content"},{name:"justify-items"},{name:"justify-self"},{name:"left"},{name:"letter-spacing"},{name:"line-break"},{name:"line-height"},{name:"list-style"},{name:"list-style-position"},{name:"list-style-type"},{name:"margin"},{name:"margin-bottom"},{name:"margin-left"},{name:"margin-right"},{name:"margin-top"},{name:"max-height"},{name:"max-width"},{name:"min-height"},{name:"min-width"},{name:"mix-blend-mode"},{name:"object-fit"},{name:"object-position"},{name:"offset-distance"},{name:"opacity"},{name:"order"},{name:"outline"},{name:"outline-color"},{name:"outline-offset"},{name:"outline-style"},{name:"outline-width"},{name:"overflow"},{name:"overflow-wrap"},{name:"overflow-x"},{name:"overflow-y"},{name:"padding"},{name:"padding-bottom"},{name:"padding-left"},{name:"padding-right"},{name:"padding-top"},{name:"pause"},{name:"pause-after"},{name:"pause-before"},{name:"perspective"},{name:"perspective-origin"},{name:"pitch"},{name:"pitch-range"},{name:"place-items"},{name:"position"},{name:"quotes"},{name:"resize"},{name:"richness"},{name:"right"},{name:"row-gap"},{name:"speak"},{name:"speak-header"},{name:"speak-numeral"},{name:"speak-punctuation"},{name:"speech-rate"},{name:"stress"},{name:"table-layout"},{name:"text-align"},{name:"text-align-last"},{name:"text-combine-upright"},{name:"text-decoration"},{name:"text-decoration-color"},{name:"text-decoration-line"},{name:"text-decoration-skip"},{name:"text-decoration-style"},{name:"text-emphasis"},{name:"text-emphasis-color"},{name:"text-emphasis-position"},{name:"text-emphasis-style"},{name:"text-indent"},{name:"text-justify"},{name:"text-orientation"},{name:"text-overflow"},{name:"text-shadow"},{name:"text-transform"},{name:"text-underline-position"},{name:"top"},{name:"transform"},{name:"transform-box"},{name:"transform-origin"},{name:"transform-style"},{name:"transition",valueRegex:"^ *((initial|unset)|(((none|offset-distance|opacity|transform|visibility)( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms)( *(linear|(ease|ease-in|ease-out|ease-in-out|cubic-bezier\\( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(, *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?){3} *\\))|(step-start|step-end|steps\\( *(|-|\\+)[0-9]+(, *(jump-start|jump-end|jump-none|jump-both|start|end))? *\\)))( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms))?)?)?)(, *((none|offset-distance|opacity|transform|visibility)( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms)( *(linear|(ease|ease-in|ease-out|ease-in-out|cubic-bezier\\( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(, *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?){3} *\\))|(step-start|step-end|steps\\( *(|-|\\+)[0-9]+(, *(jump-start|jump-end|jump-none|jump-both|start|end))? *\\)))( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms))?)?)?))*)) *$"},{name:"transition-delay"},{name:"transition-duration"},{name:"transition-property",valueRegex:"^ *(initial|unset|(none|offset-distance|opacity|transform|visibility)(, *(none|offset-distance|opacity|transform|visibility))*) *$"},{name:"transition-timing-function"},{name:"unicode-bidi"},{name:"vertical-align"},{name:"visibility",value:["hidden","initial","visible"]},{name:"voice-family"},{name:"white-space"},{name:"width"},{name:"word-break"},{name:"word-spacing"},{name:"word-wrap"},{name:"writing-mode"},{name:"z-index",valueRegex:"([-+]?0)|([-+]?100)|([-+]?[1-9][0-9]?)"}],i={tags:a,attrLists:n,extensions:r,declarations:m};t.default=i});
|
|
2
2
|
|
|
3
|
-
__useblocks__.define("static/core/
|
|
3
|
+
__useblocks__.define("static/core/aa65675c.js",["require","exports","module","static/core/2ff39ddf.js","static/core/15891cd6.js","static/core/4d698359.js","vite/preload-helper"],function(R,C,Ae){const ge=R("./2ff39ddf.js"),d=R("./15891cd6.js"),E=R("./4d698359.js");let G=R("vite/preload-helper");function D(e){let t=e.documentElement;return t||(t=e.createElement("html"),e.appendChild(t)),t}function P(e){let t=e.head;if(!t){t=e.createElement("head");const i=D(e);i.insertBefore(t,i.firstChild)}return t}function I(e){const t=Object.create(null),i=e.getAttributeNames();for(const r of i)t[r]=e.getAttribute(r);return t}function Y(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}function J(e){const t=P(e);if(!e.querySelector("style[amp4email-boilerplate]")){const i=e.createElement("style");i.setAttribute("amp4email-boilerplate",""),i.innerHTML="body{visibility:hidden}",t.prepend(i)}}function K(e){const t=e.querySelector("style[amp4email-boilerplate]");t&&t.remove()}var q="amp-custom";function Q(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}function H(e,t,i){for(const r of t)if(d.css.isStyleRule(r)){const l=r.selectorText.split(/\+>~/).flatMap(s=>s.trim().split(" "));if(l.length===1&&l[0].trim().startsWith(".em-")){for(const s of r.style)if(r.style.getPropertyPriority(s)==="important"){for(const o of e.querySelectorAll(r.selectorText))if(d.isHtmlElement(o)){const u=o.style;for(const c of[...u])if(c.startsWith(s)){const g=i(c,u.getPropertyValue(c)),x=o.getAttribute("class");o.setAttribute("class",x?`${g} ${x}`:g),u.removeProperty(c)}}}}}else d.css.isMediaRule(r)&&H(e,r.cssRules,i)}function U(e,t){const i=t.sheet;if(i){const s=new Set;H(e,i.cssRules,(o,u)=>{const c=Q(o,u),g=[...i.cssRules],x=`.${c} { ${o}: ${u} }`;return!g.find(v=>d.css.isStyleRule(v)&&v.selectorText===`.${c}`)&&!s.has(x)&&(s.add(x),t.innerHTML=`
|
|
4
4
|
.${c} { ${o}: ${u} };
|
|
5
5
|
${t.innerHTML}`),c}),s.size&&(t.innerHTML=`
|
|
6
6
|
${[...s].join(`
|
|
7
7
|
`)};
|
|
8
8
|
${t.innerHTML}`)}const r=t.innerHTML,l=r.replace(/!important/g,"");r!==l&&(t.innerHTML=l)}function X(e){const t=P(e),i=e.querySelectorAll('link[rel="stylesheet"]'),r=[...e.querySelectorAll("style")].filter(s=>!s.hasAttribute("amp4email-boilerplate"));if(r.length===1){const s=r[0];if(s.parentElement===t&&s.getAttribute(q)===""){U(e,s);return}}const l=[];for(const s of r)l.push(s.innerHTML),s.remove();if(l.length){const s=e.createElement("style");s.innerHTML=`
|
|
9
9
|
${l.join("")}
|
|
10
|
-
`,s.setAttribute(q,""),t.append(s),U(e,s)}for(const s of i)s.remove()}function Z(e){const t=e.querySelector(`style[${q}]`);t&&t.removeAttribute(q)}var ee='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',j="<!doctype html>";function te(e){const t=e.doctype;if(t){if(d.getDocType(t)===j)return;const i=new DOMParser().parseFromString(j,"text/html").doctype;e.replaceChild(i,t)}else{const i=new DOMParser().parseFromString(j,"text/html").doctype;e.insertBefore(i,e.firstChild)}}function se(e){const t=e.doctype;if(t&&d.getDocType(t).toLowerCase()===j){const i=new DOMParser().parseFromString(ee,"text/html").doctype;e.replaceChild(i,t)}}async function B(e,t={}){const i=document.createElement("amp-img"),r=await d.getComputedStyleAsync(e)||void 0,l=[];try{let s=e;for(;s&&d.isHtmlElement(s);)getComputedStyle(s)?.display==="none"&&(s.style.display="initial",l.push([s,s.style.display])),s=s.parentElement;const o=r?.height?`${parseInt(r.height)}`:"",u=r?.width?`${parseInt(r.width)}`:"",c=Y(e);let g=!1;if(c){const v=c.getAttribute("width");try{let $=u?`${u}px`:"";v||(c.setAttribute("width","720px"),$=getComputedStyle(e).width||""),c.setAttribute("width",!v||parseInt(v)>320?"320px":"720px"),$!==(getComputedStyle(e).width||"")&&(g=!0)}finally{v&&c.setAttribute("width",v||"")}}const
|
|
11
|
-
`))}}}function fe(e,t){const i=e.querySelectorAll("*"),r=e.querySelectorAll(t.replaceSelectors("script[src]"));for(const l of r)l.getAttribute("src")?.startsWith("https://cdn.ampproject.org/v0")&&l.remove();for(const l of i)E.isAmpElement(l)&&l.tagName!=="FORM"&&l.remove()}var W=void 0;async function M(){return W||(W=await(0,G.__vitePreload)(()=>Promise.resolve().then(()=>R("./a71c4cd8.js")).then(e=>e.default),void 0,{}.url))}var _=new Map;async function ue(){if(!_.size){const e=await M(),t=e.tags;for(let i=0;i<t.length;i++){const r=t[i],{selector:l,attrs:s,attrLists:o}=r,u=o?.flatMap(c=>e.attrLists.filter(({name:g})=>g===c).flatMap(g=>g.attrs))||[];_.set(l,{...r,priority:i,attrs:new Map([...s,...u].map(c=>[c.name,c]))})}}return _}var N=new Map;async function me(){if(!N.size){const e=await M();for(const t of e.declarations)N.set(t.name,t)}return N}var pe="$GLOBAL_ATTRS",O=new Map;async function de(){if(!O.size){const e=(await M()).attrLists.find(t=>t.name===pe)?.attrs;if(e)for(const t of e)O.set(t.name,t)}return O}function F(e,t,i){if(!t)return;function r(){const s=t.compareDocumentPosition(e);if(!(s&8)){if(s&2)return t.insertBefore(e,t.firstChild),!0;if(s&4)return t.appendChild(e),!0}return!1}function l(){const s=[...e.childNodes];for(let o=s.length-1;o>=0;o--)F(s[o],t,i)}if(d.isElement(e))switch(e.tagName.toLowerCase()){case"body":return;case i("script"):case"style":case"meta":case"title":return;case"head":case"html":l();break;default:r()||l()}else d.isDocument(e)?l():d.isTextNode(e)&&(e.textContent?.trim()||e.nextSibling?.textContent?.trim()&&d.isTextNode(e.nextSibling))&&r()}async function k(e,t){const i=new Set,r=t.commit,l=a=>t.replaceSelectors(a.toLowerCase());if(t.replaceImages&&await ie(e,r),t.injectExtensions){const a=t.replaceSelectors(E.AMP_BASE_SELECTOR);if(!e.querySelector(a)){const p=t.createElementFn("script");p.setAttribute("src",E.AMP_BASE_SCRIPT),p.setAttribute("async",""),P(e).appendChild(p),r?.()}}t.injectRequiredTags&&(oe(e,t.createElementFn,l),te(e),J(e),le(e),r?.()),t.replaceStylesAndLinks&&(X(e),r?.());const s=await M(),o=await ue(),u=new Set(t.removeUnsupportedTags?e.querySelectorAll("*"):[]),c=new Map;for(let[a,p]of o)if(!p.deprecation){a=l(a);let y=[...e.querySelectorAll(a)].filter(A=>!c.has(A));p.unique&&y.length&&(y=[y[0]]),t.injectRequiredTags&&p.required&&!y.length&&(y=[...y,t.createElementFn(p.name)]);for(const A of y){if(t.injectRequiredAttributes&&A.getAttribute("on")&&!A.getAttribute("tabindex")&&A.setAttribute("tabindex","0"),t.removeUnsupportedStyles){let b=!1;for(const
|
|
10
|
+
`,s.setAttribute(q,""),t.append(s),U(e,s)}for(const s of i)s.remove()}function Z(e){const t=e.querySelector(`style[${q}]`);t&&t.removeAttribute(q)}var ee='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',j="<!doctype html>";function te(e){const t=e.doctype;if(t){if(d.getDocType(t)===j)return;const i=new DOMParser().parseFromString(j,"text/html").doctype;e.replaceChild(i,t)}else{const i=new DOMParser().parseFromString(j,"text/html").doctype;e.insertBefore(i,e.firstChild)}}function se(e){const t=e.doctype;if(t&&d.getDocType(t).toLowerCase()===j){const i=new DOMParser().parseFromString(ee,"text/html").doctype;e.replaceChild(i,t)}}async function B(e,t={}){const i=document.createElement("amp-img"),r=await d.getComputedStyleAsync(e)||void 0,l=[];try{let s=e;for(;s&&d.isHtmlElement(s);)getComputedStyle(s)?.display==="none"&&(s.style.display="initial",l.push([s,s.style.display])),s=s.parentElement;const o=r?.height?`${parseInt(r.height)}`:"",u=r?.width?`${parseInt(r.width)}`:"",c=Y(e);let g=!1;if(c){const v=c.getAttribute("width");try{let $=u?`${u}px`:"";v||(c.setAttribute("width","720px"),$=getComputedStyle(e).width||""),c.setAttribute("width",!v||parseInt(v)>320?"320px":"720px"),$!==(getComputedStyle(e).width||"")&&(g=!0)}finally{v&&c.setAttribute("width",v||"")}}const x=e.src||e.srcset.split(",")[0];e.style.width==="100%"&&e.style.removeProperty("width"),e.style.maxWidth==="100%"&&e.style.removeProperty("max-width"),t={...I(e),alt:e.alt,width:u,height:o,src:x,layout:g?"responsive":"fixed",...t};for(const v of Object.keys(t))d.setAttributeSafe(i,v,t[v])}finally{for(const[s,o]of l)s.style.display=o}return i}function re(e){const t=document.createElement("img"),{layout:i,height:r,...l}=I(e),s=i==="responsive";for(const o of Object.keys(l))d.setAttributeSafe(t,o,l[o]);return s&&(t.style.maxWidth=l.width||"0px",t.style.width="100%"),t}async function ie(e,t){const i=[...e.querySelectorAll("img")],r=[];for(const s of i)r.push(B(s).then(o=>[s,o],()=>[s,void 0]));const l=[...e.querySelectorAll("picture")];for(const s of l){const o=s.querySelector("img");o?r.push(B(o).then(u=>[s,u],()=>[s,void 0])):r.push([s,void 0])}if(r.length){const s=await Promise.all(r);for(const[o,u]of s)u?o.replaceWith(u):o.remove();t?.()}}function ne(e,t){const i=[...e.querySelectorAll("amp-img")];for(const r of i)r.replaceWith(re(r));i.length&&t?.()}function le(e){const t=e.querySelectorAll("meta");for(const l of t){const s=l.getAttribute("charset");if(s){s!=="utf-8"&&l.setAttribute("charset","utf-8");return}}const i=P(e),r=e.createElement("meta");r.setAttribute("charset","utf-8"),i.insertBefore(r,i.firstChild)}function oe(e,t,i){const r=i('script:not([type="application/ld+json"])'),l=e.querySelectorAll(r);for(const s of l)!s.getAttribute("src")?.startsWith("https://cdn.ampproject.org/")&&!(s.closest("amp-state")&&s.getAttribute("type")==="application/json")&&s.remove()}function ce(e,t){return`${E.AMP_SCRIPTS_PATH}/${e.toLowerCase()}-${t}.js`}async function ae(e,t,i){for(const{name:r,versions:l}of t){const s=i.replaceSelectors(r==="amp-mustache"?`script[async][custom-template='${r}']`:`script[async][custom-element='${r}']`);if(!e.querySelector(s)){const o=P(e),u=i.createElementFn("script"),c=ce(r,l.findLast(g=>g!=="latest")||"v0");u.setAttribute("async",""),u.setAttribute(r==="amp-mustache"?"custom-template":"custom-element",r),u.setAttribute("src",c),o.appendChild(u),o.appendChild(e.createTextNode(`
|
|
11
|
+
`))}}}function fe(e,t){const i=e.querySelectorAll("*"),r=e.querySelectorAll(t.replaceSelectors("script[src]"));for(const l of r)l.getAttribute("src")?.startsWith("https://cdn.ampproject.org/v0")&&l.remove();for(const l of i)E.isAmpElement(l)&&l.tagName!=="FORM"&&l.remove()}var W=void 0;async function M(){return W||(W=await(0,G.__vitePreload)(()=>Promise.resolve().then(()=>R("./a71c4cd8.js")).then(e=>e.default),void 0,{}.url))}var _=new Map;async function ue(){if(!_.size){const e=await M(),t=e.tags;for(let i=0;i<t.length;i++){const r=t[i],{selector:l,attrs:s,attrLists:o}=r,u=o?.flatMap(c=>e.attrLists.filter(({name:g})=>g===c).flatMap(g=>g.attrs))||[];_.set(l,{...r,priority:i,attrs:new Map([...s,...u].map(c=>[c.name,c]))})}}return _}var N=new Map;async function me(){if(!N.size){const e=await M();for(const t of e.declarations)N.set(t.name,t)}return N}var pe="$GLOBAL_ATTRS",O=new Map;async function de(){if(!O.size){const e=(await M()).attrLists.find(t=>t.name===pe)?.attrs;if(e)for(const t of e)O.set(t.name,t)}return O}function F(e,t,i){if(!t)return;function r(){const s=t.compareDocumentPosition(e);if(!(s&8)){if(s&2)return t.insertBefore(e,t.firstChild),!0;if(s&4)return t.appendChild(e),!0}return!1}function l(){const s=[...e.childNodes];for(let o=s.length-1;o>=0;o--)F(s[o],t,i)}if(d.isElement(e))switch(e.tagName.toLowerCase()){case"body":return;case i("script"):case"style":case"meta":case"title":return;case"head":case"html":l();break;default:r()||l()}else d.isDocument(e)?l():d.isTextNode(e)&&(e.textContent?.trim()||e.nextSibling?.textContent?.trim()&&d.isTextNode(e.nextSibling))&&r()}async function k(e,t){const i=new Set,r=t.commit,l=a=>t.replaceSelectors(a.toLowerCase());if(t.replaceImages&&await ie(e,r),t.injectExtensions){const a=t.replaceSelectors(E.AMP_BASE_SELECTOR);if(!e.querySelector(a)){const p=t.createElementFn("script");p.setAttribute("src",E.AMP_BASE_SCRIPT),p.setAttribute("async",""),P(e).appendChild(p),r?.()}}t.injectRequiredTags&&(oe(e,t.createElementFn,l),te(e),J(e),le(e),r?.()),t.replaceStylesAndLinks&&(X(e),r?.());const s=await M(),o=await ue(),u=new Set(t.removeUnsupportedTags?e.querySelectorAll("*"):[]),c=new Map;for(let[a,p]of o)if(!p.deprecation){a=l(a);let y=[...e.querySelectorAll(a)].filter(A=>!c.has(A));p.unique&&y.length&&(y=[y[0]]),t.injectRequiredTags&&p.required&&!y.length&&(y=[...y,t.createElementFn(p.name)]);for(const A of y){if(t.injectRequiredAttributes&&A.getAttribute("on")&&!A.getAttribute("tabindex")&&A.setAttribute("tabindex","0"),t.removeUnsupportedStyles){let b=!1;for(const w of[...A.classList])w.startsWith("i-amphtml")&&(b=!0,A.classList.remove(w));b&&!A.classList.length&&A.removeAttribute("class")}const S=c.get(A);S&&S.priority>p.priority||c.set(A,p)}}r?.();for(const[a,p]of c){if(t.injectExtensions&&p.requiresExtension)for(const S of p.requiresExtension)i.add(S);const y=p.requiredParent?p.requiredParent==="$ROOT"?e:e.querySelector(p.requiredParent):null;y&&(!a.parentNode||t.moveInvalidTagPosition)?y!==a.parentNode&&(p.name==="HEAD"||d.isElement(y)&&y.tagName==="HEAD"?y.insertBefore(a,y.firstChild):y.appendChild(a)):a.parentNode||e.body.appendChild(a),t.removeUnsupportedTags&&u.delete(a),r?.();const A=await de();if(t.removeUnsupportedAttributes||t.injectRequiredAttributes){const S=p.attrs,b=t.injectRequiredAttributes?new Set([...S].map(([n,m])=>m).filter(n=>n.required&&n.value)):void 0,w=a.getAttributeNames();for(const n of w){const m=S.get(n)||A.get(n);if(m){if(n==="id"||n==="class"||n==="style"){b?.delete(m);continue}if(t.removeUnsupportedAttributes){const f=a.getAttribute(n);if(m.value&&m.value.indexOf(f)<0){a.removeAttribute(n);continue}if(m.valueRegex&&!new RegExp(m.valueRegex).test(f)){a.removeAttribute(n);continue}if(m.disallowedValueRegex&&new RegExp(m.disallowedValueRegex).test(f)){a.removeAttribute(n);continue}const h=m.valueUrl;if(h){if(f===""){if(!h.allowEmpty){a.removeAttribute(n);continue}}else if(!(f.indexOf("<!--")>0&&f.indexOf("-->")>0)){if(!h.allowRelative)if(f.startsWith("#")||f.startsWith("/")){a.removeAttribute(n);continue}else{const T=h.protocol.length?h.protocol:["https"],V=f.substring(0,f.indexOf(":"));if(V){if(T.indexOf(V)<0){const L=T[0]+f.substring(f.indexOf(":"));if(URL.canParse(L))d.setAttributeSafe(a,n,L);else{a.removeAttribute(n);continue}}else if(!URL.canParse(f)){a.removeAttribute(n);continue}}else{const L=T[0]+f;if(URL.canParse(L))d.setAttributeSafe(a,n,L);else{a.removeAttribute(n);continue}}}}}}b?.delete(m)}else{if(n==="id"||n==="class"||n==="style")continue;t.removeUnsupportedAttributes&&a.removeAttribute(n)}}if(b)for(const n of b)d.setAttributeSafe(a,n.name,n.value[0])}r?.()}t.moveInvalidTagPosition&&(F(e,e.body,l),r?.());for(const a of u)a.remove();if(r?.(),t.removeUnsupportedStyles){let y=function(n){const m=n.cssText.replaceAll(/\".*\"/g,"").replaceAll(/\'.*\'/g,"").replaceAll(/\/\*.*\*\/|(-moz-|-ms-|-o-|-webkit-)+\w+(?=:)/g,"").match(/[a-z-]+(?=:[^before|after|hover])/gi)||[];for(const f of m){if(!f)continue;const h=n.getPropertyValue(f);n.getPropertyPriority(f)==="important"&&n.setProperty(f,h);const T=p.get(f);T?T.value?T.value.indexOf(h)<0&&n.removeProperty(f):T.valueRegex&&(new RegExp(T.valueRegex).test(h)||n.removeProperty(f)):n.removeProperty(f)}r?.()},A=function(n){return n.constructor.name==="CSSStyleRule"},S=function(n){return n.constructor.name==="CSSMediaRule"},b=function(n){const m=n.cssRules;for(let f=m.length-1;f>=0;f--){const h=m[f];A(h)?h.selectorText.indexOf("[")>=0||h.selectorText.indexOf(":")>=0?n.deleteRule(f):(y(h.style),h.style.cssText||n.deleteRule(f)):S(h)?(b(h),h.cssRules.length||n.deleteRule(f)):n.deleteRule(f)}};var g=y,x=A,v=S,$=b;const a=e.querySelectorAll("*"),p=await me();for(const n of a)if(d.isHtmlElement(n)){const m=n.getAttribute("style");m&&(y(n.style),n.style.length?n.style.cssText!==m&&n.setAttribute("style",n.style.cssText):n.removeAttribute("style"))}const w=e.querySelector("style[amp-custom]");if(w){const n=w.sheet;n&&(b(n),w.innerHTML=[...n.cssRules].map(m=>m.cssText).join(`
|
|
12
12
|
`)),r?.()}}await ae(e,s.extensions.filter(({name:a})=>i.has(a)),t)}function z(e,t){return Object.keys(t).reduce((i,r)=>i.replaceAll(r,t[r]),e)}function ye(e,t={}){const{correct:i=!0,injectExtensions:r=!0,mappedTags:l={}}=t;return k(e,{replaceImages:i,replaceStylesAndLinks:i,injectRequiredTags:i,injectExtensions:r,formsAsAmpForms:r,injectRequiredAttributes:i,moveInvalidTagPosition:i,removeUnsupportedTags:i,removeUnsupportedAttributes:i,removeUnsupportedStyles:i,createElementFn:s=>e.createElement(l[s.toLowerCase()]||s),replaceSelectors:s=>z(s.toLowerCase(),l),commit:t.commit})}function he(e,t={}){const{correct:i=!0,removeExtensions:r=!0,mappedTags:l={}}=t,s=t.commit,o=c=>e.createElement(l[c.toLowerCase()]||c),u=c=>z(c,l);if(i){ne(e),se(e),Z(e),K(e);const c=D(e);c.removeAttribute("⚡4email"),c.removeAttribute("data-css-strict"),s?.()}r&&(fe(e,{formsAsAmpForms:t.removeExtensions,createElementFn:o,replaceSelectors:u}),s?.())}C.amp2html=he,C.applyAMPRules=k,C.html2amp=ye,C.isAmpElement=E.isAmpElement,C.isAmpScript=E.isAmpScript});
|