@etsoo/editor
Version:
ETSOO Free WYSIWYG HTML Editor
1 lines • 167 kB
JavaScript
(()=>{"use strict";var t,e,n,i,o={540(t,e,n){n.d(e,{A:()=>l});var i=n(601),o=n.n(i),s=n(314),r=n.n(s)()(o());r.push([t.id,':host {\n --color: RGB(0, 0, 0);\n --color-active-bg: RGBA(48, 58, 178, 0.2);\n --color-hover-bg: RGBA(48, 58, 178, 0.05);\n --color-active: RGB(48, 58, 178);\n --width: auto;\n --height: 60vh;\n --radius: 4px;\n user-select: none;\n}\n\n.container {\n border: 1.5px outset;\n border-radius: var(--radius);\n}\n\n.toolbar {\n padding: 0.5em;\n border-bottom: 1px #dfdfdf solid;\n display: flex;\n flex-wrap: wrap;\n}\n.toolbar svg.color-indicator {\n transform: translate(3px, -16px);\n}\n.toolbar div.separator,\neo-popup .icons div.separator {\n border-left: 1px solid #ccc;\n height: 21px;\n margin: 4px 6px;\n display: inline-block;\n}\n.toolbar button,\neo-popup .icons button {\n background-color: transparent;\n border: none;\n cursor: pointer;\n border-radius: calc(var(--radius) * 0.75);\n margin: 0px 1px;\n padding: 3px;\n width: 30px;\n height: 30px;\n text-align: left;\n}\n.toolbar button.autosize,\neo-popup .icons button.autosize {\n width: auto;\n height: auto;\n padding: 3px 6px;\n}\n.toolbar button.more {\n width: 42px;\n}\n.toolbar button.text {\n width: 98px !important;\n}\neo-popup.top-popup {\n z-index: 991;\n}\neo-popup .icons {\n display: flex;\n}\neo-popup .icons button.line {\n width: 180px !important;\n height: 56px !important;\n display: flex;\n align-items: center;\n border-radius: 0px;\n padding: 3px 9px;\n}\neo-popup .icons button.line:nth-child(2n + 1) {\n background-color: #f6f6f6;\n}\neo-popup .content {\n font-size: 12px;\n padding: 0px 1em;\n}\neo-popup .content1 {\n font-size: 12px;\n padding: 1em;\n}\neo-popup .grid {\n padding: 1em;\n font-size: 12px;\n display: grid;\n grid-template-columns: 78px 1fr 78px 1fr;\n align-items: center;\n column-gap: 9px;\n row-gap: 9px;\n}\neo-popup .grid input[type="text"],\neo-popup .grid input[type="number"] {\n width: 72px;\n}\neo-popup .grid .grid-title {\n grid-column: 1 / -1;\n font-weight: bold;\n}\neo-popup .grid .self {\n align-self: start;\n padding-top: 4px;\n}\neo-popup .grid .span3 {\n grid-column: 2 / span 3;\n}\neo-popup .grid .full-width {\n grid-column: 1 / -1;\n}\neo-popup .flex2 {\n display: flex;\n align-items: center;\n gap: 6px;\n}\neo-popup .flex2 *:first-child {\n flex-grow: 1;\n}\neo-popup button.full-width {\n width: 100%;\n}\neo-popup .icon-button {\n display: inline-flex;\n align-items: center;\n padding: 3px 9px;\n}\neo-popup .icon-button svg {\n margin-right: 4px;\n}\neo-popup .tab-page {\n padding: 12px;\n width: min(75vw, 640px);\n font-size: 14px;\n}\neo-popup .tab-page .tabs {\n display: flex;\n flex-wrap: no-wrap;\n padding-bottom: 6px;\n}\neo-popup .tab-page .tabs .tab {\n padding-right: 6px;\n}\neo-popup .tab-page .latest {\n margin-bottom: 6px;\n}\neo-popup .tab-page .tab-content {\n height: calc(var(--height) - 120px);\n overflow: auto;\n}\n\neo-popup .tab-page .tab-content .items div,\neo-popup .tab-page .latest div {\n box-sizing: border-box;\n width: 28px;\n height: 28px;\n text-align: center;\n line-height: 28px;\n vertical-align: middle;\n border: 1px outset #ccc;\n display: inline-block;\n cursor: pointer;\n}\neo-popup .tab-page .items div:hover,\neo-popup .tab-page .latest div:hover {\n color: var(--color-active);\n background-color: var(--color-active-bg);\n}\neo-popup .tab-page .items div:hover:after,\neo-popup .tab-page .latest div:hover:after {\n content: attr(data-preview);\n font-size: 60px;\n width: 60px;\n height: 60px;\n position: absolute;\n padding: 12px;\n text-align: center;\n margin-left: 9px;\n margin-top: -86px;\n line-height: 60px;\n vertical-align: middle;\n border: 1px var(--color-active) solid;\n background-color: #fff;\n}\n.toolbar button.more span.text {\n font-size: 13px;\n padding: 0px 4px;\n min-width: 72px;\n}\n.toolbar button.more span.text,\n.toolbar button.more svg,\nsvg.inline {\n vertical-align: middle;\n display: inline-block;\n}\n.toolbar button.more svg.more-icon {\n margin-left: -3px;\n margin-right: -3px;\n margin-bottom: 4px;\n}\n.toolbar button:enabled,\neo-popup .icons button {\n color: var(--color);\n}\n.toolbar button:enabled svg,\neo-popup .icons button svg {\n fill: var(--color);\n}\n.toolbar button:enabled:not(.active):hover,\neo-popup .icons button:not(.active):hover {\n background-color: var(--color-hover-bg);\n}\n.toolbar button:enabled:active,\n.toolbar button.active,\neo-popup .icons button:active,\neo-popup .icons button.active {\n background-color: var(--color-active-bg) !important;\n}\n.toolbar button:enabled:hover,\n.toolbar button.active,\neo-popup .icons button:hover,\neo-popup .icons button.active {\n color: var(--color-active);\n}\n.toolbar button:enabled:hover svg,\n.toolbar button.active svg,\neo-popup .icons button:hover svg,\neo-popup .icons button.active svg {\n fill: var(--color-active);\n}\n.toolbar button:disabled,\neo-popup button:disabled {\n color: RGBA(0, 0, 0, 0.33);\n}\n.toolbar button:disabled svg,\neo-popup button:disabled svg {\n fill: RGBA(0, 0, 0, 0.33);\n}\n\n.edit-area {\n box-sizing: border-box;\n width: var(--width);\n height: var(--height);\n overflow: hidden;\n}\n.edit-area iframe {\n box-sizing: border-box;\n border: none;\n outline: none;\n width: 100%;\n height: 100%;\n}\n.edit-area textarea {\n box-sizing: border-box;\n border: none;\n outline: none;\n padding: 0.5em;\n width: 100%;\n height: 100%;\n display: none;\n}\n\n/** Insert image **/\n.preview-container {\n position: relative;\n width: min(80vw, 480px);\n height: 320px;\n overflow: auto;\n margin: 6px 0px;\n}\n.preview-container img {\n position: absolute;\n left: 0px;\n top: 0px;\n display: none;\n}\n\n/** Insert table **/\n.table-cells td {\n width: 16px;\n height: 16px;\n border: 1px solid #ccc;\n}\n.table-cells td.hidden {\n display: none;\n}\n.table-cells td.focus {\n background-color: var(--color-active-bg);\n}\n\n/** popupTextbox **/\ndiv.narrow input {\n width: 44.5px !important;\n}\n',""]);const l=r},314(t){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,o,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(i)for(var l=0;l<this.length;l++){var a=this[l][0];null!=a&&(r[a]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),e.push(u))}},e}},601(t){t.exports=function(t){return t[1]}}},s={};function r(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={id:t,exports:{}};return o[t](n,n.exports,r),n.exports}r.m=o,r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,r.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var o=Object.create(null);r.r(o);var s={};t=t||[null,e({}),e([]),e(e)];for(var l=2&i&&n;("object"==typeof l||"function"==typeof l)&&!~t.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((t=>s[t]=()=>n[t]));return s.default=()=>n,r.d(o,s),o},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.f={},r.e=t=>Promise.all(Object.keys(r.f).reduce(((e,n)=>(r.f[n](t,e),e)),[])),r.u=t=>t+".eoeditor.js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},i="@etsoo/editor:",r.l=(t,e,o,s)=>{if(n[t])n[t].push(e);else{var l,a;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==i+o){l=d;break}}l||(a=!0,(l=document.createElement("script")).charset="utf-8",r.nc&&l.setAttribute("nonce",r.nc),l.setAttribute("data-webpack",i+o),l.src=t),n[t]=[e];var h=(e,i)=>{l.onerror=l.onload=null,clearTimeout(p);var o=n[t];if(delete n[t],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((t=>t(i))),e)return e(i)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=h.bind(null,l.onerror),l.onload=h.bind(null,l.onload),a&&document.head.appendChild(l)}},r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t})(),(()=>{var t={792:0};r.f.j=(e,n)=>{var i=r.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else{var o=new Promise(((n,o)=>i=t[e]=[n,o]));n.push(i[2]=o);var s=r.p+r.u(e),l=new Error;r.l(s,(n=>{if(r.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+s+")",l.name="ChunkLoadError",l.type=o,l.request=s,i[1](l)}}),"chunk-"+e,e)}};var e=(e,n)=>{var i,o,[s,l,a]=n,c=0;if(s.some((e=>0!==t[e]))){for(i in l)r.o(l,i)&&(r.m[i]=l[i]);if(a)a(r)}for(e&&e(n);c<s.length;c++)o=s[c],r.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=self.webpackChunk_etsoo_editor=self.webpackChunk_etsoo_editor||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();const l={name:"s",icon:"",label:""},a='<path d="M14 16.94V12.94H5.08L5.05 10.93H14V6.94L19 11.94Z" />',c='<path d="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z" />',u='<path d="M21.7,13.35L20.7,14.35L18.65,12.3L19.65,11.3C19.86,11.08 20.21,11.08 20.42,11.3L21.7,12.58C21.92,12.79 21.92,13.14 21.7,13.35M12,18.94L18.07,12.88L20.12,14.93L14.06,21H12V18.94M4,2H18A2,2 0 0,1 20,4V8.17L16.17,12H12V16.17L10.17,18H4A2,2 0 0,1 2,16V4A2,2 0 0,1 4,2M4,6V10H10V6H4M12,6V10H18V6H12M4,12V16H10V12H4Z" />',d='<path d="M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z" />',h='<path d="M13,2A2,2 0 0,0 11,4V20A2,2 0 0,0 13,22H22V2H13M20,10V14H13V10H20M20,16V20H13V16H20M20,4V8H13V4H20M9,11H6V8H4V11H1V13H4V16H6V13H9V11Z" />',p='<path d="M4,2H11A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H4A2,2 0 0,1 2,20V4A2,2 0 0,1 4,2M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M17.59,12L15,9.41L16.41,8L19,10.59L21.59,8L23,9.41L20.41,12L23,14.59L21.59,16L19,13.41L16.41,16L15,14.59L17.59,12Z" />',f='<path d="M5,10H3V4H11V6H5V10M19,18H13V20H21V14H19V18M5,18V14H3V20H11V18H5M21,4H13V6H19V10H21V4M8,13V15L11,12L8,9V11H3V13H8M16,11V9L13,12L16,15V13H21V11H16Z" />',m='<path d="M15.46,15.88L16.88,14.46L19,16.59L21.12,14.46L22.54,15.88L20.41,18L22.54,20.12L21.12,21.54L19,19.41L16.88,21.54L15.46,20.12L17.59,18L15.46,15.88M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z" />',g='<path d="M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z" />',b='<path d="M22,14A2,2 0 0,0 20,12H4A2,2 0 0,0 2,14V21H4V19H8V21H10V19H14V21H16V19H20V21H22V14M4,14H8V17H4V14M10,14H14V17H10V14M20,14V17H16V14H20M11,10H13V7H16V5H13V2H11V5H8V7H11V10Z" />',v='<path d="M9.41,13L12,15.59L14.59,13L16,14.41L13.41,17L16,19.59L14.59,21L12,18.41L9.41,21L8,19.59L10.59,17L8,14.41L9.41,13M22,9A2,2 0 0,1 20,11H4A2,2 0 0,1 2,9V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V9M4,9H8V6H4V9M10,9H14V6H10V9M16,9H20V6H16V9Z" />',y='<path d="M19 14H21V20H3V14H5V18H19V14M3 4V10H5V6H19V10H21V4H3M11 11V13H8V15L5 12L8 9V11H11M16 11V9L19 12L16 15V13H13V11H16Z" />',C='<path d="M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z" />',H={about:{icon:'<path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z" />'},align:{icon:'<path d="M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z" />'},backColor:{icon:'<path d="M4,17L6.75,14.25L6.72,14.23C6.14,13.64 6.14,12.69 6.72,12.11L11.46,7.37L15.7,11.61L10.96,16.35C10.39,16.93 9.46,16.93 8.87,16.37L8.24,17H4M15.91,2.91C16.5,2.33 17.45,2.33 18.03,2.91L20.16,5.03C20.74,5.62 20.74,6.57 20.16,7.16L16.86,10.45L12.62,6.21L15.91,2.91Z" />'},bold:{icon:'<path d="M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z" />',detectTag:"b",detectStyle:["fontWeight","bold"]},code:{icon:'<path d="M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z" />'},copy:{icon:'<path d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" />'},custom1:{icon:""},custom2:{icon:""},custom3:{icon:""},cut:{icon:'<path d="M19,3L13,9L15,11L22,4V3M12,12.5A0.5,0.5 0 0,1 11.5,12A0.5,0.5 0 0,1 12,11.5A0.5,0.5 0 0,1 12.5,12A0.5,0.5 0 0,1 12,12.5M6,20A2,2 0 0,1 4,18C4,16.89 4.9,16 6,16A2,2 0 0,1 8,18C8,19.11 7.1,20 6,20M6,8A2,2 0 0,1 4,6C4,4.89 4.9,4 6,4A2,2 0 0,1 8,6C8,7.11 7.1,8 6,8M9.64,7.64C9.87,7.14 10,6.59 10,6A4,4 0 0,0 6,2A4,4 0 0,0 2,6A4,4 0 0,0 6,10C6.59,10 7.14,9.87 7.64,9.64L10,12L7.64,14.36C7.14,14.13 6.59,14 6,14A4,4 0 0,0 2,18A4,4 0 0,0 6,22A4,4 0 0,0 10,18C10,17.41 9.87,16.86 9.64,16.36L12,14L19,21H22V20L9.64,7.64Z" />'},decreaseFontSize:{icon:'<path d="M5.12,14L7.5,7.67L9.87,14M6.5,5L1,19H3.25L4.37,16H10.62L11.75,19H14L8.5,5H6.5M18,17L23,11.93L21.59,10.5L19,13.1V7H17V13.1L14.41,10.5L13,11.93L18,17Z" />'},delete:{icon:'<path d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" />'},foreColor:{icon:'<path d="M9.62,12L12,5.67L14.37,12M11,3L5.5,17H7.75L8.87,14H15.12L16.25,17H18.5L13,3H11Z" />'},formatBlock:{icon:""},fullscreen:{icon:'<path d="M24 9h-2v-4h-4v-2h6v6zm-6 12v-2h4v-4h2v6h-6zm-18-6h2v4h4v2h-6v-6zm6-12v2h-4v4h-2v-6h6z"/>'},h1:{icon:'<path d="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M14,18V16H16V6.31L13.5,7.75V5.44L16,4H18V16H20V18H14Z" />',detectTag:"h1"},h2:{icon:'<path d="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M21,18H15A2,2 0 0,1 13,16C13,15.47 13.2,15 13.54,14.64L18.41,9.41C18.78,9.05 19,8.55 19,8A2,2 0 0,0 17,6A2,2 0 0,0 15,8H13A4,4 0 0,1 17,4A4,4 0 0,1 21,8C21,9.1 20.55,10.1 19.83,10.83L15,16H21V18Z" />',detectTag:"h2"},h3:{icon:'<path d="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V15H15V16H19V12H15V10H19V6H15V7H13V6A2,2 0 0,1 15,4Z" />',detectTag:"h3"},h4:{icon:'<path d="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M18,18V13H13V11L18,4H20V11H21V13H20V18H18M18,11V7.42L15.45,11H18Z" />',detectTag:"h4"},h5:{icon:'<path d="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H20V6H15V10H17A4,4 0 0,1 21,14A4,4 0 0,1 17,18H15A2,2 0 0,1 13,16V15H15V16H17A2,2 0 0,0 19,14A2,2 0 0,0 17,12H15A2,2 0 0,1 13,10V6A2,2 0 0,1 15,4Z" />',detectTag:"h5"},h6:{icon:'<path d="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V7H19V6H15V10H19A2,2 0 0,1 21,12V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V6A2,2 0 0,1 15,4M15,12V16H19V12H15Z" />',detectTag:"h6"},hp:{icon:'<path d="M13,4A4,4 0 0,1 17,8A4,4 0 0,1 13,12H11V18H9V4H13M13,10A2,2 0 0,0 15,8A2,2 0 0,0 13,6H11V10H13Z" />',detectTag:"p"},iframe:{icon:'<path d="M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" />'},increaseFontSize:{icon:'<path d="M5.12,14L7.5,7.67L9.87,14M6.5,5L1,19H3.25L4.37,16H10.62L11.75,19H14L8.5,5H6.5M18,7L13,12.07L14.41,13.5L17,10.9V17H19V10.9L21.59,13.5L23,12.07L18,7Z" />'},indent:{icon:'<path d="M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M11,17H21V15H11M3,8V16L7,12M3,21H21V19H3V21Z" />'},insertHorizontalRule:{icon:'<path d="M19,13H5V11H19V13Z" />'},insertImage:{icon:'<path d="M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z" />'},insertOrderedList:{icon:'<path d="M7,13V11H21V13H7M7,19V17H21V19H7M7,7V5H21V7H7M3,8V5H2V4H4V8H3M2,17V16H5V20H2V19H4V18.5H3V17.5H4V17H2M4.25,10A0.75,0.75 0 0,1 5,10.75C5,10.95 4.92,11.14 4.79,11.27L3.12,13H5V14H2V13.08L4,11H2V10H4.25Z" />'},insertTable:{icon:'<path d="M5,4H19A2,2 0 0,1 21,6V18A2,2 0 0,1 19,20H5A2,2 0 0,1 3,18V6A2,2 0 0,1 5,4M5,8V12H11V8H5M13,8V12H19V8H13M5,14V18H11V14H5M13,14V18H19V14H13Z" />'},insertText:{icon:'<path d="M19,3H14.82C14.25,1.44 12.53,0.64 11,1.2C10.14,1.5 9.5,2.16 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M7,7H17V5H19V19H5V5H7V7M17,11H7V9H17V11M15,15H7V13H15V15Z" />'},insertUnorderedList:{icon:'<path d="M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z" />',detectTag:"ul"},italic:{icon:'<path d="M10,4V7H12.21L8.79,15H6V18H14V15H11.79L15.21,7H18V4H10Z" />',detectTag:"i",detectStyle:["fontStyle","italic"]},justifyCenter:{icon:'<path d="M3,3H21V5H3V3M7,7H17V9H7V7M3,11H21V13H3V11M7,15H17V17H7V15M3,19H21V21H3V19Z" />',detectStyle:["textAlign","center"]},justifyFull:{icon:'<path d="M3,3H21V5H3V3M3,7H21V9H3V7M3,11H21V13H3V11M3,15H21V17H3V15M3,19H21V21H3V19Z" />',detectStyle:["textAlign","justify"]},justifyLeft:{icon:'<path d="M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z" />',detectStyle:["textAlign","left"]},justifyRight:{icon:'<path d="M3,3H21V5H3V3M9,7H21V9H9V7M3,11H21V13H3V11M9,15H21V17H9V15M3,19H21V21H3V19Z" />',detectStyle:["textAlign","right"]},link:{icon:'<path d="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z" />',detectTag:"a"},lock:{icon:'<path d="M17,10h-1V8c0-2.205-1.794-4-4-4S8,5.795,8,8v2H7c-1.103,0-2,0.896-2,2v7c0,1.104,0.897,2,2,2h10c1.103,0,2-0.896,2-2v-7 C19,10.896,18.103,10,17,10z M12,18.299c-0.719,0-1.3-0.58-1.3-1.299s0.581-1.301,1.3-1.301s1.3,0.582,1.3,1.301 S12.719,18.299,12,18.299z M14,11h-4V8c0-1.104,0.897-2,2-2s2,0.896,2,2V11z" />'},more:{icon:'<path d="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z" />'},object:{icon:""},outdent:{icon:'<path d="M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M3,21H21V19H3M3,12L7,16V8M11,17H21V15H11V17Z" />'},paste:{icon:'<path d="M19,20H5V4H7V7H17V4H19M12,2A1,1 0 0,1 13,3A1,1 0 0,1 12,4A1,1 0 0,1 11,3A1,1 0 0,1 12,2M19,2H14.82C14.4,0.84 13.3,0 12,0C10.7,0 9.6,0.84 9.18,2H5A2,2 0 0,0 3,4V20A2,2 0 0,0 5,22H19A2,2 0 0,0 21,20V4A2,2 0 0,0 19,2Z" />'},redo:{icon:'<path d="M18.4,10.6C16.55,9 14.15,8 11.5,8C6.85,8 2.92,11.03 1.54,15.22L3.9,16C4.95,12.81 7.95,10.5 11.5,10.5C13.45,10.5 15.23,11.22 16.62,12.38L13,16H22V7L18.4,10.6Z" />'},removeFormat:{icon:'<path d="M6,5V5.18L8.82,8H11.22L10.5,9.68L12.6,11.78L14.21,8H20V5H6M3.27,5L2,6.27L8.97,13.24L6.5,19H9.5L11.07,15.34L16.73,21L18,19.73L3.55,5.27L3.27,5Z" />'},s:{icon:"|"},source:{icon:'<path d="M12,17.56L16.07,16.43L16.62,10.33H9.38L9.2,8.3H16.8L17,6.31H7L7.56,12.32H14.45L14.22,14.9L12,15.5L9.78,14.9L9.64,13.24H7.64L7.93,16.43L12,17.56M4.07,3H19.93L18.5,19.2L12,21L5.5,19.2L4.07,3Z" />'},strikeThrough:{icon:'<path d="M3,14H21V12H3M5,4V7H10V10H14V7H19V4M10,19H14V16H10V19Z" />',detectTag:"strike",detectStyle:["textDecorationLine","line-through"]},style:{icon:'<path d="M3,5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5M12.5,11H11.5A1.5,1.5 0 0,1 10,9.5A1.5,1.5 0 0,1 11.5,8H12.5A1.5,1.5 0 0,1 14,9.5H16A3.5,3.5 0 0,0 12.5,6H11.5A3.5,3.5 0 0,0 8,9.5A3.5,3.5 0 0,0 11.5,13H12.5A1.5,1.5 0 0,1 14,14.5A1.5,1.5 0 0,1 12.5,16H11.5A1.5,1.5 0 0,1 10,14.5H8A3.5,3.5 0 0,0 11.5,18H12.5A3.5,3.5 0 0,0 16,14.5A3.5,3.5 0 0,0 12.5,11Z" />'},subscript:{icon:'<path d="M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,21.03H16.97V20.03L17.86,19.23C18.62,18.58 19.18,18.04 19.56,17.6C19.93,17.16 20.12,16.75 20.13,16.36C20.14,16.08 20.05,15.85 19.86,15.66C19.68,15.5 19.39,15.38 19,15.38C18.69,15.38 18.42,15.44 18.16,15.56L17.5,15.94L17.05,14.77C17.32,14.56 17.64,14.38 18.03,14.24C18.42,14.1 18.85,14 19.32,14C20.1,14.04 20.7,14.25 21.1,14.66C21.5,15.07 21.72,15.59 21.72,16.23C21.71,16.79 21.53,17.31 21.18,17.78C20.84,18.25 20.42,18.7 19.91,19.14L19.27,19.66V19.68H21.85V21.03Z" />',detectTag:"sub"},superscript:{icon:'<path d="M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,9H16.97V8L17.86,7.18C18.62,6.54 19.18,6 19.56,5.55C19.93,5.11 20.12,4.7 20.13,4.32C20.14,4.04 20.05,3.8 19.86,3.62C19.68,3.43 19.39,3.34 19,3.33C18.69,3.34 18.42,3.4 18.16,3.5L17.5,3.89L17.05,2.72C17.32,2.5 17.64,2.33 18.03,2.19C18.42,2.05 18.85,2 19.32,2C20.1,2 20.7,2.2 21.1,2.61C21.5,3 21.72,3.54 21.72,4.18C21.71,4.74 21.53,5.26 21.18,5.73C20.84,6.21 20.42,6.66 19.91,7.09L19.27,7.61V7.63H21.85V9Z" />',detectTag:"sup"},symbols:{icon:'<path d="M19.15,19H13.39V16.87C15.5,15.25 16.59,13.24 16.59,10.84C16.59,9.34 16.16,8.16 15.32,7.29C14.47,6.42 13.37,6 12.03,6C10.68,6 9.57,6.42 8.71,7.3C7.84,8.17 7.41,9.37 7.41,10.88C7.41,13.26 8.5,15.26 10.61,16.87V19H4.85V16.87H8.41C6.04,15.32 4.85,13.23 4.85,10.6C4.85,8.5 5.5,6.86 6.81,5.66C8.12,4.45 9.84,3.85 11.97,3.85C14.15,3.85 15.89,4.45 17.19,5.64C18.5,6.83 19.15,8.5 19.15,10.58C19.15,13.21 17.95,15.31 15.55,16.87H19.15V19Z" />'},textbox:{icon:'<path d="M5,3C3.89,3 3,3.89 3,5V19C3,20.11 3.89,21 5,21H19C20.11,21 21,20.11 21,19V5C21,3.89 20.11,3 19,3H5M5,5H19V19H5V5M7,7V9H17V7H7M7,11V13H17V11H7M7,15V17H14V15H7Z" />'},underline:{icon:'<path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z" />',detectTag:"u",detectStyle:["textDecorationLine","underline"]},undo:{icon:'<path d="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z" />'},unlink:{icon:'<path d="M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.43 19.12,14.63 17.79,15L19.25,16.44C20.88,15.61 22,13.95 22,12A5,5 0 0,0 17,7M16,11H13.81L15.81,13H16V11M2,4.27L5.11,7.38C3.29,8.12 2,9.91 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12C3.9,10.41 5.11,9.1 6.66,8.93L8.73,11H8V13H10.73L13,15.27V17H14.73L18.74,21L20,19.74L3.27,3L2,4.27Z" />'},video:{icon:'<path d="M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z" />'}};var w,S,L,V;BigInt.prototype.toJSON=function(){return this.toString()+"n"},function(t){let e,n,i,o,s,r;function l(t,e){if(null!=t&&("string"!=typeof t||""!==t.trim())){if(e.endsWith("[]")){const n=Array.isArray(t)?t:"string"==typeof t?t.split(/,\s*/g):[t],i=e.slice(0,e.length-2);return n.map((t=>l(t,i))).filter((t=>null!=t))}if(typeof t===e)return t;if("date"!==e){if("bigint"===e)return"string"==typeof t||"number"==typeof t||"boolean"==typeof t?BigInt(t):void 0;if("boolean"===e)return"string"==typeof t||"number"==typeof t?"0"!==t&&"false"!==t&&Boolean(t):void 0;if("number"===e){const e=Number(t);return isNaN(e)?void 0:e}return"string"===e?String(t):void 0}if(t instanceof Date)return t;if("string"==typeof t||"number"==typeof t){const e=new Date(t);return null==e?void 0:e}}}function a(e){switch(e){case t.CombinedEnum.Array:return"unknown[]";case t.CombinedEnum.Bigint:return"bigint";case t.CombinedEnum.Boolean:return"boolean";case t.CombinedEnum.Date:case t.CombinedEnum.DateTime:return"date";case t.CombinedEnum.Number:case t.CombinedEnum.Int:case t.CombinedEnum.IntMoney:case t.CombinedEnum.Money:return"number";default:return"string"}}function c(t,e=!1){if(null==t)return;if(t instanceof Date)return e?"date[]":"date";const n=typeof t,i=e?n+"[]":n;return d(i)?i:void 0}function u(t,e){if(null!=t&&"string"==typeof e&&e in t)return Reflect.get(t,e)}function d(e){return t.BasicArray.includes(e)}function h(t,e=!0){if(null==t)return!0;if(t instanceof Date)return!0;if(Array.isArray(t))return!!e&&h(t.find((t=>null!=t)));const n=typeof t;return"function"!==n&&"object"!==n&&"symbol"!==n}function p(t){const e=new Map;return function(n,i){const o=e.get(this)+(Array.isArray(this)?`[${n}]`:"."+n);return i===Object(i)&&e.set(i,o),t.call(this,n,i,o.replace(/undefined\.\.?/,""))}}t.BasicArray=["number","number[]","bigint","bigint[]","date","date[]","boolean","boolean[]","string","string[]","unknown[]"],function(t){t[t.Number=1]="Number",t[t.Bigint=2]="Bigint",t[t.Date=3]="Date",t[t.Boolean=4]="Boolean",t[t.String=5]="String",t[t.Array=9]="Array"}(e=t.SimpleEnum||(t.SimpleEnum={})),function(t){t[t.Unkwown=0]="Unkwown",t[t.Int=10]="Int",t[t.Money=11]="Money",t[t.IntMoney=12]="IntMoney",t[t.DateTime=13]="DateTime",t[t.Email=21]="Email",t[t.Phone=22]="Phone",t[t.URL=23]="URL",t[t.Logo=24]="Logo"}(n=t.ExtendedEnum||(t.ExtendedEnum={})),t.CombinedEnum={...e,...n},function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"}(i=t.HAlignEnum||(t.HAlignEnum={})),function(t){t[t.Top=1]="Top",t[t.Center=2]="Center",t[t.Bottom=3]="Bottom"}(o=t.VAlignEnum||(t.VAlignEnum={})),function(t){t[t.TopLeft=0]="TopLeft",t[t.TopCenter=1]="TopCenter",t[t.TopRight=2]="TopRight",t[t.MiddleLeft=3]="MiddleLeft",t[t.Center=4]="Center",t[t.MiddleRight=5]="MiddleRight",t[t.BottomLeft=6]="BottomLeft",t[t.BottomCenter=7]="BottomCenter",t[t.BottomRight=8]="BottomRight",t[t.Unknown=9]="Unknown"}(s=t.PlacementEnum||(t.PlacementEnum={})),function(t){t[t.False=0]="False",t[t.True=1]="True",t[t.Unsure=9]="Unsure"}(r=t.TristateEnum||(t.TristateEnum={})),t.convert=function(t,e){if(null==t)return;if(Array.isArray(e)){const n=c(e.length>0?e[0]:t,!0);return null==n?t:l(t,n)}const n=c(e,!1);return null==n?typeof t==typeof e?t:void 0:l(t,n)},t.convertByType=l,t.convertSimple=function(e,n){const i=l(e,a(n));if(null!=i){if("number"==typeof i){if(n===t.CombinedEnum.Int||n===t.CombinedEnum.IntMoney)return Math.round(i);if(n===t.CombinedEnum.Money)return Math.round(1e4*i)/1e4}return i}},t.getBasicName=a,t.getBasicNameByValue=c,t.getEnumByKey=function(t,e){if(e in t)return t[e]},t.getEnumByValue=function(t,e){if("number"==typeof e){if(e in t)return e}else{const n=Object.keys(t);for(const i of n){const n=t[i];if(n===e)return n}}},t.getEnumKey=function(t,e){if("number"==typeof e){if(e in t)return t[e].toString()}else{const n=Object.keys(t);for(const i of n)if(t[i]===e)return i}},t.getEnumKeys=function(t){return Object.keys(t).filter((t=>!/^\d+$/.test(t))).map((t=>t))},t.getListItemLabel=function(t){return"label"in t?t.label:"name"in t?t.name:t.title},t.getObjectItemLabel=function(t){return"label"in t?`${t.label}`:"name"in t?`${t.name}`:"title"in t?`${t.title}`:`${t}`},t.getValue=u,t.getIdValue=function(t,e){return t[e]},t.getIdValue1=function(t,e){const n=u(t,e);if(null!=n)return"number"==typeof n?n:`${n}`},t.getStringValue=function(t,e){const n=u(t,e);if(null!=n)return"string"==typeof n?n:`${n}`},t.isBasicName=d,t.isDeepEqual=function t(e,n,i){if(e===n)return!0;if(null==e||null==n)return!i&&e==n||e===n;if(!1===i&&e==n)return!0;if(typeof e!=typeof n)return!1;if(Number.isNaN(e)&&Number.isNaN(n)&&!i)return!0;if("object"==typeof e){if(e instanceof Date&&n instanceof Date)return e.getTime()===n.getTime();if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;for(let o=0;o<e.length;o++)if(!t(e[o],n[o],i))return!1;return!0}const o=Object.keys(e),s=Object.keys(n);if(o.length!==s.length&&i)return!1;const r=new Set([...o,...s]);for(const o of r)if(!t(Reflect.get(e,o),Reflect.get(n,o),i))return!1;return!0}return i?e===n:e==n},t.isSimpleObject=function(t,e=!0){return"object"==typeof t&&null!=t&&Object.values(t).every((t=>h(t,e)))},t.isSimpleType=h,t.jsonReplacer=p,t.jsonBigintReceiver=function(...t){return p((function(e,n,i){return(t.includes(e)||t.includes(i))&&"string"==typeof n?n.endsWith("n")?BigInt(n.slice(0,-1)):BigInt(n):n}))},t.jsonSerialize=function(t,e){const{ignoreNull:n=!0,ignoreEmpty:i=!1}=e??{};return JSON.stringify(t,((t,e)=>{if(!(n&&null==e||i&&""===e))return e}))}}(w||(w={})),Date.prototype.substract=function(t){const e=this.valueOf()-t.valueOf(),n=e/1e3,i=n/60,o=i/60,s=o/24,r=this.getFullYear(),l=this.getMonth(),a=new Date(t);a.setFullYear(r),a.setMonth(l);const c=(new Date(this).valueOf()-a.valueOf())/864e5,u=c>0?c/S.getDays(r,l):c/S.getDays(r,l-1),d=12*(r-t.getFullYear())+(l-t.getMonth())+u;return{totalMiniseconds:e,totalSeconds:n,totalMinutes:i,totalHours:o,totalDays:s,totalMonths:d,totalYears:d/12}},function(t){function e(t){if(null!=t){if("string"!=typeof t)return t;{const e=t[0];if(e>="0"&&e<="9"&&/[-\/\s]/g.test(t)){const e=Date.parse(t);if(!isNaN(e))return new Date(e)}}}}t.DayFormat={year:"numeric",month:"2-digit",day:"2-digit"},t.MinuteFormat={...t.DayFormat,hour:"2-digit",hourCycle:"h23",minute:"2-digit"},t.SecondFormat={...t.MinuteFormat,second:"2-digit"},t.format=function(n,i,o,s){const r=e(n);if(null==r)return;let l;switch(o??(o=t.DayFormat),o){case"d":l=t.DayFormat;break;case"dm":l=t.MinuteFormat;break;case"ds":l=t.SecondFormat;break;default:l=o}const a={...l,...null!=s&&{timeZone:s}};return new Intl.DateTimeFormat(i,a).format(r).replace(/,\s*/g," ")},t.formatForInput=function(t,e){if(null==t||""===t)return;const n="string"==typeof t?new Date(t):t,i="string"==typeof e?"date"!==e||void 0:e,o=[n.getFullYear(),(n.getMonth()+1).toString().padStart(2,"0"),n.getDate().toString().padStart(2,"0")].join("-");if(null==i)return o;const s=[n.getHours().toString().padStart(2,"0"),n.getMinutes().toString().padStart(2,"0")];return i&&s.push(n.getSeconds().toString().padStart(2,"0")),`${o}T${s.join(":")}`},t.getDays=(t,e)=>new Date(t,e+1,0).getDate(),t.isExpired=function(t){if(null==t)return!1;const n=e(t);return null!=n&&n.valueOf()<(new Date).valueOf()},t.jsonParser=t=>function(n,i){if("string"==typeof i&&null!=i&&""!==i&&t.includes(n)){const t=e(i);if(null!=t)return t}return i},t.parse=e,t.sameDay=function(t,n){return t=e(t),n=e(n),null!=t&&null!=n&&t.toDateString()===n.toDateString()},t.sameMonth=function(t,n){return t=e(t),n=e(n),null!=t&&null!=n&&(t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth())}}(S||(S={})),String.prototype.addUrlParam=function(t,e,n){return this.addUrlParams({[t]:e},n)},String.prototype.addUrlParams=function(t,e){if("string"==typeof t){let e=this;return e.includes("?")?e+="&":(e.endsWith("/")||(e+="/"),e+="?"),e+t}if("undefined"!=typeof URL&&this.includes("://")){const n=new URL(this);return Object.entries(t).forEach((([t,i])=>{Array.isArray(i)?null==e||!1===e?i.forEach((e=>{n.searchParams.append(t,`${e}`)})):n.searchParams.append(t,i.join(e?",":e)):i instanceof Date?n.searchParams.append(t,i.toJSON()):n.searchParams.append(t,`${null==i?"":i}`)})),n.toString()}{const n=Object.entries(t).map((([t,n])=>{let i;if(Array.isArray(n)){if(null==e||!1===e)return n.map((e=>`${t}=${encodeURIComponent(`${e}`)}`)).join("&");i=n.join(e?",":e)}else i=n instanceof Date?n.toJSON():null==n?"":`${n}`;return`${t}=${encodeURIComponent(i)}`})).join("&");return this.addUrlParams(n)}},String.prototype.containChinese=function(){return/[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f]/g.test(this)},String.prototype.containKorean=function(){return/[\uac00-\ud7af\u1100-\u11ff\u3130-\u318f\ua960-\ua97f\ud7b0-\ud7ff\u3400-\u4dbf]/g.test(this)},String.prototype.containJapanese=function(){return/[\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf]/g.test(this)},String.prototype.format=function(...t){let e=this;return t.forEach(((t,n)=>{e=e.replace(new RegExp(`\\{${n}\\}`,"g"),t)})),e},String.prototype.formatInitial=function(t=!1){const e=this.charAt(0);return(t?e.toUpperCase():e.toLowerCase())+this.slice(1)},String.prototype.hideData=function(t){if(0===this.length)return this;if(null!=t){const e=this.indexOf(t);return-1===e?this.hideData():this.substring(0,e).hideData()+this.substring(e)}var e=this.length;return e<4?this.substring(0,1)+"***":e<6?this.substring(0,2)+"***":e<8?this.substring(0,2)+"***"+this.slice(-2):e<12?this.substring(0,3)+"***"+this.slice(-3):this.substring(0,4)+"***"+this.slice(-4)},String.prototype.hideEmail=function(){return this.hideData("@")},String.prototype.isDigits=function(t){return this.length>=(t??0)&&/^\d+$/.test(this)},String.prototype.isEmail=function(){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(this.toLowerCase())},String.prototype.removeNonLetters=function(){return this.replace(/[^a-zA-Z0-9]/g,"")},function(t){const e=["changedFields","id"];function n(t,e,...n){return t.filter((t=>!n.includes(t[e])))}function i(t,e){return t===e?0:-1===t?1:-1===e?-1:t-e}t.addBlankItem=function(t,e,n,i){if(e??(e="id"),0===t.length||""!==Reflect.get(t[0],e)){const o={[e]:"",["string"==typeof n?n:"label"]:i??"---"};t.unshift(o)}return t},t.charsToNumber=function(t){return("undefined"==typeof Buffer?[...atob(t)].map((t=>t.charCodeAt(0))):[...Buffer.from(t,"base64")]).reduce(((t,e,n)=>t+e*Math.pow(128,n)),0)},t.correctTypes=function(t,e){for(const n in e){const i=e[n];if(null==i)continue;const o=Reflect.get(t,n),s=w.convertByType(o,i);s!==o&&Reflect.set(t,n,s)}},t.exclude=n,t.excludeAsync=async function(t,e,...i){const o=await t;return null==o?o:n(o,e,...i)},t.formatInitial=function(t,e=!1){return t.formatInitial(e)},t.formatString=function(t,...e){return t.format(...e)},t.getDataChanges=function(t,n,i){const o=i??e,s=[];return Object.entries(t).forEach((([e,i])=>{if(o.includes(e))return;const r=Reflect.get(n,e);if(null!=i||null!=r){if(null!=r){if(i instanceof Date)return i.valueOf()===S.parse(r)?.valueOf()?void Reflect.deleteProperty(t,e):void s.push(e);const n=w.convert(i,r);if(w.isDeepEqual(n,r))return void Reflect.deleteProperty(t,e);Reflect.set(t,e,n)}null!=i&&""!==i||Reflect.deleteProperty(t,e),s.push(e)}else Reflect.deleteProperty(t,e)})),s},t.getNestedValue=function(t,e){const n=e.split("."),i=n.length;if(1===i)return Reflect.get(t,e);{let e=t;for(let t=0;t<i;t++){const o=n[t];if(t+1===i)return Reflect.get(e,o);{let t=Reflect.get(e,o);if(null==t)return;e=t}}}},t.getResult=(t,...e)=>"function"==typeof t?t(...e):t,t.getTimeZone=t=>"object"==typeof Intl&&"function"==typeof Intl.DateTimeFormat?Intl.DateTimeFormat().resolvedOptions().timeZone:t??"UTC",t.hasHtmlEntity=function(t){return/&(lt|gt|nbsp|60|62|160|#x3C|#x3E|#xA0);/i.test(t)},t.hasHtmlTag=function(t){return/<\/?[a-z]+[^<>]*>/i.test(t)},t.isDigits=(t,e)=>null!=t&&t.isDigits(e),t.isEmail=t=>null!=t&&t.isEmail(),t.joinItems=(t,e=", ")=>t.reduce(((t,e)=>{if(e){const n=e.trim();n&&t.push(n)}return t}),[]).join(e),t.mergeClasses=(...e)=>t.joinItems(e," "),t.newGUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))},t.numberToChars=function(t){const e=[];for(;t>0;){const n=t%128;e.push(n),t=(t-n)/128}return"undefined"==typeof Buffer?btoa(String.fromCharCode(...e)):Buffer.from(e).toString("base64")},t.objectEqual=function(e,n,i=[],o){const s=t.objectKeys(e,n,i);for(const t of s){const i=Reflect.get(e,t),s=Reflect.get(n,t);if(!w.isDeepEqual(i,s,o))return!1}return!0},t.objectKeys=function(t,e,n=[]){const i=[...Object.keys(t),...Object.keys(e)].filter((t=>!n.includes(t)));return new Set(i)},t.objectUpdated=function(e,n,i=[],o){const s=[],r=t.objectKeys(e,n,i);for(const t of r){const i=Reflect.get(e,t),r=Reflect.get(n,t);w.isDeepEqual(i,r,o)||s.push(t)}return s},t.parseJsonArray=function(t,e){try{t.startsWith("[")||(t=`[${t}]`);const n=JSON.parse(t),i=typeof e;if(Array.isArray(n)&&(null==e||!n.some((t=>typeof t!==i))))return n}catch(e){console.error(`Utils.parseJsonArray ${t} with error`,e)}},t.parseString=function(t,e){if(null==t||""===t)return e;if("string"==typeof e)return t;try{if(e instanceof Date){const n=new Date(t);return null==n?e:n}return JSON.parse(t)}catch{return null==e?t:e}},t.removeEmptyValues=function(t){Object.keys(t).forEach((e=>{const n=Reflect.get(t,e);null!=n&&""!==n||Reflect.deleteProperty(t,e)}))},t.removeNonLetters=t=>t?.removeNonLetters(),t.replaceNullOrEmpty=(t,e)=>null==t||""===t.trim()?e:t,t.setLabels=(t,e,n)=>{Object.keys(t).forEach((i=>{const o=null==n?i:n[i]??i,s=e[o];null!=s&&Reflect.set(t,i,s)}))},t.snakeNameToWord=(t,e=!1)=>{const n=t.split("_");return e?(n[0]=n[0].formatInitial(!0),n.join(" ")):n.map((t=>t.formatInitial(!0))).join(" ")},t.setNestedValue=function t(e,n,i,o){const s=n.split("."),r=s.length;if(1===r)null==i&&!0!==o?Reflect.deleteProperty(e,n):Reflect.set(e,n,i);else{let n=e;for(let e=0;e<r;e++){const l=s[e];if(e+1===r)t(n,l,i,o);else{let t=Reflect.get(n,l);null==t&&(t={},Reflect.set(n,l,t)),n=t}}}},t.parseName=function(t){let e,n;if((t=t.trim()).containChinese()||t.containJapanese()||t.containKorean())t.length>=2?(e=t[0],n=t.substring(1).trim()):e=t;else{const i=t.split(/\s+/),o=i.length;o>=2?(e=i[o-1],n=i[0]):n=t}return{familyName:e,givenName:n}},t.parsePath=t=>{const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));let n,i,o,s="",r="";if(-1===e)n=t;else{n=t.substring(e+1);const i=t.indexOf("/"),o=t.indexOf("\\"),l=-1===i?o:-1===o?i:Math.min(i,o);s=t.substring(0,l+1),r=t.substring(0,e),""===r&&(r=s)}const l=n.lastIndexOf(".");return-1===l?(o=n,i=""):(o=n.substring(0,l),i=n.substring(l)),{root:s,dir:r,base:n,ext:i,name:o}},t.sortByFavor=(t,e)=>t.sort(((t,n)=>i(e.indexOf(t),e.indexOf(n)))),t.sortByFieldFavor=(t,e,n)=>t.sort(((t,o)=>i(n.indexOf(t[e]),n.indexOf(o[e])))),t.trim=(e,...n)=>t.trimEnd(t.trimStart(e,...n),...n),t.trimEnd=(t,...e)=>{let n;for(;null!=(n=e.find((e=>t.endsWith(e))));)t=t.substring(0,t.length-n.length);return t},t.trimStart=(t,...e)=>{let n;for(;null!=(n=e.find((e=>t.startsWith(e))));)t=t.substring(n.length);return t}}(L||(L={})),"undefined"==typeof navigator&&(globalThis.navigator={language:"en-US"},globalThis.location={href:"http://localhost/"}),function(t){function e(t,e,i,s,r){const l=Object.keys(i),a=Object.entries(o(t)?n(t):t);for(const[t,n]of a){const o=l.find((e=>0===e.localeCompare(t,"en",{sensitivity:"base"})))??(s?t:void 0);if(null==o)continue;const a=Reflect.get(i,o);let c;c=null==a?n:r?w.convert(n,a):w.convertByType(n,a),Reflect.set(e,o,c)}}function n(t){const e={};for(const n of new Set(t.keys())){const i=t.getAll(n);e[n]=1==i.length?i[0]:i}return e}let i;function o(t){return"object"==typeof t&&null!=t&&"entries"in t&&"getAll"in t&&"keys"in t}function s(t){if(t??(t=globalThis.navigator.userAgent),!t)return null;const e=t.split(/(?!\(.*)\s+(?!\()(?![^(]*?\))/g);let n,i=!1,o="",s="Desktop";const r=[],l=/^[a-zA-Z0-9-\s]+\s+(0|\d+)(\.(0|\d+)){0,3}(\(|$)/,a=/^[a-zA-Z0-9]+\/(0|\d+)(\.(0|\d+)){0,3}(\(|$)/;return e.forEach((t=>{const e=t.toLowerCase();if(e.startsWith("mozilla/")){const e=/\((.*)\)$/.exec(t);if(e&&e.length>1){const t=e[1].split(/;\s*/),i=t.findIndex((t=>l.test(t)));if(-1!==i){const e=t[i].split(/\s+/);n=e.pop(),o=e.join(" ")}else{const e=/((iPhone|Mac)\s+OS(\s+\w+)?)\s+((0|\d+)(_(0|\d+)){0,3})/i;for(let i=0;i<t.length;i++){const s=e.exec(t[i]);if(s&&s.length>4){o=s[1],n=s[4].replace(/_/g,"."),t.splice(i,1);break}}}const r=t.findIndex((t=>t.includes(" Build/")));if(-1===r){const e=t[0];"linux"===e.toLowerCase()||e.startsWith(o)||(s=e,t.shift())}else s=t[r].split(" Build/")[0],t.splice(r,1)}}else if("mobile"===e||e.startsWith("mobile/"))i=!0;else if("version"!==e&&!e.startsWith("version/")&&a.test(t)){let[e,n]=t.split("/");const i=n.indexOf("(");return i>0&&(n=n.substring(0,i)),void r.push({brand:e,version:L.trimEnd(n,".0")})}})),{mobile:i,platform:o,platformVersion:n,brands:r,device:s}}async function r(t,e=!1){if(!("queryPermission"in t)||!("requestPermission"in t))return!1;const n={mode:e?"readwrite":"read"};return"granted"===await t.queryPermission(n)||"granted"===await t.requestPermission(n)}t.CultureField="culture",t.CountryField="country",t.clearFormData=function(t,e,n){const i=new Set(t.keys()),o=e=>{if(null!=n&&n.includes(e))return;const i=t.getAll(e);1==i.length&&""===i[0]&&t.delete(e)};if(null==e)for(const t of i)o(t);else{const s=Object.keys(e);for(const i of s){if(null!=n&&n.includes(i))continue;const o=t.getAll(i);if(o.length>0){const n=Reflect.get(e,i);Array.isArray(n)?o.join("`")===n.join("`")&&t.delete(i):1==o.length&&o[0].toString()===`${n}`&&t.delete(i)}}for(const t of i)s.includes(t)||o(t)}return t},t.dataAs=function(t,n,i=!1){const o={};return null!=t&&"object"==typeof t&&e(t,o,n,i,!1),o},t.dataValueAs=function(t,n,i=!1){const o={};return e(t,o,n,i,!0),o},t.detectedCountry=(()=>{let e;try{e=new URL(location.href).searchParams.get(t.CountryField)??sessionStorage.getItem(t.CountryField)??localStorage.getItem(t.CountryField)}catch{e=null}return e})(),t.detectedCulture=(()=>{let e;try{e=new URL(location.href).searchParams.get(t.CultureField)??sessionStorage.getItem(t.CultureField)??localStorage.getItem(t.CultureField)}catch{e=null}return null==e&&(e=navigator.languages&&navigator.languages[0]||navigator.language),e})(),t.dimensionEqual=function(t,e){return null==t&&null==e||null!=t&&null!=e&&(t.left===e.left&&t.top===e.top&&t.right===e.right&&t.bottom===e.bottom)},t.downloadFile=async function(t,e,n=!0){try{if(n&&"showSaveFilePicker"in globalThis){const n=await globalThis.showSaveFilePicker({suggestedName:e});if(!await r(n,!0))return;const i=await n.createWritable();return t instanceof Blob?t.stream().pipeTo(i):await t.pipeTo(i),!0}{const n=window.URL.createObjectURL(t instanceof Blob?t:await new Response(t).blob()),i=document.createElement("a");return i.style.display="none",i.href=n,e&&(i.download=e),document.body.appendChild(i),i.click(),i.remove(),window.URL.revokeObjectURL(n),!0}}catch(t){console.error("DomUtils.downloadFile with error",t)}return!1},t.fileToDataURL=async function(t){return new Promise(((e,n)=>{const i=new FileReader;i.onerror=n,i.onload=()=>{const t=i.result;null!=t?e(t):n()},i.readAsDataURL(t)}))},t.formDataToObject=n,t.isWechatClient=function(t){return t??(t=s()),!!t&&t.brands.some((t=>"micromessenger"===t.brand.toLowerCase()))},function(t){t[t.Exact=0]="Exact",t[t.Compatible=1]="Compatible",t[t.SamePart=2]="SamePart",t[t.Default=3]="Default"}(i=t.CultureMatch||(t.CultureMatch={})),t.en=t=>({name:"en",label:"English",resources:t}),t.zhHans=t=>({name:"zh-Hans",label:"简体中文",resources:t,compatibleNames:["zh-CN","zh-SG"]}),t.zhHant=t=>({name:"zh-Hant",label:"繁體中文",resources:t,compatibleNames:["zh-HK","zh-TW","zh-MO"]}),t.getCulture=(t,e)=>{if(0===t.length)throw new Error("Culture items cannot be empty");const n=t.find((t=>t.name===e));if(n)return[n,i.Exact];const o=t.find((t=>t.compatibleNames?.includes(e)||e.startsWith(t+"-")));if(o)return[o,i.Compatible];const s=e.split("-")[0],r=t.find((t=>t.name.startsWith(s)));return r?[r,i.SamePart]:[t[0],i.Default]},t.getInputValue=function(t){const e=t.type;if("number"===e||"range"===e){const e=t.valueAsNumber;return isNaN(e)?null:e}return"date"===e||"datetime-local"===e?t.valueAsDate??S.parse(t.value):t.value},t.getLocationKey=t=>`${location.href}:${t}`,t.headersToObject=function(t){return Array.isArray(t)?Object.fromEntries(t):"undefined"==typeof Headers?Object.fromEntries(Object.entries(t)):t instanceof Headers?Object.fromEntries(t.entries()):function(t){return Symbol.iterator in t}(t)?Object.fromEntries(t):t},t.isFormData=o,t.isJSONContentType=function(t){return!(!t||!t.includes("json")&&!t.startsWith("application/javascript"))},t.mergeFormData=function(t,...e){for(const n of e)for(const e of new Set(n.keys()))t.delete(e),n.getAll(e).forEach((n=>t.append(e,n)));return t},t.mergeURLSearchParams=function(t,e){return Object.entries(e).forEach((([e,n])=>{null!=n&&t.set(e,n.toString())})),t},t.parseUserAgent=s,t.setFocus=function(t,e){const n="string"==typeof t?t:Object.keys(t)[0];e??(e=document.body);const i=e.querySelector(`[name="${n}"]`);null!=i&&i.focus()},t.setupLogging=function(t,e,n=globalThis.window){if(n.onunhandledrejection)return;const i="error",o=L.getResult(e,i)??!0;n.onerror=(e,s,r,l,a)=>{let c;return s||(s=n.location.href),c="string"==typeof e?{type:i,message:e,source:s,lineNo:r,colNo:l,stack:a?.stack}:{type:i,subType:e.type,message:a?.message??`${e.currentTarget} event error`,source:s,lineNo:r,colNo:l,stack:a?.stack},t(c),o};const s="unhandledrejection",r=L.getResult(e,s)??!0;n.onunhandledrejection=e=>{r&&e.preventDefault();const i=e.reason,o=n.location.href;let l;if(i instanceof Error){const{name:t,message:e,stack:n}=i;l={type:s,subType:t,message:e,stack:n,source:o}}else l={type:s,message:"string"==typeof i?i:JSON.stringify(i),source:o};t(l)};const l=(i,o)=>{const s=L.getResult(e,i)??!1;return(...e)=>{s||o(...e);const[r,...l]=e;let a;a="string"==typeof r?r:JSON.stringify(r);const c=l.length>0?l.map((t=>JSON.stringify(t))).join(", "):void 0,u={type:i,message:a,source:n.location.href,stack:c};t(u)}};n.console.warn=l("consoleWarn",n.console.warn),n.console.error=l("consoleError",n.console.error)},t.verifyPermission=r}(V||(V={}));const x=V.zhHans((async()=>{const t=await r.e(507).then(r.t.bind(r,507,19));return t.default??t})),A=V.zhHant((async()=>{const t=await r.e(726).then(r.t.bind(r,726,19));return t.default??t})),M=V.en((async()=>{const t=await r.e(553).then(r.t.bind(r,553,19));return t.default??t}));let E;class k extends HTMLButtonElement{get tooltip(){return this.getAttribute("tooltip")}set tooltip(t){t?this.setAttribute("tooltip",t):this.removeAttribute("tooltip")}constructor(){super()}connectedCallback(){this.addEventListener("mouseenter",this.showTooltip.bind(this)),this.addEventListener("mouseleave",this.hideTooltip.bind(this)),this.addEventListener("mousedown",this.hideTooltip.bind(this))}disconnectedCallback(){this.hideTooltip(),this.removeEventListener("mouseenter",this.showTooltip.bind(this)),this.removeEventListener("mouseleave",this.hideTooltip.bind(this)),this.removeEventListener("mousedown",this.hideTooltip.bind(this))}hideTooltip(){null!=E&&(E.hidden=!0)}showTooltip(){if(null==this.tooltip)return;null==E&&(document.head.insertAdjacentHTML("beforeend","<style>\n #EOEditorTooltipDiv {\n position: absolute;\n font-size: 12px;\n padding: 4px 8px;\n background: #000;\n color: #fff;\n z-index: 1000;\n white-space: nowrap;\n user-select: none;\n }\n #EOEditorTooltipDiv:after {\n content: '';\n position: absolute;\n margin-left: calc(-50% + 4px);\n margin-top: -12px;\n z-index: 1000;\n color: #fff;\n border: 4px solid transparent;\t\n border-bottom: 4px solid #000;\n }\n #EOEditorTooltipDiv.tooltip-start:after {\n content: '';\n position: absolute;\n margin-left: calc(-100% + 19px);\n margin-top: -12px;\n z-index: 1000;\n color: #fff;\n border: 4px solid transparent;\t\n border-bottom: 4px solid #000;\n }\n #EOEditorTooltipDiv.tooltip-end:after {\n content: '';\n position: absolute;\n margin-left: -11px;\n margin-top: -12px;\n z-index: 1000;\n color: #fff;\n border: 4px solid transparent;\t\n border-bottom: 4px solid #000;\n }\n </style>"),E=document.createElement("div"),E.id="EOEditorTooltipDiv",document.documentElement.appendChild(E)),E.innerHTML=this.tooltip,E.hidden=!1;const t=E.getBoundingClientRect(),e=this.getBoundingClientRect();let n=e.left-(t.width-e.width)/2;n<0?(n=e.left,E.classList.add("tooltip-s