@hufe921/canvas-editor 0.9.134 → 0.9.135

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.
@@ -1,6 +1,6 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`id`,`canvas-editor-style`),e.appendChild(document.createTextNode(`.ce-select-control-popup{z-index:1;box-sizing:border-box;background-color:#fff;border:1px solid #e4e7ed;border-radius:4px;min-width:69px;max-width:160px;max-height:225px;margin:5px 0;position:absolute;overflow-y:auto;box-shadow:0 2px 12px #0000001a}.ce-select-control-popup ul{box-sizing:border-box;margin:0;padding:3px 0;list-style:none}.ce-select-control-popup ul li{white-space:nowrap;text-overflow:ellipsis;color:#666;box-sizing:border-box;cursor:pointer;height:36px;padding:0 20px;font-size:13px;line-height:36px;position:relative;overflow:hidden}.ce-select-control-popup ul li:hover{background-color:#eef2fd}.ce-select-control-popup ul li.active{color:var(--COLOR-HOVER,#5175f4);font-weight:700}.ce-calculator{z-index:1;box-sizing:border-box;background-color:#fff;border:1px solid #e4e7ed;border-radius:4px;width:200px;margin:5px 0;padding:8px;position:absolute;box-shadow:0 2px 12px #0000001a}.ce-calculator-display{text-align:right;box-sizing:border-box;text-overflow:ellipsis;background-color:#f5f7fa;border:1px solid #e4e7ed;border-radius:4px;width:100%;height:40px;margin-bottom:8px;padding:0 10px;font-size:16px;line-height:40px;overflow:hidden}.ce-calculator-buttons{grid-template-columns:repeat(4,1fr);gap:4px;display:grid}.ce-calculator-button{cursor:pointer;box-sizing:border-box;background-color:#fff;border:1px solid #e4e7ed;border-radius:4px;width:100%;height:36px;font-size:14px;transition:all .2s}.ce-calculator-button:hover{background-color:#eef2fd;border-color:#c6d1ff}.ce-calculator-button:active{background-color:#e1e8ff}.ce-calculator-button.operator{background-color:#f5f7fa}.ce-calculator-button.operator:hover{background-color:#eef2fd}.ce-calculator-button.equal{background-color:var(--COLOR-HOVER,#5175f4);color:#fff;border-color:var(--COLOR-HOVER,#5175f4)}.ce-calculator-button.equal:hover{background-color:var(--COLOR-HOVER,#6a84ff);border-color:var(--COLOR-HOVER,#6a84ff)}.ce-calculator-button.utility{background-color:#f0f2f5}.ce-calculator-button.utility:hover{background-color:#e6e8eb}.ce-date-container{z-index:1;color:#606266;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #e4e7ed;border-radius:4px;width:300px;padding:10px;display:none;position:absolute;left:0;right:0;overflow:hidden;box-shadow:0 2px 12px #0000001a}.ce-date-container.active{display:block}.ce-date-wrap{display:none}.ce-date-wrap.active{display:block}.ce-date-wrap.year-mode .ce-date-week,.ce-date-wrap.year-mode .ce-date-day,.ce-date-wrap.month-mode .ce-date-week,.ce-date-wrap.month-mode .ce-date-day{display:none}.ce-date-title{text-align:center;color:#606266;justify-content:center;align-items:center;font-size:16px;display:flex}.ce-date-title>span{display:inline-block}.ce-date-title>span:not(.ce-date-title__now){cursor:pointer;font-family:cursive}.ce-date-title>span:not(.ce-date-title__now):hover{color:#5175f4}.ce-date-title .ce-date-title__pre-year,.ce-date-title .ce-date-title__pre-month{width:15%}.ce-date-title .ce-date-title__now{width:40%}.ce-date-title .ce-date-title__year-label,.ce-date-title .ce-date-title__month-label{cursor:pointer;white-space:nowrap}.ce-date-title .ce-date-title__year-label:hover,.ce-date-title .ce-date-title__month-label:hover{color:#5175f4}.ce-date-title .ce-date-title__next-year,.ce-date-title .ce-date-title__next-month{width:15%}.ce-date-week{border-bottom:1px solid #e4e7ed;justify-content:center;width:100%;margin-top:15px;padding-bottom:5px;display:flex}.ce-date-week>span{text-align:center;color:#606266;width:14.2857%;font-size:14px;list-style:none}.ce-date-day{flex-wrap:wrap;align-items:center;width:100%;margin-top:5px;display:flex}.ce-date-day>div{text-align:center;color:#606266;cursor:pointer;border-radius:4px;width:14.2857%;height:40px;font-size:14px;line-height:40px}.ce-date-day>div:hover{color:#5175f4;opacity:.8}.ce-date-day>div.active{color:#5175f4;font-weight:700}.ce-date-day>div.disable{color:#c0c4cc}.ce-date-day>div.select{color:#fff;background-color:#5175f4}.ce-year-wrap{flex-wrap:wrap;align-items:center;width:100%;min-height:280px;margin-top:15px;display:none}.ce-year-wrap.active{display:flex}.ce-year-wrap>div{text-align:center;color:#606266;cursor:pointer;border-radius:4px;width:33.3333%;height:60px;font-size:14px;line-height:60px}.ce-year-wrap>div:hover{color:#5175f4;opacity:.8}.ce-year-wrap>div.active{color:#5175f4;font-weight:700}.ce-year-wrap>div.select{color:#fff;background-color:#5175f4}.ce-month-wrap{flex-wrap:wrap;align-items:center;width:100%;min-height:280px;margin-top:15px;display:none}.ce-month-wrap.active{display:flex}.ce-month-wrap>div{text-align:center;color:#606266;cursor:pointer;border-radius:4px;width:33.3333%;height:60px;font-size:14px;line-height:60px}.ce-month-wrap>div:hover{color:#5175f4;opacity:.8}.ce-month-wrap>div.active{color:#5175f4;font-weight:700}.ce-month-wrap>div.select{color:#fff;background-color:#5175f4}.ce-time-wrap{height:286px;padding:10px;display:none}.ce-time-wrap ::-webkit-scrollbar{width:0}.ce-time-wrap.active{display:flex}.ce-time-wrap li{list-style:none}.ce-time-wrap>li{text-align:center;width:33.3%;height:100%}.ce-time-wrap>li>span{display:inline-block;transform:translateY(-5px)}.ce-time-wrap>li>ol{border:1px solid #e2e2e2;height:calc(100% - 20px);position:relative;overflow-y:auto}.ce-time-wrap>li:first-child>ol{border-right:0}.ce-time-wrap>li:last-child>ol{border-left:0}.ce-time-wrap>li>ol>li{cursor:pointer;line-height:30px;transition:all .3s}.ce-time-wrap>li>ol>li:hover{background-color:#eaeaea}.ce-time-wrap>li>ol>li.active{color:#fff;background:#5175f4}.ce-date-menu{border-top:1px solid #e4e7ed;justify-content:flex-end;align-items:center;width:100%;height:28px;padding-top:10px;display:flex;position:relative}.ce-date-menu button{white-space:nowrap;cursor:pointer;color:#606266;appearance:none;text-align:center;box-sizing:border-box;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #dcdfe6;border-radius:3px;outline:none;margin:0 0 0 10px;padding:7px 15px;font-size:12px;font-weight:500;line-height:1;transition:all .1s;display:inline-block}.ce-date-menu button:hover{color:#5175f4;border-color:#5175f4}.ce-date-menu button.ce-date-menu__time{border:1px solid #0000;margin-left:0;position:absolute;left:0}.ce-date-menu button.ce-date-menu__time:hover{color:#5175f4}.ce-block-item{z-index:0;background-color:#fff;border:1px solid #ebecf0;position:absolute}.ce-block-item .ce-resizer-selection{width:100%;height:100%}.ce-block-item .ce-resizer-mask{z-index:1;background-color:#0000;position:absolute;inset:0}.ce-table-tool__row{background-color:#e2e6ed;border-radius:6.5px;width:12px;position:absolute;overflow:hidden}.ce-table-tool__row .ce-table-tool__row__item{cursor:pointer;width:100%;transition:all .3s;position:relative}.ce-table-tool__row .ce-table-tool__row__item:after{content:"";background-color:#c0c6cf;width:8px;height:1px;position:absolute;bottom:0;left:2px}.ce-table-tool__row .ce-table-tool__row__item:hover{background-color:#dadce0}.ce-table-tool__row .ce-table-tool__row__item:last-child:after{display:none}.ce-table-tool__quick__add{cursor:pointer;background-color:#e2e6ed;border-radius:50%;width:16px;height:16px;position:absolute}.ce-table-tool__quick__add:after{content:"+";color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-55%)}.ce-table-tool__select{cursor:pointer;border-radius:3px;width:16px;height:18px;position:absolute}.ce-table-tool__select:hover{background-color:#e2e6ed}.ce-table-tool__select:after{content:":::";color:#aaaaab;position:absolute;top:50%;left:50%;transform:translate(-75%,-50%)rotate(-90deg)}.ce-table-tool__col{background-color:#e2e6ed;border-radius:6.5px;height:12px;display:flex;position:absolute;overflow:hidden}.ce-table-tool__col .ce-table-tool__col__item{cursor:pointer;height:100%;transition:all .3s;position:relative}.ce-table-tool__col .ce-table-tool__col__item:after{content:"";z-index:1;background-color:#c0c6cf;width:1px;height:8px;position:absolute;top:2px;left:-1px}.ce-table-tool__col .ce-table-tool__col__item:hover{background-color:#dadce0}.ce-table-tool__col .ce-table-tool__col__item:first-child:after{display:none}.ce-table-tool__row .ce-table-tool__row__item.active,.ce-table-tool__col .ce-table-tool__col__item.active{background-color:#c4d7fa}.ce-table-tool__col .ce-table-tool__anchor{z-index:9;cursor:col-resize;width:10px;height:12px;position:absolute;right:-5px}.ce-table-tool__row .ce-table-tool__anchor{z-index:9;cursor:row-resize;width:12px;height:10px;position:absolute;bottom:-5px;left:0}.ce-table-anchor__line{z-index:9;border:1px dotted #000;position:absolute}.ce-table-tool__border{z-index:1;pointer-events:none;background:0 0;position:absolute}.ce-table-tool__border__row{cursor:row-resize;pointer-events:auto;position:absolute}.ce-table-tool__border__col{cursor:col-resize;pointer-events:auto;position:absolute}.ce-resizer-selection{pointer-events:none;border:1px solid;position:absolute}.ce-resizer-selection .resizer-handle{z-index:9;box-sizing:border-box;pointer-events:initial;border:2px solid #fff;border-radius:5px;width:10px;height:10px;position:absolute;box-shadow:0 1px 4px #0000004d}.ce-resizer-selection .handle-0{cursor:nw-resize}.ce-resizer-selection .handle-1{cursor:n-resize}.ce-resizer-selection .handle-2{cursor:ne-resize}.ce-resizer-selection .handle-3{cursor:e-resize}.ce-resizer-selection .handle-4{cursor:se-resize}.ce-resizer-selection .handle-5{cursor:s-resize}.ce-resizer-selection .handle-6{cursor:sw-resize}.ce-resizer-selection .handle-7{cursor:w-resize}.ce-resizer-size-view{white-space:nowrap;z-index:9;opacity:.9;background-color:#000;border-radius:4px;align-items:center;height:20px;padding:0 5px;display:flex;position:absolute;top:-30px;left:0}.ce-resizer-size-view span{color:#fff;font-size:12px}.ce-resizer-image{opacity:.5;position:absolute}.ce-image-previewer{z-index:1000;background:#f2f4f7;justify-content:center;align-items:center;width:100%;height:100%;animation:.3s previewerAnimation;display:flex;position:fixed;top:0;left:0;overflow:hidden}@keyframes previewerAnimation{0%{opacity:.1}to{opacity:1}}.ce-image-previewer .image-close{z-index:99;cursor:pointer;background:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M23.97%207l1.415%201.414-7.779%207.778%207.779%207.779-1.414%201.414-7.779-7.779-7.778%207.779L7%2023.97l7.778-7.779L7%208.414%208.414%207l7.778%207.778L23.971%207z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e") 0 0/100% 100% no-repeat;border-radius:50%;width:24px;height:24px;transition:all .3s;display:inline-block;position:absolute;top:30px;right:50px}.ce-image-previewer .image-close:hover{background-color:#e2e6ed}.ce-image-previewer .ce-image-container{position:relative}.ce-image-previewer .ce-image-container img{cursor:move;position:relative}.ce-image-previewer .ce-image-menu{z-index:99;justify-content:center;align-items:center;height:50px;display:flex;position:absolute;bottom:50px}.ce-image-previewer .ce-image-menu i{cursor:pointer;background-repeat:no-repeat;background-size:100% 100%;border-radius:50%;width:32px;height:32px;margin:0 8px;transition:all .3s;display:inline-block}.ce-image-previewer .ce-image-menu i:hover{background-color:#e2e6ed}.ce-image-previewer .ce-image-menu i.zoom-in{background-image:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%2014v-4h2v4h4v2h-4v4h-2v-4h-4v-2h4zm8.749%2010.163A11.952%2011.952%200%200115%2027C8.373%2027%203%2021.627%203%2015S8.373%203%2015%203s12%205.373%2012%2012c0%202.954-1.067%205.658-2.837%207.749l4.908%204.908-1.414%201.414-4.908-4.908zM15%2025c5.523%200%2010-4.477%2010-10S20.523%205%2015%205%205%209.477%205%2015s4.477%2010%2010%2010z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.zoom-out{background-image:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.749%2024.163A11.952%2011.952%200%200115%2027C8.373%2027%203%2021.627%203%2015S8.373%203%2015%203s12%205.373%2012%2012c0%202.954-1.067%205.658-2.837%207.749l4.908%204.908-1.414%201.414-4.908-4.908zM15%2025c5.523%200%2010-4.477%2010-10S20.523%205%2015%205%205%209.477%205%2015s4.477%2010%2010%2010zm-5-11h10v2H10v-2z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.rotate{background-image:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M16%204c6.627%200%2012%205.373%2012%2012a11.97%2011.97%200%2001-4%208.944V23h-.86A9.968%209.968%200%200026%2016c0-5.523-4.477-10-10-10S6%2010.477%206%2016c0%205.185%203.947%209.449%209%209.95v2.009C8.84%2027.451%204%2022.291%204%2016%204%209.373%209.373%204%2016%204z'%20fill-rule='nonzero'/%3e%3cpath%20d='M19.879%2027.328l1.767-6.717%204.95%204.95z'/%3e%3c/g%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.original-size{background-image:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%204h24v24H4V4zm2%202v20h20V6H6zm4%205h2v10h-2V11zm5%202h2v2h-2v-2zm0%204h2v2h-2v-2zm5-6h2v10h-2V11z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.image-download{background-image:url("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.5%2015v3.5h15V15H21v5H3v-5h1.5zm8.232-11.226v9.196l4.05-4.05%201.06%201.06-5.834%205.834-5.833-5.833%201.06-1.06%203.998%203.996V3.774h1.5z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu .image-navigate{justify-content:center;align-items:center;display:flex}.ce-image-previewer .ce-image-menu i.image-pre{background-image:url("data:image/svg+xml,%3csvg%20width='20'%20height='20'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5%204.063L6.875%2010l5.625%205.938'%20stroke='%233D4757'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.image-next{background-image:url("data:image/svg+xml,%3csvg%20width='20'%20height='20'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.5%204.063L13.125%2010%207.5%2015.938'%20stroke='%233D4757'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu .image-count{color:#000;font-size:20px}.ce-image-previewer .ce-image-menu i.disabled{cursor:not-allowed;opacity:.5}.ce-contextmenu-container{z-index:9;background:#fff;border:1px solid #e2e6ed;border-radius:2px;padding:4px;display:none;position:fixed;overflow:hidden auto;box-shadow:0 2px 12px #38383833}.ce-contextmenu-content{flex-direction:column;display:flex}.ce-contextmenu-content .ce-contextmenu-sub-item:after{content:"";background:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M0%200h16v16H0z'/%3e%3cg%20fill='%23767C85'%3e%3cpath%20d='M7%2012.243l-.707-.707%204.243-4.243.707.707z'/%3e%3cpath%20d='M6.293%204.464L7%203.757%2011.243%208l-.707.707z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");width:16px;height:16px;position:absolute;right:12px}.ce-contextmenu-content .ce-contextmenu-item{white-space:nowrap;box-sizing:border-box;cursor:pointer;align-items:center;min-width:140px;height:30px;padding:0 32px 0 16px;display:flex}.ce-contextmenu-content .ce-contextmenu-item.hover{background:#1937580a}.ce-contextmenu-content .ce-contextmenu-item span{color:#3d4757;white-space:nowrap;text-overflow:ellipsis;max-width:300px;font-size:12px;overflow:hidden}.ce-contextmenu-content .ce-contextmenu-item span.ce-shortcut{color:#767c85;text-align:right;flex:1;height:30px;margin-left:20px;line-height:30px}.ce-contextmenu-content .ce-contextmenu-item i{vertical-align:middle;background-repeat:no-repeat;background-size:100% 100%;flex-shrink:0;width:16px;height:16px;margin-right:8px;display:inline-block}.ce-contextmenu-divider{background-color:#e2e6ed;height:1px;margin:4px 16px}.ce-contextmenu-print{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M12%204h-1V2H5v2H4V2a1%201%200%20011-1h6a1%201%200%20011%201v2zm0%205v4a1%201%200%2001-1%201H5a1%201%200%2001-1-1V9h1v4h6V9h1z'/%3e%3cpath%20d='M12%2012v-1h2V5H2v6h2v1H2a1%201%200%2001-1-1V5a1%201%200%20011-1h12a1%201%200%20011%201v6a1%201%200%2001-1%201h-2z'/%3e%3cpath%20d='M3%208h10v1H3zm8-2h2v1h-2z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-image{background-image:url("data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_0-公共_x2F_02工具栏_x2F_插入图片-16px-'%3e%3cg%20id='Group-19'%20transform='translate(1%201)'%3e%3cpath%20id='Combined-Shape'%20class='st0'%20d='M1%200h12c.6%200%201%20.4%201%201v11c0%20.6-.4%201-1%201H1c-.6%200-1-.4-1-1V1c0-.6.4-1%201-1zm0%201v11h12V1H1z'/%3e%3ccircle%20id='椭圆形'%20class='st0'%20cx='10'%20cy='4'%20r='1'/%3e%3cpath%20id='Path'%20class='st0'%20d='M8.5%2011.2l-4-4.1L1%2010.7V9.2c1.7-1.6%202.7-2.5%203-2.8.4-.5.7-.4%201%200L8.5%2010%2011%207.3c.4-.5.6-.5%201-.1l2%202.8v1.5l-2.5-3.4-3%203.1z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-image-change{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(2%204)'%20fill='%233D4757'%3e%3ccircle%20fill-rule='nonzero'%20cx='3'%20cy='1'%20r='1'/%3e%3cpath%20d='M7.473%208.223L3.47%204.107%200%207.667v-1.5C1.715%204.6%202.707%203.664%202.975%203.358c.402-.457.651-.39%201.042%200L7.473%207%209.96%204.349c.414-.462.62-.462%201.011-.071L13%207.06v1.5l-2.51-3.41-3.017%203.072z'/%3e%3c/g%3e%3cpath%20d='M6%201.5H1.5v12h13v-4V13a.5.5%200%2001-.5.5H2a.5.5%200%2001-.5-.5V2a.5.5%200%2001.5-.5h4zm8.5%208V6l-.5.5h1l-.5-.5v3.5zM6%201.5h4L9.5%201v1l.5-.5H6z'%20stroke='%233D4757'/%3e%3cpath%20d='M13.085%201.316l-3.814%204a1%201%200%20001.458%201.368l3.815-4a1%201%200%2010-1.459-1.368z'%20fill='%233D4757'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-row-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20stroke='%233D4757'%20d='M8.5%205.5h6v4h-6z'/%3e%3cpath%20fill='%233D4757'%20d='M4%207v1h2V7zm-3%20.5L4%205v5zM1%201h12v1H1zm0%2012h12v1H1z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-top-row{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M8%205H7v3h1zm-.5-3L10%205H5z'/%3e%3crect%20stroke='%233D4757'%20x='1.5'%20y='10.5'%20width='12'%20height='3'%20rx='1'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-bottom-row{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M7%2011h1V8H7zm.5%203L5%2011h5z'/%3e%3crect%20stroke='%233D4757'%20x='1.5'%20y='2.5'%20width='12'%20height='3'%20rx='1'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-left-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M11%207v1h3V7zm-3%20.5L11%205v5z'/%3e%3crect%20stroke='%233D4757'%20transform='rotate(90%204%207.5)'%20x='-2'%20y='6'%20width='12'%20height='3'%20rx='1'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-right-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M5%208V7H2v1zm3-.5L5%2010V5z'/%3e%3crect%20stroke='%233D4757'%20transform='rotate(90%2012%207.5)'%20x='6'%20y='6'%20width='12'%20height='3'%20rx='1'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-delete-row-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20stroke='%23929AA8'%20d='M8.5%206.5h6v2h-6z'/%3e%3cpath%20fill='%233D4757'%20d='M2%2012h11v1H2zM2%202h11v1H2zm.63%203L7%209.35l-.635.65L2%205.63z'/%3e%3cpath%20fill='%233D4757'%20d='M2%209.363L6.355%205%207%205.707%202.695%2010z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-delete-row{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20stroke='%23929AA8'%20d='M8.5%205.5h6v4h-6z'/%3e%3cpath%20fill='%233D4757'%20d='M1%2013h12v1H1zM1%201h12v1H1zm0%204h1v1H1zm1%201h1v1H2zm1%201h1v1H3zm1-1h1v1H4zm1-1h1v1H5zM4%208h1v1H4zM2%208h1v1H2zm3%201h1v1H5zM1%209h1v1H1z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-delete-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20stroke='%23929AA8'%20d='M5.5%207.5v-6h4v6z'/%3e%3cpath%20fill='%233D4757'%20d='M13%2015V3h1v12zM1%2015V3h1v12zm4%200v-1h1v1zm1-1v-1h1v1zm1-1v-1h1v1zm-1-1v-1h1v1zm-1-1v-1h1v1zm3%201v-1h1v1zm0%202v-1h1v1zm1-3v-1h1v1zm0%204v-1h1v1z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-delete-table{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M14%2013h-1v-3H2v3H1v-3a1%201%200%20011-1h11a1%201%200%20011%201v3z'%20fill-rule='nonzero'/%3e%3cpath%20d='M5.625%202L10%206.375%209.375%207%205%202.625z'/%3e%3cpath%20d='M5%206.375L9.375%202l.625.625L5.625%207z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-merge-cell{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M6%201v1H2v11h4v1H2a1%201%200%2001-1-1V2a1%201%200%20011-1h4zm3%200h4a1%201%200%20011%201v11a1%201%200%2001-1%201H9v-1h4V2H9V1z'/%3e%3cpath%20fill-rule='nonzero'%20d='M6%201h1v4H6zm2%200h1v4H8z'/%3e%3cpath%20d='M8%207.5L10%206v3zm-1%200L5%206v3z'/%3e%3cpath%20d='M9%207h3v1H9zM3%207h3v1H3z'/%3e%3cpath%20fill-rule='nonzero'%20d='M8%2010h1v4H8zm-2%200h1v4H6z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-merge-cancel-cell{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M6%201v1H2v11h4v1H2a1%201%200%2001-1-1V2a1%201%200%20011-1h4zm3%200h4a1%201%200%20011%201v11a1%201%200%2001-1%201H9v-1h4V2H9V1z'/%3e%3cpath%20fill-rule='nonzero'%20d='M6%201h1v4H6zm2%200h1v4H8z'/%3e%3cpath%20d='M3%207.5L5%206v3zm9%200L10%206v3z'/%3e%3cpath%20d='M4%207h3v1H4zm4%200h3v1H8z'/%3e%3cpath%20fill-rule='nonzero'%20d='M8%2010h1v4H8zm-2%200h1v4H6z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-vertical-align{background-image:url("data:image/svg+xml,%3csvg%20height='16'%20viewBox='0%200%2016%2016'%20width='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2013h12v1H2zm0-3h8v1H2zm0-3h12v1H2zm0-6h12v1H2zm0%203h8v1H2z'%20fill='%233d4757'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.ce-contextmenu-vertical-align-top{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%208H7v6h1zm-.5-3L10%208H5zM2%203h11v1H2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.ce-contextmenu-vertical-align-middle{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%2012H7v3h1zm-.5-3l2.5%203H5zM7%203h1V0H7zm.5%203L5%203h5zM2%207h11v1H2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.ce-contextmenu-vertical-align-bottom{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%209h1V3H7zm.5%203L5%209h5zM2%2013h11v1H2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.ce-contextmenu-border-all{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%233D4757'/%3e%3cpath%20fill='%233D4757'%20d='M3%208h11v1H3z'/%3e%3cpath%20fill='%233D4757'%20d='M9%203v11H8V3z'/%3e%3c/svg%3e")}.ce-contextmenu-border-empty{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13%203h-1V2h1a1%201%200%20011%201v1h-1V3zm-3-1v1H8.5v2h-1V3H6V2h4zM4%202v1H3v1H2V3a1%201%200%20011-1h1zM2%206h1v1.5h2v1H3V10H2V6zm0%206h1v1h1v1H3a1%201%200%2001-1-1v-1zm4%202v-1h1.5v-2h1v2H10v1H6zm6%200v-1h1v-1h1v1a1%201%200%2001-1%201h-1zm2-4h-1V8.5h-2v-1h2V6h1v4zM8.5%207.5v-1h-1v1h-1v1h1v1h1v-1h1v-1h-1z'%20fill='%23AAACB0'/%3e%3c/svg%3e")}.ce-contextmenu-border-dash{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13%203h-1V2h1a1%201%200%20011%201v1h-1V3zm-3-1v1H8.5v2h-1V3H6V2h4zM4%202v1H3v1H2V3a1%201%200%20011-1h1zM2%206h1v1.5h2v1H3V10H2V6zm0%206h1v1h1v1H3a1%201%200%2001-1-1v-1zm4%202v-1h1.5v-2h1v2H10v1H6zm6%200v-1h1v-1h1v1a1%201%200%2001-1%201h-1zm2-4h-1V8.5h-2v-1h2V6h1v4zM8.5%207.5v-1h-1v1h-1v1h1v1h1v-1h1v-1h-1z'%20fill='%23000000'/%3e%3c/svg%3e")}.ce-contextmenu-border-external{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%233D4757'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%205V3H8v2h1zm0%209v-2H8v2h1zM5%208H3v1h2V8zm9%200h-2v1h2V8zM9%207v1h1v1H9v1H8V9H7V8h1V7h1z'%20fill='%23AAACB0'/%3e%3c/svg%3e")}.ce-contextmenu-border-internal{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%205V3H8v2h1zm0%209v-2H8v2h1zM5%208H3v1h2V8zm9%200h-2v1h2V8zM9%207v1h1v1H9v1H8V9H7V8h1V7h1z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-contextmenu-border-td{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20d='M8.5%202.5%20v6%20h-6'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-top{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20stroke-width='2'%20d='M2.5%203%20h12'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-left{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20stroke-width='2'%20d='M3%203%20v11'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-bottom{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20stroke-width='2'%20d='M2.5%2014%20h12'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-right{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20stroke-width='2'%20d='M14%203%20v11'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-forward{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'%20/%3e%3cpath%20stroke='%233D4757'%20d='M14%203%20l-11%2011'%20/%3e%3c/svg%3e")}.ce-contextmenu-border-td-back{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'%20/%3e%3cpath%20stroke='%233D4757'%20d='M3%203%20l11%2011'%20/%3e%3c/svg%3e")}.ce-hyperlink-popup{color:#3d4757;z-index:1;text-align:center;background:#fff;border-radius:2px;padding:12px 16px;display:none;position:absolute;box-shadow:0 2px 12px #626b8433}.ce-hyperlink-popup a{white-space:nowrap;text-overflow:ellipsis;cursor:pointer;color:#00f;border-bottom-style:solid;border-bottom-width:1px;min-width:100px;max-width:300px;font-size:12px;text-decoration:none;display:inline-block;overflow:hidden}.ce-zone-indicator>div{color:#000;transform-origin:0 0;background:#dae7fc;padding:3px 6px;font-size:12px;position:absolute}.ce-zone-indicator-border__top,.ce-zone-indicator-border__bottom,.ce-zone-indicator-border__left,.ce-zone-indicator-border__right{z-index:0;display:block;position:absolute}.ce-zone-indicator-border__top{border-top:2px dashed #eee}.ce-zone-indicator-border__bottom{border-top:2px dashed #eee;width:100%}.ce-zone-indicator-border__left{border-left:2px dashed #eee}.ce-zone-indicator-border__right{border-right:2px dashed #eee}.ce-zone-tip{white-space:nowrap;opacity:.9;z-index:9;-webkit-user-select:none;user-select:none;pointer-events:none;background-color:#000;border-radius:4px;outline:none;align-items:center;height:30px;padding:0 5px;transition:all .3s;display:none;position:fixed;transform:translate(10px,10px)}.ce-zone-tip.show{display:flex}.ce-zone-tip span{color:#fff;font-size:12px}.ce-magnifier{pointer-events:none;z-index:9999;border-radius:50%;display:none;position:fixed;box-shadow:0 4px 12px #00000040}.ce-inputarea{letter-spacing:0;z-index:-1;resize:none;color:#0000;-webkit-user-select:none;user-select:none;caret-color:#0000;background-color:#0000;border:none;outline:none;width:100px;min-width:0;height:30px;min-height:0;margin:0;padding:0;font-size:12px;position:absolute;top:0;left:0;overflow:hidden}.ce-cursor{pointer-events:none;background-color:#000;outline:none;width:1px;height:20px;position:absolute;left:0;right:0}.ce-cursor.ce-cursor--animation{animation-name:cursorAnimation;animation-duration:1s;animation-iteration-count:infinite}@keyframes cursorAnimation{0%{opacity:1}13%{opacity:0}50%{opacity:0}63%{opacity:1}to{opacity:1}}.ce-float-image{opacity:.5;pointer-events:none;position:absolute}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`id`,`canvas-editor-style`),e.appendChild(document.createTextNode(`.ce-select-control-popup{z-index:1;box-sizing:border-box;background-color:#fff;border:1px solid #e4e7ed;border-radius:4px;min-width:69px;max-width:160px;max-height:225px;margin:5px 0;position:absolute;overflow-y:auto;box-shadow:0 2px 12px #0000001a}.ce-select-control-popup ul{box-sizing:border-box;margin:0;padding:3px 0;list-style:none}.ce-select-control-popup ul li{white-space:nowrap;text-overflow:ellipsis;color:#666;box-sizing:border-box;cursor:pointer;height:36px;padding:0 20px;font-size:13px;line-height:36px;position:relative;overflow:hidden}.ce-select-control-popup ul li:hover{background-color:#eef2fd}.ce-select-control-popup ul li.active{color:var(--COLOR-HOVER,#5175f4);font-weight:700}.ce-calculator{z-index:1;box-sizing:border-box;background-color:#fff;border:1px solid #e4e7ed;border-radius:4px;width:200px;margin:5px 0;padding:8px;position:absolute;box-shadow:0 2px 12px #0000001a}.ce-calculator-display{text-align:right;box-sizing:border-box;text-overflow:ellipsis;background-color:#f5f7fa;border:1px solid #e4e7ed;border-radius:4px;width:100%;height:40px;margin-bottom:8px;padding:0 10px;font-size:16px;line-height:40px;overflow:hidden}.ce-calculator-buttons{grid-template-columns:repeat(4,1fr);gap:4px;display:grid}.ce-calculator-button{cursor:pointer;box-sizing:border-box;background-color:#fff;border:1px solid #e4e7ed;border-radius:4px;width:100%;height:36px;font-size:14px;transition:all .2s}.ce-calculator-button:hover{background-color:#eef2fd;border-color:#c6d1ff}.ce-calculator-button:active{background-color:#e1e8ff}.ce-calculator-button.operator{background-color:#f5f7fa}.ce-calculator-button.operator:hover{background-color:#eef2fd}.ce-calculator-button.equal{background-color:var(--COLOR-HOVER,#5175f4);color:#fff;border-color:var(--COLOR-HOVER,#5175f4)}.ce-calculator-button.equal:hover{background-color:var(--COLOR-HOVER,#6a84ff);border-color:var(--COLOR-HOVER,#6a84ff)}.ce-calculator-button.utility{background-color:#f0f2f5}.ce-calculator-button.utility:hover{background-color:#e6e8eb}.ce-date-container{z-index:1;color:#606266;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #e4e7ed;border-radius:4px;width:300px;padding:10px;display:none;position:absolute;left:0;right:0;overflow:hidden;box-shadow:0 2px 12px #0000001a}.ce-date-container.active{display:block}.ce-date-wrap{display:none}.ce-date-wrap.active{display:block}.ce-date-wrap.year-mode .ce-date-week,.ce-date-wrap.year-mode .ce-date-day,.ce-date-wrap.month-mode .ce-date-week,.ce-date-wrap.month-mode .ce-date-day{display:none}.ce-date-title{text-align:center;color:#606266;justify-content:center;align-items:center;font-size:16px;display:flex}.ce-date-title>span{display:inline-block}.ce-date-title>span:not(.ce-date-title__now){cursor:pointer;font-family:cursive}.ce-date-title>span:not(.ce-date-title__now):hover{color:#5175f4}.ce-date-title .ce-date-title__pre-year,.ce-date-title .ce-date-title__pre-month{width:15%}.ce-date-title .ce-date-title__now{width:40%}.ce-date-title .ce-date-title__year-label,.ce-date-title .ce-date-title__month-label{cursor:pointer;white-space:nowrap}.ce-date-title .ce-date-title__year-label:hover,.ce-date-title .ce-date-title__month-label:hover{color:#5175f4}.ce-date-title .ce-date-title__next-year,.ce-date-title .ce-date-title__next-month{width:15%}.ce-date-week{border-bottom:1px solid #e4e7ed;justify-content:center;width:100%;margin-top:15px;padding-bottom:5px;display:flex}.ce-date-week>span{text-align:center;color:#606266;width:14.2857%;font-size:14px;list-style:none}.ce-date-day{flex-wrap:wrap;align-items:center;width:100%;margin-top:5px;display:flex}.ce-date-day>div{text-align:center;color:#606266;cursor:pointer;border-radius:4px;width:14.2857%;height:40px;font-size:14px;line-height:40px}.ce-date-day>div:hover{color:#5175f4;opacity:.8}.ce-date-day>div.active{color:#5175f4;font-weight:700}.ce-date-day>div.disable{color:#c0c4cc}.ce-date-day>div.select{color:#fff;background-color:#5175f4}.ce-year-wrap{flex-wrap:wrap;align-items:center;width:100%;min-height:280px;margin-top:15px;display:none}.ce-year-wrap.active{display:flex}.ce-year-wrap>div{text-align:center;color:#606266;cursor:pointer;border-radius:4px;width:33.3333%;height:60px;font-size:14px;line-height:60px}.ce-year-wrap>div:hover{color:#5175f4;opacity:.8}.ce-year-wrap>div.active{color:#5175f4;font-weight:700}.ce-year-wrap>div.select{color:#fff;background-color:#5175f4}.ce-month-wrap{flex-wrap:wrap;align-items:center;width:100%;min-height:280px;margin-top:15px;display:none}.ce-month-wrap.active{display:flex}.ce-month-wrap>div{text-align:center;color:#606266;cursor:pointer;border-radius:4px;width:33.3333%;height:60px;font-size:14px;line-height:60px}.ce-month-wrap>div:hover{color:#5175f4;opacity:.8}.ce-month-wrap>div.active{color:#5175f4;font-weight:700}.ce-month-wrap>div.select{color:#fff;background-color:#5175f4}.ce-time-wrap{height:286px;padding:10px;display:none}.ce-time-wrap ::-webkit-scrollbar{width:0}.ce-time-wrap.active{display:flex}.ce-time-wrap li{list-style:none}.ce-time-wrap>li{text-align:center;width:33.3%;height:100%}.ce-time-wrap>li>span{display:inline-block;transform:translateY(-5px)}.ce-time-wrap>li>ol{border:1px solid #e2e2e2;height:calc(100% - 20px);position:relative;overflow-y:auto}.ce-time-wrap>li:first-child>ol{border-right:0}.ce-time-wrap>li:last-child>ol{border-left:0}.ce-time-wrap>li>ol>li{cursor:pointer;line-height:30px;transition:all .3s}.ce-time-wrap>li>ol>li:hover{background-color:#eaeaea}.ce-time-wrap>li>ol>li.active{color:#fff;background:#5175f4}.ce-date-menu{border-top:1px solid #e4e7ed;justify-content:flex-end;align-items:center;width:100%;height:28px;padding-top:10px;display:flex;position:relative}.ce-date-menu button{white-space:nowrap;cursor:pointer;color:#606266;appearance:none;text-align:center;box-sizing:border-box;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #dcdfe6;border-radius:3px;outline:none;margin:0 0 0 10px;padding:7px 15px;font-size:12px;font-weight:500;line-height:1;transition:all .1s;display:inline-block}.ce-date-menu button:hover{color:#5175f4;border-color:#5175f4}.ce-date-menu button.ce-date-menu__time{border:1px solid #0000;margin-left:0;position:absolute;left:0}.ce-date-menu button.ce-date-menu__time:hover{color:#5175f4}.ce-block-item{z-index:0;background-color:#fff;border:1px solid #ebecf0;position:absolute}.ce-block-item .ce-resizer-selection{width:100%;height:100%}.ce-block-item .ce-resizer-mask{z-index:1;background-color:#0000;position:absolute;inset:0}.ce-table-tool__row{background-color:#e2e6ed;border-radius:6.5px;width:12px;position:absolute;overflow:hidden}.ce-table-tool__row .ce-table-tool__row__item{cursor:pointer;width:100%;transition:all .3s;position:relative}.ce-table-tool__row .ce-table-tool__row__item:after{content:"";background-color:#c0c6cf;width:8px;height:1px;position:absolute;bottom:0;left:2px}.ce-table-tool__row .ce-table-tool__row__item:hover{background-color:#dadce0}.ce-table-tool__row .ce-table-tool__row__item:last-child:after{display:none}.ce-table-tool__quick__add{cursor:pointer;background-color:#e2e6ed;border-radius:50%;width:16px;height:16px;position:absolute}.ce-table-tool__quick__add:after{content:"+";color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-55%)}.ce-table-tool__select{cursor:pointer;border-radius:3px;width:16px;height:18px;position:absolute}.ce-table-tool__select:hover{background-color:#e2e6ed}.ce-table-tool__select:after{content:":::";color:#aaaaab;position:absolute;top:50%;left:50%;transform:translate(-75%,-50%)rotate(-90deg)}.ce-table-tool__col{background-color:#e2e6ed;border-radius:6.5px;height:12px;display:flex;position:absolute;overflow:hidden}.ce-table-tool__col .ce-table-tool__col__item{cursor:pointer;height:100%;transition:all .3s;position:relative}.ce-table-tool__col .ce-table-tool__col__item:after{content:"";z-index:1;background-color:#c0c6cf;width:1px;height:8px;position:absolute;top:2px;left:-1px}.ce-table-tool__col .ce-table-tool__col__item:hover{background-color:#dadce0}.ce-table-tool__col .ce-table-tool__col__item:first-child:after{display:none}.ce-table-tool__row .ce-table-tool__row__item.active,.ce-table-tool__col .ce-table-tool__col__item.active{background-color:#c4d7fa}.ce-table-tool__col .ce-table-tool__anchor{z-index:9;cursor:col-resize;width:10px;height:12px;position:absolute;right:-5px}.ce-table-tool__row .ce-table-tool__anchor{z-index:9;cursor:row-resize;width:12px;height:10px;position:absolute;bottom:-5px;left:0}.ce-table-anchor__line{z-index:9;border:1px dotted #000;position:absolute}.ce-table-tool__border{z-index:1;pointer-events:none;background:0 0;position:absolute}.ce-table-tool__border__row{cursor:row-resize;pointer-events:auto;position:absolute}.ce-table-tool__border__col{cursor:col-resize;pointer-events:auto;position:absolute}.ce-resizer-selection{pointer-events:none;border:1px solid;position:absolute}.ce-resizer-selection .resizer-handle{z-index:9;box-sizing:border-box;pointer-events:initial;border:2px solid #fff;border-radius:5px;width:10px;height:10px;position:absolute;box-shadow:0 1px 4px #0000004d}.ce-resizer-selection .handle-0{cursor:nw-resize}.ce-resizer-selection .handle-1{cursor:n-resize}.ce-resizer-selection .handle-2{cursor:ne-resize}.ce-resizer-selection .handle-3{cursor:e-resize}.ce-resizer-selection .handle-4{cursor:se-resize}.ce-resizer-selection .handle-5{cursor:s-resize}.ce-resizer-selection .handle-6{cursor:sw-resize}.ce-resizer-selection .handle-7{cursor:w-resize}.ce-resizer-size-view{white-space:nowrap;z-index:9;opacity:.9;background-color:#000;border-radius:4px;align-items:center;height:20px;padding:0 5px;display:flex;position:absolute;top:-30px;left:0}.ce-resizer-size-view span{color:#fff;font-size:12px}.ce-resizer-image{opacity:.5;position:absolute}.ce-image-previewer{z-index:1000;background:#f2f4f7;justify-content:center;align-items:center;width:100%;height:100%;animation:.3s previewerAnimation;display:flex;position:fixed;top:0;left:0;overflow:hidden}@keyframes previewerAnimation{0%{opacity:.1}to{opacity:1}}.ce-image-previewer .image-close{z-index:99;cursor:pointer;background:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M23.97%207l1.415%201.414-7.779%207.778%207.779%207.779-1.414%201.414-7.779-7.779-7.778%207.779L7%2023.97l7.778-7.779L7%208.414%208.414%207l7.778%207.778L23.971%207z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e") 0 0/100% 100% no-repeat;border-radius:50%;width:24px;height:24px;transition:all .3s;display:inline-block;position:absolute;top:30px;right:50px}.ce-image-previewer .image-close:hover{background-color:#e2e6ed}.ce-image-previewer .ce-image-container{position:relative}.ce-image-previewer .ce-image-container img{cursor:move;position:relative}.ce-image-previewer .ce-image-menu{z-index:99;justify-content:center;align-items:center;height:50px;display:flex;position:absolute;bottom:50px}.ce-image-previewer .ce-image-menu i{cursor:pointer;background-repeat:no-repeat;background-size:100% 100%;border-radius:50%;width:32px;height:32px;margin:0 8px;transition:all .3s;display:inline-block}.ce-image-previewer .ce-image-menu i:hover{background-color:#e2e6ed}.ce-image-previewer .ce-image-menu i.zoom-in{background-image:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%2014v-4h2v4h4v2h-4v4h-2v-4h-4v-2h4zm8.749%2010.163A11.952%2011.952%200%200115%2027C8.373%2027%203%2021.627%203%2015S8.373%203%2015%203s12%205.373%2012%2012c0%202.954-1.067%205.658-2.837%207.749l4.908%204.908-1.414%201.414-4.908-4.908zM15%2025c5.523%200%2010-4.477%2010-10S20.523%205%2015%205%205%209.477%205%2015s4.477%2010%2010%2010z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.zoom-out{background-image:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.749%2024.163A11.952%2011.952%200%200115%2027C8.373%2027%203%2021.627%203%2015S8.373%203%2015%203s12%205.373%2012%2012c0%202.954-1.067%205.658-2.837%207.749l4.908%204.908-1.414%201.414-4.908-4.908zM15%2025c5.523%200%2010-4.477%2010-10S20.523%205%2015%205%205%209.477%205%2015s4.477%2010%2010%2010zm-5-11h10v2H10v-2z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.rotate{background-image:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M16%204c6.627%200%2012%205.373%2012%2012a11.97%2011.97%200%2001-4%208.944V23h-.86A9.968%209.968%200%200026%2016c0-5.523-4.477-10-10-10S6%2010.477%206%2016c0%205.185%203.947%209.449%209%209.95v2.009C8.84%2027.451%204%2022.291%204%2016%204%209.373%209.373%204%2016%204z'%20fill-rule='nonzero'/%3e%3cpath%20d='M19.879%2027.328l1.767-6.717%204.95%204.95z'/%3e%3c/g%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.original-size{background-image:url("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%204h24v24H4V4zm2%202v20h20V6H6zm4%205h2v10h-2V11zm5%202h2v2h-2v-2zm0%204h2v2h-2v-2zm5-6h2v10h-2V11z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.image-download{background-image:url("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.5%2015v3.5h15V15H21v5H3v-5h1.5zm8.232-11.226v9.196l4.05-4.05%201.06%201.06-5.834%205.834-5.833-5.833%201.06-1.06%203.998%203.996V3.774h1.5z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu .image-navigate{justify-content:center;align-items:center;display:flex}.ce-image-previewer .ce-image-menu i.image-pre{background-image:url("data:image/svg+xml,%3csvg%20width='20'%20height='20'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5%204.063L6.875%2010l5.625%205.938'%20stroke='%233D4757'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu i.image-next{background-image:url("data:image/svg+xml,%3csvg%20width='20'%20height='20'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.5%204.063L13.125%2010%207.5%2015.938'%20stroke='%233D4757'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e")}.ce-image-previewer .ce-image-menu .image-count{color:#000;font-size:20px}.ce-image-previewer .ce-image-menu i.disabled{cursor:not-allowed;opacity:.5}.ce-contextmenu-container{z-index:9;background:#fff;border:1px solid #e2e6ed;border-radius:2px;padding:4px;display:none;position:fixed;overflow:hidden auto;box-shadow:0 2px 12px #38383833}.ce-contextmenu-content{flex-direction:column;display:flex}.ce-contextmenu-content .ce-contextmenu-sub-item:after{content:"";background:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M0%200h16v16H0z'/%3e%3cg%20fill='%23767C85'%3e%3cpath%20d='M7%2012.243l-.707-.707%204.243-4.243.707.707z'/%3e%3cpath%20d='M6.293%204.464L7%203.757%2011.243%208l-.707.707z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");width:16px;height:16px;position:absolute;right:12px}.ce-contextmenu-content .ce-contextmenu-item{white-space:nowrap;box-sizing:border-box;cursor:pointer;align-items:center;min-width:140px;height:30px;padding:0 32px 0 16px;display:flex}.ce-contextmenu-content .ce-contextmenu-item.hover{background:#1937580a}.ce-contextmenu-content .ce-contextmenu-item span{color:#3d4757;white-space:nowrap;text-overflow:ellipsis;max-width:300px;font-size:12px;overflow:hidden}.ce-contextmenu-content .ce-contextmenu-item span.ce-shortcut{color:#767c85;text-align:right;flex:1;height:30px;margin-left:20px;line-height:30px}.ce-contextmenu-content .ce-contextmenu-item i{vertical-align:middle;background-repeat:no-repeat;background-size:100% 100%;flex-shrink:0;width:16px;height:16px;margin-right:8px;display:inline-block}.ce-contextmenu-divider{background-color:#e2e6ed;height:1px;margin:4px 16px}.ce-contextmenu-print{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M12%204h-1V2H5v2H4V2a1%201%200%20011-1h6a1%201%200%20011%201v2zm0%205v4a1%201%200%2001-1%201H5a1%201%200%2001-1-1V9h1v4h6V9h1z'/%3e%3cpath%20d='M12%2012v-1h2V5H2v6h2v1H2a1%201%200%2001-1-1V5a1%201%200%20011-1h12a1%201%200%20011%201v6a1%201%200%2001-1%201h-2z'/%3e%3cpath%20d='M3%208h10v1H3zm8-2h2v1h-2z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-image{background-image:url("data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20x='0'%20y='0'%20viewBox='0%200%2016%2016'%20xml:space='preserve'%3e%3cstyle%3e.st0{fill:%233d4757}%3c/style%3e%3cg%20id='_x30_0-公共_x2F_02工具栏_x2F_插入图片-16px-'%3e%3cg%20id='Group-19'%20transform='translate(1%201)'%3e%3cpath%20id='Combined-Shape'%20class='st0'%20d='M1%200h12c.6%200%201%20.4%201%201v11c0%20.6-.4%201-1%201H1c-.6%200-1-.4-1-1V1c0-.6.4-1%201-1zm0%201v11h12V1H1z'/%3e%3ccircle%20id='椭圆形'%20class='st0'%20cx='10'%20cy='4'%20r='1'/%3e%3cpath%20id='Path'%20class='st0'%20d='M8.5%2011.2l-4-4.1L1%2010.7V9.2c1.7-1.6%202.7-2.5%203-2.8.4-.5.7-.4%201%200L8.5%2010%2011%207.3c.4-.5.6-.5%201-.1l2%202.8v1.5l-2.5-3.4-3%203.1z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-image-change{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(2%204)'%20fill='%233D4757'%3e%3ccircle%20fill-rule='nonzero'%20cx='3'%20cy='1'%20r='1'/%3e%3cpath%20d='M7.473%208.223L3.47%204.107%200%207.667v-1.5C1.715%204.6%202.707%203.664%202.975%203.358c.402-.457.651-.39%201.042%200L7.473%207%209.96%204.349c.414-.462.62-.462%201.011-.071L13%207.06v1.5l-2.51-3.41-3.017%203.072z'/%3e%3c/g%3e%3cpath%20d='M6%201.5H1.5v12h13v-4V13a.5.5%200%2001-.5.5H2a.5.5%200%2001-.5-.5V2a.5.5%200%2001.5-.5h4zm8.5%208V6l-.5.5h1l-.5-.5v3.5zM6%201.5h4L9.5%201v1l.5-.5H6z'%20stroke='%233D4757'/%3e%3cpath%20d='M13.085%201.316l-3.814%204a1%201%200%20001.458%201.368l3.815-4a1%201%200%2010-1.459-1.368z'%20fill='%233D4757'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-row-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20stroke='%233D4757'%20d='M8.5%205.5h6v4h-6z'/%3e%3cpath%20fill='%233D4757'%20d='M4%207v1h2V7zm-3%20.5L4%205v5zM1%201h12v1H1zm0%2012h12v1H1z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-top-row{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M8%205H7v3h1zm-.5-3L10%205H5z'/%3e%3crect%20stroke='%233D4757'%20x='1.5'%20y='10.5'%20width='12'%20height='3'%20rx='1'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-bottom-row{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M7%2011h1V8H7zm.5%203L5%2011h5z'/%3e%3crect%20stroke='%233D4757'%20x='1.5'%20y='2.5'%20width='12'%20height='3'%20rx='1'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-left-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M11%207v1h3V7zm-3%20.5L11%205v5z'/%3e%3crect%20stroke='%233D4757'%20transform='rotate(90%204%207.5)'%20x='-2'%20y='6'%20width='12'%20height='3'%20rx='1'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-insert-right-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20fill='%233D4757'%20d='M5%208V7H2v1zm3-.5L5%2010V5z'/%3e%3crect%20stroke='%233D4757'%20transform='rotate(90%2012%207.5)'%20x='6'%20y='6'%20width='12'%20height='3'%20rx='1'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-delete-row-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20stroke='%23929AA8'%20d='M8.5%206.5h6v2h-6z'/%3e%3cpath%20fill='%233D4757'%20d='M2%2012h11v1H2zM2%202h11v1H2zm.63%203L7%209.35l-.635.65L2%205.63z'/%3e%3cpath%20fill='%233D4757'%20d='M2%209.363L6.355%205%207%205.707%202.695%2010z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-delete-row{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20stroke='%23929AA8'%20d='M8.5%205.5h6v4h-6z'/%3e%3cpath%20fill='%233D4757'%20d='M1%2013h12v1H1zM1%201h12v1H1zm0%204h1v1H1zm1%201h1v1H2zm1%201h1v1H3zm1-1h1v1H4zm1-1h1v1H5zM4%208h1v1H4zM2%208h1v1H2zm3%201h1v1H5zM1%209h1v1H1z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-delete-col{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20stroke='%23929AA8'%20d='M5.5%207.5v-6h4v6z'/%3e%3cpath%20fill='%233D4757'%20d='M13%2015V3h1v12zM1%2015V3h1v12zm4%200v-1h1v1zm1-1v-1h1v1zm1-1v-1h1v1zm-1-1v-1h1v1zm-1-1v-1h1v1zm3%201v-1h1v1zm0%202v-1h1v1zm1-3v-1h1v1zm0%204v-1h1v1z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-delete-table{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M14%2013h-1v-3H2v3H1v-3a1%201%200%20011-1h11a1%201%200%20011%201v3z'%20fill-rule='nonzero'/%3e%3cpath%20d='M5.625%202L10%206.375%209.375%207%205%202.625z'/%3e%3cpath%20d='M5%206.375L9.375%202l.625.625L5.625%207z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-merge-cell{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M6%201v1H2v11h4v1H2a1%201%200%2001-1-1V2a1%201%200%20011-1h4zm3%200h4a1%201%200%20011%201v11a1%201%200%2001-1%201H9v-1h4V2H9V1z'/%3e%3cpath%20fill-rule='nonzero'%20d='M6%201h1v4H6zm2%200h1v4H8z'/%3e%3cpath%20d='M8%207.5L10%206v3zm-1%200L5%206v3z'/%3e%3cpath%20d='M9%207h3v1H9zM3%207h3v1H3z'/%3e%3cpath%20fill-rule='nonzero'%20d='M8%2010h1v4H8zm-2%200h1v4H6z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-merge-cancel-cell{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%233D4757'%20fill-rule='evenodd'%3e%3cpath%20d='M6%201v1H2v11h4v1H2a1%201%200%2001-1-1V2a1%201%200%20011-1h4zm3%200h4a1%201%200%20011%201v11a1%201%200%2001-1%201H9v-1h4V2H9V1z'/%3e%3cpath%20fill-rule='nonzero'%20d='M6%201h1v4H6zm2%200h1v4H8z'/%3e%3cpath%20d='M3%207.5L5%206v3zm9%200L10%206v3z'/%3e%3cpath%20d='M4%207h3v1H4zm4%200h3v1H8z'/%3e%3cpath%20fill-rule='nonzero'%20d='M8%2010h1v4H8zm-2%200h1v4H6z'/%3e%3c/g%3e%3c/svg%3e")}.ce-contextmenu-vertical-align{background-image:url("data:image/svg+xml,%3csvg%20height='16'%20viewBox='0%200%2016%2016'%20width='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2013h12v1H2zm0-3h8v1H2zm0-3h12v1H2zm0-6h12v1H2zm0%203h8v1H2z'%20fill='%233d4757'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.ce-contextmenu-vertical-align-top{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%208H7v6h1zm-.5-3L10%208H5zM2%203h11v1H2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.ce-contextmenu-vertical-align-middle{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%2012H7v3h1zm-.5-3l2.5%203H5zM7%203h1V0H7zm.5%203L5%203h5zM2%207h11v1H2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.ce-contextmenu-vertical-align-bottom{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%209h1V3H7zm.5%203L5%209h5zM2%2013h11v1H2z'%20fill='%233D4757'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.ce-contextmenu-border-all{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%233D4757'/%3e%3cpath%20fill='%233D4757'%20d='M3%208h11v1H3z'/%3e%3cpath%20fill='%233D4757'%20d='M9%203v11H8V3z'/%3e%3c/svg%3e")}.ce-contextmenu-border-empty{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13%203h-1V2h1a1%201%200%20011%201v1h-1V3zm-3-1v1H8.5v2h-1V3H6V2h4zM4%202v1H3v1H2V3a1%201%200%20011-1h1zM2%206h1v1.5h2v1H3V10H2V6zm0%206h1v1h1v1H3a1%201%200%2001-1-1v-1zm4%202v-1h1.5v-2h1v2H10v1H6zm6%200v-1h1v-1h1v1a1%201%200%2001-1%201h-1zm2-4h-1V8.5h-2v-1h2V6h1v4zM8.5%207.5v-1h-1v1h-1v1h1v1h1v-1h1v-1h-1z'%20fill='%23AAACB0'/%3e%3c/svg%3e")}.ce-contextmenu-border-dash{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13%203h-1V2h1a1%201%200%20011%201v1h-1V3zm-3-1v1H8.5v2h-1V3H6V2h4zM4%202v1H3v1H2V3a1%201%200%20011-1h1zM2%206h1v1.5h2v1H3V10H2V6zm0%206h1v1h1v1H3a1%201%200%2001-1-1v-1zm4%202v-1h1.5v-2h1v2H10v1H6zm6%200v-1h1v-1h1v1a1%201%200%2001-1%201h-1zm2-4h-1V8.5h-2v-1h2V6h1v4zM8.5%207.5v-1h-1v1h-1v1h1v1h1v-1h1v-1h-1z'%20fill='%23000000'/%3e%3c/svg%3e")}.ce-contextmenu-border-external{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%233D4757'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%205V3H8v2h1zm0%209v-2H8v2h1zM5%208H3v1h2V8zm9%200h-2v1h2V8zM9%207v1h1v1H9v1H8V9H7V8h1V7h1z'%20fill='%23AAACB0'/%3e%3c/svg%3e")}.ce-contextmenu-border-internal{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%205V3H8v2h1zm0%209v-2H8v2h1zM5%208H3v1h2V8zm9%200h-2v1h2V8zM9%207v1h1v1H9v1H8V9H7V8h1V7h1z'%20fill='%233D4757'/%3e%3c/svg%3e")}.ce-contextmenu-border-td{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20d='M8.5%202.5%20v6%20h-6'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-top{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20stroke-width='2'%20d='M2.5%203%20h12'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-left{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20stroke-width='2'%20d='M3%203%20v11'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-bottom{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20stroke-width='2'%20d='M2.5%2014%20h12'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-right{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'/%3e%3cpath%20stroke='%233D4757'%20stroke-width='2'%20d='M14%203%20v11'/%3e%3c/svg%3e")}.ce-contextmenu-border-td-forward{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'%20/%3e%3cpath%20stroke='%233D4757'%20d='M14%203%20l-11%2011'%20/%3e%3c/svg%3e")}.ce-contextmenu-border-td-back{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%203a.5.5%200%2001.5-.5h11a.5.5%200%2001.5.5v11a.5.5%200%2001-.5.5H3a.5.5%200%2001-.5-.5V3z'%20stroke='%23AAACB0'%20/%3e%3cpath%20stroke='%233D4757'%20d='M3%203%20l11%2011'%20/%3e%3c/svg%3e")}.ce-hyperlink-popup{color:#3d4757;z-index:1;text-align:center;background:#fff;border-radius:2px;padding:12px 16px;display:none;position:absolute;box-shadow:0 2px 12px #626b8433}.ce-hyperlink-popup a{white-space:nowrap;text-overflow:ellipsis;cursor:pointer;color:#00f;border-bottom-style:solid;border-bottom-width:1px;min-width:100px;max-width:300px;font-size:12px;text-decoration:none;display:inline-block;overflow:hidden}.ce-zone-indicator>div{color:#000;transform-origin:0 0;background:#dae7fc;padding:3px 6px;font-size:12px;position:absolute}.ce-zone-indicator-border__top,.ce-zone-indicator-border__bottom,.ce-zone-indicator-border__left,.ce-zone-indicator-border__right{z-index:0;display:block;position:absolute}.ce-zone-indicator-border__top{border-top:2px dashed #eee}.ce-zone-indicator-border__bottom{border-top:2px dashed #eee;width:100%}.ce-zone-indicator-border__left{border-left:2px dashed #eee}.ce-zone-indicator-border__right{border-right:2px dashed #eee}.ce-zone-tip{white-space:nowrap;opacity:.9;z-index:9;-webkit-user-select:none;user-select:none;pointer-events:none;background-color:#000;border-radius:4px;outline:none;align-items:center;height:30px;padding:0 5px;transition:all .3s;display:none;position:fixed;transform:translate(10px,10px)}.ce-zone-tip.show{display:flex}.ce-zone-tip span{color:#fff;font-size:12px}.ce-magnifier{pointer-events:none;z-index:9999;border-radius:50%;display:none;position:fixed;box-shadow:0 4px 12px #00000040}.ce-sr-only{z-index:-1;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;pointer-events:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;top:0;left:0;overflow:hidden}.ce-inputarea{letter-spacing:0;z-index:-1;resize:none;color:#0000;-webkit-user-select:none;user-select:none;caret-color:#0000;background-color:#0000;border:none;outline:none;width:100px;min-width:0;height:30px;min-height:0;margin:0;padding:0;font-size:12px;position:absolute;top:0;left:0;overflow:hidden}.ce-cursor{pointer-events:none;background-color:#000;outline:none;width:1px;height:20px;position:absolute;left:0;right:0}.ce-cursor.ce-cursor--animation{animation-name:cursorAnimation;animation-duration:1s;animation-iteration-count:infinite}@keyframes cursorAnimation{0%{opacity:1}13%{opacity:0}50%{opacity:0}63%{opacity:1}to{opacity:1}}.ce-float-image{opacity:.5;pointer-events:none;position:absolute}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  //#region package.json
3
- var e = "0.9.134", t;
3
+ var e = "0.9.135", t;
4
4
  (function(e) {
5
5
  e.HALF = "half", e.ONE_THIRD = "one-third", e.QUARTER = "quarter";
6
6
  })(t ||= {});
@@ -58,7 +58,7 @@ var o = "&nbsp;", s = [
58
58
  })(u ||= {});
59
59
  //#endregion
60
60
  //#region src/editor/dataset/constant/Regular.ts
61
- var d = /[0-9.]/, f = RegExp("[#*0-9]\\uFE0F?\\u20E3|[\\xA9\\xAE\\u203C\\u2049\\u2122\\u2139\\u2194-\\u2199\\u21A9\\u21AA\\u231A\\u231B\\u2328\\u23CF\\u23ED-\\u23EF\\u23F1\\u23F2\\u23F8-\\u23FA\\u24C2\\u25AA\\u25AB\\u25B6\\u25C0\\u25FB\\u25FC\\u25FE\\u2600-\\u2604\\u260E\\u2611\\u2614\\u2615\\u2618\\u2620\\u2622\\u2623\\u2626\\u262A\\u262E\\u262F\\u2638-\\u263A\\u2640\\u2642\\u2648-\\u2653\\u265F\\u2660\\u2663\\u2665\\u2666\\u2668\\u267B\\u267E\\u267F\\u2692\\u2694-\\u2697\\u2699\\u269B\\u269C\\u26A0\\u26A7\\u26AA\\u26B0\\u26B1\\u26BD\\u26BE\\u26C4\\u26C8\\u26CF\\u26D1\\u26E9\\u26F0-\\u26F5\\u26F7\\u26F8\\u26FA\\u2702\\u2708\\u2709\\u270F\\u2712\\u2714\\u2716\\u271D\\u2721\\u2733\\u2734\\u2744\\u2747\\u2757\\u2763\\u27A1\\u2934\\u2935\\u2B05-\\u2B07\\u2B1B\\u2B1C\\u2B55\\u3030\\u303D\\u3297\\u3299]\\uFE0F?|[\\u261D\\u270C\\u270D](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?|[\\u270A\\u270B](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\u23E9-\\u23EC\\u23F0\\u23F3\\u25FD\\u2693\\u26A1\\u26AB\\u26C5\\u26CE\\u26D4\\u26EA\\u26FD\\u2705\\u2728\\u274C\\u274E\\u2753-\\u2755\\u2795-\\u2797\\u27B0\\u27BF\\u2B50]|\\u26D3\\uFE0F?(?:\\u200D\\uD83D\\uDCA5)?|\\u26F9(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\u2764\\uFE0F?(?:\\u200D(?:\\uD83D\\uDD25|\\uD83E\\uDE79))?|\\uD83C(?:[\\uDC04\\uDD70\\uDD71\\uDD7E\\uDD7F\\uDE02\\uDE37\\uDF21\\uDF24-\\uDF2C\\uDF36\\uDF7D\\uDF96\\uDF97\\uDF99-\\uDF9B\\uDF9E\\uDF9F\\uDFCD\\uDFCE\\uDFD4-\\uDFDF\\uDFF5\\uDFF7]\\uFE0F?|[\\uDF85\\uDFC2\\uDFC7](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDFC4\\uDFCA](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDFCB\\uDFCC](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDCCF\\uDD8E\\uDD91-\\uDD9A\\uDE01\\uDE1A\\uDE2F\\uDE32-\\uDE36\\uDE38-\\uDE3A\\uDE50\\uDE51\\uDF00-\\uDF20\\uDF2D-\\uDF35\\uDF37-\\uDF43\\uDF45-\\uDF4A\\uDF4C-\\uDF7C\\uDF7E-\\uDF84\\uDF86-\\uDF93\\uDFA0-\\uDFC1\\uDFC5\\uDFC6\\uDFC8\\uDFC9\\uDFCF-\\uDFD3\\uDFE0-\\uDFF0\\uDFF8-\\uDFFF]|\\uDDE6\\uD83C[\\uDDE8-\\uDDEC\\uDDEE\\uDDF1\\uDDF2\\uDDF4\\uDDF6-\\uDDFA\\uDDFC\\uDDFD\\uDDFF]|\\uDDE7\\uD83C[\\uDDE6\\uDDE7\\uDDE9-\\uDDEF\\uDDF1-\\uDDF4\\uDDF6-\\uDDF9\\uDDFB\\uDDFC\\uDDFE\\uDDFF]|\\uDDE8\\uD83C[\\uDDE6\\uDDE8\\uDDE9\\uDDEB-\\uDDEE\\uDDF0-\\uDDF5\\uDDF7\\uDDFA-\\uDDFF]|\\uDDE9\\uD83C[\\uDDEA\\uDDEC\\uDDEF\\uDDF0\\uDDF2\\uDDF4\\uDDFF]|\\uDDEA\\uD83C[\\uDDE6\\uDDE8\\uDDEA\\uDDEC\\uDDED\\uDDF7-\\uDDFA]|\\uDDEB\\uD83C[\\uDDEE-\\uDDF0\\uDDF2\\uDDF4\\uDDF7]|\\uDDEC\\uD83C[\\uDDE6\\uDDE7\\uDDE9-\\uDDEE\\uDDF1-\\uDDF3\\uDDF5-\\uDDFA\\uDDFC\\uDDFE]|\\uDDED\\uD83C[\\uDDF0\\uDDF2\\uDDF3\\uDDF7\\uDDF9\\uDDFA]|\\uDDEE\\uD83C[\\uDDE8-\\uDDEA\\uDDF1-\\uDDF4\\uDDF6-\\uDDF9]|\\uDDEF\\uD83C[\\uDDEA\\uDDF2\\uDDF4\\uDDF5]|\\uDDF0\\uD83C[\\uDDEA\\uDDEC-\\uDDEE\\uDDF2\\uDDF3\\uDDF5\\uDDF7\\uDDFC\\uDDFE\\uDDFF]|\\uDDF1\\uD83C[\\uDDE6-\\uDDE8\\uDDEE\\uDDF0\\uDDF7-\\uDDFB\\uDDFE]|\\uDDF2\\uD83C[\\uDDE6\\uDDE8-\\uDDED\\uDDF0-\\uDDFF]|\\uDDF3\\uD83C[\\uDDE6\\uDDE8\\uDDEA-\\uDDEC\\uDDEE\\uDDF1\\uDDF4\\uDDF5\\uDDF7\\uDDFA\\uDDFF]|\\uDDF4\\uD83C\\uDDF2|\\uDDF5\\uD83C[\\uDDE6\\uDDEA-\\uDDED\\uDDF0-\\uDDF3\\uDDF7-\\uDDF9\\uDDFC\\uDDFE]|\\uDDF6\\uD83C\\uDDE6|\\uDDF7\\uD83C[\\uDDEA\\uDDF4\\uDDF8\\uDDFA\\uDDFC]|\\uDDF8\\uD83C[\\uDDE6-\\uDDEA\\uDDEC-\\uDDF4\\uDDF7-\\uDDF9\\uDDFB\\uDDFD-\\uDDFF]|\\uDDF9\\uD83C[\\uDDE6\\uDDE8\\uDDE9\\uDDEB-\\uDDED\\uDDEF-\\uDDF4\\uDDF7\\uDDF9\\uDDFB\\uDDFC\\uDDFF]|\\uDDFA\\uD83C[\\uDDE6\\uDDEC\\uDDF2\\uDDF3\\uDDF8\\uDDFE\\uDDFF]|\\uDDFB\\uD83C[\\uDDE6\\uDDE8\\uDDEA\\uDDEC\\uDDEE\\uDDF3\\uDDFA]|\\uDDFC\\uD83C[\\uDDEB\\uDDF8]|\\uDDFD\\uD83C\\uDDF0|\\uDDFE\\uD83C[\\uDDEA\\uDDF9]|\\uDDFF\\uD83C[\\uDDE6\\uDDF2\\uDDFC]|\\uDF44(?:\\u200D\\uD83D\\uDFEB)?|\\uDF4B(?:\\u200D\\uD83D\\uDFE9)?|\\uDFC3(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?|\\uDFF3\\uFE0F?(?:\\u200D(?:\\u26A7\\uFE0F?|\\uD83C\\uDF08))?|\\uDFF4(?:\\u200D\\u2620\\uFE0F?|\\uDB40\\uDC67\\uDB40\\uDC62\\uDB40(?:\\uDC65\\uDB40\\uDC6E\\uDB40\\uDC67|\\uDC73\\uDB40\\uDC63\\uDB40\\uDC74|\\uDC77\\uDB40\\uDC6C\\uDB40\\uDC73)\\uDB40\\uDC7F)?)|\\uD83D(?:[\\uDC3F\\uDCFD\\uDD49\\uDD4A\\uDD6F\\uDD70\\uDD73\\uDD76-\\uDD79\\uDD87\\uDD8A-\\uDD8D\\uDDA5\\uDDA8\\uDDB1\\uDDB2\\uDDBC\\uDDC2-\\uDDC4\\uDDD1-\\uDDD3\\uDDDC-\\uDDDE\\uDDE1\\uDDE3\\uDDE8\\uDDEF\\uDDF3\\uDDFA\\uDECB\\uDECD-\\uDECF\\uDEE0-\\uDEE5\\uDEE9\\uDEF0\\uDEF3]\\uFE0F?|[\\uDC42\\uDC43\\uDC46-\\uDC50\\uDC66\\uDC67\\uDC6B-\\uDC6D\\uDC72\\uDC74-\\uDC76\\uDC78\\uDC7C\\uDC83\\uDC85\\uDC8F\\uDC91\\uDCAA\\uDD7A\\uDD95\\uDD96\\uDE4C\\uDE4F\\uDEC0\\uDECC](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDC6E\\uDC70\\uDC71\\uDC73\\uDC77\\uDC81\\uDC82\\uDC86\\uDC87\\uDE45-\\uDE47\\uDE4B\\uDE4D\\uDE4E\\uDEA3\\uDEB4\\uDEB5](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDD74\\uDD90](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDC00-\\uDC07\\uDC09-\\uDC14\\uDC16-\\uDC25\\uDC27-\\uDC3A\\uDC3C-\\uDC3E\\uDC40\\uDC44\\uDC45\\uDC51-\\uDC65\\uDC6A\\uDC79-\\uDC7B\\uDC7D-\\uDC80\\uDC84\\uDC88-\\uDC8E\\uDC90\\uDC92-\\uDCA9\\uDCAB-\\uDCFC\\uDCFF-\\uDD3D\\uDD4B-\\uDD4E\\uDD50-\\uDD67\\uDDA4\\uDDFB-\\uDE2D\\uDE2F-\\uDE34\\uDE37-\\uDE41\\uDE43\\uDE44\\uDE48-\\uDE4A\\uDE80-\\uDEA2\\uDEA4-\\uDEB3\\uDEB7-\\uDEBF\\uDEC1-\\uDEC5\\uDED0-\\uDED2\\uDED5-\\uDED7\\uDEDC-\\uDEDF\\uDEEB\\uDEEC\\uDEF4-\\uDEFC\\uDFE0-\\uDFEB\\uDFF0]|\\uDC08(?:\\u200D\\u2B1B)?|\\uDC15(?:\\u200D\\uD83E\\uDDBA)?|\\uDC26(?:\\u200D(?:\\u2B1B|\\uD83D\\uDD25))?|\\uDC3B(?:\\u200D\\u2744\\uFE0F?)?|\\uDC41\\uFE0F?(?:\\u200D\\uD83D\\uDDE8\\uFE0F?)?|\\uDC68(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDC68\\uDC69]\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDC69(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?[\\uDC68\\uDC69]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?|\\uDC69\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?))|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDC6F(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\uDD75(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\uDE2E(?:\\u200D\\uD83D\\uDCA8)?|\\uDE35(?:\\u200D\\uD83D\\uDCAB)?|\\uDE36(?:\\u200D\\uD83C\\uDF2B\\uFE0F?)?|\\uDE42(?:\\u200D[\\u2194\\u2195]\\uFE0F?)?|\\uDEB6(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?)|\\uD83E(?:[\\uDD0C\\uDD0F\\uDD18-\\uDD1F\\uDD30-\\uDD34\\uDD36\\uDD77\\uDDB5\\uDDB6\\uDDBB\\uDDD2\\uDDD3\\uDDD5\\uDEC3-\\uDEC5\\uDEF0\\uDEF2-\\uDEF8](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDD26\\uDD35\\uDD37-\\uDD39\\uDD3D\\uDD3E\\uDDB8\\uDDB9\\uDDCD\\uDDCF\\uDDD4\\uDDD6-\\uDDDD](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDDDE\\uDDDF](?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDD0D\\uDD0E\\uDD10-\\uDD17\\uDD20-\\uDD25\\uDD27-\\uDD2F\\uDD3A\\uDD3F-\\uDD45\\uDD47-\\uDD76\\uDD78-\\uDDB4\\uDDB7\\uDDBA\\uDDBC-\\uDDCC\\uDDD0\\uDDE0-\\uDDFF\\uDE70-\\uDE7C\\uDE80-\\uDE88\\uDE90-\\uDEBD\\uDEBF-\\uDEC2\\uDECE-\\uDEDB\\uDEE0-\\uDEE8]|\\uDD3C(?:\\u200D[\\u2640\\u2642]\\uFE0F?|\\uD83C[\\uDFFB-\\uDFFF])?|\\uDDCE(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?|\\uDDD1(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1|\\uDDD1\\u200D\\uD83E\\uDDD2(?:\\u200D\\uD83E\\uDDD2)?|\\uDDD2(?:\\u200D\\uD83E\\uDDD2)?))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFC-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFD-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFD\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFE]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?))?|\\uDEF1(?:\\uD83C(?:\\uDFFB(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFC-\\uDFFF])?|\\uDFFC(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])?|\\uDFFD(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])?|\\uDFFE(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])?|\\uDFFF(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFE])?))?)|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]", "g"), p = /[、,。?!;:……「」“”‘’*()【】〔〕〖〗〘〙〚〛《》———﹝﹞–—\\/·.,!?;:`~<>()[\]{}'"|]/, m = RegExp("^[​\n]"), h = /[^0-9\+\-\.eE,]/, g = /\s/;
61
+ var d = /[0-9.]/, f = RegExp("[#*0-9]\\uFE0F?\\u20E3|[\\xA9\\xAE\\u203C\\u2049\\u2122\\u2139\\u2194-\\u2199\\u21A9\\u21AA\\u231A\\u231B\\u2328\\u23CF\\u23ED-\\u23EF\\u23F1\\u23F2\\u23F8-\\u23FA\\u24C2\\u25AA\\u25AB\\u25B6\\u25C0\\u25FB\\u25FC\\u25FE\\u2600-\\u2604\\u260E\\u2611\\u2614\\u2615\\u2618\\u2620\\u2622\\u2623\\u2626\\u262A\\u262E\\u262F\\u2638-\\u263A\\u2640\\u2642\\u2648-\\u2653\\u265F\\u2660\\u2663\\u2665\\u2666\\u2668\\u267B\\u267E\\u267F\\u2692\\u2694-\\u2697\\u2699\\u269B\\u269C\\u26A0\\u26A7\\u26AA\\u26B0\\u26B1\\u26BD\\u26BE\\u26C4\\u26C8\\u26CF\\u26D1\\u26E9\\u26F0-\\u26F5\\u26F7\\u26F8\\u26FA\\u2702\\u2708\\u2709\\u270F\\u2712\\u2714\\u2716\\u271D\\u2721\\u2733\\u2734\\u2744\\u2747\\u2757\\u2763\\u27A1\\u2934\\u2935\\u2B05-\\u2B07\\u2B1B\\u2B1C\\u2B55\\u3030\\u303D\\u3297\\u3299]\\uFE0F?|[\\u261D\\u270C\\u270D](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?|[\\u270A\\u270B](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\u23E9-\\u23EC\\u23F0\\u23F3\\u25FD\\u2693\\u26A1\\u26AB\\u26C5\\u26CE\\u26D4\\u26EA\\u26FD\\u2705\\u2728\\u274C\\u274E\\u2753-\\u2755\\u2795-\\u2797\\u27B0\\u27BF\\u2B50]|\\u26D3\\uFE0F?(?:\\u200D\\uD83D\\uDCA5)?|\\u26F9(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\u2764\\uFE0F?(?:\\u200D(?:\\uD83D\\uDD25|\\uD83E\\uDE79))?|\\uD83C(?:[\\uDC04\\uDD70\\uDD71\\uDD7E\\uDD7F\\uDE02\\uDE37\\uDF21\\uDF24-\\uDF2C\\uDF36\\uDF7D\\uDF96\\uDF97\\uDF99-\\uDF9B\\uDF9E\\uDF9F\\uDFCD\\uDFCE\\uDFD4-\\uDFDF\\uDFF5\\uDFF7]\\uFE0F?|[\\uDF85\\uDFC2\\uDFC7](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDFC4\\uDFCA](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDFCB\\uDFCC](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDCCF\\uDD8E\\uDD91-\\uDD9A\\uDE01\\uDE1A\\uDE2F\\uDE32-\\uDE36\\uDE38-\\uDE3A\\uDE50\\uDE51\\uDF00-\\uDF20\\uDF2D-\\uDF35\\uDF37-\\uDF43\\uDF45-\\uDF4A\\uDF4C-\\uDF7C\\uDF7E-\\uDF84\\uDF86-\\uDF93\\uDFA0-\\uDFC1\\uDFC5\\uDFC6\\uDFC8\\uDFC9\\uDFCF-\\uDFD3\\uDFE0-\\uDFF0\\uDFF8-\\uDFFF]|\\uDDE6\\uD83C[\\uDDE8-\\uDDEC\\uDDEE\\uDDF1\\uDDF2\\uDDF4\\uDDF6-\\uDDFA\\uDDFC\\uDDFD\\uDDFF]|\\uDDE7\\uD83C[\\uDDE6\\uDDE7\\uDDE9-\\uDDEF\\uDDF1-\\uDDF4\\uDDF6-\\uDDF9\\uDDFB\\uDDFC\\uDDFE\\uDDFF]|\\uDDE8\\uD83C[\\uDDE6\\uDDE8\\uDDE9\\uDDEB-\\uDDEE\\uDDF0-\\uDDF5\\uDDF7\\uDDFA-\\uDDFF]|\\uDDE9\\uD83C[\\uDDEA\\uDDEC\\uDDEF\\uDDF0\\uDDF2\\uDDF4\\uDDFF]|\\uDDEA\\uD83C[\\uDDE6\\uDDE8\\uDDEA\\uDDEC\\uDDED\\uDDF7-\\uDDFA]|\\uDDEB\\uD83C[\\uDDEE-\\uDDF0\\uDDF2\\uDDF4\\uDDF7]|\\uDDEC\\uD83C[\\uDDE6\\uDDE7\\uDDE9-\\uDDEE\\uDDF1-\\uDDF3\\uDDF5-\\uDDFA\\uDDFC\\uDDFE]|\\uDDED\\uD83C[\\uDDF0\\uDDF2\\uDDF3\\uDDF7\\uDDF9\\uDDFA]|\\uDDEE\\uD83C[\\uDDE8-\\uDDEA\\uDDF1-\\uDDF4\\uDDF6-\\uDDF9]|\\uDDEF\\uD83C[\\uDDEA\\uDDF2\\uDDF4\\uDDF5]|\\uDDF0\\uD83C[\\uDDEA\\uDDEC-\\uDDEE\\uDDF2\\uDDF3\\uDDF5\\uDDF7\\uDDFC\\uDDFE\\uDDFF]|\\uDDF1\\uD83C[\\uDDE6-\\uDDE8\\uDDEE\\uDDF0\\uDDF7-\\uDDFB\\uDDFE]|\\uDDF2\\uD83C[\\uDDE6\\uDDE8-\\uDDED\\uDDF0-\\uDDFF]|\\uDDF3\\uD83C[\\uDDE6\\uDDE8\\uDDEA-\\uDDEC\\uDDEE\\uDDF1\\uDDF4\\uDDF5\\uDDF7\\uDDFA\\uDDFF]|\\uDDF4\\uD83C\\uDDF2|\\uDDF5\\uD83C[\\uDDE6\\uDDEA-\\uDDED\\uDDF0-\\uDDF3\\uDDF7-\\uDDF9\\uDDFC\\uDDFE]|\\uDDF6\\uD83C\\uDDE6|\\uDDF7\\uD83C[\\uDDEA\\uDDF4\\uDDF8\\uDDFA\\uDDFC]|\\uDDF8\\uD83C[\\uDDE6-\\uDDEA\\uDDEC-\\uDDF4\\uDDF7-\\uDDF9\\uDDFB\\uDDFD-\\uDDFF]|\\uDDF9\\uD83C[\\uDDE6\\uDDE8\\uDDE9\\uDDEB-\\uDDED\\uDDEF-\\uDDF4\\uDDF7\\uDDF9\\uDDFB\\uDDFC\\uDDFF]|\\uDDFA\\uD83C[\\uDDE6\\uDDEC\\uDDF2\\uDDF3\\uDDF8\\uDDFE\\uDDFF]|\\uDDFB\\uD83C[\\uDDE6\\uDDE8\\uDDEA\\uDDEC\\uDDEE\\uDDF3\\uDDFA]|\\uDDFC\\uD83C[\\uDDEB\\uDDF8]|\\uDDFD\\uD83C\\uDDF0|\\uDDFE\\uD83C[\\uDDEA\\uDDF9]|\\uDDFF\\uD83C[\\uDDE6\\uDDF2\\uDDFC]|\\uDF44(?:\\u200D\\uD83D\\uDFEB)?|\\uDF4B(?:\\u200D\\uD83D\\uDFE9)?|\\uDFC3(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?|\\uDFF3\\uFE0F?(?:\\u200D(?:\\u26A7\\uFE0F?|\\uD83C\\uDF08))?|\\uDFF4(?:\\u200D\\u2620\\uFE0F?|\\uDB40\\uDC67\\uDB40\\uDC62\\uDB40(?:\\uDC65\\uDB40\\uDC6E\\uDB40\\uDC67|\\uDC73\\uDB40\\uDC63\\uDB40\\uDC74|\\uDC77\\uDB40\\uDC6C\\uDB40\\uDC73)\\uDB40\\uDC7F)?)|\\uD83D(?:[\\uDC3F\\uDCFD\\uDD49\\uDD4A\\uDD6F\\uDD70\\uDD73\\uDD76-\\uDD79\\uDD87\\uDD8A-\\uDD8D\\uDDA5\\uDDA8\\uDDB1\\uDDB2\\uDDBC\\uDDC2-\\uDDC4\\uDDD1-\\uDDD3\\uDDDC-\\uDDDE\\uDDE1\\uDDE3\\uDDE8\\uDDEF\\uDDF3\\uDDFA\\uDECB\\uDECD-\\uDECF\\uDEE0-\\uDEE5\\uDEE9\\uDEF0\\uDEF3]\\uFE0F?|[\\uDC42\\uDC43\\uDC46-\\uDC50\\uDC66\\uDC67\\uDC6B-\\uDC6D\\uDC72\\uDC74-\\uDC76\\uDC78\\uDC7C\\uDC83\\uDC85\\uDC8F\\uDC91\\uDCAA\\uDD7A\\uDD95\\uDD96\\uDE4C\\uDE4F\\uDEC0\\uDECC](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDC6E\\uDC70\\uDC71\\uDC73\\uDC77\\uDC81\\uDC82\\uDC86\\uDC87\\uDE45-\\uDE47\\uDE4B\\uDE4D\\uDE4E\\uDEA3\\uDEB4\\uDEB5](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDD74\\uDD90](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDC00-\\uDC07\\uDC09-\\uDC14\\uDC16-\\uDC25\\uDC27-\\uDC3A\\uDC3C-\\uDC3E\\uDC40\\uDC44\\uDC45\\uDC51-\\uDC65\\uDC6A\\uDC79-\\uDC7B\\uDC7D-\\uDC80\\uDC84\\uDC88-\\uDC8E\\uDC90\\uDC92-\\uDCA9\\uDCAB-\\uDCFC\\uDCFF-\\uDD3D\\uDD4B-\\uDD4E\\uDD50-\\uDD67\\uDDA4\\uDDFB-\\uDE2D\\uDE2F-\\uDE34\\uDE37-\\uDE41\\uDE43\\uDE44\\uDE48-\\uDE4A\\uDE80-\\uDEA2\\uDEA4-\\uDEB3\\uDEB7-\\uDEBF\\uDEC1-\\uDEC5\\uDED0-\\uDED2\\uDED5-\\uDED7\\uDEDC-\\uDEDF\\uDEEB\\uDEEC\\uDEF4-\\uDEFC\\uDFE0-\\uDFEB\\uDFF0]|\\uDC08(?:\\u200D\\u2B1B)?|\\uDC15(?:\\u200D\\uD83E\\uDDBA)?|\\uDC26(?:\\u200D(?:\\u2B1B|\\uD83D\\uDD25))?|\\uDC3B(?:\\u200D\\u2744\\uFE0F?)?|\\uDC41\\uFE0F?(?:\\u200D\\uD83D\\uDDE8\\uFE0F?)?|\\uDC68(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDC68\\uDC69]\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDC69(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?[\\uDC68\\uDC69]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?|\\uDC69\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?))|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDC6F(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\uDD75(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\uDE2E(?:\\u200D\\uD83D\\uDCA8)?|\\uDE35(?:\\u200D\\uD83D\\uDCAB)?|\\uDE36(?:\\u200D\\uD83C\\uDF2B\\uFE0F?)?|\\uDE42(?:\\u200D[\\u2194\\u2195]\\uFE0F?)?|\\uDEB6(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?)|\\uD83E(?:[\\uDD0C\\uDD0F\\uDD18-\\uDD1F\\uDD30-\\uDD34\\uDD36\\uDD77\\uDDB5\\uDDB6\\uDDBB\\uDDD2\\uDDD3\\uDDD5\\uDEC3-\\uDEC5\\uDEF0\\uDEF2-\\uDEF8](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDD26\\uDD35\\uDD37-\\uDD39\\uDD3D\\uDD3E\\uDDB8\\uDDB9\\uDDCD\\uDDCF\\uDDD4\\uDDD6-\\uDDDD](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDDDE\\uDDDF](?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDD0D\\uDD0E\\uDD10-\\uDD17\\uDD20-\\uDD25\\uDD27-\\uDD2F\\uDD3A\\uDD3F-\\uDD45\\uDD47-\\uDD76\\uDD78-\\uDDB4\\uDDB7\\uDDBA\\uDDBC-\\uDDCC\\uDDD0\\uDDE0-\\uDDFF\\uDE70-\\uDE7C\\uDE80-\\uDE88\\uDE90-\\uDEBD\\uDEBF-\\uDEC2\\uDECE-\\uDEDB\\uDEE0-\\uDEE8]|\\uDD3C(?:\\u200D[\\u2640\\u2642]\\uFE0F?|\\uD83C[\\uDFFB-\\uDFFF])?|\\uDDCE(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?|\\uDDD1(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1|\\uDDD1\\u200D\\uD83E\\uDDD2(?:\\u200D\\uD83E\\uDDD2)?|\\uDDD2(?:\\u200D\\uD83E\\uDDD2)?))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFC-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFD-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFD\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFE]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?))?|\\uDEF1(?:\\uD83C(?:\\uDFFB(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFC-\\uDFFF])?|\\uDFFC(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])?|\\uDFFD(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])?|\\uDFFE(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])?|\\uDFFF(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFE])?))?)|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]", "g"), p = /[、,。?!;:……「」“”‘’*()【】〔〕〖〗〘〙〚〛《》———﹝﹞–—\\/·.,!?;:`~<>()[\]{}'"|]/, m = /* @__PURE__ */ RegExp("^[​\n]"), h = /[^0-9\+\-\.eE,]/, g = /\s/;
62
62
  //#endregion
63
63
  //#region src/editor/utils/index.ts
64
64
  function _(e, t) {
@@ -4141,7 +4141,7 @@ var Zt = {
4141
4141
  size: 120,
4142
4142
  zoom: 2,
4143
4143
  borderColor: "#efefef"
4144
- }, $t = {
4144
+ }, $t = { disabled: !0 }, en = {
4145
4145
  color: "#000000",
4146
4146
  lineWidth: 1,
4147
4147
  padding: [
@@ -4151,20 +4151,20 @@ var Zt = {
4151
4151
  5
4152
4152
  ],
4153
4153
  disabled: !0
4154
- }, en = {
4154
+ }, tn = {
4155
4155
  top: 0,
4156
4156
  left: 5
4157
- }, tn = {
4157
+ }, nn = {
4158
4158
  defaultLineColor: "#000000",
4159
4159
  defaultLineWidth: 2
4160
- }, nn = {
4160
+ }, rn = {
4161
4161
  disabled: !0,
4162
4162
  color: "#CCCCCC",
4163
4163
  radius: 1
4164
4164
  };
4165
4165
  //#endregion
4166
4166
  //#region src/editor/utils/option.ts
4167
- function rn(e = {}) {
4167
+ function an(e = {}) {
4168
4168
  let t = {
4169
4169
  ...Gt,
4170
4170
  ...e.table
@@ -4214,7 +4214,7 @@ function rn(e = {}) {
4214
4214
  ...Rt,
4215
4215
  ...e.lineBreak
4216
4216
  }, v = {
4217
- ...nn,
4217
+ ...rn,
4218
4218
  ...e.whiteSpace
4219
4219
  }, y = {
4220
4220
  ...Wt,
@@ -4223,13 +4223,13 @@ function rn(e = {}) {
4223
4223
  ...Zt,
4224
4224
  ...e.lineNumber
4225
4225
  }, x = {
4226
- ...$t,
4226
+ ...en,
4227
4227
  ...e.pageBorder
4228
4228
  }, S = {
4229
- ...en,
4229
+ ...tn,
4230
4230
  ...e.badge
4231
4231
  }, C = {
4232
- ...tn,
4232
+ ...nn,
4233
4233
  ...e.graffiti
4234
4234
  }, w = {
4235
4235
  ...It,
@@ -4244,6 +4244,9 @@ function rn(e = {}) {
4244
4244
  ...Qt,
4245
4245
  ...e.magnifier
4246
4246
  }, D = {
4247
+ ...$t,
4248
+ ...e.accessibility
4249
+ }, O = {
4247
4250
  print: {
4248
4251
  ...he.print,
4249
4252
  ...e.modeRule?.print
@@ -4334,17 +4337,18 @@ function rn(e = {}) {
4334
4337
  lineNumber: b,
4335
4338
  pageBorder: x,
4336
4339
  badge: S,
4337
- modeRule: D,
4340
+ modeRule: O,
4338
4341
  graffiti: C,
4339
4342
  label: w,
4340
4343
  imgCaption: T,
4341
4344
  list: E,
4342
- magnifier: ee
4345
+ magnifier: ee,
4346
+ accessibility: D
4343
4347
  };
4344
4348
  }
4345
4349
  //#endregion
4346
4350
  //#region src/editor/utils/element.ts
4347
- function an(e) {
4351
+ function on(e) {
4348
4352
  let t = [];
4349
4353
  for (let n = 0; n < e.length; n++) {
4350
4354
  let r = e[n], i = w(r.value);
@@ -4372,7 +4376,7 @@ function Y(e, t) {
4372
4376
  let t = n.titleId || C(), a = i.title;
4373
4377
  for (let i = 0; i < r.length; i++) {
4374
4378
  let s = r[i];
4375
- s.title = n.title, n.level && (s.titleId = t, s.level = n.level), dn(s) && (s.size ||= a[mt[s.level]], s.bold === void 0 && (s.bold = !0)), e.splice(o, 0, s), o++;
4379
+ s.title = n.title, n.level && (s.titleId = t, s.level = n.level), fn(s) && (s.size ||= a[mt[s.level]], s.bold === void 0 && (s.bold = !0)), e.splice(o, 0, s), o++;
4376
4380
  }
4377
4381
  }
4378
4382
  o--;
@@ -4438,7 +4442,7 @@ function Y(e, t) {
4438
4442
  ...t,
4439
4443
  isHandleFirstElement: !0,
4440
4444
  isForceCompensation: !0
4441
- }), !r.value[0].size && r.value[1]?.size && dn(r.value[1]) && (r.value[0].size = r.value[1].size);
4445
+ }), !r.value[0].size && r.value[1]?.size && fn(r.value[1]) && (r.value[0].size = r.value[1].size);
4442
4446
  for (let t = 0; t < r.value.length; t++) {
4443
4447
  let n = r.value[t];
4444
4448
  n.tdId = i, n.trId = o, n.tableId = e;
@@ -4448,7 +4452,7 @@ function Y(e, t) {
4448
4452
  }
4449
4453
  } else if (n.type === R.HYPERLINK) {
4450
4454
  e.splice(o, 1);
4451
- let t = an(n.valueList || []);
4455
+ let t = on(n.valueList || []);
4452
4456
  if (t.length) {
4453
4457
  let r = C();
4454
4458
  for (let i = 0; i < t.length; i++) {
@@ -4459,7 +4463,7 @@ function Y(e, t) {
4459
4463
  o--;
4460
4464
  } else if (n.type === R.DATE) {
4461
4465
  e.splice(o, 1);
4462
- let t = an(n.valueList || []);
4466
+ let t = on(n.valueList || []);
4463
4467
  if (t.length) {
4464
4468
  let r = C();
4465
4469
  for (let i = 0; i < t.length; i++) {
@@ -4670,7 +4674,7 @@ function Y(e, t) {
4670
4674
  o++;
4671
4675
  }
4672
4676
  }
4673
- function on(e, t) {
4677
+ function sn(e, t) {
4674
4678
  let n = Object.keys(e), r = Object.keys(t);
4675
4679
  if (n.length !== r.length) return !1;
4676
4680
  for (let r = 0; r < n.length; r++) {
@@ -4679,7 +4683,7 @@ function on(e, t) {
4679
4683
  }
4680
4684
  return !0;
4681
4685
  }
4682
- function sn(e, t = {}) {
4686
+ function cn(e, t = {}) {
4683
4687
  let { extraPickAttrs: n } = t, r = [...Ce];
4684
4688
  n && r.push(...n);
4685
4689
  let i = { value: e.value === "​" ? "\n" : e.value };
@@ -4843,7 +4847,7 @@ function X(e, t = {}) {
4843
4847
  control: o,
4844
4848
  controlId: r
4845
4849
  };
4846
- l.control.value = X(i, t), e = sn(l, { extraPickAttrs: n }), s += c - s - 1;
4850
+ l.control.value = X(i, t), e = cn(l, { extraPickAttrs: n }), s += c - s - 1;
4847
4851
  }
4848
4852
  }
4849
4853
  if (e.controlComponent && (delete e.control, delete e.controlId, e.controlComponent !== U.VALUE && e.controlComponent !== U.PRE_TEXT && e.controlComponent !== U.POST_TEXT)) {
@@ -4851,10 +4855,10 @@ function X(e, t = {}) {
4851
4855
  continue;
4852
4856
  }
4853
4857
  }
4854
- let i = sn(e, { extraPickAttrs: n });
4858
+ let i = cn(e, { extraPickAttrs: n });
4855
4859
  if (!e.type || e.type === R.TEXT || e.type === R.SUBSCRIPT || e.type === R.SUPERSCRIPT) for (; s < a.length;) {
4856
4860
  let e = a[s + 1];
4857
- if (s++, e && on(i, sn(e, { extraPickAttrs: n }))) {
4861
+ if (s++, e && sn(i, cn(e, { extraPickAttrs: n }))) {
4858
4862
  let t = e.value === "​" ? "\n" : e.value;
4859
4863
  i.value += t;
4860
4864
  } else break;
@@ -4864,7 +4868,7 @@ function X(e, t = {}) {
4864
4868
  }
4865
4869
  return o;
4866
4870
  }
4867
- function cn(e) {
4871
+ function ln(e) {
4868
4872
  switch (window.getComputedStyle(e).textAlign) {
4869
4873
  case "left":
4870
4874
  case "start": return u.LEFT;
@@ -4876,10 +4880,10 @@ function cn(e) {
4876
4880
  default: return u.LEFT;
4877
4881
  }
4878
4882
  }
4879
- function ln(e) {
4883
+ function un(e) {
4880
4884
  return e === u.ALIGNMENT ? "justify" : e;
4881
4885
  }
4882
- function un(e) {
4886
+ function dn(e) {
4883
4887
  switch (e) {
4884
4888
  case u.LEFT: return "flex-start";
4885
4889
  case u.CENTER: return "center";
@@ -4889,23 +4893,23 @@ function un(e) {
4889
4893
  default: return "flex-start";
4890
4894
  }
4891
4895
  }
4892
- function dn(e) {
4896
+ function fn(e) {
4893
4897
  return !e.type || Me.includes(e.type);
4894
4898
  }
4895
- function fn(e) {
4899
+ function pn(e) {
4896
4900
  return !e.type || e.type === R.TEXT;
4897
4901
  }
4898
- function pn(e) {
4899
- return e.filter((e) => dn(e)).map((e) => e.value).join("").replace(/* @__PURE__ */ RegExp("​", "g"), "");
4902
+ function mn(e) {
4903
+ return e.filter((e) => fn(e)).map((e) => e.value).join("").replace(/* @__PURE__ */ RegExp("​", "g"), "");
4900
4904
  }
4901
- function mn(e, t) {
4905
+ function hn(e, t) {
4902
4906
  let n = e[t];
4903
4907
  if (!n) return null;
4904
4908
  let r = e[t + 1];
4905
4909
  return !n.listId && n.value === "​" && r && r.value !== "​" && n.areaId === r.areaId ? r : n;
4906
4910
  }
4907
4911
  function Z(e, t, n, r) {
4908
- let i = mn(e, n);
4912
+ let i = hn(e, n);
4909
4913
  if (!i) return;
4910
4914
  let { isBreakWhenWrap: a = !1, editorOptions: o, ignoreContextKeys: s = [] } = r || {}, { mode: c } = o || {};
4911
4915
  c !== G.DESIGN && i.title?.disabled && (i = F(i, Ee));
@@ -4925,16 +4929,16 @@ function Z(e, t, n, r) {
4925
4929
  }
4926
4930
  c.valueList?.length && Z(e, c.valueList, n, r);
4927
4931
  let u = [...je];
4928
- Cn(c) || u.push(...xe), ne(u, s), N(u, i, c);
4932
+ wn(c) || u.push(...xe), ne(u, s), N(u, i, c);
4929
4933
  }
4930
4934
  }
4931
- function hn(e, t) {
4935
+ function gn(e, t) {
4932
4936
  let n = "span";
4933
4937
  e.type === R.SUPERSCRIPT ? n = "sup" : e.type === R.SUBSCRIPT && (n = "sub");
4934
4938
  let r = document.createElement(n);
4935
- return r.style.fontFamily = e.font || t.defaultFont, e.rowFlex && (r.style.textAlign = ln(e.rowFlex)), e.color && (r.style.color = e.color), e.bold && (r.style.fontWeight = "600"), e.italic && (r.style.fontStyle = "italic"), r.style.fontSize = `${e.size || t.defaultSize}px`, e.highlight && (r.style.backgroundColor = e.highlight), e.underline && (r.style.textDecoration = "underline", r.style.textDecorationStyle = e.textDecoration?.style || "solid"), e.strikeout && (r.style.textDecoration += " line-through"), e.type && r.setAttribute("data-type", e.type), e.rowMargin && (r.style.lineHeight = (e.rowMargin ?? t.defaultRowMargin).toString()), r.innerText = e.value.replace(RegExp("​", "g"), "\n"), r;
4939
+ return r.style.fontFamily = e.font || t.defaultFont, e.rowFlex && (r.style.textAlign = un(e.rowFlex)), e.color && (r.style.color = e.color), e.bold && (r.style.fontWeight = "600"), e.italic && (r.style.fontStyle = "italic"), r.style.fontSize = `${e.size || t.defaultSize}px`, e.highlight && (r.style.backgroundColor = e.highlight), e.underline && (r.style.textDecoration = "underline", r.style.textDecorationStyle = e.textDecoration?.style || "solid"), e.strikeout && (r.style.textDecoration += " line-through"), e.type && r.setAttribute("data-type", e.type), e.rowMargin && (r.style.lineHeight = (e.rowMargin ?? t.defaultRowMargin).toString()), r.innerText = e.value.replace(/* @__PURE__ */ RegExp("​", "g"), "\n"), r;
4936
4940
  }
4937
- function gn(e) {
4941
+ function _n(e) {
4938
4942
  let t = 0, n = /* @__PURE__ */ new Map();
4939
4943
  for (let r = 0; r < e.length; r++) {
4940
4944
  let i = e[r];
@@ -4959,7 +4963,7 @@ function gn(e) {
4959
4963
  }
4960
4964
  return n;
4961
4965
  }
4962
- function _n(e) {
4966
+ function vn(e) {
4963
4967
  let t = [];
4964
4968
  if (!e.length) return t;
4965
4969
  let n = e[0]?.rowFlex || null;
@@ -4969,7 +4973,7 @@ function _n(e) {
4969
4973
  });
4970
4974
  for (let r = 1; r < e.length; r++) {
4971
4975
  let i = e[r], a = i.rowFlex || null;
4972
- n === a && !Cn(i) && !Cn(e[r - 1]) ? t[t.length - 1].data.push(i) : (t.push({
4976
+ n === a && !wn(i) && !wn(e[r - 1]) ? t[t.length - 1].data.push(i) : (t.push({
4973
4977
  rowFlex: a,
4974
4978
  data: [i]
4975
4979
  }), n = a);
@@ -4980,8 +4984,8 @@ function _n(e) {
4980
4984
  }
4981
4985
  return t;
4982
4986
  }
4983
- function vn(e, t) {
4984
- let n = rn(t);
4987
+ function yn(e, t) {
4988
+ let n = an(t);
4985
4989
  function r(e) {
4986
4990
  let i = document.createElement("div");
4987
4991
  for (let a = 0; a < e.length; a++) {
@@ -5005,7 +5009,7 @@ function vn(e, t) {
5005
5009
  let r = document.createElement("td");
5006
5010
  (!s.borderType || s.borderType === q.ALL) && (r.style.borderBottom = r.style.borderRight = "1px solid");
5007
5011
  let a = o.tdList[e];
5008
- r.colSpan = a.colspan, r.rowSpan = a.rowspan, r.style.verticalAlign = a.verticalAlign || "top", a.borderTypes?.includes(Et.TOP) && (r.style.borderTop = n), a.borderTypes?.includes(Et.RIGHT) && (r.style.borderRight = n), a.borderTypes?.includes(Et.BOTTOM) && (r.style.borderBottom = n), a.borderTypes?.includes(Et.LEFT) && (r.style.borderLeft = n), r.innerHTML = vn(a.value, t).innerHTML, a.backgroundColor && (r.style.backgroundColor = a.backgroundColor), i.append(r);
5012
+ r.colSpan = a.colspan, r.rowSpan = a.rowspan, r.style.verticalAlign = a.verticalAlign || "top", a.borderTypes?.includes(Et.TOP) && (r.style.borderTop = n), a.borderTypes?.includes(Et.RIGHT) && (r.style.borderRight = n), a.borderTypes?.includes(Et.BOTTOM) && (r.style.borderBottom = n), a.borderTypes?.includes(Et.LEFT) && (r.style.borderLeft = n), r.innerHTML = yn(a.value, t).innerHTML, a.backgroundColor && (r.style.backgroundColor = a.backgroundColor), i.append(r);
5009
5013
  }
5010
5014
  e.append(i);
5011
5015
  }
@@ -5018,7 +5022,7 @@ function vn(e, t) {
5018
5022
  e.innerHTML = r(s.valueList).innerHTML, i.append(e);
5019
5023
  } else if (s.type === R.LIST) {
5020
5024
  let e = document.createElement(dt[s.listType]);
5021
- s.listStyle && (e.style.listStyleType = ft[s.listStyle]), gn(X(s.valueList)).forEach((t) => {
5025
+ s.listStyle && (e.style.listStyleType = ft[s.listStyle]), _n(X(s.valueList)).forEach((t) => {
5022
5026
  let n = document.createElement("li");
5023
5027
  n.innerHTML = r(t).innerHTML, e.append(n);
5024
5028
  }), i.append(e);
@@ -5060,18 +5064,18 @@ function vn(e, t) {
5060
5064
  } else if (!s.type || s.type === R.LATEX || Me.includes(s.type)) {
5061
5065
  let t = "";
5062
5066
  if (t = s.type === R.DATE ? s.valueList?.map((e) => e.value).join("") || "" : s.value, !t) continue;
5063
- let r = hn(s, n);
5064
- e[a - 1]?.type === R.TITLE && (t = t.replace(/^\n/, "")), r.innerText = t.replace(RegExp("​", "g"), "\n"), i.append(r);
5067
+ let r = gn(s, n);
5068
+ e[a - 1]?.type === R.TITLE && (t = t.replace(/^\n/, "")), r.innerText = t.replace(/* @__PURE__ */ RegExp("​", "g"), "\n"), i.append(r);
5065
5069
  }
5066
5070
  }
5067
5071
  return i;
5068
5072
  }
5069
- let i = document.createElement("div"), a = _n(e);
5073
+ let i = document.createElement("div"), a = vn(e);
5070
5074
  for (let e = 0; e < a.length; e++) {
5071
5075
  let t = a[e], n = !t.rowFlex || t.rowFlex === u.LEFT, o = document.createElement("div");
5072
5076
  if (!n) {
5073
5077
  let e = t.data[0];
5074
- Cn(e) ? (o.style.display = "flex", o.style.justifyContent = un(e.rowFlex)) : (o.style.textAlign = ln(t.rowFlex), t.rowFlex === "justify" && (o.style.textAlignLast = "justify"));
5078
+ wn(e) ? (o.style.display = "flex", o.style.justifyContent = dn(e.rowFlex)) : (o.style.textAlign = un(t.rowFlex), t.rowFlex === "justify" && (o.style.textAlignLast = "justify"));
5075
5079
  }
5076
5080
  o.innerHTML = r(t.data).innerHTML, n ? o.childNodes.forEach((e) => {
5077
5081
  i.append(e.cloneNode(!0));
@@ -5079,9 +5083,9 @@ function vn(e, t) {
5079
5083
  }
5080
5084
  return i;
5081
5085
  }
5082
- function yn(e) {
5086
+ function bn(e) {
5083
5087
  if (!e || e.nodeType !== 3) return null;
5084
- let t = e.parentNode, n = t.nodeName === "FONT" ? t.parentNode : t, r = cn(n), i = e.textContent, a = window.getComputedStyle(n);
5088
+ let t = e.parentNode, n = t.nodeName === "FONT" ? t.parentNode : t, r = ln(n), i = e.textContent, a = window.getComputedStyle(n);
5085
5089
  if (!i || n.nodeName === "STYLE") return null;
5086
5090
  let o = {
5087
5091
  value: i,
@@ -5092,11 +5096,11 @@ function yn(e) {
5092
5096
  };
5093
5097
  return n.nodeName === "SUB" || a.verticalAlign === "sub" ? o.type = R.SUBSCRIPT : (n.nodeName === "SUP" || a.verticalAlign === "super") && (o.type = R.SUPERSCRIPT), r !== u.LEFT && (o.rowFlex = r), a.backgroundColor !== "rgba(0, 0, 0, 0)" && (o.highlight = a.backgroundColor), a.textDecorationLine.includes("underline") && (o.underline = !0), a.textDecorationLine.includes("line-through") && (o.strikeout = !0), o;
5094
5098
  }
5095
- function bn(e, t) {
5099
+ function xn(e, t) {
5096
5100
  let n = [];
5097
5101
  function r(e) {
5098
5102
  if (e.nodeType === 3) {
5099
- let t = yn(e);
5103
+ let t = bn(e);
5100
5104
  t && n.push(t);
5101
5105
  } else if (e.nodeType === 1) {
5102
5106
  let i = e.childNodes;
@@ -5112,7 +5116,7 @@ function bn(e, t) {
5112
5116
  url: e.href
5113
5117
  });
5114
5118
  } else if (/H[1-6]/.test(a.nodeName)) {
5115
- let e = bn(wn(a, "div").outerHTML, t);
5119
+ let e = xn(Tn(a, "div").outerHTML, t);
5116
5120
  n.push({
5117
5121
  value: "",
5118
5122
  type: R.TITLE,
@@ -5126,7 +5130,7 @@ function bn(e, t) {
5126
5130
  valueList: []
5127
5131
  };
5128
5132
  a.nodeName === "OL" ? r.listType = ot.OL : (r.listType = ot.UL, r.listStyle = e.style.listStyleType), e.querySelectorAll("li").forEach((e) => {
5129
- let n = bn(e.innerHTML, t);
5133
+ let n = xn(e.innerHTML, t);
5130
5134
  n.forEach((e) => {
5131
5135
  e.value === "\n" && (e.listWrap = !0);
5132
5136
  }), n.unshift({ value: "\n" }), r.valueList.push(...n);
@@ -5142,7 +5146,7 @@ function bn(e, t) {
5142
5146
  height: r,
5143
5147
  value: e,
5144
5148
  type: R.IMAGE,
5145
- rowFlex: cn(a.parentElement)
5149
+ rowFlex: ln(a.parentElement)
5146
5150
  });
5147
5151
  } else if (a.nodeName === "VIDEO") {
5148
5152
  let { src: e, width: t, height: r } = a;
@@ -5185,7 +5189,7 @@ function bn(e, t) {
5185
5189
  tdList: []
5186
5190
  };
5187
5191
  e.querySelectorAll("th,td").forEach((e) => {
5188
- let n = e, r = bn(n.innerHTML, t), a = {
5192
+ let n = e, r = xn(n.innerHTML, t), a = {
5189
5193
  colspan: n.colSpan,
5190
5194
  rowspan: n.rowSpan,
5191
5195
  value: r,
@@ -5228,7 +5232,7 @@ function bn(e, t) {
5228
5232
  e.nodeType !== 1 && !e.textContent?.trim() && s.push(e);
5229
5233
  }), s.forEach((e) => e.remove()), r(o), i.remove(), n;
5230
5234
  }
5231
- function xn(e) {
5235
+ function Sn(e) {
5232
5236
  function t(e) {
5233
5237
  let n = "";
5234
5238
  for (let r = 0; r < e.length; r++) {
@@ -5247,7 +5251,7 @@ function xn(e) {
5247
5251
  else if (i.type === R.HYPERLINK) n += i.valueList.map((e) => e.value).join("");
5248
5252
  else if (i.type === R.TITLE) n += `${t(X(i.valueList))}`;
5249
5253
  else if (i.type === R.LIST) {
5250
- let e = gn(X(i.valueList)), r = "";
5254
+ let e = _n(X(i.valueList)), r = "";
5251
5255
  i.listType === ot.UL && (r = ut[i.listStyle]), e.forEach((i, a) => {
5252
5256
  let o = e.size - 1 === a;
5253
5257
  n += `\n${r || `${a + 1}.`}${t(i)}${o ? "\n" : ""}`;
@@ -5260,20 +5264,20 @@ function xn(e) {
5260
5264
  let t = i.control.value?.[0]?.value || "";
5261
5265
  e = t ? `${i.control?.preText || ""}${t}${i.control?.postText || ""}` : "";
5262
5266
  } else e = i.type === R.DATE ? i.valueList?.map((e) => e.value).join("") || "" : i.value;
5263
- n += e.replace(RegExp("​", "g"), "\n");
5267
+ n += e.replace(/* @__PURE__ */ RegExp("​", "g"), "\n");
5264
5268
  }
5265
5269
  }
5266
5270
  return n;
5267
5271
  }
5268
5272
  return t(X(e));
5269
5273
  }
5270
- function Sn(e) {
5274
+ function Cn(e) {
5271
5275
  return y(e, ["metrics", "style"]);
5272
5276
  }
5273
- function Cn(e) {
5277
+ function wn(e) {
5274
5278
  return !!e?.type && (Pe.includes(e.type) || e.imgDisplay === r.INLINE);
5275
5279
  }
5276
- function wn(e, t) {
5280
+ function Tn(e, t) {
5277
5281
  let n = document.createElement(t);
5278
5282
  for (let t = 0; t < e.attributes.length; t++) {
5279
5283
  let r = e.attributes[t];
@@ -5281,7 +5285,7 @@ function wn(e, t) {
5281
5285
  }
5282
5286
  return n.innerHTML = e.innerHTML, n;
5283
5287
  }
5284
- function Tn(e) {
5288
+ function En(e) {
5285
5289
  let t = [];
5286
5290
  for (let n = 0; n < e.length; n++) {
5287
5291
  let i = e[n];
@@ -5289,10 +5293,10 @@ function Tn(e) {
5289
5293
  }
5290
5294
  return t;
5291
5295
  }
5292
- function En(e, t) {
5296
+ function Dn(e, t) {
5293
5297
  for (let n = e.length - 1; n >= 0; n--) e[n].imgFloatPosition?.pageNo === t && e.splice(n, 1);
5294
5298
  }
5295
- function Dn(e, t, n = i.BEFORE) {
5299
+ function On(e, t, n = i.BEFORE) {
5296
5300
  if (!e[t]?.hide && !e[t]?.control?.hide && !e[t]?.area?.hide) return t;
5297
5301
  let r = t;
5298
5302
  if (n === i.BEFORE) for (r = t - 1; r > 0;) {
@@ -5307,20 +5311,20 @@ function Dn(e, t, n = i.BEFORE) {
5307
5311
  }
5308
5312
  //#endregion
5309
5313
  //#region src/editor/utils/clipboard.ts
5310
- function On(e) {
5314
+ function kn(e) {
5311
5315
  localStorage.setItem(me, JSON.stringify({
5312
5316
  text: e.text,
5313
5317
  elementList: e.elementList
5314
5318
  }));
5315
5319
  }
5316
- function kn() {
5320
+ function An() {
5317
5321
  let e = localStorage.getItem(me);
5318
5322
  return e ? JSON.parse(e) : null;
5319
5323
  }
5320
- function An() {
5324
+ function jn() {
5321
5325
  localStorage.removeItem(me);
5322
5326
  }
5323
- async function jn(e, t, n) {
5327
+ async function Mn(e, t, n) {
5324
5328
  if (!e && !t && !n.length) return;
5325
5329
  let r = new Blob([e], { type: "text/plain" }), i = new Blob([t], { type: "text/html" });
5326
5330
  if (window.ClipboardItem) {
@@ -5335,20 +5339,20 @@ async function jn(e, t, n) {
5335
5339
  let n = window.getSelection(), r = document.createRange(), i = document.createElement("span");
5336
5340
  i.innerText = "\n", e.append(i), r.selectNodeContents(e), n?.removeAllRanges(), n?.addRange(r), document.execCommand("copy"), e.remove();
5337
5341
  }
5338
- On({
5342
+ kn({
5339
5343
  text: e,
5340
5344
  elementList: n
5341
5345
  });
5342
5346
  }
5343
- async function Mn(e, t) {
5344
- let n = vn(e, t);
5347
+ async function Nn(e, t) {
5348
+ let n = yn(e, t);
5345
5349
  document.body.append(n);
5346
5350
  let r = n.innerText;
5347
5351
  n.remove();
5348
5352
  let i = n.innerHTML;
5349
- !r && !i && !e.length || await jn(r, i, X(e));
5353
+ !r && !i && !e.length || await Mn(r, i, X(e));
5350
5354
  }
5351
- function Nn(e) {
5355
+ function Pn(e) {
5352
5356
  let t = !1;
5353
5357
  for (let n = 0; n < e.items.length; n++) if (e.items[n].kind === "file") {
5354
5358
  t = !0;
@@ -5358,7 +5362,7 @@ function Nn(e) {
5358
5362
  }
5359
5363
  //#endregion
5360
5364
  //#region src/editor/core/event/handlers/paste.ts
5361
- function Pn(e, t) {
5365
+ function Fn(e, t) {
5362
5366
  let n = e.getDraw();
5363
5367
  if (n.isReadonly() || n.isDisabled() || n.getControl().getIsDisabledPasteControl()) return;
5364
5368
  let r = n.getRange(), { startIndex: i } = r.getRange(), a = n.getElementList();
@@ -5386,11 +5390,11 @@ function Pn(e, t) {
5386
5390
  }
5387
5391
  n.insertElementList(t);
5388
5392
  }
5389
- function Fn(e, t) {
5393
+ function In(e, t) {
5390
5394
  let n = e.getDraw();
5391
- n.isReadonly() || n.isDisabled() || Pn(e, bn(t, { innerWidth: n.getOriginalInnerWidth() }));
5395
+ n.isReadonly() || n.isDisabled() || Fn(e, xn(t, { innerWidth: n.getOriginalInnerWidth() }));
5392
5396
  }
5393
- function In(e, t) {
5397
+ function Ln(e, t) {
5394
5398
  let n = e.getDraw();
5395
5399
  if (n.isReadonly() || n.isDisabled()) return;
5396
5400
  let { pasteImage: r } = n.getOverride();
@@ -5409,21 +5413,21 @@ function In(e, t) {
5409
5413
  };
5410
5414
  };
5411
5415
  }
5412
- function Ln(e, t) {
5416
+ function Rn(e, t) {
5413
5417
  let n = e.getDraw();
5414
5418
  if (n.isReadonly() || n.isDisabled()) return;
5415
5419
  let r = t.clipboardData;
5416
5420
  if (!r) return;
5417
5421
  let { paste: i } = n.getOverride();
5418
5422
  if (i && i(t)?.preventDefault !== !1) return;
5419
- if (!Nn(r)) {
5420
- let t = r.getData("text"), n = kn();
5423
+ if (!Pn(r)) {
5424
+ let t = r.getData("text"), n = An();
5421
5425
  if (n && le(t) === le(n.text)) {
5422
- Pn(e, n.elementList);
5426
+ Fn(e, n.elementList);
5423
5427
  return;
5424
5428
  }
5425
5429
  }
5426
- An();
5430
+ jn();
5427
5431
  let a = !1;
5428
5432
  for (let e = 0; e < r.items.length; e++) if (r.items[e].type === "text/html") {
5429
5433
  a = !0;
@@ -5440,27 +5444,27 @@ function Ln(e, t) {
5440
5444
  }
5441
5445
  if (n.type === "text/html" && a) {
5442
5446
  n.getAsString((t) => {
5443
- Fn(e, t);
5447
+ In(e, t);
5444
5448
  });
5445
5449
  break;
5446
5450
  }
5447
5451
  } else if (n.kind === "file" && n.type.includes("image")) {
5448
5452
  let t = n.getAsFile();
5449
- t && In(e, t);
5453
+ t && Ln(e, t);
5450
5454
  }
5451
5455
  }
5452
5456
  }
5453
- async function Rn(e, t) {
5457
+ async function zn(e, t) {
5454
5458
  let n = e.getDraw();
5455
5459
  if (n.isReadonly() || n.isDisabled()) return;
5456
5460
  let { paste: r } = n.getOverride();
5457
5461
  if (r && r()?.preventDefault !== !1) return;
5458
- let i = await navigator.clipboard.readText(), a = kn();
5462
+ let i = await navigator.clipboard.readText(), a = An();
5459
5463
  if (a && le(i) === le(a.text)) {
5460
- Pn(e, a.elementList);
5464
+ Fn(e, a.elementList);
5461
5465
  return;
5462
5466
  }
5463
- if (An(), t?.isPlainText) i && e.input(i);
5467
+ if (jn(), t?.isPlainText) i && e.input(i);
5464
5468
  else {
5465
5469
  let t = await navigator.clipboard.read(), n = !1;
5466
5470
  for (let e of t) if (e.types.includes("text/html")) {
@@ -5472,16 +5476,16 @@ async function Rn(e, t) {
5472
5476
  t && e.input(t);
5473
5477
  } else if (r.types.includes("text/html") && n) {
5474
5478
  let t = await (await r.getType("text/html")).text();
5475
- t && Fn(e, t);
5479
+ t && In(e, t);
5476
5480
  } else if (r.types.some((e) => e.startsWith("image/"))) {
5477
5481
  let t = r.types.find((e) => e.startsWith("image/"));
5478
- In(e, await r.getType(t));
5482
+ Ln(e, await r.getType(t));
5479
5483
  }
5480
5484
  }
5481
5485
  }
5482
5486
  //#endregion
5483
5487
  //#region src/editor/core/cursor/CursorAgent.ts
5484
- var zn = class {
5488
+ var Bn = class {
5485
5489
  draw;
5486
5490
  container;
5487
5491
  agentCursorDom;
@@ -5503,7 +5507,7 @@ var zn = class {
5503
5507
  t && this.canvasEvent.input(t), this.eventBus.isSubscribe("input") && this.eventBus.emit("input", e);
5504
5508
  }
5505
5509
  _paste(e) {
5506
- this.draw.isReadonly() || e.clipboardData && (Ln(this.canvasEvent, e), e.preventDefault());
5510
+ this.draw.isReadonly() || e.clipboardData && (Rn(this.canvasEvent, e), e.preventDefault());
5507
5511
  }
5508
5512
  _compositionstart() {
5509
5513
  this.canvasEvent.compositionstart();
@@ -5511,7 +5515,7 @@ var zn = class {
5511
5515
  _compositionend(e) {
5512
5516
  this.canvasEvent.compositionend(e);
5513
5517
  }
5514
- }, Bn = class {
5518
+ }, Vn = class {
5515
5519
  ANIMATION_CLASS = "ce-cursor--animation";
5516
5520
  draw;
5517
5521
  container;
@@ -5522,7 +5526,7 @@ var zn = class {
5522
5526
  blinkTimeout;
5523
5527
  hitLineStartIndex;
5524
5528
  constructor(e, t) {
5525
- this.draw = e, this.container = e.getContainer(), this.position = e.getPosition(), this.options = e.getOptions(), this.cursorDom = document.createElement("div"), this.cursorDom.classList.add("ce-cursor"), this.container.append(this.cursorDom), this.cursorAgent = new zn(e, t), this.blinkTimeout = null;
5529
+ this.draw = e, this.container = e.getContainer(), this.position = e.getPosition(), this.options = e.getOptions(), this.cursorDom = document.createElement("div"), this.cursorDom.classList.add("ce-cursor"), this.container.append(this.cursorDom), this.cursorAgent = new Bn(e, t), this.blinkTimeout = null;
5526
5530
  }
5527
5531
  getCursorDom() {
5528
5532
  return this.cursorDom;
@@ -5609,13 +5613,13 @@ var zn = class {
5609
5613
  u ? o.scroll(e, t - (s.top - f)) : o.scroll(e, t + f - s.bottom);
5610
5614
  }
5611
5615
  }
5612
- }, Vn;
5616
+ }, Hn;
5613
5617
  (function(e) {
5614
5618
  e[e.LEFT = 0] = "LEFT", e[e.CENTER = 1] = "CENTER", e[e.RIGHT = 2] = "RIGHT";
5615
- })(Vn ||= {});
5619
+ })(Hn ||= {});
5616
5620
  //#endregion
5617
5621
  //#region src/editor/utils/hotkey.ts
5618
- function Hn(e) {
5622
+ function Un(e) {
5619
5623
  return ge ? e.metaKey : e.ctrlKey;
5620
5624
  }
5621
5625
  //#endregion
@@ -5626,7 +5630,7 @@ var Q;
5626
5630
  })(Q ||= {});
5627
5631
  //#endregion
5628
5632
  //#region src/editor/core/draw/control/checkbox/CheckboxControl.ts
5629
- var Un = class {
5633
+ var Wn = class {
5630
5634
  element;
5631
5635
  control;
5632
5636
  constructor(e, t) {
@@ -5696,7 +5700,7 @@ var Un = class {
5696
5700
  cut() {
5697
5701
  return -1;
5698
5702
  }
5699
- }, Wn = class extends Un {
5703
+ }, Gn = class extends Wn {
5700
5704
  setSelect(e, t = {}, n = {}) {
5701
5705
  if (!n.isIgnoreDisabledRule && this.control.getIsDisabledControl(t)) return;
5702
5706
  let { control: r } = this.element, i = t.elementList || this.control.getElementList(), { startIndex: a } = t.range || this.control.getRange(), o = i[a], s = a;
@@ -5727,36 +5731,36 @@ var Un = class {
5727
5731
  };
5728
5732
  //#endregion
5729
5733
  //#region src/editor/core/event/handlers/mousedown.ts
5730
- function Gn(e) {
5734
+ function Kn(e) {
5731
5735
  let t = e.getDraw(), n = t.getPosition(), r = t.getRange();
5732
5736
  e.isAllowDrag = !0, e.cacheRange = b(r.getRange()), e.cacheElementList = t.getElementList(), e.cachePositionList = n.getPositionList(), e.cachePositionContext = n.getPositionContext();
5733
5737
  }
5734
- function Kn(e, t) {
5738
+ function qn(e, t) {
5735
5739
  let { checkbox: n, control: r } = e;
5736
5740
  if (!r) t.getCheckboxParticle().setSelect(e);
5737
5741
  else {
5738
5742
  let e = r?.code ? r.code.split(",") : [];
5739
5743
  if (n?.value) {
5740
5744
  let t = e.findIndex((e) => e === n.code);
5741
- e.splice(t, 1);
5745
+ ~t && e.splice(t, 1);
5742
5746
  } else n?.code && e.push(n.code);
5743
5747
  let i = t.getControl().getActiveControl();
5744
- i instanceof Un && i.setSelect(e);
5748
+ i instanceof Wn && i.setSelect(e);
5745
5749
  }
5746
5750
  }
5747
- function qn(e, t) {
5751
+ function Jn(e, t) {
5748
5752
  let { radio: n, control: r } = e;
5749
5753
  if (!r) t.getRadioParticle().setSelect(e);
5750
5754
  else {
5751
5755
  let e = n?.code ? [n.code] : [], r = t.getControl().getActiveControl();
5752
- r instanceof Wn && r.setSelect(e);
5756
+ r instanceof Gn && r.setSelect(e);
5753
5757
  }
5754
5758
  }
5755
- function Jn(e, t) {
5759
+ function Yn(e, t) {
5756
5760
  let n = t.getDraw(), i = n.isReadonly(), a = n.getRange(), o = n.getPosition(), s = a.getRange();
5757
- if (e.button === Vn.RIGHT && (s.isCrossRowCol || !a.getIsCollapsed())) return;
5761
+ if (e.button === Hn.RIGHT && (s.isCrossRowCol || !a.getIsCollapsed())) return;
5758
5762
  if (!t.isAllowDrag && !i && s.startIndex !== s.endIndex && a.getIsPointInRange(e.offsetX, e.offsetY)) {
5759
- Gn(t);
5763
+ Kn(t);
5760
5764
  return;
5761
5765
  }
5762
5766
  let c = e.target.dataset.index;
@@ -5780,17 +5784,17 @@ function Jn(e, t) {
5780
5784
  let { startIndex: e } = a.getRange();
5781
5785
  ~e && o.getPositionContext().tdId === l.tdId && (C > e ? r = e : s = e);
5782
5786
  }
5783
- if (a.setRange(r, s), o.setCursorPosition(S[C]), i = n.isReadonly(), E && !i) Kn(w, n);
5784
- else if (ee && !i) qn(w, n);
5787
+ if (a.setRange(r, s), o.setCursorPosition(S[C]), i = n.isReadonly(), E && !i) qn(w, n);
5788
+ else if (ee && !i) Jn(w, n);
5785
5789
  else if (w.controlComponent === U.VALUE && (w.control?.type === H.CHECKBOX || w.control?.type === H.RADIO)) {
5786
5790
  let e = C;
5787
5791
  for (; e > 0;) {
5788
5792
  let t = x[e];
5789
5793
  if (t.controlComponent === U.CHECKBOX) {
5790
- Kn(t, n);
5794
+ qn(t, n);
5791
5795
  break;
5792
5796
  } else if (t.controlComponent === U.RADIO) {
5793
- qn(t, n);
5797
+ Jn(t, n);
5794
5798
  break;
5795
5799
  }
5796
5800
  e--;
@@ -5811,7 +5815,7 @@ function Jn(e, t) {
5811
5815
  let k = n.getPreviewer();
5812
5816
  if (k.clearResizer(), T) {
5813
5817
  let a = { dragDisable: i || !w.controlId && n.getMode() === G.FORM };
5814
- w.type === R.LATEX && (a.mime = "svg", a.srcKey = "laTexSVG"), k.drawResizer(w, S[C], a), n.getCursor().drawCursor({ isShow: !1 }), Gn(t), (w.imgDisplay === r.SURROUND || w.imgDisplay === r.FLOAT_TOP || w.imgDisplay === r.FLOAT_BOTTOM) && n.getImageParticle().createFloatImage(w), O.isSubscribe("imageMousedown") && O.emit("imageMousedown", {
5818
+ w.type === R.LATEX && (a.mime = "svg", a.srcKey = "laTexSVG"), k.drawResizer(w, S[C], a), n.getCursor().drawCursor({ isShow: !1 }), Kn(t), (w.imgDisplay === r.SURROUND || w.imgDisplay === r.FLOAT_TOP || w.imgDisplay === r.FLOAT_BOTTOM) && n.getImageParticle().createFloatImage(w), O.isSubscribe("imageMousedown") && O.emit("imageMousedown", {
5815
5819
  evt: e,
5816
5820
  element: w
5817
5821
  });
@@ -5819,20 +5823,20 @@ function Jn(e, t) {
5819
5823
  let A = n.getTableTool();
5820
5824
  A.dispose(), _ && !i && n.getMode() !== G.FORM && A.render();
5821
5825
  let j = n.getHyperlinkParticle();
5822
- j.clearHyperlinkPopup(), w.type === R.HYPERLINK && (Hn(e) ? j.openHyperlink(w) : j.drawHyperlinkPopup(w, S[C]));
5826
+ j.clearHyperlinkPopup(), w.type === R.HYPERLINK && (Un(e) ? j.openHyperlink(w) : j.drawHyperlinkPopup(w, S[C]));
5823
5827
  let M = n.getDateParticle();
5824
5828
  M.clearDatePicker(), w.type === R.DATE && !i && M.renderDatePicker(w, S[C]);
5825
5829
  }
5826
5830
  //#endregion
5827
5831
  //#region src/editor/core/event/handlers/mouseup.ts
5828
- function Yn(e) {
5832
+ function Xn(e) {
5829
5833
  let t = C();
5830
5834
  return Reflect.set(e, "dragId", t), t;
5831
5835
  }
5832
- function Xn(e, t) {
5836
+ function Zn(e, t) {
5833
5837
  return t.findIndex((t) => t.dragId === e);
5834
5838
  }
5835
- function Zn(e, t, n, i, a) {
5839
+ function Qn(e, t, n, i, a) {
5836
5840
  let o = n.getDraw(), s = o.getPosition();
5837
5841
  if (e.imgDisplay === r.SURROUND || e.imgDisplay === r.FLOAT_TOP || e.imgDisplay === r.FLOAT_BOTTOM) {
5838
5842
  let r = t.offsetX - n.mouseDownStartPosition.x, c = t.offsetY - n.mouseDownStartPosition.y, l = e.imgFloatPosition, u = i?.isTable, d = a.isTable, f = l.x + r, p = l.y + c, m = o.getPageNo();
@@ -5864,7 +5868,7 @@ function Zn(e, t, n, i, a) {
5864
5868
  }
5865
5869
  o.getImageParticle().destroyFloatImage();
5866
5870
  }
5867
- function Qn(e, t) {
5871
+ function $n(e, t) {
5868
5872
  if (t.isAllowDrop) {
5869
5873
  let n = t.getDraw();
5870
5874
  if (n.isReadonly() || n.isDisabled()) {
@@ -5878,7 +5882,7 @@ function Qn(e, t) {
5878
5882
  if (p) {
5879
5883
  let s = l[h];
5880
5884
  if (s.type === R.IMAGE || s.type === R.LATEX) {
5881
- if (Zn(s, e, t, t.cachePositionContext, o), s.imgDisplay === r.SURROUND || s.imgDisplay === r.FLOAT_TOP || s.imgDisplay === r.FLOAT_BOTTOM) n.getPreviewer().drawResizer(s), i = !0;
5885
+ if (Qn(s, e, t, t.cachePositionContext, o), s.imgDisplay === r.SURROUND || s.imgDisplay === r.FLOAT_TOP || s.imgDisplay === r.FLOAT_BOTTOM) n.getPreviewer().drawResizer(s), i = !0;
5882
5886
  else {
5883
5887
  let e = u[h];
5884
5888
  n.getPreviewer().drawResizer(s, e);
@@ -5921,12 +5925,12 @@ function Qn(e, t) {
5921
5925
  }
5922
5926
  });
5923
5927
  Z(y, C, f.startIndex, { editorOptions: n.getOptions() });
5924
- let w = l[m], T = u[m], E = Yn(l[m]), ee = Yn(l[h]), D = C.length, O = f.startIndex, k = O + D, A = v.getActiveControl();
5928
+ let w = l[m], T = u[m], E = Xn(l[m]), ee = Xn(l[h]), D = C.length, O = f.startIndex, k = O + D, A = v.getActiveControl();
5925
5929
  if (A && l[O].controlComponent !== U.POSTFIX ? (k = A.setValue(C), O = k - D) : n.spliceElementList(y, O + 1, 0, C), !~k) {
5926
5930
  n.render({ isSetCursor: !1 });
5927
5931
  return;
5928
5932
  }
5929
- let j = Yn(y[O]), M = Yn(y[k]), te = Xn(E, l), N = Xn(ee, l), ne = l[N];
5933
+ let j = Xn(y[O]), M = Xn(y[k]), te = Zn(E, l), N = Zn(ee, l), ne = l[N];
5930
5934
  if (ne.controlId && ne.controlComponent !== U.POSTFIX) s.replaceRange({
5931
5935
  ...c,
5932
5936
  startIndex: te,
@@ -5945,12 +5949,12 @@ function Qn(e, t) {
5945
5949
  ...o,
5946
5950
  index: I
5947
5951
  }));
5948
- let ie = Xn(j, y), ae = Xn(M, y);
5952
+ let ie = Zn(j, y), ae = Zn(M, y);
5949
5953
  s.setRange(p ? ae : ie, ae, f.tableId, f.startTdIndex, f.endTdIndex, f.startTrIndex, f.endTrIndex), n.clearSideEffect();
5950
5954
  let oe = null;
5951
5955
  if (p) {
5952
5956
  let r = n.getElementList()[ae];
5953
- (r.type === R.IMAGE || r.type === R.LATEX) && (Zn(r, e, t, t.cachePositionContext, o), oe = r);
5957
+ (r.type === R.IMAGE || r.type === R.LATEX) && (Qn(r, e, t, t.cachePositionContext, o), oe = r);
5954
5958
  }
5955
5959
  if (n.render({ isSetCursor: !1 }), A ? v.emitControlContentChange() : w.controlId && v.emitControlContentChange({
5956
5960
  context: {
@@ -5967,7 +5971,7 @@ function Qn(e, t) {
5967
5971
  }
5968
5972
  //#endregion
5969
5973
  //#region src/editor/core/event/handlers/mouseleave.ts
5970
- function $n(e, t) {
5974
+ function er(e, t) {
5971
5975
  let n = t.getDraw();
5972
5976
  if (!n.getOptions().pageOuterSelectionDisable) return;
5973
5977
  let { x: r, y: i, width: a, height: o } = n.getPageContainer().getBoundingClientRect();
@@ -5975,7 +5979,7 @@ function $n(e, t) {
5975
5979
  }
5976
5980
  //#endregion
5977
5981
  //#region src/editor/core/event/handlers/mousemove.ts
5978
- function er(e, t) {
5982
+ function tr(e, t) {
5979
5983
  let n = t.getDraw();
5980
5984
  if (t.isAllowDrag) {
5981
5985
  let i = e.offsetX, a = e.offsetY, { startIndex: o, endIndex: s } = t.cacheRange, c = t.cachePositionList;
@@ -6026,7 +6030,7 @@ function er(e, t) {
6026
6030
  }
6027
6031
  //#endregion
6028
6032
  //#region src/editor/core/event/handlers/keydown/backspace.ts
6029
- function tr(e) {
6033
+ function nr(e) {
6030
6034
  let t = e.getDraw(), n = t.getRange(), r = n.getRange(), i = t.getElementList(), a = i[r.startIndex];
6031
6035
  if (!a.hide && !a.control?.hide && !a.area?.hide) return;
6032
6036
  let o = r.startIndex;
@@ -6044,12 +6048,12 @@ function tr(e) {
6044
6048
  }
6045
6049
  }
6046
6050
  }
6047
- function nr(e, t) {
6051
+ function rr(e, t) {
6048
6052
  let n = t.getDraw();
6049
6053
  if (n.isReadonly()) return;
6050
6054
  let r = n.getRange();
6051
6055
  if (!r.getIsCanInput()) return;
6052
- r.getIsCollapsed() && tr(t);
6056
+ r.getIsCollapsed() && nr(t);
6053
6057
  let i = n.getControl(), { startIndex: a, endIndex: o, isCrossRowCol: s } = r.getRange(), c;
6054
6058
  if (s) {
6055
6059
  let e = n.getTableParticle().getRangeRowCol();
@@ -6099,7 +6103,7 @@ function nr(e, t) {
6099
6103
  }
6100
6104
  //#endregion
6101
6105
  //#region src/editor/core/event/handlers/keydown/delete.ts
6102
- function rr(e) {
6106
+ function ir(e) {
6103
6107
  let t = e.getDraw(), n = t.getRange().getRange(), r = t.getElementList(), i = r[n.startIndex + 1];
6104
6108
  if (!i.hide && !i.control?.hide && !i.area?.hide) return;
6105
6109
  let a = n.startIndex + 1;
@@ -6110,14 +6114,14 @@ function rr(e) {
6110
6114
  if (!i || !i.hide && !i.control?.hide && !i.area?.hide) break;
6111
6115
  }
6112
6116
  }
6113
- function ir(e, t) {
6117
+ function ar(e, t) {
6114
6118
  let n = t.getDraw();
6115
6119
  if (n.isReadonly()) return;
6116
6120
  let r = n.getRange();
6117
6121
  if (!r.getIsCanInput()) return;
6118
- let { startIndex: i, endIndex: a, isCrossRowCol: o } = r.getRange(), s = n.getElementList(), c = n.getControl();
6119
- r.getIsCollapsed() && rr(t);
6120
- let l;
6122
+ let { startIndex: i, endIndex: a, isCrossRowCol: o } = r.getRange(), s = r.getIsCollapsed(), c = n.getElementList(), l = n.getControl();
6123
+ s && ir(t);
6124
+ let u;
6121
6125
  if (o) {
6122
6126
  let e = n.getTableParticle().getRangeRowCol();
6123
6127
  if (!e) return;
@@ -6129,32 +6133,32 @@ function ir(e, t) {
6129
6133
  r.value.length > 1 && (n.spliceElementList(r.value, 1, r.value.length - 1), t = !0);
6130
6134
  }
6131
6135
  }
6132
- l = t ? 0 : null;
6133
- } else if (c.getActiveControl() && c.getIsRangeWithinControl()) l = c.keydown(e), l && c.emitControlContentChange();
6134
- else if (s[a + 1]?.controlId) l = c.removeControl(a + 1);
6136
+ u = t ? 0 : null;
6137
+ } else if (l.getActiveControl() && l.getIsRangeWithinControl()) u = l.keydown(e), u && l.emitControlContentChange();
6138
+ else if (s && c[a + 1]?.controlId) u = l.removeControl(a + 1);
6135
6139
  else {
6136
6140
  let e = n.getPosition(), t = e.getCursorPosition();
6137
6141
  if (!t) return;
6138
- let { index: o } = t, c = e.getPositionContext();
6139
- if (c.isDirectHit && c.isImage) n.spliceElementList(s, o, 1), l = o - 1;
6142
+ let { index: o } = t, s = e.getPositionContext();
6143
+ if (s.isDirectHit && s.isImage) n.spliceElementList(c, o, 1), u = o - 1;
6140
6144
  else {
6141
6145
  let e = r.getIsCollapsed();
6142
- if (!e) n.spliceElementList(s, i + 1, a - i);
6146
+ if (!e) n.spliceElementList(c, i + 1, a - i);
6143
6147
  else {
6144
- if (!s[o + 1]) return;
6145
- n.spliceElementList(s, o + 1, 1);
6148
+ if (!c[o + 1]) return;
6149
+ n.spliceElementList(c, o + 1, 1);
6146
6150
  }
6147
- l = e ? o : i;
6151
+ u = e ? o : i;
6148
6152
  }
6149
6153
  }
6150
- n.getGlobalEvent().setCanvasEventAbility(), l === null ? (r.setRange(i, i), n.render({
6154
+ n.getGlobalEvent().setCanvasEventAbility(), u === null ? (r.setRange(i, i), n.render({
6151
6155
  curIndex: i,
6152
6156
  isSubmitHistory: !1
6153
- })) : (r.setRange(l, l), n.render({ curIndex: l }));
6157
+ })) : (r.setRange(u, u), n.render({ curIndex: u }));
6154
6158
  }
6155
6159
  //#endregion
6156
6160
  //#region src/editor/core/event/handlers/keydown/enter.ts
6157
- function ar(e, t) {
6161
+ function or(e, t) {
6158
6162
  let n = t.getDraw();
6159
6163
  if (n.isReadonly()) return;
6160
6164
  let r = n.getRange();
@@ -6196,7 +6200,7 @@ function ar(e, t) {
6196
6200
  }
6197
6201
  //#endregion
6198
6202
  //#region src/editor/core/event/handlers/keydown/left.ts
6199
- function or(e, t) {
6203
+ function sr(e, t) {
6200
6204
  let n = t.getDraw();
6201
6205
  if (n.isReadonly()) return;
6202
6206
  let r = n.getPosition(), i = r.getCursorPosition();
@@ -6263,7 +6267,7 @@ function or(e, t) {
6263
6267
  }
6264
6268
  if (!~h || !~g) return;
6265
6269
  let _ = n.getElementList();
6266
- h = Dn(_, h), g = Dn(_, g), s.setRange(h, g);
6270
+ h = On(_, h), g = On(_, g), s.setRange(h, g);
6267
6271
  let v = h === g;
6268
6272
  if (n.render({
6269
6273
  curIndex: v ? h : void 0,
@@ -6274,14 +6278,14 @@ function or(e, t) {
6274
6278
  let e = r.getPositionList(), t = e[h];
6275
6279
  if (t?.isLastLetter && t.value !== "​" && h + 1 < e.length) {
6276
6280
  let t = e[h + 1], r = _[h], i = _[h + 1];
6277
- t.value !== "​" && !Cn(i) && r.listId === i.listId && n.getCursor().drawCursor({ hitLineStartIndex: h + 1 });
6281
+ t.value !== "​" && !wn(i) && r.listId === i.listId && n.getCursor().drawCursor({ hitLineStartIndex: h + 1 });
6278
6282
  }
6279
6283
  }
6280
6284
  e.preventDefault();
6281
6285
  }
6282
6286
  //#endregion
6283
6287
  //#region src/editor/core/event/handlers/keydown/right.ts
6284
- function sr(e, t) {
6288
+ function cr(e, t) {
6285
6289
  let n = t.getDraw();
6286
6290
  if (n.isReadonly()) return;
6287
6291
  let r = n.getPosition(), a = r.getCursorPosition();
@@ -6349,7 +6353,7 @@ function sr(e, t) {
6349
6353
  let y = p.length - 1;
6350
6354
  if (_ > y || v > y) return;
6351
6355
  let b = n.getElementList();
6352
- _ = Dn(b, _, i.AFTER), v = Dn(b, v, i.AFTER), l.setRange(_, v);
6356
+ _ = On(b, _, i.AFTER), v = On(b, v, i.AFTER), l.setRange(_, v);
6353
6357
  let x = _ === v;
6354
6358
  if (n.render({
6355
6359
  curIndex: x ? _ : void 0,
@@ -6360,14 +6364,14 @@ function sr(e, t) {
6360
6364
  let e = s[_];
6361
6365
  if (e?.isLastLetter && e.value !== "​" && _ + 1 < s.length) {
6362
6366
  let e = s[_ + 1], t = p[_], r = p[_ + 1];
6363
- e.value !== "​" && !Cn(r) && t.listId === r.listId && n.getCursor().drawCursor({ hitLineStartIndex: _ + 1 });
6367
+ e.value !== "​" && !wn(r) && t.listId === r.listId && n.getCursor().drawCursor({ hitLineStartIndex: _ + 1 });
6364
6368
  }
6365
6369
  }
6366
6370
  e.preventDefault();
6367
6371
  }
6368
6372
  //#endregion
6369
6373
  //#region src/editor/core/event/handlers/keydown/tab.ts
6370
- function cr(e, t) {
6374
+ function lr(e, t) {
6371
6375
  let n = t.getDraw();
6372
6376
  if (n.isReadonly()) return;
6373
6377
  e.preventDefault();
@@ -6384,7 +6388,7 @@ function cr(e, t) {
6384
6388
  }
6385
6389
  //#endregion
6386
6390
  //#region src/editor/core/event/handlers/keydown/updown.ts
6387
- function lr(e) {
6391
+ function ur(e) {
6388
6392
  let { positionList: t, index: n, isUp: r, rowNo: i, cursorX: a } = e, o = -1, s = [];
6389
6393
  if (r) {
6390
6394
  let e = n - 1;
@@ -6414,7 +6418,7 @@ function lr(e) {
6414
6418
  }
6415
6419
  return o;
6416
6420
  }
6417
- function ur(e, t) {
6421
+ function dr(e, t) {
6418
6422
  let n = t.getDraw();
6419
6423
  if (n.isReadonly()) return;
6420
6424
  let r = n.getPosition(), i = r.getCursorPosition();
@@ -6480,7 +6484,7 @@ function ur(e, t) {
6480
6484
  e.shiftKey && (t = o === i.index ? c[s] : c[o]);
6481
6485
  let { index: a, rowNo: f, rowIndex: p, coordinate: { rightTop: [m] } } = t;
6482
6486
  if (l && p === 0 || !l && p === n.getRowCount() - 1) return;
6483
- let h = lr({
6487
+ let h = ur({
6484
6488
  positionList: c,
6485
6489
  index: a,
6486
6490
  rowNo: f,
@@ -6497,7 +6501,7 @@ function ur(e, t) {
6497
6501
  for (let i = 0; i < r.length; i++) {
6498
6502
  let c = r[i], u = c.x * e + t[3], d = c.width * e;
6499
6503
  if (m >= u && m <= u + d) {
6500
- let e = c.positionList, t = e[e.length - 1], r = lr({
6504
+ let e = c.positionList, t = e[e.length - 1], r = ur({
6501
6505
  positionList: e,
6502
6506
  index: t.index + 1,
6503
6507
  rowNo: t.rowNo - 1,
@@ -6514,7 +6518,7 @@ function ur(e, t) {
6514
6518
  for (let i = 0; i < r.length; i++) {
6515
6519
  let c = r[i], u = c.x * e + t[3], d = c.width * e;
6516
6520
  if (m >= u && m <= u + d) {
6517
- let e = c.positionList, t = lr({
6521
+ let e = c.positionList, t = ur({
6518
6522
  positionList: e,
6519
6523
  index: -1,
6520
6524
  rowNo: -1,
@@ -6555,7 +6559,7 @@ function ur(e, t) {
6555
6559
  }
6556
6560
  //#endregion
6557
6561
  //#region src/editor/core/event/handlers/keydown/home.ts
6558
- function dr(e, t) {
6562
+ function fr(e, t) {
6559
6563
  let n = t.getDraw();
6560
6564
  if (n.isReadonly()) return;
6561
6565
  let r = n.getPosition(), i = r.getCursorPosition();
@@ -6578,7 +6582,7 @@ function dr(e, t) {
6578
6582
  }
6579
6583
  //#endregion
6580
6584
  //#region src/editor/core/event/handlers/keydown/end.ts
6581
- function fr(e, t) {
6585
+ function pr(e, t) {
6582
6586
  let n = t.getDraw();
6583
6587
  if (n.isReadonly()) return;
6584
6588
  let r = n.getPosition(), i = r.getCursorPosition();
@@ -6601,27 +6605,27 @@ function fr(e, t) {
6601
6605
  }
6602
6606
  //#endregion
6603
6607
  //#region src/editor/core/event/handlers/keydown/index.ts
6604
- function pr(e, t) {
6608
+ function mr(e, t) {
6605
6609
  if (t.isComposing) return;
6606
6610
  let n = t.getDraw();
6607
- if (e.key === Q.Backspace) nr(e, t);
6608
- else if (e.key === Q.Delete) ir(e, t);
6609
- else if (e.key === Q.Enter) ar(e, t);
6610
- else if (e.key === Q.Left) ge && e.metaKey ? dr(e, t) : or(e, t);
6611
- else if (e.key === Q.Right) ge && e.metaKey ? fr(e, t) : sr(e, t);
6612
- else if (e.key === Q.Up || e.key === Q.Down) ur(e, t);
6613
- else if (e.key === Q.Home) dr(e, t);
6614
- else if (e.key === Q.End) fr(e, t);
6615
- else if (Hn(e) && e.key.toLocaleLowerCase() === Q.Z) {
6611
+ if (e.key === Q.Backspace) rr(e, t);
6612
+ else if (e.key === Q.Delete) ar(e, t);
6613
+ else if (e.key === Q.Enter) or(e, t);
6614
+ else if (e.key === Q.Left) ge && e.metaKey ? fr(e, t) : sr(e, t);
6615
+ else if (e.key === Q.Right) ge && e.metaKey ? pr(e, t) : cr(e, t);
6616
+ else if (e.key === Q.Up || e.key === Q.Down) dr(e, t);
6617
+ else if (e.key === Q.Home) fr(e, t);
6618
+ else if (e.key === Q.End) pr(e, t);
6619
+ else if (Un(e) && e.key.toLocaleLowerCase() === Q.Z) {
6616
6620
  if (n.isReadonly() && n.getMode() !== G.FORM) return;
6617
6621
  n.getHistoryManager().undo(), e.preventDefault();
6618
- } else if (Hn(e) && e.key.toLocaleLowerCase() === Q.Y) {
6622
+ } else if (Un(e) && e.key.toLocaleLowerCase() === Q.Y) {
6619
6623
  if (n.isReadonly() && n.getMode() !== G.FORM) return;
6620
6624
  n.getHistoryManager().redo(), e.preventDefault();
6621
- } else if (Hn(e) && e.key.toLocaleLowerCase() === Q.C) t.copy(), e.preventDefault();
6622
- else if (Hn(e) && e.key.toLocaleLowerCase() === Q.X) t.cut(), e.preventDefault();
6623
- else if (Hn(e) && e.key.toLocaleLowerCase() === Q.A) t.selectAll(), e.preventDefault();
6624
- else if (Hn(e) && e.key.toLocaleLowerCase() === Q.S) {
6625
+ } else if (Un(e) && e.key.toLocaleLowerCase() === Q.C) t.copy(), e.preventDefault();
6626
+ else if (Un(e) && e.key.toLocaleLowerCase() === Q.X) t.cut(), e.preventDefault();
6627
+ else if (Un(e) && e.key.toLocaleLowerCase() === Q.A) t.selectAll(), e.preventDefault();
6628
+ else if (Un(e) && e.key.toLocaleLowerCase() === Q.S) {
6625
6629
  if (n.isReadonly()) return;
6626
6630
  let t = n.getListener();
6627
6631
  t.saved && t.saved(n.getValue());
@@ -6631,11 +6635,11 @@ function pr(e, t) {
6631
6635
  t.clearPainterStyle();
6632
6636
  let r = n.getZone();
6633
6637
  r.isMainActive() || r.setZone(K.MAIN), e.preventDefault();
6634
- } else e.key === Q.TAB && cr(e, t);
6638
+ } else e.key === Q.TAB && lr(e, t);
6635
6639
  }
6636
6640
  //#endregion
6637
6641
  //#region src/editor/core/event/handlers/input.ts
6638
- function mr(e, t) {
6642
+ function hr(e, t) {
6639
6643
  let n = t.getDraw();
6640
6644
  if (n.isReadonly() || n.isDisabled()) return;
6641
6645
  let r = n.getPosition().getCursorPosition();
@@ -6645,7 +6649,7 @@ function mr(e, t) {
6645
6649
  let a = n.getRange();
6646
6650
  if (!a.getIsCanInput()) return;
6647
6651
  let o = a.getDefaultStyle() || t.compositionInfo?.defaultStyle || null;
6648
- hr(t), i || n.getCursor().clearAgentDomValue();
6652
+ gr(t), i || n.getCursor().clearAgentDomValue();
6649
6653
  let { TEXT: s, HYPERLINK: c, SUBSCRIPT: l, SUPERSCRIPT: u, DATE: d, TAB: f } = R, p = e.replaceAll("\n", "​"), { startIndex: m, endIndex: h } = a.getRange(), g = n.getElementList(), _ = a.getRangeAnchorStyle(g, h);
6650
6654
  if (!_) return;
6651
6655
  let v = n.isDesignMode(), y = w(p).map((e) => {
@@ -6671,7 +6675,7 @@ function mr(e, t) {
6671
6675
  ~x && (a.setRange(x, x), n.render({
6672
6676
  curIndex: x,
6673
6677
  isSubmitHistory: !i
6674
- })), i && ~x && (t.compositionInfo = {
6678
+ }), e && n.getAccessibility().input(e)), i && ~x && (t.compositionInfo = {
6675
6679
  elementList: g,
6676
6680
  value: p,
6677
6681
  startIndex: x - y.length,
@@ -6679,14 +6683,14 @@ function mr(e, t) {
6679
6683
  defaultStyle: o
6680
6684
  });
6681
6685
  }
6682
- function hr(e) {
6686
+ function gr(e) {
6683
6687
  if (!e.compositionInfo) return;
6684
6688
  let { elementList: t, startIndex: n, endIndex: r } = e.compositionInfo;
6685
6689
  t.splice(n + 1, r - n), e.getDraw().getRange().setRange(n, n), e.compositionInfo = null;
6686
6690
  }
6687
6691
  //#endregion
6688
6692
  //#region src/editor/core/event/handlers/cut.ts
6689
- async function gr(e) {
6693
+ async function _r(e) {
6690
6694
  let t = e.getDraw(), n = t.getRange(), { startIndex: r, endIndex: i } = n.getRange();
6691
6695
  if (!~r && !~i || t.isReadonly() || !n.getIsCanInput()) return;
6692
6696
  let a = t.getElementList(), o = r, s = i;
@@ -6701,13 +6705,13 @@ async function gr(e) {
6701
6705
  o = l < 0 ? 0 : l, s = c[c.length - 1];
6702
6706
  }
6703
6707
  let c = t.getOptions();
6704
- await Mn(a.slice(o + 1, s + 1), c);
6708
+ await Nn(a.slice(o + 1, s + 1), c);
6705
6709
  let l = t.getControl(), u;
6706
6710
  l.getActiveControl() && l.getIsRangeWithinControl() ? (u = l.cut(), l.emitControlContentChange()) : (t.spliceElementList(a, o + 1, s - o), u = o), n.setRange(u, u), t.render({ curIndex: u });
6707
6711
  }
6708
6712
  //#endregion
6709
6713
  //#region src/editor/core/event/handlers/copy.ts
6710
- async function _r(e, t) {
6714
+ async function vr(e, t) {
6711
6715
  let n = e.getDraw(), { copy: r } = n.getOverride();
6712
6716
  if (r && r()?.preventDefault !== !1) return;
6713
6717
  let i = n.getRange(), a = null;
@@ -6734,11 +6738,11 @@ async function _r(e, t) {
6734
6738
  }
6735
6739
  a = X([r]);
6736
6740
  } else a = i.getIsCollapsed() ? i.getRangeRowElementList() : i.getSelectionElementList();
6737
- t?.isPlainText && a?.length && (a = [{ value: xn(a) }]), a?.length && await Mn(a, n.getOptions());
6741
+ t?.isPlainText && a?.length && (a = [{ value: Sn(a) }]), a?.length && await Nn(a, n.getOptions());
6738
6742
  }
6739
6743
  //#endregion
6740
6744
  //#region src/editor/core/event/handlers/drop.ts
6741
- function vr(e, t) {
6745
+ function yr(e, t) {
6742
6746
  let { drop: n } = t.getDraw().getOverride();
6743
6747
  if (n && n(e)?.preventDefault !== !1) return;
6744
6748
  e.preventDefault();
@@ -6749,13 +6753,13 @@ function vr(e, t) {
6749
6753
  if (!n) return;
6750
6754
  for (let e = 0; e < n.length; e++) {
6751
6755
  let r = n[e];
6752
- r.type.startsWith("image") && In(t, r);
6756
+ r.type.startsWith("image") && Ln(t, r);
6753
6757
  }
6754
6758
  }
6755
6759
  }
6756
6760
  //#endregion
6757
6761
  //#region src/editor/core/event/handlers/click.ts
6758
- function yr(e) {
6762
+ function br(e) {
6759
6763
  if (!Intl.Segmenter) return null;
6760
6764
  let t = e.getDraw(), n = t.getPosition().getCursorPosition();
6761
6765
  if (!n) return null;
@@ -6776,7 +6780,7 @@ function yr(e) {
6776
6780
  endIndex: l
6777
6781
  } : null;
6778
6782
  }
6779
- function br(e) {
6783
+ function xr(e) {
6780
6784
  let t = e.getDraw(), n = t.getPosition().getCursorPosition();
6781
6785
  if (!n) return null;
6782
6786
  let { value: r, index: i } = n, a = t.getLetterReg(), o = 0, s = 0, c = d.test(r);
@@ -6800,7 +6804,7 @@ function br(e) {
6800
6804
  endIndex: i + s
6801
6805
  };
6802
6806
  }
6803
- function xr(e, t) {
6807
+ function Sr(e, t) {
6804
6808
  let n = e.getDraw(), r = n.getPosition(), i = r.getPositionByXY({
6805
6809
  x: t.offsetX,
6806
6810
  y: t.offsetY
@@ -6819,14 +6823,14 @@ function xr(e, t) {
6819
6823
  return;
6820
6824
  }
6821
6825
  if ((i.isCheckbox || i.isRadio) && i.isDirectHit) return;
6822
- let a = n.getRange(), o = yr(e) || br(e);
6826
+ let a = n.getRange(), o = br(e) || xr(e);
6823
6827
  o && (a.setRange(o.startIndex, o.endIndex), n.render({
6824
6828
  isSubmitHistory: !1,
6825
6829
  isSetCursor: !1,
6826
6830
  isCompute: !1
6827
6831
  }), a.setRangeStyle());
6828
6832
  }
6829
- function Sr(e) {
6833
+ function Cr(e) {
6830
6834
  let t = e.getDraw(), n = t.getControl();
6831
6835
  if (n.getActiveControl() && n.selectValue()) return;
6832
6836
  let r = t.getPosition().getCursorPosition();
@@ -6852,23 +6856,23 @@ function Sr(e) {
6852
6856
  isCompute: !1
6853
6857
  });
6854
6858
  }
6855
- var Cr = {
6856
- dblclick: xr,
6857
- threeClick: Sr
6859
+ var wr = {
6860
+ dblclick: Sr,
6861
+ threeClick: Cr
6858
6862
  };
6859
6863
  //#endregion
6860
6864
  //#region src/editor/core/event/handlers/composition.ts
6861
- function wr(e) {
6865
+ function Tr(e) {
6862
6866
  e.isComposing = !0;
6863
6867
  }
6864
- function Tr(e, t) {
6868
+ function Er(e, t) {
6865
6869
  e.isComposing = !1;
6866
6870
  let n = e.getDraw();
6867
6871
  if (t.data) ye ? setTimeout(() => {
6868
- e.compositionInfo && mr(t.data, e);
6869
- }, 1) : e.compositionInfo && mr(t.data, e);
6872
+ e.compositionInfo && hr(t.data, e);
6873
+ }, 1) : e.compositionInfo && hr(t.data, e);
6870
6874
  else {
6871
- hr(e);
6875
+ gr(e);
6872
6876
  let { endIndex: t } = n.getRange().getRange();
6873
6877
  n.render({
6874
6878
  curIndex: t,
@@ -6877,13 +6881,13 @@ function Tr(e, t) {
6877
6881
  }
6878
6882
  n.getCursor().clearAgentDomValue();
6879
6883
  }
6880
- var Er = {
6881
- compositionstart: wr,
6882
- compositionend: Tr
6884
+ var Dr = {
6885
+ compositionstart: Tr,
6886
+ compositionend: Er
6883
6887
  };
6884
6888
  //#endregion
6885
6889
  //#region src/editor/core/event/handlers/drag.ts
6886
- function Dr(e, t) {
6890
+ function Or(e, t) {
6887
6891
  let n = t.getDraw();
6888
6892
  if (n.isReadonly()) return;
6889
6893
  e.preventDefault();
@@ -6910,7 +6914,7 @@ function Dr(e, t) {
6910
6914
  isFocus: !1
6911
6915
  });
6912
6916
  }
6913
- var Or = { dragover: Dr }, kr = class {
6917
+ var kr = { dragover: Or }, Ar = class {
6914
6918
  isAllowSelection;
6915
6919
  isComposing;
6916
6920
  compositionInfo;
@@ -6951,7 +6955,7 @@ var Or = { dragover: Dr }, kr = class {
6951
6955
  if (!e || this.draw.isReadonly() || this.draw.isDisabled()) return;
6952
6956
  let t = this.range.getSelection();
6953
6957
  if (!t) {
6954
- let e = yr(this);
6958
+ let e = br(this);
6955
6959
  e && (t = this.draw.getElementList().slice(e.startIndex + 1, e.endIndex + 1));
6956
6960
  }
6957
6961
  if (!t) return;
@@ -6977,51 +6981,51 @@ var Or = { dragover: Dr }, kr = class {
6977
6981
  }
6978
6982
  }
6979
6983
  mousemove(e) {
6980
- er(e, this);
6984
+ tr(e, this);
6981
6985
  }
6982
6986
  mousedown(e) {
6983
- Jn(e, this);
6987
+ Yn(e, this);
6984
6988
  }
6985
6989
  click() {
6986
6990
  _e && !this.draw.isReadonly() && this.draw.getCursor().getAgentDom().focus();
6987
6991
  }
6988
6992
  mouseup(e) {
6989
- Qn(e, this);
6993
+ $n(e, this);
6990
6994
  }
6991
6995
  mouseleave(e) {
6992
- $n(e, this);
6996
+ er(e, this);
6993
6997
  }
6994
6998
  keydown(e) {
6995
- pr(e, this);
6999
+ mr(e, this);
6996
7000
  }
6997
7001
  dblclick(e) {
6998
- Cr.dblclick(this, e);
7002
+ wr.dblclick(this, e);
6999
7003
  }
7000
7004
  threeClick() {
7001
- Cr.threeClick(this);
7005
+ wr.threeClick(this);
7002
7006
  }
7003
7007
  input(e) {
7004
- mr(e, this);
7008
+ hr(e, this);
7005
7009
  }
7006
7010
  async cut() {
7007
- await gr(this);
7011
+ await _r(this);
7008
7012
  }
7009
7013
  async copy(e) {
7010
- await _r(this, e);
7014
+ await vr(this, e);
7011
7015
  }
7012
7016
  compositionstart() {
7013
- Er.compositionstart(this);
7017
+ Dr.compositionstart(this);
7014
7018
  }
7015
7019
  compositionend(e) {
7016
- Er.compositionend(this, e);
7020
+ Dr.compositionend(this, e);
7017
7021
  }
7018
7022
  drop(e) {
7019
- vr(e, this);
7023
+ yr(e, this);
7020
7024
  }
7021
7025
  dragover(e) {
7022
- Or.dragover(e, this);
7026
+ kr.dragover(e, this);
7023
7027
  }
7024
- }, Ar = { PAGE_SCALE: "pageScale" }, jr = class {
7028
+ }, jr = { PAGE_SCALE: "pageScale" }, Mr = class {
7025
7029
  draw;
7026
7030
  options;
7027
7031
  cursor;
@@ -7070,7 +7074,7 @@ var Or = { dragover: Dr }, kr = class {
7070
7074
  });
7071
7075
  }
7072
7076
  setPageScale = (e) => {
7073
- if (this.options.shortcutDisableKeys.includes(Ar.PAGE_SCALE) || !e.ctrlKey) return;
7077
+ if (this.options.shortcutDisableKeys.includes(jr.PAGE_SCALE) || !e.ctrlKey) return;
7074
7078
  e.preventDefault();
7075
7079
  let { scale: t } = this.options;
7076
7080
  if (e.deltaY < 0) {
@@ -7095,7 +7099,7 @@ var Or = { dragover: Dr }, kr = class {
7095
7099
  _handleDprChange = () => {
7096
7100
  this.draw.setPageDevicePixel();
7097
7101
  };
7098
- }, Mr = class {
7102
+ }, Nr = class {
7099
7103
  undoStack = [];
7100
7104
  redoStack = [];
7101
7105
  maxRecordCount;
@@ -7132,7 +7136,7 @@ var Or = { dragover: Dr }, kr = class {
7132
7136
  popUndo() {
7133
7137
  return this.undoStack.pop();
7134
7138
  }
7135
- }, Nr = class {
7139
+ }, Pr = class {
7136
7140
  cursorPosition;
7137
7141
  positionContext;
7138
7142
  positionList;
@@ -7572,7 +7576,7 @@ var Or = { dragover: Dr }, kr = class {
7572
7576
  }
7573
7577
  setSurroundPosition(e) {
7574
7578
  let { scale: t } = this.options, { pageNo: n, row: r, rowElement: i, rowElementRect: a, surroundElementList: o, availableWidth: s } = e, c = a.x, l = 0;
7575
- if (o.length && !Cn(i) && !i.control?.minWidth) for (let e = 0; e < o.length; e++) {
7579
+ if (o.length && !wn(i) && !i.control?.minWidth) for (let e = 0; e < o.length; e++) {
7576
7580
  let u = o[e], d = u.imgFloatPosition;
7577
7581
  if (d.pageNo !== n) continue;
7578
7582
  let f = {
@@ -7596,7 +7600,7 @@ var Or = { dragover: Dr }, kr = class {
7596
7600
  rowIncreaseWidth: l
7597
7601
  };
7598
7602
  }
7599
- }, Pr = class {
7603
+ }, Fr = class {
7600
7604
  draw;
7601
7605
  options;
7602
7606
  range;
@@ -7627,7 +7631,7 @@ var Or = { dragover: Dr }, kr = class {
7627
7631
  return this.defaultStyle;
7628
7632
  }
7629
7633
  getRangeAnchorStyle(e, t) {
7630
- let n = mn(e, t);
7634
+ let n = hn(e, t);
7631
7635
  return n ? {
7632
7636
  ...n,
7633
7637
  ...this.defaultStyle
@@ -7786,13 +7790,14 @@ var Or = { dragover: Dr }, kr = class {
7786
7790
  return !r.controlId && !i.controlId || (!r.controlId || r.controlComponent === U.POSTFIX) && (!i.controlId || i.controlComponent === U.POSTFIX) || !!r.controlId && i.controlId === r.controlId && i.controlComponent !== U.PRE_TEXT && i.controlComponent !== U.POST_TEXT && i.controlComponent !== U.POSTFIX;
7787
7791
  }
7788
7792
  setRange(e, t, n, r, i, a, o) {
7789
- this.getIsRangeChange(e, t, n, r, i, a, o) && (this.range.startIndex = e, this.range.endIndex = t, this.range.tableId = n, this.range.startTdIndex = r, this.range.endTdIndex = i, this.range.startTrIndex = a, this.range.endTrIndex = o, this.range.isCrossRowCol = !!(r || i || a || o), this.setDefaultStyle(null)), this.range.zone = this.draw.getZone().getZone();
7790
- let s = this.draw.getControl();
7793
+ let s = this.getIsRangeChange(e, t, n, r, i, a, o);
7794
+ s && (this.range.startIndex = e, this.range.endIndex = t, this.range.tableId = n, this.range.startTdIndex = r, this.range.endTdIndex = i, this.range.startTrIndex = a, this.range.endTrIndex = o, this.range.isCrossRowCol = !!(r || i || a || o), this.setDefaultStyle(null)), this.range.zone = this.draw.getZone().getZone();
7795
+ let c = this.draw.getControl();
7791
7796
  if (~e && ~t && this.draw.getElementList()[e]?.controlId) {
7792
- s.initControl();
7797
+ c.initControl();
7793
7798
  return;
7794
7799
  }
7795
- s.destroyControl();
7800
+ c.destroyControl(), s && this.eventBus.isSubscribe("rangeChange") && this.eventBus.emit("rangeChange", this.range);
7796
7801
  }
7797
7802
  replaceRange(e) {
7798
7803
  this.setRange(e.startIndex, e.endIndex, e.tableId, e.startTdIndex, e.endTdIndex, e.startTrIndex, e.endTrIndex);
@@ -7934,7 +7939,7 @@ var Or = { dragover: Dr }, kr = class {
7934
7939
  let e = this.getTextLikeSelection();
7935
7940
  return e ? e.map((e) => e.value).join("").replace(/* @__PURE__ */ RegExp("​", "g"), "") : "";
7936
7941
  }
7937
- }, Fr = class {
7942
+ }, Ir = class {
7938
7943
  draw;
7939
7944
  options;
7940
7945
  imageCache;
@@ -7981,7 +7986,7 @@ var Or = { dragover: Dr }, kr = class {
7981
7986
  this._renderBackgroundColor(e, r, n, i);
7982
7987
  }
7983
7988
  }
7984
- }, Ir = class {
7989
+ }, Lr = class {
7985
7990
  fillRect;
7986
7991
  fillColor;
7987
7992
  fillDecorationStyle;
@@ -8004,7 +8009,7 @@ var Or = { dragover: Dr }, kr = class {
8004
8009
  }
8005
8010
  s && (this.fillRect.x = t, this.fillRect.y = n), i && this.fillRect.height < i && (this.fillRect.height = i), this.fillRect.width += r, this.fillColor = a, this.fillDecorationStyle = o;
8006
8011
  }
8007
- }, Lr = class extends Ir {
8012
+ }, Rr = class extends Lr {
8008
8013
  options;
8009
8014
  constructor(e) {
8010
8015
  super(), this.options = e.getOptions();
@@ -8014,7 +8019,7 @@ var Or = { dragover: Dr }, kr = class {
8014
8019
  let { highlightAlpha: t } = this.options, { x: n, y: r, width: i, height: a } = this.fillRect;
8015
8020
  e.save(), e.globalAlpha = t, e.fillStyle = this.fillColor, e.fillRect(n, r, i, a), e.restore(), this.clearFillInfo();
8016
8021
  }
8017
- }, Rr = class {
8022
+ }, zr = class {
8018
8023
  draw;
8019
8024
  options;
8020
8025
  constructor(e) {
@@ -8026,7 +8031,7 @@ var Or = { dragover: Dr }, kr = class {
8026
8031
  let c = [o[3], o[0]], l = [i - o[1], o[0]], u = [o[3], a - o[2]], d = [i - o[1], a - o[2]];
8027
8032
  e.moveTo(c[0] - s, c[1]), e.lineTo(...c), e.lineTo(c[0], c[1] - s), e.moveTo(l[0] + s, l[1]), e.lineTo(...l), e.lineTo(l[0], l[1] - s), e.moveTo(u[0] - s, u[1]), e.lineTo(...u), e.lineTo(u[0], u[1] + s), e.moveTo(d[0] + s, d[1]), e.lineTo(...d), e.lineTo(d[0], d[1] + s), e.stroke(), e.restore();
8028
8033
  }
8029
- }, zr = class {
8034
+ }, Br = class {
8030
8035
  draw;
8031
8036
  options;
8032
8037
  position;
@@ -8044,6 +8049,13 @@ var Or = { dragover: Dr }, kr = class {
8044
8049
  setSearchKeyword(e, t) {
8045
8050
  this.searchKeyword = e, this.searchNavigateIndex = null, this.searchOptions = t || null;
8046
8051
  }
8052
+ getSearchMatchGroupStartIndex(e) {
8053
+ let t = this.searchMatchList[e];
8054
+ if (!t) return null;
8055
+ let n = e;
8056
+ for (; n > 0 && this.searchMatchList[n - 1].groupId === t.groupId;) n--;
8057
+ return n;
8058
+ }
8047
8059
  searchNavigatePre() {
8048
8060
  if (!this.searchMatchList.length || !this.searchKeyword) return null;
8049
8061
  if (this.searchNavigateIndex === null) this.searchNavigateIndex = 0;
@@ -8051,14 +8063,14 @@ var Or = { dragover: Dr }, kr = class {
8051
8063
  let e = this.searchNavigateIndex - 1, t = !1, n = this.searchMatchList[this.searchNavigateIndex].groupId;
8052
8064
  for (; e >= 0;) {
8053
8065
  if (n !== this.searchMatchList[e].groupId) {
8054
- t = !0, this.searchNavigateIndex = e - (this.searchKeyword.length - 1);
8066
+ t = !0, this.searchNavigateIndex = this.getSearchMatchGroupStartIndex(e);
8055
8067
  break;
8056
8068
  }
8057
8069
  e--;
8058
8070
  }
8059
8071
  if (!t) {
8060
8072
  if (this.searchMatchList[this.searchMatchList.length - 1].groupId === n) return null;
8061
- this.searchNavigateIndex = this.searchMatchList.length - 1 - (this.searchKeyword.length - 1);
8073
+ this.searchNavigateIndex = this.getSearchMatchGroupStartIndex(this.searchMatchList.length - 1);
8062
8074
  }
8063
8075
  }
8064
8076
  return this.searchNavigateIndex;
@@ -8087,21 +8099,26 @@ var Or = { dragover: Dr }, kr = class {
8087
8099
  o.style.position = "absolute", o.style.width = `${r[0] - t[0] + 50}px`, o.style.height = `${n[1] - t[1] + 50}px`, o.style.left = `${t[0]}px`, o.style.top = `${t[1] + a}px`, this.draw.getContainer().append(o), o.scrollIntoView(!1), o.remove();
8088
8100
  }
8089
8101
  getSearchNavigateIndexList() {
8090
- return this.searchNavigateIndex === null || !this.searchKeyword ? [] : Array(this.searchKeyword.length).fill(this.searchNavigateIndex).map((e, t) => e + t);
8102
+ if (this.searchNavigateIndex === null || !this.searchKeyword) return [];
8103
+ let e = this.searchMatchList[this.searchNavigateIndex];
8104
+ if (!e) return [];
8105
+ let t = [], n = this.searchNavigateIndex;
8106
+ for (; n < this.searchMatchList.length && this.searchMatchList[n].groupId === e.groupId;) t.push(n), n++;
8107
+ return t;
8091
8108
  }
8092
8109
  getSearchMatchList() {
8093
8110
  return this.searchMatchList;
8094
8111
  }
8095
8112
  getSearchNavigateInfo() {
8096
8113
  if (!this.searchKeyword || !this.searchMatchList.length) return null;
8097
- let e = this.searchNavigateIndex === null ? 0 : this.searchNavigateIndex / this.searchKeyword.length + 1, t = 0, n = null;
8098
- for (let e = 0; e < this.searchMatchList.length; e++) {
8099
- let r = this.searchMatchList[e];
8100
- n !== r.groupId && (n = r.groupId, t += 1);
8114
+ let e = this.searchNavigateIndex === null ? null : this.searchMatchList[this.searchNavigateIndex]?.groupId, t = 0, n = 0, r = null;
8115
+ for (let i = 0; i < this.searchMatchList.length; i++) {
8116
+ let a = this.searchMatchList[i];
8117
+ r !== a.groupId && (r = a.groupId, n += 1, e === r && (t = n));
8101
8118
  }
8102
8119
  return {
8103
- index: e,
8104
- count: t
8120
+ index: t,
8121
+ count: n
8105
8122
  };
8106
8123
  }
8107
8124
  getMatchList(e, t) {
@@ -8270,7 +8287,7 @@ var Or = { dragover: Dr }, kr = class {
8270
8287
  } else this.position.setPositionContext({ isTable: !1 });
8271
8288
  this.draw.getRange().setRange(f, f), this.draw.render({ curIndex: f });
8272
8289
  }
8273
- }, Br = class extends Ir {
8290
+ }, Vr = class extends Lr {
8274
8291
  options;
8275
8292
  constructor(e) {
8276
8293
  super(), this.options = e.getOptions();
@@ -8282,17 +8299,17 @@ var Or = { dragover: Dr }, kr = class {
8282
8299
  let o = i + .5;
8283
8300
  e.beginPath(), e.moveTo(r, o), e.lineTo(r + a, o), e.stroke(), e.restore(), this.clearFillInfo();
8284
8301
  }
8285
- }, Vr;
8302
+ }, Hr;
8286
8303
  (function(e) {
8287
8304
  e.SOLID = "solid", e.DOUBLE = "double", e.DASHED = "dashed", e.DOTTED = "dotted", e.WAVY = "wavy";
8288
- })(Vr ||= {});
8289
- var Hr;
8305
+ })(Hr ||= {});
8306
+ var Ur;
8290
8307
  (function(e) {
8291
8308
  e.SOLID = "solid", e.DASHED = "dashed", e.DOTTED = "dotted";
8292
- })(Hr ||= {});
8309
+ })(Ur ||= {});
8293
8310
  //#endregion
8294
8311
  //#region src/editor/core/draw/richtext/Underline.ts
8295
- var Ur = class extends Ir {
8312
+ var Wr = class extends Lr {
8296
8313
  options;
8297
8314
  constructor(e) {
8298
8315
  super(), this.options = e.getOptions();
@@ -8300,10 +8317,10 @@ var Ur = class extends Ir {
8300
8317
  _drawLine(e, t, n, r, i) {
8301
8318
  let a = t + r;
8302
8319
  switch (e.beginPath(), i) {
8303
- case Hr.DASHED:
8320
+ case Ur.DASHED:
8304
8321
  e.setLineDash([3, 1]);
8305
8322
  break;
8306
- case Hr.DOTTED:
8323
+ case Ur.DOTTED:
8307
8324
  e.setLineDash([1, 1]);
8308
8325
  break;
8309
8326
  }
@@ -8328,17 +8345,17 @@ var Ur = class extends Ir {
8328
8345
  e.save(), e.strokeStyle = this.fillColor || t, e.lineWidth = n;
8329
8346
  let o = Math.floor(i + 2 * e.lineWidth) + .5;
8330
8347
  switch (this.fillDecorationStyle) {
8331
- case Vr.WAVY:
8348
+ case Hr.WAVY:
8332
8349
  this._drawWave(e, r, o, a);
8333
8350
  break;
8334
- case Vr.DOUBLE:
8351
+ case Hr.DOUBLE:
8335
8352
  this._drawDouble(e, r, o, a);
8336
8353
  break;
8337
- case Vr.DASHED:
8338
- this._drawLine(e, r, o, a, Hr.DASHED);
8354
+ case Hr.DASHED:
8355
+ this._drawLine(e, r, o, a, Ur.DASHED);
8339
8356
  break;
8340
- case Vr.DOTTED:
8341
- this._drawLine(e, r, o, a, Hr.DOTTED);
8357
+ case Hr.DOTTED:
8358
+ this._drawLine(e, r, o, a, Ur.DOTTED);
8342
8359
  break;
8343
8360
  default:
8344
8361
  this._drawLine(e, r, o, a);
@@ -8346,7 +8363,7 @@ var Ur = class extends Ir {
8346
8363
  }
8347
8364
  e.restore(), this.clearFillInfo();
8348
8365
  }
8349
- }, Wr = class {
8366
+ }, Gr = class {
8350
8367
  draw;
8351
8368
  options;
8352
8369
  ctx;
@@ -8419,7 +8436,7 @@ var Ur = class extends Ir {
8419
8436
  _render() {
8420
8437
  !this.text || !~this.curX || !~this.curY || (this.ctx.save(), this.ctx.font = this.curStyle, this.ctx.fillStyle = this.curColor || this.options.defaultColor, this.ctx.fillText(this.text, this.curX, this.curY), this.ctx.restore());
8421
8438
  }
8422
- }, Gr = class e {
8439
+ }, Kr = class e {
8423
8440
  draw;
8424
8441
  options;
8425
8442
  constructor(e) {
@@ -8441,7 +8458,7 @@ var Ur = class extends Ir {
8441
8458
  let v = 0, y = this.draw.getMargins(), { width: b } = t.measureText(p);
8442
8459
  v = s === u.CENTER ? (g - b) / 2 : s === u.RIGHT ? g - b - y[1] : y[3], t.fillText(p, v, _), t.restore();
8443
8460
  }
8444
- }, Kr = class {
8461
+ }, qr = class {
8445
8462
  draw;
8446
8463
  options;
8447
8464
  scrollContainer;
@@ -8479,7 +8496,7 @@ var Ur = class extends Ir {
8479
8496
  let { intersectionPageNo: e, visiblePageNoList: t } = this.getPageVisibleInfo();
8480
8497
  this.draw.setIntersectionPageNo(e), this.draw.setVisiblePageNoList(t);
8481
8498
  }, 150);
8482
- }, qr = class {
8499
+ }, Jr = class {
8483
8500
  step = 5;
8484
8501
  thresholdPoints = [
8485
8502
  70,
@@ -8533,7 +8550,7 @@ var Ur = class extends Ir {
8533
8550
  _stopMove() {
8534
8551
  this.requestAnimationFrameId && (window.cancelAnimationFrame(this.requestAnimationFrameId), this.requestAnimationFrameId = null, this.isMoving = !1);
8535
8552
  }
8536
- }, Jr = class {
8553
+ }, Yr = class {
8537
8554
  draw;
8538
8555
  range;
8539
8556
  options;
@@ -8744,13 +8761,13 @@ var Ur = class extends Ir {
8744
8761
  render(e, t, n, r) {
8745
8762
  this._drawBackgroundColor(e, t, n, r), this._drawBorder(e, t, n, r);
8746
8763
  }
8747
- }, Yr;
8764
+ }, Xr;
8748
8765
  (function(e) {
8749
8766
  e.ROW = "row", e.COL = "col";
8750
- })(Yr ||= {});
8767
+ })(Xr ||= {});
8751
8768
  //#endregion
8752
8769
  //#region src/editor/core/draw/particle/table/TableTool.ts
8753
- var Xr = class {
8770
+ var Zr = class {
8754
8771
  MIN_TD_WIDTH = 20;
8755
8772
  ROW_COL_OFFSET = 18;
8756
8773
  ROW_COL_QUICK_WIDTH = 16;
@@ -8813,7 +8830,7 @@ var Xr = class {
8813
8830
  evt: t,
8814
8831
  element: o,
8815
8832
  index: e,
8816
- order: Yr.ROW
8833
+ order: Xr.ROW
8817
8834
  });
8818
8835
  }, r.append(i), r.style.height = `${n}px`, T.append(r);
8819
8836
  }
@@ -8852,7 +8869,7 @@ var Xr = class {
8852
8869
  evt: t,
8853
8870
  element: o,
8854
8871
  index: e,
8855
- order: Yr.COL
8872
+ order: Xr.COL
8856
8873
  });
8857
8874
  }, r.append(i), r.style.width = `${n}px`, D.append(r);
8858
8875
  }
@@ -8878,7 +8895,7 @@ var Xr = class {
8878
8895
  evt: e,
8879
8896
  element: o,
8880
8897
  index: n.rowIndex + n.rowspan - 1,
8881
- order: Yr.ROW
8898
+ order: Xr.ROW
8882
8899
  });
8883
8900
  }, k.appendChild(r);
8884
8901
  let i = document.createElement("div");
@@ -8887,7 +8904,7 @@ var Xr = class {
8887
8904
  evt: e,
8888
8905
  element: o,
8889
8906
  index: n.colIndex + n.colspan - 1,
8890
- order: Yr.COL
8907
+ order: Xr.COL
8891
8908
  });
8892
8909
  }, k.appendChild(i), c && n.colIndex === 0) {
8893
8910
  let e = document.createElement("div");
@@ -8897,7 +8914,7 @@ var Xr = class {
8897
8914
  element: o,
8898
8915
  index: 0,
8899
8916
  isLeftStartBorder: !0,
8900
- order: Yr.COL
8917
+ order: Xr.COL
8901
8918
  });
8902
8919
  }, k.appendChild(e);
8903
8920
  }
@@ -8920,14 +8937,14 @@ var Xr = class {
8920
8937
  let f = t.target, p = this.canvas.getBoundingClientRect(), m = window.getComputedStyle(f).cursor;
8921
8938
  document.body.style.cursor = m, this.canvas.style.cursor = m;
8922
8939
  let h = 0, g = 0, _ = document.createElement("div");
8923
- _.classList.add("ce-table-anchor__line"), r === Yr.ROW ? (_.classList.add("ce-table-anchor__line__row"), _.style.width = `${c}px`, h = 0, g = d + this.mousedownY - p.top) : (_.classList.add("ce-table-anchor__line__col"), _.style.height = `${l}px`, h = this.mousedownX - p.left, g = d), _.style.left = `${h}px`, _.style.top = `${g}px`, this.container.append(_), this.anchorLine = _;
8940
+ _.classList.add("ce-table-anchor__line"), r === Xr.ROW ? (_.classList.add("ce-table-anchor__line__row"), _.style.width = `${c}px`, h = 0, g = d + this.mousedownY - p.top) : (_.classList.add("ce-table-anchor__line__col"), _.style.height = `${l}px`, h = this.mousedownX - p.left, g = d), _.style.left = `${h}px`, _.style.top = `${g}px`, this.container.append(_), this.anchorLine = _;
8924
8941
  let v = 0, y = 0, b = (e) => {
8925
8942
  let t = this._mousemove(e, r, h, g);
8926
8943
  t && (v = t.dx, y = t.dy);
8927
8944
  };
8928
8945
  document.addEventListener("mousemove", b), document.addEventListener("mouseup", () => {
8929
8946
  let e = !1;
8930
- if (r === Yr.ROW) {
8947
+ if (r === Xr.ROW) {
8931
8948
  let t = i.trList, r = t[n] || t[n - 1], { defaultTrMinHeight: a } = this.options.table;
8932
8949
  y < 0 && r.height + y < a && (y = a - r.height), y && (r.height += y, r.minHeight = r.height, e = !0);
8933
8950
  } else {
@@ -8956,12 +8973,12 @@ var Xr = class {
8956
8973
  _mousemove(e, t, n, r) {
8957
8974
  if (!this.anchorLine) return null;
8958
8975
  let i = e.x - this.mousedownX, a = e.y - this.mousedownY;
8959
- return t === Yr.ROW ? this.anchorLine.style.top = `${r + a}px` : this.anchorLine.style.left = `${n + i}px`, e.preventDefault(), {
8976
+ return t === Xr.ROW ? this.anchorLine.style.top = `${r + a}px` : this.anchorLine.style.left = `${n + i}px`, e.preventDefault(), {
8960
8977
  dx: i,
8961
8978
  dy: a
8962
8979
  };
8963
8980
  }
8964
- }, Zr = class {
8981
+ }, Qr = class {
8965
8982
  draw;
8966
8983
  options;
8967
8984
  container;
@@ -8997,7 +9014,7 @@ var Xr = class {
8997
9014
  render(e, t, n, r) {
8998
9015
  e.save(), e.font = t.style, t.color ||= this.options.defaultHyperlinkColor, e.fillStyle = t.color, t.underline === void 0 && (t.underline = !0), e.fillText(t.value, n, r), e.restore();
8999
9016
  }
9000
- }, Qr = class {
9017
+ }, $r = class {
9001
9018
  options;
9002
9019
  constructor(e) {
9003
9020
  this.options = e.getOptions();
@@ -9011,7 +9028,7 @@ var Xr = class {
9011
9028
  _drawRoundedRect(e, t, n, r, i, a) {
9012
9029
  e.beginPath(), e.moveTo(t + a, n), e.lineTo(t + r - a, n), e.quadraticCurveTo(t + r, n, t + r, n + a), e.lineTo(t + r, n + i - a), e.quadraticCurveTo(t + r, n + i, t + r - a, n + i), e.lineTo(t + a, n + i), e.quadraticCurveTo(t, n + i, t, n + i - a), e.lineTo(t, n + a), e.quadraticCurveTo(t, n, t + a, n), e.closePath();
9013
9030
  }
9014
- }, $r = class {
9031
+ }, ei = class {
9015
9032
  draw;
9016
9033
  position;
9017
9034
  zone;
@@ -9041,7 +9058,7 @@ var Xr = class {
9041
9058
  this.rowList = [], this.positionList = [];
9042
9059
  }
9043
9060
  _computeRowList() {
9044
- let e = this.draw.getInnerWidth(), t = this.draw.getMargins(), n = Tn(this.elementList);
9061
+ let e = this.draw.getInnerWidth(), t = this.draw.getMargins(), n = En(this.elementList);
9045
9062
  this.rowList = this.draw.computeRowList({
9046
9063
  startX: t[3],
9047
9064
  startY: this.getHeaderTop(),
@@ -9102,21 +9119,21 @@ var Xr = class {
9102
9119
  zone: K.HEADER
9103
9120
  }), e.restore();
9104
9121
  }
9105
- }, ei = class {
9122
+ }, ti = class {
9106
9123
  getOffsetY(e) {
9107
9124
  return -e.metrics.height / 2;
9108
9125
  }
9109
9126
  render(e, t, n, r) {
9110
9127
  e.save(), e.font = t.style, t.color && (e.fillStyle = t.color), e.fillText(t.value, n, r + this.getOffsetY(t)), e.restore();
9111
9128
  }
9112
- }, ti = class {
9129
+ }, ni = class {
9113
9130
  getOffsetY(e) {
9114
9131
  return e.metrics.height / 2;
9115
9132
  }
9116
9133
  render(e, t, n, r) {
9117
9134
  e.save(), e.font = t.style, t.color && (e.fillStyle = t.color), e.fillText(t.value, n, r + this.getOffsetY(t)), e.restore();
9118
9135
  }
9119
- }, ni = class {
9136
+ }, ri = class {
9120
9137
  options;
9121
9138
  constructor(e) {
9122
9139
  this.options = e.getOptions();
@@ -9128,7 +9145,7 @@ var Xr = class {
9128
9145
  let s = Math.round(r);
9129
9146
  e.translate(0, e.lineWidth / 2), e.beginPath(), e.moveTo(n, s), e.lineTo(n + t.width * i, s), e.stroke(), e.restore();
9130
9147
  }
9131
- }, ri = class {
9148
+ }, ii = class {
9132
9149
  draw;
9133
9150
  options;
9134
9151
  i18n;
@@ -9141,7 +9158,7 @@ var Xr = class {
9141
9158
  let p = e.measureText(s), m = (d - p.width) / 2;
9142
9159
  e.setLineDash(o), e.translate(0, .5 + f), e.beginPath(), e.moveTo(n, r), e.lineTo(n + m, r), e.moveTo(n + m + p.width, r), e.lineTo(n + d, r), e.stroke(), e.fillText(s, n + m, r + p.actualBoundingBoxAscent - u / 2), e.restore();
9143
9160
  }
9144
- }, ii = class {
9161
+ }, ai = class {
9145
9162
  draw;
9146
9163
  options;
9147
9164
  imageCache;
@@ -9152,9 +9169,9 @@ var Xr = class {
9152
9169
  let { watermark: { data: n, opacity: r, font: i, size: a, color: o, repeat: s, gap: c, numberType: l }, scale: u } = this.options, d = this.draw.getWidth(), f = this.draw.getHeight();
9153
9170
  e.save(), e.globalAlpha = r, e.font = `${a * u}px ${i}`;
9154
9171
  let p = n, m = new RegExp(Bt.PAGE_NO);
9155
- m.test(p) && (p = Gr.formatNumberPlaceholder(p, t + 1, m, l));
9172
+ m.test(p) && (p = Kr.formatNumberPlaceholder(p, t + 1, m, l));
9156
9173
  let h = new RegExp(Bt.PAGE_COUNT);
9157
- h.test(p) && (p = Gr.formatNumberPlaceholder(p, this.draw.getPageCount(), h, l));
9174
+ h.test(p) && (p = Kr.formatNumberPlaceholder(p, this.draw.getPageCount(), h, l));
9158
9175
  let g = e.measureText(p);
9159
9176
  if (s) {
9160
9177
  let t = this.draw.getPagePixelRatio(), n = document.createElement("canvas"), r = n.getContext("2d"), s = g.width, l = g.actualBoundingBoxAscent + g.actualBoundingBoxDescent, m = Math.sqrt(s ** 2 + l ** 2), h = m + 2 * c[0] * u, _ = m + 2 * c[1] * u;
@@ -9194,7 +9211,7 @@ var Xr = class {
9194
9211
  render(e, t) {
9195
9212
  this.options.watermark.type === Kt.IMAGE ? this.renderImage(e) : this.renderText(e, t);
9196
9213
  }
9197
- }, ai = class {
9214
+ }, oi = class {
9198
9215
  draw;
9199
9216
  control;
9200
9217
  options;
@@ -9277,7 +9294,7 @@ var Xr = class {
9277
9294
  }
9278
9295
  e.restore();
9279
9296
  }
9280
- }, oi = class {
9297
+ }, si = class {
9281
9298
  borderRect;
9282
9299
  options;
9283
9300
  constructor(e) {
@@ -9299,7 +9316,7 @@ var Xr = class {
9299
9316
  let { scale: t, control: { borderWidth: n, borderColor: r } } = this.options, { x: i, y: a, width: o, height: s } = this.borderRect;
9300
9317
  e.save(), e.translate(0, 1 * t), e.lineWidth = n * t, e.strokeStyle = r, e.beginPath(), e.rect(i, a, o, s), e.stroke(), e.restore(), this.clearBorderInfo();
9301
9318
  }
9302
- }, si = class {
9319
+ }, ci = class {
9303
9320
  draw;
9304
9321
  element;
9305
9322
  control;
@@ -9496,7 +9513,7 @@ var Xr = class {
9496
9513
  destroy() {
9497
9514
  this.isPopup &&= (this.selectDom?.remove(), !1);
9498
9515
  }
9499
- }, ci = class {
9516
+ }, li = class {
9500
9517
  element;
9501
9518
  control;
9502
9519
  options;
@@ -9583,7 +9600,7 @@ var Xr = class {
9583
9600
  })($ ||= {});
9584
9601
  //#endregion
9585
9602
  //#region src/editor/core/draw/particle/date/DatePicker.ts
9586
- var li = class {
9603
+ var ui = class {
9587
9604
  draw;
9588
9605
  options;
9589
9606
  now;
@@ -9968,7 +9985,7 @@ var li = class {
9968
9985
  destroy() {
9969
9986
  this.dom.container.remove();
9970
9987
  }
9971
- }, ui = class {
9988
+ }, di = class {
9972
9989
  draw;
9973
9990
  element;
9974
9991
  control;
@@ -10081,7 +10098,7 @@ var li = class {
10081
10098
  if (!e) return;
10082
10099
  let t = this.draw.getElementList(), { startIndex: n } = this.control.getRange();
10083
10100
  if (t[n + 1]?.controlId !== this.element.controlId) return;
10084
- this.datePicker = new li(this.draw, { onSubmit: this._setDate.bind(this) });
10101
+ this.datePicker = new ui(this.draw, { onSubmit: this._setDate.bind(this) });
10085
10102
  let r = this.getValue().map((e) => e.value).join("") || "", i = this.element.control?.dateFormat;
10086
10103
  this.datePicker.render({
10087
10104
  value: r,
@@ -10095,7 +10112,7 @@ var li = class {
10095
10112
  _setDate(e) {
10096
10113
  e ? this.setSelect(e) : this.clearSelect(), this.destroy();
10097
10114
  }
10098
- }, di = class {
10115
+ }, fi = class {
10099
10116
  control;
10100
10117
  calculatorDom;
10101
10118
  onCalculate;
@@ -10223,7 +10240,7 @@ var li = class {
10223
10240
  let t = Function("return " + e)();
10224
10241
  return !Number.isFinite(t) || Number.isInteger(t) ? t : parseFloat(t.toFixed(10));
10225
10242
  }
10226
- }, fi = class extends ci {
10243
+ }, pi = class extends li {
10227
10244
  isPopup;
10228
10245
  calculator;
10229
10246
  constructor(e, t) {
@@ -10233,7 +10250,7 @@ var li = class {
10233
10250
  return this.isPopup;
10234
10251
  }
10235
10252
  setValue(e, t = {}, n = {}) {
10236
- if (e.some((e) => !fn(e) || h.test(e.value))) return -1;
10253
+ if (e.some((e) => !pn(e) || h.test(e.value))) return -1;
10237
10254
  let r = t.elementList || this.control.getElementList(), i = t.range || this.control.getRange();
10238
10255
  this.control.shrinkBoundary(t);
10239
10256
  let a = b(e), { startIndex: o, endIndex: s } = i, c = r[o];
@@ -10251,7 +10268,7 @@ var li = class {
10251
10268
  a.push(e), t++;
10252
10269
  }
10253
10270
  }
10254
- let l = pn(a);
10271
+ let l = mn(a);
10255
10272
  return Number.isNaN(Number(l)) || !Number.isFinite(Number(l)) ? -1 : super.setValue(e, t, n);
10256
10273
  }
10257
10274
  _setCalculatedValue(e) {
@@ -10277,7 +10294,7 @@ var li = class {
10277
10294
  let e = this.element.control?.numberExclusiveOptions?.calculatorDisabled === !1;
10278
10295
  if (this.isPopup || !e || this.control.getIsDisabledControl() || !this.control.getIsRangeWithinControl()) return;
10279
10296
  let { startIndex: t } = this.control.getRange();
10280
- this.control.getElementList()[t + 1]?.controlId === this.element.controlId && (this.calculator = new di({
10297
+ this.control.getElementList()[t + 1]?.controlId === this.element.controlId && (this.calculator = new fi({
10281
10298
  control: this.control,
10282
10299
  onCalculate: (e) => {
10283
10300
  this._setCalculatedValue(e);
@@ -10287,7 +10304,7 @@ var li = class {
10287
10304
  destroy() {
10288
10305
  this.isPopup &&= (this.calculator?.destroy(), this.calculator = null, !1);
10289
10306
  }
10290
- }, pi = class {
10307
+ }, mi = class {
10291
10308
  controlBorder;
10292
10309
  draw;
10293
10310
  range;
@@ -10300,7 +10317,7 @@ var li = class {
10300
10317
  activeControlValue;
10301
10318
  preElement;
10302
10319
  constructor(e) {
10303
- this.controlBorder = new oi(e), this.draw = e, this.range = e.getRange(), this.listener = e.getListener(), this.eventBus = e.getEventBus(), this.controlSearch = new ai(this), this.options = e.getOptions(), this.controlOptions = this.options.control, this.activeControl = null, this.activeControlValue = [], this.preElement = null;
10320
+ this.controlBorder = new si(e), this.draw = e, this.range = e.getRange(), this.listener = e.getListener(), this.eventBus = e.getEventBus(), this.controlSearch = new oi(this), this.options = e.getOptions(), this.controlOptions = this.options.control, this.activeControl = null, this.activeControlValue = [], this.preElement = null;
10304
10321
  }
10305
10322
  setHighlightList(e) {
10306
10323
  this.controlSearch.setHighlightList(e);
@@ -10497,7 +10514,7 @@ var li = class {
10497
10514
  let t = this.eventBus.isSubscribe("controlChange");
10498
10515
  if (!this.listener.controlChange && !t) return;
10499
10516
  let n, r = this.activeControlValue, i = this.activeControl.getElement();
10500
- r?.length ? n = X(r)[0].control : (n = sn(b(i)).control, n.value = []);
10517
+ r?.length ? n = X(r)[0].control : (n = cn(b(i)).control, n.value = []);
10501
10518
  let a = {
10502
10519
  state: e,
10503
10520
  control: n,
@@ -10508,7 +10525,7 @@ var li = class {
10508
10525
  initControl() {
10509
10526
  let e = this.getElementList()[this.getRange().startIndex];
10510
10527
  if (this.activeControl) {
10511
- (this.activeControl instanceof si || this.activeControl instanceof ui || this.activeControl instanceof fi) && (e.controlComponent === U.POSTFIX ? this.activeControl.destroy() : this.activeControl.awake()), this.preElement?.controlId === e.controlId && (e.controlComponent === U.POSTFIX ? this.emitControlChange(yt.INACTIVE) : this.preElement?.controlComponent === U.POSTFIX && this.emitControlChange(yt.ACTIVE));
10528
+ (this.activeControl instanceof ci || this.activeControl instanceof di || this.activeControl instanceof pi) && (e.controlComponent === U.POSTFIX ? this.activeControl.destroy() : this.activeControl.awake()), this.preElement?.controlId === e.controlId && (e.controlComponent === U.POSTFIX ? this.emitControlChange(yt.INACTIVE) : this.preElement?.controlComponent === U.POSTFIX && this.emitControlChange(yt.ACTIVE));
10512
10529
  let t = this.activeControl.getElement();
10513
10530
  if (e.controlId === t.controlId) {
10514
10531
  this.updateActiveControlValue(), this.preElement = e;
@@ -10517,17 +10534,17 @@ var li = class {
10517
10534
  }
10518
10535
  if (this.destroyControl(), this.draw.isReadonly()) return;
10519
10536
  let t = e.control;
10520
- if (t.type === H.TEXT) this.activeControl = new ci(e, this);
10537
+ if (t.type === H.TEXT) this.activeControl = new li(e, this);
10521
10538
  else if (t.type === H.SELECT) {
10522
- let t = new si(e, this);
10539
+ let t = new ci(e, this);
10523
10540
  this.activeControl = t, t.awake();
10524
- } else if (t.type === H.CHECKBOX) this.activeControl = new Un(e, this);
10525
- else if (t.type === H.RADIO) this.activeControl = new Wn(e, this);
10541
+ } else if (t.type === H.CHECKBOX) this.activeControl = new Wn(e, this);
10542
+ else if (t.type === H.RADIO) this.activeControl = new Gn(e, this);
10526
10543
  else if (t.type === H.DATE) {
10527
- let t = new ui(e, this);
10544
+ let t = new di(e, this);
10528
10545
  this.activeControl = t, t.awake();
10529
10546
  } else if (t.type === H.NUMBER) {
10530
- let t = new fi(e, this);
10547
+ let t = new pi(e, this);
10531
10548
  this.activeControl = t, t.awake();
10532
10549
  }
10533
10550
  this.updateActiveControlValue(), this.preElement = e, e.controlComponent !== U.POSTFIX && this.emitControlChange(yt.ACTIVE);
@@ -10535,7 +10552,7 @@ var li = class {
10535
10552
  destroyControl(e = {}) {
10536
10553
  if (!this.activeControl) return;
10537
10554
  let { isEmitEvent: t = !0 } = e;
10538
- (this.activeControl instanceof si || this.activeControl instanceof ui || this.activeControl instanceof fi) && this.activeControl.destroy(), t && this.preElement?.controlComponent !== U.POSTFIX && this.emitControlChange(yt.INACTIVE), this.preElement = null, this.activeControl = null, this.activeControlValue = [];
10555
+ (this.activeControl instanceof ci || this.activeControl instanceof di || this.activeControl instanceof pi) && this.activeControl.destroy(), t && this.preElement?.controlComponent !== U.POSTFIX && this.emitControlChange(yt.INACTIVE), this.preElement = null, this.activeControl = null, this.activeControlValue = [];
10539
10556
  }
10540
10557
  repaintControl(e = {}) {
10541
10558
  let { curIndex: t, isCompute: n = !0, isSubmitHistory: r = !0, isSetCursor: i = !0 } = e;
@@ -10568,7 +10585,7 @@ var li = class {
10568
10585
  reAwakeControl() {
10569
10586
  if (!this.activeControl) return;
10570
10587
  let e = this.getElementList()[this.getRange().startIndex];
10571
- this.activeControl.setElement(e), (this.activeControl instanceof ui || this.activeControl instanceof si || this.activeControl instanceof fi) && this.activeControl.getIsPopup() && (this.activeControl.destroy(), this.activeControl.awake());
10588
+ this.activeControl.setElement(e), (this.activeControl instanceof di || this.activeControl instanceof ci || this.activeControl instanceof pi) && this.activeControl.getIsPopup() && (this.activeControl.destroy(), this.activeControl.awake());
10572
10589
  }
10573
10590
  selectValue() {
10574
10591
  let e = this.getElementList(), { startIndex: t } = this.getRange(), n = e[t];
@@ -10600,7 +10617,7 @@ var li = class {
10600
10617
  moveCursor(e) {
10601
10618
  let { index: t, trIndex: n, tdIndex: r, tdValueIndex: i } = e, a = this.draw.getOriginalElementList(), o, s = e.isTable ? i : t;
10602
10619
  if (e.isTable ? (a = a[t].trList[n].tdList[r].value, o = a[i]) : o = a[t], o.hide || o.control?.hide || o.area?.hide) {
10603
- let e = Dn(a, s);
10620
+ let e = On(a, s);
10604
10621
  return {
10605
10622
  newIndex: e,
10606
10623
  newElement: a[e]
@@ -10833,26 +10850,26 @@ var li = class {
10833
10850
  isHandleFirstElement: !1,
10834
10851
  editorOptions: this.options
10835
10852
  });
10836
- let t = new ci(o, this);
10853
+ let t = new li(o, this);
10837
10854
  this.activeControl = t, e.length ? t.setValue(e, f, p) : t.clearValue(f, p);
10838
10855
  } else if (u === H.SELECT) {
10839
10856
  if (Array.isArray(c)) continue;
10840
- let e = new si(o, this);
10857
+ let e = new ci(o, this);
10841
10858
  this.activeControl = e, c ? e.setSelect(c, f, p) : e.clearSelect(f, p);
10842
10859
  } else if (u === H.CHECKBOX) {
10843
10860
  if (Array.isArray(c)) continue;
10844
- let e = new Un(o, this);
10861
+ let e = new Wn(o, this);
10845
10862
  this.activeControl = e;
10846
10863
  let t = c ? c.split(",") : [];
10847
10864
  e.setSelect(t, f, p);
10848
10865
  } else if (u === H.RADIO) {
10849
10866
  if (Array.isArray(c)) continue;
10850
- let e = new Wn(o, this);
10867
+ let e = new Gn(o, this);
10851
10868
  this.activeControl = e;
10852
10869
  let t = c ? [c] : [];
10853
10870
  e.setSelect(t, f, p);
10854
10871
  } else if (u === H.DATE) {
10855
- let e = new ui(o, this);
10872
+ let e = new di(o, this);
10856
10873
  this.activeControl = e, O(c) ? (c.length && Y(c, {
10857
10874
  isHandleFirstElement: !1,
10858
10875
  editorOptions: this.options
@@ -10863,7 +10880,7 @@ var li = class {
10863
10880
  isHandleFirstElement: !1,
10864
10881
  editorOptions: this.options
10865
10882
  });
10866
- let t = new fi(o, this);
10883
+ let t = new pi(o, this);
10867
10884
  this.activeControl = t, e.length ? t.setValue(e, f, p) : t.clearValue(f, p);
10868
10885
  }
10869
10886
  this.emitControlContentChange({ context: f }), this.activeControl = null;
@@ -11204,7 +11221,7 @@ var li = class {
11204
11221
  n.left = a - e, t.width += a - e;
11205
11222
  }
11206
11223
  }
11207
- }, mi = class {
11224
+ }, hi = class {
11208
11225
  draw;
11209
11226
  options;
11210
11227
  constructor(e) {
@@ -11230,7 +11247,7 @@ var li = class {
11230
11247
  let _ = Math.round(n + o * m), v = Math.round(a - h.height + s), y = h.width - o * 2 * m, b = h.height;
11231
11248
  t.save(), t.beginPath(), t.translate(.5, .5), g?.value ? (t.fillStyle = u, t.fillRect(_, v, y, b), t.beginPath(), t.lineWidth = s, t.strokeStyle = d, t.rect(_, v, y, b), t.stroke(), t.beginPath(), t.strokeStyle = f, t.lineWidth = s * 2 * m, t.moveTo(_ + 2 * m, v + b / 2), t.lineTo(_ + y / 2, v + b - 3 * m), t.lineTo(_ + y - 2 * m, v + 3 * m), t.stroke()) : (t.fillStyle = c, t.fillRect(_, v, y, b), t.beginPath(), t.lineWidth = s, t.strokeStyle = l, t.rect(_, v, y, b), t.stroke()), t.closePath(), t.restore();
11232
11249
  }
11233
- }, hi = class {
11250
+ }, gi = class {
11234
11251
  draw;
11235
11252
  options;
11236
11253
  constructor(e) {
@@ -11256,74 +11273,74 @@ var li = class {
11256
11273
  let m = Math.round(n + o * d), h = Math.round(a - f.height + s), g = f.width - o * 2 * d, _ = f.height;
11257
11274
  t.save(), t.beginPath(), t.translate(.5, .5), t.strokeStyle = p?.value ? c : l, t.lineWidth = s, t.arc(m + g / 2, h + _ / 2, g / 2, 0, Math.PI * 2), t.stroke(), p?.value && (t.beginPath(), t.fillStyle = c, t.arc(m + g / 2, h + _ / 2, g / 3, 0, Math.PI * 2), t.fill()), t.closePath(), t.restore();
11258
11275
  }
11259
- }, gi = "(function(){var e=function(e){return e.TEXT=`text`,e.TABLE=`table`,e.HYPERLINK=`hyperlink`,e.CONTROL=`control`,e.LATEX=`latex`,e}(e||{}),t=function(e){return e.VALUE=`value`,e}(t||{});function n(r){let i=``,a=0;for(;a<r.length;){let o=r[a];if(o.type===e.TABLE){if(o.trList)for(let e=0;e<o.trList.length;e++){let t=o.trList[e];for(let e=0;e<t.tdList.length;e++){let r=t.tdList[e];i+=n(r.value)}}}else if(o.type===e.HYPERLINK){let e=o.hyperlinkId,t=[];for(;a<r.length;){let n=r[a];if(e!==n.hyperlinkId){a--;break}delete n.type,t.push(n),a++}i+=n(t)}else if(o.type===e.LATEX)i+=o.value;else if(o.controlId){if(!o.control?.hide){let e=o.controlId,s=[];for(;a<r.length;){let n=r[a];if(e!==n.controlId){a--;break}n.controlComponent===t.VALUE&&(delete n.controlId,s.push(n)),a++}i+=n(s)}}else (!o.type||o.type===e.TEXT)&&!o.area?.hide&&(i+=o.value);a++}return i}function r(e){let t=[],n=``,r=()=>{n&&=(t.push(n),``)},i=e=>e<=32||e===160||e>=8192&&e<=8202||e===8239||e===12288||e>=8203&&e<=8207||e>=8234&&e<=8238||e===8288||e===65279,a=e=>e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122,o=e=>e>=33&&e<=47||e>=58&&e<=64||e>=91&&e<=96||e>=123&&e<=126,s=e=>e===123||e===125;for(let c of e){let e=c.charCodeAt(0);if(i(e)){r();continue}if(a(e)||s(e)||o(e)){n+=c;continue}r(),t.push(c)}return r(),t}onmessage=e=>{let t=e.data,i=r(n(t).replace(RegExp(`^​`),``).replace(RegExp(`​`,`g`),`\n`));postMessage(i.length)}})();\n//# sourceMappingURL=wordCount-C2BnvS6l.js.map", _i = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", gi], { type: "text/javascript;charset=utf-8" });
11260
- function vi(e) {
11276
+ }, _i = "(function(){function e(t){let n=``,r=0;for(;r<t.length;){let i=t[r];if(i.type===`table`){if(i.trList)for(let t=0;t<i.trList.length;t++){let r=i.trList[t];for(let t=0;t<r.tdList.length;t++){let i=r.tdList[t];n+=e(i.value)}}}else if(i.type===`hyperlink`){let a=i.hyperlinkId,o=[];for(;r<t.length;){let e=t[r];if(a!==e.hyperlinkId){r--;break}delete e.type,o.push(e),r++}n+=e(o)}else if(i.type===`latex`)n+=i.value;else if(i.controlId){if(!i.control?.hide){let a=i.controlId,o=[];for(;r<t.length;){let e=t[r];if(a!==e.controlId){r--;break}e.controlComponent===`value`&&(delete e.controlId,o.push(e)),r++}n+=e(o)}}else (!i.type||i.type===`text`)&&!i.area?.hide&&(n+=i.value);r++}return n}function t(e){let t=[],n=``,r=()=>{n&&=(t.push(n),``)},i=e=>e<=32||e===160||e>=8192&&e<=8202||e===8239||e===12288||e>=8203&&e<=8207||e>=8234&&e<=8238||e===8288||e===65279,a=e=>e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122,o=e=>e>=33&&e<=47||e>=58&&e<=64||e>=91&&e<=96||e>=123&&e<=126,s=e=>e===123||e===125;for(let c of e){let e=c.charCodeAt(0);if(i(e)){r();continue}if(a(e)||s(e)||o(e)){n+=c;continue}r(),t.push(c)}return r(),t}onmessage=n=>{let r=n.data,i=t(e(r).replace(RegExp(`^​`),``).replace(RegExp(`​`,`g`),`\n`));postMessage(i.length)}})();\n//# sourceMappingURL=wordCount-Osi0e4qK.js.map", vi = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", _i], { type: "text/javascript;charset=utf-8" });
11277
+ function yi(e) {
11261
11278
  let t;
11262
11279
  try {
11263
- if (t = _i && (self.URL || self.webkitURL).createObjectURL(_i), !t) throw "";
11280
+ if (t = vi && (self.URL || self.webkitURL).createObjectURL(vi), !t) throw "";
11264
11281
  let n = new Worker(t, { name: e?.name });
11265
11282
  return n.addEventListener("error", () => {
11266
11283
  (self.URL || self.webkitURL).revokeObjectURL(t);
11267
11284
  }), n;
11268
11285
  } catch {
11269
- return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(gi), { name: e?.name });
11286
+ return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(_i), { name: e?.name });
11270
11287
  }
11271
11288
  }
11272
11289
  //#endregion
11273
11290
  //#region src/editor/core/worker/works/catalog.ts?worker&inline
11274
- var yi = "(function(){var e=function(e){return e.TEXT=`text`,e.IMAGE=`image`,e.TABLE=`table`,e.HYPERLINK=`hyperlink`,e.SUPERSCRIPT=`superscript`,e.SUBSCRIPT=`subscript`,e.SEPARATOR=`separator`,e.PAGE_BREAK=`pageBreak`,e.CONTROL=`control`,e.CHECKBOX=`checkbox`,e.RADIO=`radio`,e.LATEX=`latex`,e.TAB=`tab`,e.DATE=`date`,e.BLOCK=`block`,e.TITLE=`title`,e.AREA=`area`,e.LIST=`list`,e.LABEL=`label`,e}(e||{}),t=function(e){return e.FIRST=`first`,e.SECOND=`second`,e.THIRD=`third`,e.FOURTH=`fourth`,e.FIFTH=`fifth`,e.SIXTH=`sixth`,e}(t||{});let n={[t.FIRST]:1,[t.SECOND]:2,[t.THIRD]:3,[t.FOURTH]:4,[t.FIFTH]:5,[t.SIXTH]:6},r=[e.TEXT,e.HYPERLINK,e.SUBSCRIPT,e.SUPERSCRIPT,e.CONTROL,e.DATE,e.LABEL];function i(e){return!e.type||r.includes(e.type)}function a(t){let{elementList:r,positionList:a}=t,o=[],s=0;for(;s<r.length;){let t=r[s],n=(t,n,r)=>{let o=t.titleId,c=t.level,l={type:e.TITLE,value:``,level:c,titleId:o,pageNo:a[s].pageNo},u=[];for(;r<n.length;){let e=n[r];if(o!==e.titleId){r--;break}u.push(e),r++}return l.value=u.filter(e=>i(e)).map(e=>e.value).join(``).replace(RegExp(`​`,`g`),``),{position:r,titleElement:l}};if(t.titleId){let{position:e,titleElement:i}=n(t,r,s);s=e,o.push(i)}if(t.type===e.TABLE){let e=t.trList;for(let t=0;t<e.length;t++){let r=e[t];for(let e=0;e<r.tdList.length;e++){let t=r.tdList[e].value;if(t.length>1){let e=1;for(;e<t.length;){if(t[e]?.titleId){let{titleElement:r,position:i}=n(t[e],t,e);o.push(r),e=i}e++}}}}}s++}if(!o.length)return null;let c=(e,t)=>{let r=t.subCatalog[t.subCatalog.length-1],i=n[r?.level],a=n[e.level];r&&a>i?c(e,r):t.subCatalog.push({id:e.titleId,name:e.value,level:e.level,pageNo:e.pageNo,subCatalog:[]})},l=[];for(let e=0;e<o.length;e++){let t=o[e],r=l[l.length-1],i=n[r?.level],a=n[t.level];r&&a>i?c(t,r):l.push({id:t.titleId,name:t.value,level:t.level,pageNo:t.pageNo,subCatalog:[]})}return l}onmessage=e=>{let t=e.data,n=a(t);postMessage(n)}})();\n//# sourceMappingURL=catalog-Cno2frQt.js.map", bi = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", yi], { type: "text/javascript;charset=utf-8" });
11275
- function xi(e) {
11291
+ var bi = "(function(){let e={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6},t=[`text`,`hyperlink`,`subscript`,`superscript`,`control`,`date`,`label`];function n(e){return!e.type||t.includes(e.type)}function r(t){let{elementList:r,positionList:i}=t,a=[],o=0;for(;o<r.length;){let e=r[o],t=(e,t,r)=>{let a=e.titleId,s={type:`title`,value:``,level:e.level,titleId:a,pageNo:i[o].pageNo},c=[];for(;r<t.length;){let e=t[r];if(a!==e.titleId){r--;break}c.push(e),r++}return s.value=c.filter(e=>n(e)).map(e=>e.value).join(``).replace(RegExp(`​`,`g`),``),{position:r,titleElement:s}};if(e.titleId){let{position:n,titleElement:i}=t(e,r,o);o=n,a.push(i)}if(e.type===`table`){let n=e.trList;for(let e=0;e<n.length;e++){let r=n[e];for(let e=0;e<r.tdList.length;e++){let n=r.tdList[e].value;if(n.length>1){let e=1;for(;e<n.length;){if(n[e]?.titleId){let{titleElement:r,position:i}=t(n[e],n,e);a.push(r),e=i}e++}}}}}o++}if(!a.length)return null;let s=(t,n)=>{let r=n.subCatalog[n.subCatalog.length-1],i=e[r?.level],a=e[t.level];r&&a>i?s(t,r):n.subCatalog.push({id:t.titleId,name:t.value,level:t.level,pageNo:t.pageNo,subCatalog:[]})},c=[];for(let t=0;t<a.length;t++){let n=a[t],r=c[c.length-1],i=e[r?.level],o=e[n.level];r&&o>i?s(n,r):c.push({id:n.titleId,name:n.value,level:n.level,pageNo:n.pageNo,subCatalog:[]})}return c}onmessage=e=>{let t=e.data,n=r(t);postMessage(n)}})();\n//# sourceMappingURL=catalog-B-cbxN0s.js.map", xi = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", bi], { type: "text/javascript;charset=utf-8" });
11292
+ function Si(e) {
11276
11293
  let t;
11277
11294
  try {
11278
- if (t = bi && (self.URL || self.webkitURL).createObjectURL(bi), !t) throw "";
11295
+ if (t = xi && (self.URL || self.webkitURL).createObjectURL(xi), !t) throw "";
11279
11296
  let n = new Worker(t, { name: e?.name });
11280
11297
  return n.addEventListener("error", () => {
11281
11298
  (self.URL || self.webkitURL).revokeObjectURL(t);
11282
11299
  }), n;
11283
11300
  } catch {
11284
- return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(yi), { name: e?.name });
11301
+ return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(bi), { name: e?.name });
11285
11302
  }
11286
11303
  }
11287
11304
  //#endregion
11288
11305
  //#region src/editor/core/worker/works/group.ts?worker&inline
11289
- var Si = "(function(){var e=function(e){return e.TABLE=`table`,e}(e||{});function t(n){let r=[];for(let i of n){if(i.type===e.TABLE){let e=i.trList;for(let n=0;n<e.length;n++){let i=e[n];for(let e=0;e<i.tdList.length;e++){let n=i.tdList[e];r.push(...t(n.value))}}}if(i.groupIds)for(let e of i.groupIds)r.includes(e)||r.push(e)}return r}onmessage=e=>{let n=e.data,r=t(n);postMessage(r)}})();\n//# sourceMappingURL=group-Bz5rW3In.js.map", Ci = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Si], { type: "text/javascript;charset=utf-8" });
11290
- function wi(e) {
11306
+ var Ci = "(function(){function e(t){let n=[];for(let r of t){if(r.type===`table`){let t=r.trList;for(let r=0;r<t.length;r++){let i=t[r];for(let t=0;t<i.tdList.length;t++){let r=i.tdList[t];n.push(...e(r.value))}}}if(r.groupIds)for(let e of r.groupIds)n.includes(e)||n.push(e)}return n}onmessage=t=>{let n=t.data,r=e(n);postMessage(r)}})();\n//# sourceMappingURL=group-BZtj1M7o.js.map", wi = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Ci], { type: "text/javascript;charset=utf-8" });
11307
+ function Ti(e) {
11291
11308
  let t;
11292
11309
  try {
11293
- if (t = Ci && (self.URL || self.webkitURL).createObjectURL(Ci), !t) throw "";
11310
+ if (t = wi && (self.URL || self.webkitURL).createObjectURL(wi), !t) throw "";
11294
11311
  let n = new Worker(t, { name: e?.name });
11295
11312
  return n.addEventListener("error", () => {
11296
11313
  (self.URL || self.webkitURL).revokeObjectURL(t);
11297
11314
  }), n;
11298
11315
  } catch {
11299
- return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(Si), { name: e?.name });
11316
+ return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(Ci), { name: e?.name });
11300
11317
  }
11301
11318
  }
11302
11319
  //#endregion
11303
11320
  //#region src/editor/core/worker/works/value.ts?worker&inline
11304
- var Ti = "(function(){let e=function(e){return e.HALF=`half`,e.ONE_THIRD=`one-third`,e.QUARTER=`quarter`,e}({}),t=function(e){return e.ARABIC=`arabic`,e.CHINESE=`chinese`,e}({});e.HALF,e.ONE_THIRD,e.QUARTER;function n(e){if(typeof structuredClone==`function`)return structuredClone(e);if(!e||typeof e!=`object`)return e;let t={};return Array.isArray(e)?t=e.map(e=>n(e)):Object.keys(e).forEach(r=>{t[r]=n(e[r])}),t}function r(e,t){let n={};for(let r in e)t.includes(r)&&(n[r]=e[r]);return n}function i(e,t){return e.length===t.length?!e.some(e=>!t.includes(e)):!1}let a=function(e){return e.TEXT=`text`,e.IMAGE=`image`,e.TABLE=`table`,e.HYPERLINK=`hyperlink`,e.SUPERSCRIPT=`superscript`,e.SUBSCRIPT=`subscript`,e.SEPARATOR=`separator`,e.PAGE_BREAK=`pageBreak`,e.CONTROL=`control`,e.AREA=`area`,e.CHECKBOX=`checkbox`,e.RADIO=`radio`,e.LATEX=`latex`,e.TAB=`tab`,e.DATE=`date`,e.BLOCK=`block`,e.TITLE=`title`,e.LIST=`list`,e.LABEL=`label`,e}({}),o=[`rowFlex`,`rowMargin`],s=`type.font.size.bold.color.italic.highlight.underline.strikeout.rowFlex.rowMargin.dashArray.trList.tableToolDisabled.borderType.borderColor.translateX.width.height.url.colgroup.valueList.control.checkbox.radio.dateFormat.block.level.title.listType.listStyle.listWrap.groupIds.conceptId.imgDisplay.imgFloatPosition.imgToolDisabled.imgPreviewDisabled.imgCrop.imgCaption.textDecoration.extension.externalId.areaId.area.hide.label.labelId.lineWidth`.split(`.`),c=[`conceptId`,`extension`,`externalId`,`verticalAlign`,`backgroundColor`,`borderTypes`,`slashTypes`,`disabled`,`deletable`],l=[`tdId`,`trId`,`tableId`],u=[`level`,`titleId`,`title`],d=[`listId`,`listType`,`listStyle`],f=[`font`,`size`,`bold`,`highlight`,`italic`,`strikeout`],p=[`areaId`,`area`];[...l,...u,...d,...p],a.TEXT,a.HYPERLINK,a.SUBSCRIPT,a.SUPERSCRIPT,a.CONTROL,a.DATE,a.IMAGE,a.LATEX,a.BLOCK,a.PAGE_BREAK,a.SEPARATOR,a.TABLE,a.TITLE,a.LIST;let m=function(e){return e.UL=`ul`,e.OL=`ol`,e}({}),h=function(e){return e.DISC=`disc`,e.CIRCLE=`circle`,e.SQUARE=`square`,e.CHECKBOX=`checkbox`,e}({}),g=function(e){return e.DECIMAL=`decimal`,e}({}),_=function(e){return e[e.DISC=h.DISC]=`DISC`,e[e.CIRCLE=h.CIRCLE]=`CIRCLE`,e[e.SQUARE=h.SQUARE]=`SQUARE`,e[e.DECIMAL=g.DECIMAL]=`DECIMAL`,e[e.CHECKBOX=h.CHECKBOX]=`CHECKBOX`,e}({});h.DISC,h.CIRCLE,h.SQUARE,h.CHECKBOX,m.OL,m.UL,_.DISC,_.CIRCLE,_.SQUARE,_.DECIMAL,_.CHECKBOX;let v=function(e){return e.FIRST=`first`,e.SECOND=`second`,e.THIRD=`third`,e.FOURTH=`fourth`,e.FIFTH=`fifth`,e.SIXTH=`sixth`,e}({});v.FIRST,v.SECOND,v.THIRD,v.FOURTH,v.FIFTH,v.SIXTH,v.FIRST,v.SECOND,v.THIRD,v.FOURTH,v.FIFTH,v.SIXTH,v.FIRST,v.SECOND,v.THIRD,v.FOURTH,v.FIFTH,v.SIXTH;let y=function(e){return e.PREFIX=`prefix`,e.POSTFIX=`postfix`,e.PRE_TEXT=`preText`,e.POST_TEXT=`postText`,e.PLACEHOLDER=`placeholder`,e.VALUE=`value`,e.CHECKBOX=`checkbox`,e.RADIO=`radio`,e}({}),b=function(e){return e.LEFT=`left`,e.CENTER=`center`,e.RIGHT=`right`,e.ALIGNMENT=`alignment`,e.JUSTIFY=`justify`,e}({}),x=function(e){return e.CONTAIN=`contain`,e.COVER=`cover`,e}({}),S=function(e){return e.REPEAT=`repeat`,e.NO_REPEAT=`no-repeat`,e.REPEAT_X=`repeat-x`,e.REPEAT_Y=`repeat-y`,e}({});x.COVER,S.NO_REPEAT;let C=function(e){return e.TOP=`top`,e.MIDDLE=`middle`,e.BOTTOM=`bottom`,e}({});C.BOTTOM,e.HALF,e.HALF,b.CENTER,{PAGE_NO:`{pageNo}`,PAGE_COUNT:`{pageCount}`}.PAGE_NO,t.ARABIC,C.BOTTOM;let w=function(e){return e.TEXT=`text`,e.IMAGE=`image`,e}({}),T=function(e){return e.BOTTOM=`bottom`,e.TOP=`top`,e}({});w.TEXT,t.ARABIC,T.BOTTOM,function(e){return e.PAGE=`page`,e.CONTINUITY=`continuity`,e}({}).CONTINUITY;function E(e,t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){let a=n[r];if(a!==`value`&&!(a===`groupIds`&&Array.isArray(e[a])&&Array.isArray(t[a])&&i(e[a],t[a]))&&e[a]!==t[a])return!1}return!0}function D(e,t={}){let{extraPickAttrs:n}=t,r=[...s];n&&r.push(...n);let i={value:e.value===`​`?`\n`:e.value};return r.forEach(t=>{let n=e[t];n!==void 0&&(i[t]=n)}),i}function O(e,t={}){let{extraPickAttrs:i,isClassifyArea:s=!1,isClone:l=!0}=t,u=l?n(e):e,d=[],p=0;for(;p<u.length;){let e=u[p];if(p===0&&e.value===`​`&&!e.listId&&(!e.type||e.type===a.TEXT)){p++;continue}if(e.areaId){let n=e.areaId,r=e.area,i=[];for(;p<u.length;){let e=u[p];if(n!==e.areaId){p--;break}delete e.area,delete e.areaId,i.push(e),p++}let o=O(i,t);if(s){let t={type:a.AREA,value:``,areaId:n,area:r};t.valueList=o,e=t}else{d.splice(p,0,...o);continue}}else if(e.titleId&&e.level){let n=e.titleId;if(n){let r=e.level,i={type:a.TITLE,title:e.title,titleId:n,value:``,level:r},o=[];for(;p<u.length;){let e=u[p];if(n!==e.titleId){p--;break}delete e.level,delete e.title,o.push(e),p++}i.valueList=O(o,t),e=i}}else if(e.listId&&e.listType){let n=e.listId;if(n){let r=e.listType,i=e.listStyle,o={type:a.LIST,value:``,listId:n,listType:r,listStyle:i},s=[];for(;p<u.length;){let e=u[p];if(n!==e.listId){p--;break}delete e.listType,delete e.listStyle,s.push(e),p++}o.valueList=O(s,t),e=o}}else if(e.type===a.TABLE){if(e.pagingId){let t=p+1,n=0;for(;t<u.length;){let r=u[t];if(r.pagingId===e.pagingId)e.height+=r.height,e.trList.push(...r.trList),t++,n++;else break}p+=n}if(e.trList)for(let n=0;n<e.trList.length;n++){let r=e.trList[n];delete r.id;for(let e=0;e<r.tdList.length;e++){let n=r.tdList[e],i={colspan:n.colspan,rowspan:n.rowspan,value:O(n.value,{...t,isClassifyArea:!1})};c.forEach(e=>{let t=n[e];t!==void 0&&(i[e]=t)}),r.tdList[e]=i}}}else if(e.type===a.HYPERLINK){let n=e.hyperlinkId;if(n){let r={type:a.HYPERLINK,value:``,url:e.url},i=[];for(;p<u.length;){let e=u[p];if(n!==e.hyperlinkId){p--;break}delete e.type,delete e.url,i.push(e),p++}r.valueList=O(i,t),e=r}}else if(e.type===a.DATE){let n=e.dateId;if(n){let r={type:a.DATE,value:``,dateFormat:e.dateFormat},i=[];for(;p<u.length;){let e=u[p];if(n!==e.dateId){p--;break}delete e.type,delete e.dateFormat,i.push(e),p++}r.valueList=O(i,t),e=r}}else if(e.controlId){let n=e.controlId;if(e.controlComponent===y.PREFIX){let s=[],c=!1,l=p;for(;l<u.length;){let e=u[l];if(n!==e.controlId)break;e.controlComponent===y.VALUE&&(delete e.control,delete e.controlId,s.push(e)),e.controlComponent===y.POSTFIX&&(c=!0),l++}if(c){let c=r(e,f),u={...e.control,...c},d={...r(e,o),type:a.CONTROL,value:``,control:u,controlId:n};d.control.value=O(s,t),e=D(d,{extraPickAttrs:i}),p+=l-p-1}}if(e.controlComponent&&(delete e.control,delete e.controlId,e.controlComponent!==y.VALUE&&e.controlComponent!==y.PRE_TEXT&&e.controlComponent!==y.POST_TEXT)){p++;continue}}let n=D(e,{extraPickAttrs:i});if(!e.type||e.type===a.TEXT||e.type===a.SUBSCRIPT||e.type===a.SUPERSCRIPT)for(;p<u.length;){let e=u[p+1];if(p++,e&&E(n,D(e,{extraPickAttrs:i}))){let t=e.value===`​`?`\n`:e.value;n.value+=t}else break}else p++;d.push(n)}return d}onmessage=e=>{let{options:t,data:n}=e.data,{extraPickAttrs:r=[]}=t||{},i={header:O(n.header,{extraPickAttrs:r,isClone:!1}),main:O(n.main,{extraPickAttrs:r,isClassifyArea:!0,isClone:!1}),footer:O(n.footer,{extraPickAttrs:r,isClone:!1})};postMessage(i)}})();\n//# sourceMappingURL=value-CEZhhW6y.js.map", Ei = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Ti], { type: "text/javascript;charset=utf-8" });
11305
- function Di(e) {
11321
+ var Ei = "(function(){let e=function(e){return e.HALF=`half`,e.ONE_THIRD=`one-third`,e.QUARTER=`quarter`,e}({}),t=function(e){return e.ARABIC=`arabic`,e.CHINESE=`chinese`,e}({});e.HALF,e.ONE_THIRD,e.QUARTER;function n(e){if(typeof structuredClone==`function`)return structuredClone(e);if(!e||typeof e!=`object`)return e;let t={};return Array.isArray(e)?t=e.map(e=>n(e)):Object.keys(e).forEach(r=>{t[r]=n(e[r])}),t}function r(e,t){let n={};for(let r in e)t.includes(r)&&(n[r]=e[r]);return n}function i(e,t){return e.length===t.length?!e.some(e=>!t.includes(e)):!1}let a=function(e){return e.TEXT=`text`,e.IMAGE=`image`,e.TABLE=`table`,e.HYPERLINK=`hyperlink`,e.SUPERSCRIPT=`superscript`,e.SUBSCRIPT=`subscript`,e.SEPARATOR=`separator`,e.PAGE_BREAK=`pageBreak`,e.CONTROL=`control`,e.AREA=`area`,e.CHECKBOX=`checkbox`,e.RADIO=`radio`,e.LATEX=`latex`,e.TAB=`tab`,e.DATE=`date`,e.BLOCK=`block`,e.TITLE=`title`,e.LIST=`list`,e.LABEL=`label`,e}({}),o=[`rowFlex`,`rowMargin`],s=`type.font.size.bold.color.italic.highlight.underline.strikeout.rowFlex.rowMargin.dashArray.trList.tableToolDisabled.borderType.borderColor.translateX.width.height.url.colgroup.valueList.control.checkbox.radio.dateFormat.block.level.title.listType.listStyle.listWrap.groupIds.conceptId.imgDisplay.imgFloatPosition.imgToolDisabled.imgPreviewDisabled.imgCrop.imgCaption.textDecoration.extension.externalId.areaId.area.hide.label.labelId.lineWidth`.split(`.`),c=[`conceptId`,`extension`,`externalId`,`verticalAlign`,`backgroundColor`,`borderTypes`,`slashTypes`,`disabled`,`deletable`],l=[`tdId`,`trId`,`tableId`],u=[`level`,`titleId`,`title`],d=[`listId`,`listType`,`listStyle`],f=[`font`,`size`,`bold`,`highlight`,`italic`,`strikeout`],p=[`areaId`,`area`];[...l,...u,...d,...p],a.TEXT,a.HYPERLINK,a.SUBSCRIPT,a.SUPERSCRIPT,a.CONTROL,a.DATE,a.IMAGE,a.LATEX,a.BLOCK,a.PAGE_BREAK,a.SEPARATOR,a.TABLE,a.TITLE,a.LIST;let m=function(e){return e.UL=`ul`,e.OL=`ol`,e}({}),h=function(e){return e.DISC=`disc`,e.CIRCLE=`circle`,e.SQUARE=`square`,e.CHECKBOX=`checkbox`,e}({}),g=function(e){return e.DISC=`disc`,e.CIRCLE=`circle`,e.SQUARE=`square`,e.DECIMAL=`decimal`,e.CHECKBOX=`checkbox`,e}({});h.DISC,h.CIRCLE,h.SQUARE,h.CHECKBOX,m.OL,m.UL,g.DISC,g.CIRCLE,g.SQUARE,g.DECIMAL,g.CHECKBOX;let _=function(e){return e.FIRST=`first`,e.SECOND=`second`,e.THIRD=`third`,e.FOURTH=`fourth`,e.FIFTH=`fifth`,e.SIXTH=`sixth`,e}({});_.FIRST,_.SECOND,_.THIRD,_.FOURTH,_.FIFTH,_.SIXTH,_.FIRST,_.SECOND,_.THIRD,_.FOURTH,_.FIFTH,_.SIXTH,_.FIRST,_.SECOND,_.THIRD,_.FOURTH,_.FIFTH,_.SIXTH;let v=function(e){return e.PREFIX=`prefix`,e.POSTFIX=`postfix`,e.PRE_TEXT=`preText`,e.POST_TEXT=`postText`,e.PLACEHOLDER=`placeholder`,e.VALUE=`value`,e.CHECKBOX=`checkbox`,e.RADIO=`radio`,e}({}),y=function(e){return e.LEFT=`left`,e.CENTER=`center`,e.RIGHT=`right`,e.ALIGNMENT=`alignment`,e.JUSTIFY=`justify`,e}({}),b=function(e){return e.CONTAIN=`contain`,e.COVER=`cover`,e}({}),x=function(e){return e.REPEAT=`repeat`,e.NO_REPEAT=`no-repeat`,e.REPEAT_X=`repeat-x`,e.REPEAT_Y=`repeat-y`,e}({});b.COVER,x.NO_REPEAT;let S=function(e){return e.TOP=`top`,e.MIDDLE=`middle`,e.BOTTOM=`bottom`,e}({});S.BOTTOM,e.HALF,e.HALF,y.CENTER,{PAGE_NO:`{pageNo}`,PAGE_COUNT:`{pageCount}`}.PAGE_NO,t.ARABIC,S.BOTTOM;let C=function(e){return e.TEXT=`text`,e.IMAGE=`image`,e}({}),w=function(e){return e.BOTTOM=`bottom`,e.TOP=`top`,e}({});C.TEXT,t.ARABIC,w.BOTTOM,function(e){return e.PAGE=`page`,e.CONTINUITY=`continuity`,e}({}).CONTINUITY;function T(e,t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){let a=n[r];if(a!==`value`&&!(a===`groupIds`&&Array.isArray(e[a])&&Array.isArray(t[a])&&i(e[a],t[a]))&&e[a]!==t[a])return!1}return!0}function E(e,t={}){let{extraPickAttrs:n}=t,r=[...s];n&&r.push(...n);let i={value:e.value===`​`?`\n`:e.value};return r.forEach(t=>{let n=e[t];n!==void 0&&(i[t]=n)}),i}function D(e,t={}){let{extraPickAttrs:i,isClassifyArea:s=!1,isClone:l=!0}=t,u=l?n(e):e,d=[],p=0;for(;p<u.length;){let e=u[p];if(p===0&&e.value===`​`&&!e.listId&&(!e.type||e.type===a.TEXT)){p++;continue}if(e.areaId){let n=e.areaId,r=e.area,i=[];for(;p<u.length;){let e=u[p];if(n!==e.areaId){p--;break}delete e.area,delete e.areaId,i.push(e),p++}let o=D(i,t);if(s){let t={type:a.AREA,value:``,areaId:n,area:r};t.valueList=o,e=t}else{d.splice(p,0,...o);continue}}else if(e.titleId&&e.level){let n=e.titleId;if(n){let r=e.level,i={type:a.TITLE,title:e.title,titleId:n,value:``,level:r},o=[];for(;p<u.length;){let e=u[p];if(n!==e.titleId){p--;break}delete e.level,delete e.title,o.push(e),p++}i.valueList=D(o,t),e=i}}else if(e.listId&&e.listType){let n=e.listId;if(n){let r=e.listType,i=e.listStyle,o={type:a.LIST,value:``,listId:n,listType:r,listStyle:i},s=[];for(;p<u.length;){let e=u[p];if(n!==e.listId){p--;break}delete e.listType,delete e.listStyle,s.push(e),p++}o.valueList=D(s,t),e=o}}else if(e.type===a.TABLE){if(e.pagingId){let t=p+1,n=0;for(;t<u.length;){let r=u[t];if(r.pagingId===e.pagingId)e.height+=r.height,e.trList.push(...r.trList),t++,n++;else break}p+=n}if(e.trList)for(let n=0;n<e.trList.length;n++){let r=e.trList[n];delete r.id;for(let e=0;e<r.tdList.length;e++){let n=r.tdList[e],i={colspan:n.colspan,rowspan:n.rowspan,value:D(n.value,{...t,isClassifyArea:!1})};c.forEach(e=>{let t=n[e];t!==void 0&&(i[e]=t)}),r.tdList[e]=i}}}else if(e.type===a.HYPERLINK){let n=e.hyperlinkId;if(n){let r={type:a.HYPERLINK,value:``,url:e.url},i=[];for(;p<u.length;){let e=u[p];if(n!==e.hyperlinkId){p--;break}delete e.type,delete e.url,i.push(e),p++}r.valueList=D(i,t),e=r}}else if(e.type===a.DATE){let n=e.dateId;if(n){let r={type:a.DATE,value:``,dateFormat:e.dateFormat},i=[];for(;p<u.length;){let e=u[p];if(n!==e.dateId){p--;break}delete e.type,delete e.dateFormat,i.push(e),p++}r.valueList=D(i,t),e=r}}else if(e.controlId){let n=e.controlId;if(e.controlComponent===v.PREFIX){let s=[],c=!1,l=p;for(;l<u.length;){let e=u[l];if(n!==e.controlId)break;e.controlComponent===v.VALUE&&(delete e.control,delete e.controlId,s.push(e)),e.controlComponent===v.POSTFIX&&(c=!0),l++}if(c){let c=r(e,f),u={...e.control,...c},d={...r(e,o),type:a.CONTROL,value:``,control:u,controlId:n};d.control.value=D(s,t),e=E(d,{extraPickAttrs:i}),p+=l-p-1}}if(e.controlComponent&&(delete e.control,delete e.controlId,e.controlComponent!==v.VALUE&&e.controlComponent!==v.PRE_TEXT&&e.controlComponent!==v.POST_TEXT)){p++;continue}}let n=E(e,{extraPickAttrs:i});if(!e.type||e.type===a.TEXT||e.type===a.SUBSCRIPT||e.type===a.SUPERSCRIPT)for(;p<u.length;){let e=u[p+1];if(p++,e&&T(n,E(e,{extraPickAttrs:i}))){let t=e.value===`​`?`\n`:e.value;n.value+=t}else break}else p++;d.push(n)}return d}onmessage=e=>{let{options:t,data:n}=e.data,{extraPickAttrs:r=[]}=t||{},i={header:D(n.header,{extraPickAttrs:r,isClone:!1}),main:D(n.main,{extraPickAttrs:r,isClassifyArea:!0,isClone:!1}),footer:D(n.footer,{extraPickAttrs:r,isClone:!1})};postMessage(i)}})();\n//# sourceMappingURL=value-By4_Dx3W.js.map", Di = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Ei], { type: "text/javascript;charset=utf-8" });
11322
+ function Oi(e) {
11306
11323
  let t;
11307
11324
  try {
11308
- if (t = Ei && (self.URL || self.webkitURL).createObjectURL(Ei), !t) throw "";
11325
+ if (t = Di && (self.URL || self.webkitURL).createObjectURL(Di), !t) throw "";
11309
11326
  let n = new Worker(t, { name: e?.name });
11310
11327
  return n.addEventListener("error", () => {
11311
11328
  (self.URL || self.webkitURL).revokeObjectURL(t);
11312
11329
  }), n;
11313
11330
  } catch {
11314
- return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(Ti), { name: e?.name });
11331
+ return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(Ei), { name: e?.name });
11315
11332
  }
11316
11333
  }
11317
11334
  //#endregion
11318
11335
  //#region src/editor/core/worker/WorkerManager.ts
11319
- var Oi = class {
11336
+ var ki = class {
11320
11337
  draw;
11321
11338
  wordCountWorker;
11322
11339
  catalogWorker;
11323
11340
  groupWorker;
11324
11341
  valueWorker;
11325
11342
  constructor(e) {
11326
- this.draw = e, this.wordCountWorker = new vi(), this.catalogWorker = new xi(), this.groupWorker = new wi(), this.valueWorker = new Di();
11343
+ this.draw = e, this.wordCountWorker = new yi(), this.catalogWorker = new Si(), this.groupWorker = new Ti(), this.valueWorker = new Oi();
11327
11344
  }
11328
11345
  getWordCount() {
11329
11346
  return new Promise((e, t) => {
@@ -11380,7 +11397,7 @@ var Oi = class {
11380
11397
  destroy() {
11381
11398
  this.wordCountWorker.terminate(), this.catalogWorker.terminate(), this.groupWorker.terminate(), this.valueWorker.terminate();
11382
11399
  }
11383
- }, ki = class {
11400
+ }, Ai = class {
11384
11401
  container;
11385
11402
  canvas;
11386
11403
  draw;
@@ -11623,13 +11640,13 @@ var Oi = class {
11623
11640
  clearResizer() {
11624
11641
  this.resizerSelection.style.display = "none", document.removeEventListener("keydown", this._keydown);
11625
11642
  }
11626
- }, Ai = class {
11643
+ }, ji = class {
11627
11644
  draw;
11628
11645
  range;
11629
11646
  datePicker;
11630
11647
  options;
11631
11648
  constructor(e) {
11632
- this.draw = e, this.options = e.getOptions(), this.range = e.getRange(), this.datePicker = new li(e, { onSubmit: this._setValue.bind(this) });
11649
+ this.draw = e, this.options = e.getOptions(), this.range = e.getRange(), this.datePicker = new ui(e, { onSubmit: this._setValue.bind(this) });
11633
11650
  }
11634
11651
  _setValue(e) {
11635
11652
  if (!e) return;
@@ -11679,7 +11696,7 @@ var Oi = class {
11679
11696
  dateFormat: e.dateFormat
11680
11697
  });
11681
11698
  }
11682
- }, ji = class {
11699
+ }, Mi = class {
11683
11700
  element;
11684
11701
  videoCache;
11685
11702
  constructor(e) {
@@ -11707,7 +11724,7 @@ var Oi = class {
11707
11724
  let t = this.element.block, n = document.createElement("video");
11708
11725
  n.style.width = "100%", n.style.height = "100%", n.style.objectFit = "contain", n.src = t.videoBlock?.src || "", n.controls = !0, e.append(n);
11709
11726
  }
11710
- }, Mi = class {
11727
+ }, Ni = class {
11711
11728
  draw;
11712
11729
  options;
11713
11730
  element;
@@ -11837,7 +11854,7 @@ var Oi = class {
11837
11854
  let i = this.element.block;
11838
11855
  if (i.type === _t.VIDEO) if (this.blockItem.style.display = "none", this.blockCache.has(this.element.id)) this.blockCache.get(this.element.id).snapshot(e, n, r);
11839
11856
  else {
11840
- this.block = new ji(this.element);
11857
+ this.block = new Mi(this.element);
11841
11858
  let t = this.block.snapshot(e, n, r);
11842
11859
  this.draw.getImageObserver().add(t), this.blockCache.set(this.element.id, this.block);
11843
11860
  }
@@ -11845,7 +11862,7 @@ var Oi = class {
11845
11862
  }
11846
11863
  render() {
11847
11864
  let e = this.element.block;
11848
- e.type === _t.IFRAME ? (this.block = new Le(this.element), this.block.render(this.blockItem)) : e.type === _t.VIDEO && (this.block = new ji(this.element), this.block.render(this.blockItem));
11865
+ e.type === _t.IFRAME ? (this.block = new Le(this.element), this.block.render(this.blockItem)) : e.type === _t.VIDEO && (this.block = new Mi(this.element), this.block.render(this.blockItem));
11849
11866
  }
11850
11867
  setClientRects(e, t, n) {
11851
11868
  let r = e * (this.draw.getHeight() + this.draw.getPageGap()), { metrics: i } = this.element;
@@ -11861,7 +11878,7 @@ var Oi = class {
11861
11878
  remove() {
11862
11879
  this.blockItem.remove();
11863
11880
  }
11864
- }, Ni = class {
11881
+ }, Pi = class {
11865
11882
  draw;
11866
11883
  options;
11867
11884
  container;
@@ -11882,7 +11899,7 @@ var Oi = class {
11882
11899
  }
11883
11900
  render(e, t, n, r, i) {
11884
11901
  let a = n.id, o = this.blockMap.get(a);
11885
- o || (o = new Mi(this, n), o.render(), this.blockMap.set(a, o)), this.draw.isPrintMode() ? o.snapshot(e, t, r, i) : o.setClientRects(t, r, i), o.setStatus();
11902
+ o || (o = new Ni(this, n), o.render(), this.blockMap.set(a, o)), this.draw.isPrintMode() ? o.snapshot(e, t, r, i) : o.setClientRects(t, r, i), o.setStatus();
11886
11903
  }
11887
11904
  clear() {
11888
11905
  if (!this.blockMap.size) return;
@@ -11937,7 +11954,7 @@ var Oi = class {
11937
11954
  });
11938
11955
  }), e;
11939
11956
  }
11940
- }, Pi = {
11957
+ }, Fi = {
11941
11958
  contextmenu: {
11942
11959
  global: {
11943
11960
  cut: "剪切",
@@ -12037,8 +12054,12 @@ var Oi = class {
12037
12054
  zone: {
12038
12055
  headerTip: "双击编辑页眉",
12039
12056
  footerTip: "双击编辑页脚"
12057
+ },
12058
+ accessibility: {
12059
+ selected: "选中:",
12060
+ input: "输入:"
12040
12061
  }
12041
- }, Fi = {
12062
+ }, Ii = {
12042
12063
  contextmenu: {
12043
12064
  global: {
12044
12065
  cut: "Cut",
@@ -12138,16 +12159,20 @@ var Oi = class {
12138
12159
  zone: {
12139
12160
  headerTip: "Double click to edit header",
12140
12161
  footerTip: "Double click to edit footer"
12162
+ },
12163
+ accessibility: {
12164
+ selected: "Selected: ",
12165
+ input: "Input: "
12141
12166
  }
12142
- }, Ii = class {
12167
+ }, Li = class {
12143
12168
  currentLocale;
12144
- langMap = new Map([["zhCN", Pi], ["en", Fi]]);
12169
+ langMap = new Map([["zhCN", Fi], ["en", Ii]]);
12145
12170
  constructor(e) {
12146
12171
  this.currentLocale = e;
12147
12172
  }
12148
12173
  registerLangMap(e, t) {
12149
12174
  let n = this.langMap.get(e);
12150
- this.langMap.set(e, j(n || Pi, t));
12175
+ this.langMap.set(e, j(n || Fi, t));
12151
12176
  }
12152
12177
  getLocale() {
12153
12178
  return this.currentLocale;
@@ -12156,7 +12181,7 @@ var Oi = class {
12156
12181
  this.currentLocale = e;
12157
12182
  }
12158
12183
  getLang() {
12159
- return this.langMap.get(this.currentLocale) || Pi;
12184
+ return this.langMap.get(this.currentLocale) || Fi;
12160
12185
  }
12161
12186
  t(e) {
12162
12187
  let t = e.split("."), n = "", r = this.getLang();
@@ -12167,7 +12192,7 @@ var Oi = class {
12167
12192
  }
12168
12193
  return n;
12169
12194
  }
12170
- }, Li = class {
12195
+ }, Ri = class {
12171
12196
  promiseList;
12172
12197
  constructor() {
12173
12198
  this.promiseList = [];
@@ -12181,7 +12206,7 @@ var Oi = class {
12181
12206
  allSettled() {
12182
12207
  return Promise.allSettled(this.promiseList);
12183
12208
  }
12184
- }, Ri = class {
12209
+ }, zi = class {
12185
12210
  draw;
12186
12211
  zone;
12187
12212
  i18n;
@@ -12226,7 +12251,7 @@ var Oi = class {
12226
12251
  _updateZoneTip(e, t, n) {
12227
12252
  e ? (this.tipContainer.classList.add("show"), this.tipContainer.style.left = `${t}px`, this.tipContainer.style.top = `${n}px`, this.tipContent.innerText = this.i18n.t(`zone.${this.currentMoveZone === K.HEADER ? "headerTip" : "footerTip"}`)) : this.tipContainer.classList.remove("show");
12228
12253
  }
12229
- }, zi = class {
12254
+ }, Bi = class {
12230
12255
  INDICATOR_PADDING = 2;
12231
12256
  INDICATOR_TITLE_TRANSLATE = [20, 5];
12232
12257
  draw;
@@ -12236,7 +12261,7 @@ var Oi = class {
12236
12261
  currentZone;
12237
12262
  indicatorContainer;
12238
12263
  constructor(e) {
12239
- this.draw = e, this.i18n = e.getI18n(), this.options = e.getOptions(), this.container = e.getContainer(), this.currentZone = K.MAIN, this.indicatorContainer = null, this.options.zone.tipDisabled || new Ri(e, this);
12264
+ this.draw = e, this.i18n = e.getI18n(), this.options = e.getOptions(), this.container = e.getContainer(), this.currentZone = K.MAIN, this.indicatorContainer = null, this.options.zone.tipDisabled || new zi(e, this);
12240
12265
  }
12241
12266
  isHeaderActive() {
12242
12267
  return this.getZone() === K.HEADER;
@@ -12289,7 +12314,7 @@ var Oi = class {
12289
12314
  _clearZoneIndicator() {
12290
12315
  this.indicatorContainer?.remove(), this.indicatorContainer = null;
12291
12316
  }
12292
- }, Bi = class {
12317
+ }, Vi = class {
12293
12318
  draw;
12294
12319
  position;
12295
12320
  zone;
@@ -12377,7 +12402,7 @@ var Oi = class {
12377
12402
  zone: K.FOOTER
12378
12403
  }), e.restore();
12379
12404
  }
12380
- }, Vi = class {
12405
+ }, Hi = class {
12381
12406
  draw;
12382
12407
  range;
12383
12408
  options;
@@ -12516,7 +12541,7 @@ var Oi = class {
12516
12541
  e.save(), e.font = this.getListFontStyle(r, u), e.fillText(t, p, m), e.restore();
12517
12542
  }
12518
12543
  }
12519
- }, Hi = class e {
12544
+ }, Ui = class e {
12520
12545
  options;
12521
12546
  static WIDTH = 12;
12522
12547
  static HEIGHT = 9;
@@ -12530,7 +12555,7 @@ var Oi = class {
12530
12555
  let c = i - e.HEIGHT * a / 2, l = r + n.metrics.width;
12531
12556
  t.translate(l, c), t.scale(a, a), t.strokeStyle = o, t.lineWidth = s, t.lineCap = "round", t.lineJoin = "round", t.beginPath(), t.moveTo(8, 0), t.lineTo(12, 0), t.lineTo(12, 6), t.lineTo(3, 6), t.moveTo(3, 6), t.lineTo(6, 3), t.moveTo(3, 6), t.lineTo(6, 9), t.stroke(), t.closePath(), t.restore();
12532
12557
  }
12533
- }, Ui = class {
12558
+ }, Wi = class {
12534
12559
  draw;
12535
12560
  position;
12536
12561
  options;
@@ -12555,7 +12580,7 @@ var Oi = class {
12555
12580
  }
12556
12581
  _computePositionList(e) {
12557
12582
  let { lineBreak: t, scale: n } = this.options, r = this.draw.getHeader().getExtraHeight(), i = this.draw.getInnerWidth(), a = this.draw.getMargins(), o = a[3];
12558
- t.disabled || (o += (Hi.WIDTH + Hi.GAP) * n);
12583
+ t.disabled || (o += (Ui.WIDTH + Ui.GAP) * n);
12559
12584
  let s = e?.startY || a[0] + r;
12560
12585
  this.position.computePageRowPosition({
12561
12586
  positionList: this.positionList,
@@ -12590,7 +12615,7 @@ var Oi = class {
12590
12615
  isDrawLineBreak: !1
12591
12616
  }), e.restore();
12592
12617
  }
12593
- }, Wi = class {
12618
+ }, Gi = class {
12594
12619
  draw;
12595
12620
  options;
12596
12621
  range;
@@ -12695,7 +12720,7 @@ var Oi = class {
12695
12720
  n?.includes(s) ? (e.globalAlpha = a, e.fillStyle = o) : (e.globalAlpha = i, e.fillStyle = r), e.fillRect(c, l, u, d);
12696
12721
  }), e.restore(), this.clearFillInfo();
12697
12722
  }
12698
- }, Gi = class {
12723
+ }, Ki = class {
12699
12724
  options;
12700
12725
  constructor(e) {
12701
12726
  this.options = e.getOptions();
@@ -12704,7 +12729,7 @@ var Oi = class {
12704
12729
  let { scale: i, whiteSpace: { color: a, radius: o } } = this.options, s = t.metrics;
12705
12730
  e.save(), e.fillStyle = a, e.beginPath(), e.arc(n + s.width / 2, r, o * i, 0, Math.PI * 2), e.fill(), e.closePath(), e.restore();
12706
12731
  }
12707
- }, Ki = class {
12732
+ }, qi = class {
12708
12733
  draw;
12709
12734
  eventBus;
12710
12735
  pageContainer;
@@ -12729,7 +12754,7 @@ var Oi = class {
12729
12754
  _click(e) {
12730
12755
  this.eventBus.isSubscribe("click") && this.eventBus.emit("click", e);
12731
12756
  }
12732
- }, qi = class {
12757
+ }, Ji = class {
12733
12758
  draw;
12734
12759
  options;
12735
12760
  constructor(e) {
@@ -12744,7 +12769,7 @@ var Oi = class {
12744
12769
  }
12745
12770
  e.restore();
12746
12771
  }
12747
- }, Ji = class {
12772
+ }, Yi = class {
12748
12773
  draw;
12749
12774
  header;
12750
12775
  footer;
@@ -12761,13 +12786,13 @@ var Oi = class {
12761
12786
  };
12762
12787
  //#endregion
12763
12788
  //#region src/editor/core/actuator/handlers/positionContextChange.ts
12764
- function Yi(e, t) {
12789
+ function Xi(e, t) {
12765
12790
  let { value: n, oldValue: r } = t;
12766
12791
  r.isTable && !n.isTable && e.getTableTool().dispose();
12767
12792
  }
12768
12793
  //#endregion
12769
12794
  //#region src/editor/core/actuator/Actuator.ts
12770
- var Xi = class {
12795
+ var Zi = class {
12771
12796
  draw;
12772
12797
  eventBus;
12773
12798
  constructor(e) {
@@ -12775,10 +12800,10 @@ var Xi = class {
12775
12800
  }
12776
12801
  execute() {
12777
12802
  this.eventBus.on("positionContextChange", (e) => {
12778
- Yi(this.draw, e);
12803
+ Xi(this.draw, e);
12779
12804
  });
12780
12805
  }
12781
- }, Zi = class {
12806
+ }, Qi = class {
12782
12807
  draw;
12783
12808
  range;
12784
12809
  position;
@@ -13310,13 +13335,13 @@ var Xi = class {
13310
13335
  isSubmitHistory: !1
13311
13336
  });
13312
13337
  }
13313
- }, Qi;
13338
+ }, $i;
13314
13339
  (function(e) {
13315
13340
  e.EDIT = "edit", e.READONLY = "readonly", e.FORM = "form";
13316
- })(Qi ||= {});
13341
+ })($i ||= {});
13317
13342
  //#endregion
13318
13343
  //#region src/editor/core/draw/interactive/Area.ts
13319
- var $i = class {
13344
+ var ea = class {
13320
13345
  draw;
13321
13346
  zone;
13322
13347
  range;
@@ -13342,9 +13367,9 @@ var $i = class {
13342
13367
  let e = this.getActiveAreaInfo();
13343
13368
  if (!e?.area) return !1;
13344
13369
  switch (e.area.mode) {
13345
- case Qi.EDIT: return !1;
13346
- case Qi.READONLY: return !0;
13347
- case Qi.FORM: return !this.draw.getControl().getIsRangeWithinControl();
13370
+ case $i.EDIT: return !1;
13371
+ case $i.READONLY: return !0;
13372
+ case $i.FORM: return !this.draw.getControl().getIsRangeWithinControl();
13348
13373
  default: return !1;
13349
13374
  }
13350
13375
  }
@@ -13379,7 +13404,7 @@ var $i = class {
13379
13404
  if (!s.length) continue;
13380
13405
  e.translate(.5, .5);
13381
13406
  let c = s[0], l = s[s.length - 1], u = n[3], d = Math.ceil(c.coordinate.leftTop[1]), f = Math.ceil(l.coordinate.rightBottom[1] - d);
13382
- a.backgroundColor && (e.fillStyle = a.backgroundColor, e.fillRect(u, d, r, f)), a.borderColor && (e.strokeStyle = a.borderColor, e.strokeRect(u, d, r, f)), a.placeholder && o.length <= 1 && new Ui(this.draw).render(e, {
13407
+ a.backgroundColor && (e.fillStyle = a.backgroundColor, e.fillRect(u, d, r, f)), a.borderColor && (e.strokeStyle = a.borderColor, e.strokeRect(u, d, r, f)), a.placeholder && o.length <= 1 && new Wi(this.draw).render(e, {
13383
13408
  placeholder: {
13384
13409
  ...Ht,
13385
13410
  ...a.placeholder
@@ -13477,7 +13502,7 @@ var $i = class {
13477
13502
  let { positionList: r } = n, i = this.draw.getOriginalMainElementList();
13478
13503
  this.draw.spliceElementList(i, r[0].index, r.length, [], { isIgnoreDeletedRule: !0 }), this.draw.render({ isSetCursor: !1 });
13479
13504
  }
13480
- }, ea = class {
13505
+ }, ta = class {
13481
13506
  draw;
13482
13507
  options;
13483
13508
  imageCache;
@@ -13525,7 +13550,7 @@ var $i = class {
13525
13550
  }
13526
13551
  }
13527
13552
  }
13528
- }, ta = class {
13553
+ }, na = class {
13529
13554
  draw;
13530
13555
  options;
13531
13556
  data;
@@ -13590,7 +13615,7 @@ var $i = class {
13590
13615
  }
13591
13616
  e.restore();
13592
13617
  }
13593
- }, na = class {
13618
+ }, ra = class {
13594
13619
  draw;
13595
13620
  options;
13596
13621
  canvas;
@@ -13645,7 +13670,41 @@ var $i = class {
13645
13670
  destroy() {
13646
13671
  this.canvas.remove(), this._removeEvent();
13647
13672
  }
13648
- }, ra = class {
13673
+ }, ia = class {
13674
+ draw;
13675
+ i18n;
13676
+ disabled;
13677
+ assertiveDom = null;
13678
+ rangeChangeHandler = null;
13679
+ constructor(e) {
13680
+ if (this.draw = e, this.i18n = e.getI18n(), this.disabled = e.getOptions().accessibility.disabled, this.disabled) return;
13681
+ let t = document.createElement("div");
13682
+ t.className = "ce-sr-only", this.assertiveDom = document.createElement("div"), this.assertiveDom.setAttribute("aria-live", "assertive"), this.assertiveDom.setAttribute("aria-atomic", "true"), t.appendChild(this.assertiveDom), e.getContainer().appendChild(t), this.rangeChangeHandler = this.handleRangeChange.bind(this), this.draw.getEventBus().on("rangeChange", this.rangeChangeHandler);
13683
+ }
13684
+ handleRangeChange(e) {
13685
+ e.startIndex !== e.endIndex && this.selection();
13686
+ }
13687
+ selection() {
13688
+ if (this.disabled) return;
13689
+ let e = this.draw.getRange().toString();
13690
+ if (!e.trim()) return;
13691
+ let t = this.i18n.t("accessibility.selected");
13692
+ this.assertive(`${t}${e}`);
13693
+ }
13694
+ input(e) {
13695
+ if (this.disabled) return;
13696
+ let t = e.replace(/* @__PURE__ */ RegExp("​", "g"), "").replace(/\n/g, "");
13697
+ if (!t.trim()) return;
13698
+ let n = this.i18n.t("accessibility.input");
13699
+ this.assertive(`${n}${t}`);
13700
+ }
13701
+ assertive(e) {
13702
+ this.disabled || !this.assertiveDom || (this.assertiveDom.textContent = "", this.assertiveDom.offsetHeight, this.assertiveDom.textContent = e);
13703
+ }
13704
+ destroy() {
13705
+ this.disabled || (this.rangeChangeHandler && this.draw.getEventBus().off("rangeChange", this.rangeChangeHandler), this.assertiveDom?.parentElement?.remove());
13706
+ }
13707
+ }, aa = class {
13649
13708
  container;
13650
13709
  pageContainer;
13651
13710
  pageList;
@@ -13710,6 +13769,7 @@ var $i = class {
13710
13769
  selectionObserver;
13711
13770
  imageObserver;
13712
13771
  graffiti;
13772
+ accessibility;
13713
13773
  LETTER_REG;
13714
13774
  WORD_LIKE_REG;
13715
13775
  rowList;
@@ -13721,7 +13781,7 @@ var $i = class {
13721
13781
  lazyRenderIntersectionObserver;
13722
13782
  printModeData;
13723
13783
  constructor(e, t, n, r, i, a) {
13724
- this.container = this._wrapContainer(e), this.pageList = [], this.ctxList = [], this.pageNo = 0, this.renderCount = 0, this.pagePixelRatio = null, this.mode = t.mode, this.options = t, this.elementList = n.main, this.listener = r, this.eventBus = i, this.override = a, this._formatContainer(), this.pageContainer = this._createPageContainer(), this._createPage(0), this.i18n = new Ii(t.locale), this.historyManager = new Mr(this), this.position = new Nr(this), this.zone = new zi(this), this.range = new Pr(this), this.margin = new Rr(this), this.background = new Fr(this), this.badge = new ea(this), this.magnifier = new na(this), this.search = new zr(this), this.group = new Wi(this), this.area = new $i(this), this.underline = new Ur(this), this.strikeout = new Br(this), this.highlight = new Lr(this), this.previewer = new ki(this), this.imageParticle = new Re(this), this.laTexParticle = new at(this), this.textParticle = new Wr(this), this.tableParticle = new Jr(this), this.tableTool = new Xr(this), this.tableOperate = new Zi(this), this.pageNumber = new Gr(this), this.lineNumber = new qi(this), this.waterMark = new ii(this), this.placeholder = new Ui(this), this.header = new $r(this, n.header), this.footer = new Bi(this, n.footer), this.hyperlinkParticle = new Zr(this), this.labelParticle = new Qr(this), this.dateParticle = new Ai(this), this.separatorParticle = new ni(this), this.pageBreakParticle = new ri(this), this.superscriptParticle = new ei(), this.subscriptParticle = new ti(), this.checkboxParticle = new mi(this), this.radioParticle = new hi(this), this.blockParticle = new Ni(this), this.listParticle = new Vi(this), this.lineBreakParticle = new Hi(this), this.whiteSpaceParticle = new Gi(this), this.control = new pi(this), this.pageBorder = new Ji(this), this.graffiti = new ta(this, n.graffiti), this.scrollObserver = new Kr(this), this.selectionObserver = new qr(this), this.imageObserver = new Li(), new Ki(this), this.canvasEvent = new kr(this), this.cursor = new Bn(this, this.canvasEvent), this.canvasEvent.register(), this.globalEvent = new jr(this, this.canvasEvent), this.globalEvent.register(), this.workerManager = new Oi(this), new Xi(this);
13784
+ this.container = this._wrapContainer(e), this.pageList = [], this.ctxList = [], this.pageNo = 0, this.renderCount = 0, this.pagePixelRatio = null, this.mode = t.mode, this.options = t, this.elementList = n.main, this.listener = r, this.eventBus = i, this.override = a, this._formatContainer(), this.pageContainer = this._createPageContainer(), this._createPage(0), this.i18n = new Li(t.locale), this.historyManager = new Nr(this), this.position = new Pr(this), this.zone = new Bi(this), this.range = new Fr(this), this.margin = new zr(this), this.background = new Ir(this), this.badge = new ta(this), this.magnifier = new ra(this), this.search = new Br(this), this.group = new Gi(this), this.area = new ea(this), this.underline = new Wr(this), this.strikeout = new Vr(this), this.highlight = new Rr(this), this.previewer = new Ai(this), this.imageParticle = new Re(this), this.laTexParticle = new at(this), this.textParticle = new Gr(this), this.tableParticle = new Yr(this), this.tableTool = new Zr(this), this.tableOperate = new Qi(this), this.pageNumber = new Kr(this), this.lineNumber = new Ji(this), this.waterMark = new ai(this), this.placeholder = new Wi(this), this.header = new ei(this, n.header), this.footer = new Vi(this, n.footer), this.hyperlinkParticle = new Qr(this), this.labelParticle = new $r(this), this.dateParticle = new ji(this), this.separatorParticle = new ri(this), this.pageBreakParticle = new ii(this), this.superscriptParticle = new ti(), this.subscriptParticle = new ni(), this.checkboxParticle = new hi(this), this.radioParticle = new gi(this), this.blockParticle = new Pi(this), this.listParticle = new Hi(this), this.lineBreakParticle = new Ui(this), this.whiteSpaceParticle = new Ki(this), this.control = new mi(this), this.pageBorder = new Yi(this), this.graffiti = new na(this, n.graffiti), this.scrollObserver = new qr(this), this.selectionObserver = new Jr(this), this.imageObserver = new Ri(), new qi(this), this.canvasEvent = new Ar(this), this.cursor = new Vn(this, this.canvasEvent), this.canvasEvent.register(), this.globalEvent = new Mr(this, this.canvasEvent), this.globalEvent.register(), this.workerManager = new ki(this), new Zi(this), this.accessibility = new ia(this);
13725
13785
  let { letterClass: o } = t;
13726
13786
  this.LETTER_REG = RegExp(`[${o.join("")}]`), this.WORD_LIKE_REG = RegExp(`${o.map((e) => `[^${e}][${e}]`).join("|")}`), this.rowList = [], this.pageRowList = [], this.painterStyle = null, this.painterOptions = null, this.visiblePageNoList = [], this.intersectionPageNo = 0, this.lazyRenderIntersectionObserver = null, this.printModeData = null, this.mode === G.PRINT && this.setPrintData(), this.render({
13727
13787
  isInit: !0,
@@ -14112,6 +14172,9 @@ var $i = class {
14112
14172
  getGraffiti() {
14113
14173
  return this.graffiti;
14114
14174
  }
14175
+ getAccessibility() {
14176
+ return this.accessibility;
14177
+ }
14115
14178
  getRowCount() {
14116
14179
  return this.getRowList().length;
14117
14180
  }
@@ -14538,7 +14601,7 @@ var $i = class {
14538
14601
  }
14539
14602
  }
14540
14603
  A.listId && (t.isList = !0, t.offsetX = x.get(A.listId), t.listIndex = D), t.offsetY = !o && A.area?.top && A.areaId !== n[e - 1]?.areaId ? A.area.top * m : 0, S.push(t);
14541
- } else k.width += M.width, e === 0 && (Cn(n[1]) || n[1]?.areaId) ? (k.height = v, k.ascent = v) : k.height < F && (k.height = F, k.ascent = P), k.elementList.push(re);
14604
+ } else k.width += M.width, e === 0 && (wn(n[1]) || n[1]?.areaId) ? (k.height = v, k.ascent = v) : k.height < F && (k.height = F, k.ascent = P), k.elementList.push(re);
14542
14605
  if ((le || e === n.length - 1) && (this.mode === G.PRINT && this.options.modeRule[G.PRINT].filterHideElementRow && k.elementList.filter((e) => e.value !== "​").every((e) => e.hide || e.control?.hide || e.area?.hide) && (k.height = 0, k.ascent = 0), k.isWidthNotEnough = ce && !se, !k.isSurround && (I?.rowFlex === u.JUSTIFY || I?.rowFlex === u.ALIGNMENT && k.isWidthNotEnough))) {
14543
14606
  let e = k.elementList[0]?.value === "​" ? k.elementList.slice(1) : k.elementList, t = (N - k.width) / (e.length - 1);
14544
14607
  for (let n = 0; n < e.length - 1; n++) {
@@ -14548,7 +14611,7 @@ var $i = class {
14548
14611
  k.width = N;
14549
14612
  }
14550
14613
  if (le) {
14551
- w = s, T += k.height, i && !o && l && (T - c + d + F > l || A.type === R.PAGE_BREAK) && (T = c, En(f, E), E += 1), re.left = 0;
14614
+ w = s, T += k.height, i && !o && l && (T - c + d + F > l || A.type === R.PAGE_BREAK) && (T = c, Dn(f, E), E += 1), re.left = 0;
14552
14615
  let e = S[S.length - 1];
14553
14616
  w = this.position.setSurroundPosition({
14554
14617
  pageNo: E,
@@ -14770,7 +14833,7 @@ var $i = class {
14770
14833
  let { header: t, footer: n } = this.options, { isSubmitHistory: r = !0, isSetCursor: i = !0, isCompute: a = !0, isLazy: o = !0, isInit: s = !1, isSourceHistory: c = !1, isFirstRender: l = !1 } = e || {}, { curIndex: u } = e || {}, d = this.getInnerWidth(), f = this.getIsPagingMode(), p = this.pageRowList.length;
14771
14834
  if (a) {
14772
14835
  this.position.setFloatPositionList([]), f && (t.disabled || this.header.compute(), n.disabled || this.footer.compute());
14773
- let e = this.getMargins(), r = this.getHeight(), i = this.header.getExtraHeight(), a = this.getMainOuterHeight(), o = e[3], s = e[0] + i, c = Tn(this.elementList);
14836
+ let e = this.getMargins(), r = this.getHeight(), i = this.header.getExtraHeight(), a = this.getMainOuterHeight(), o = e[3], s = e[0] + i, c = En(this.elementList);
14774
14837
  if (this.rowList = this.computeRowList({
14775
14838
  startX: o,
14776
14839
  startY: s,
@@ -14817,7 +14880,7 @@ var $i = class {
14817
14880
  return this.cursor.drawCursor({ isShow: r }), e;
14818
14881
  }
14819
14882
  submitHistory(e) {
14820
- let t = this.position.getPositionContext(), n = Sn(this.elementList), r = Sn(this.header.getElementList()), i = Sn(this.footer.getElementList()), a = b(this.range.getRange()), o = this.pageNo, s = b(t), c = this.zone.getZone();
14883
+ let t = this.position.getPositionContext(), n = Cn(this.elementList), r = Cn(this.header.getElementList()), i = Cn(this.footer.getElementList()), a = b(this.range.getRange()), o = this.pageNo, s = b(t), c = this.zone.getZone();
14821
14884
  this.historyManager.execute(() => {
14822
14885
  this.zone.setZone(c), this.setPageNo(o), this.position.setPositionContext(b(s)), this.header.setElementList(b(r)), this.footer.setElementList(b(i)), this.elementList = b(n), this.range.replaceRange(b(a)), this.render({
14823
14886
  curIndex: e,
@@ -14827,12 +14890,12 @@ var $i = class {
14827
14890
  });
14828
14891
  }
14829
14892
  destroy() {
14830
- this.container.remove(), this.globalEvent.removeEvent(), this.scrollObserver.removeEvent(), this.selectionObserver.removeEvent(), this.workerManager.destroy(), this.magnifier.destroy(), this.lazyRenderIntersectionObserver?.disconnect();
14893
+ this.container.remove(), this.globalEvent.removeEvent(), this.scrollObserver.removeEvent(), this.selectionObserver.removeEvent(), this.workerManager.destroy(), this.magnifier.destroy(), this.accessibility.destroy(), this.lazyRenderIntersectionObserver?.disconnect();
14831
14894
  }
14832
14895
  clearSideEffect() {
14833
14896
  this.getPreviewer().clearResizer(), this.getTableTool().dispose(), this.getHyperlinkParticle().clearHyperlinkPopup(), this.getDateParticle().clearDatePicker();
14834
14897
  }
14835
- }, ia = class {
14898
+ }, oa = class {
14836
14899
  executeMode;
14837
14900
  executeCut;
14838
14901
  executeCopy;
@@ -14983,7 +15046,7 @@ var $i = class {
14983
15046
  };
14984
15047
  //#endregion
14985
15048
  //#region src/editor/utils/paragraph.ts
14986
- function aa(e, t) {
15049
+ function sa(e, t) {
14987
15050
  let n = 0;
14988
15051
  for (let r = 1; r < t; r++) {
14989
15052
  let t = e[r], i = e[r - 1];
@@ -14993,7 +15056,7 @@ function aa(e, t) {
14993
15056
  }
14994
15057
  //#endregion
14995
15058
  //#region src/editor/utils/print.ts
14996
- function oa(e, t) {
15059
+ function ca(e, t) {
14997
15060
  return e === 1125 && t === 1593 ? {
14998
15061
  size: "a3",
14999
15062
  width: "297mm",
@@ -15012,12 +15075,12 @@ function oa(e, t) {
15012
15075
  height: `${t}px`
15013
15076
  };
15014
15077
  }
15015
- async function sa(e, t) {
15078
+ async function la(e, t) {
15016
15079
  let { width: n, height: r, direction: i = Ct.VERTICAL, iframeInfoList: a = [] } = t, o = document.createElement("iframe");
15017
15080
  o.style.visibility = "hidden", o.style.position = "absolute", o.style.left = "0", o.style.top = "0", o.style.width = "0", o.style.height = "0", o.style.border = "none", document.body.append(o);
15018
15081
  let s = o.contentWindow, c = s.document;
15019
15082
  c.open();
15020
- let l = document.createElement("div"), u = oa(n, r);
15083
+ let l = document.createElement("div"), u = ca(n, r);
15021
15084
  e.forEach((e, t) => {
15022
15085
  let n = document.createElement("div");
15023
15086
  n.style.position = "relative", n.style.width = i === Ct.HORIZONTAL ? u.height : u.width, n.style.height = i === Ct.HORIZONTAL ? u.width : u.height;
@@ -15041,13 +15104,13 @@ async function sa(e, t) {
15041
15104
  margin: 0;
15042
15105
  size: ${u.size} ${i === Ct.HORIZONTAL ? "landscape" : "portrait"};
15043
15106
  }`;
15044
- d.append(document.createTextNode(f)), c.write(`${d.outerHTML}${l.innerHTML}`), a.length && await ca(c), setTimeout(async () => {
15107
+ d.append(document.createTextNode(f)), c.write(`${d.outerHTML}${l.innerHTML}`), a.length && await ua(c), setTimeout(async () => {
15045
15108
  s.print(), c.close(), window.addEventListener("mouseover", () => {
15046
15109
  o?.remove();
15047
15110
  }, { once: !0 });
15048
15111
  });
15049
15112
  }
15050
- async function ca(e) {
15113
+ async function ua(e) {
15051
15114
  let t = Array.from(e.querySelectorAll("iframe")).map((e) => new Promise((t) => {
15052
15115
  e.srcdoc ? e.contentWindow?.addEventListener("message", (e) => {
15053
15116
  e.data.type === "__LOADED_TO_CANVAS_EDITOR__" && t(!0);
@@ -15057,7 +15120,7 @@ async function ca(e) {
15057
15120
  }
15058
15121
  //#endregion
15059
15122
  //#region src/editor/core/command/CommandAdapt.ts
15060
- var la = class {
15123
+ var da = class {
15061
15124
  draw;
15062
15125
  range;
15063
15126
  position;
@@ -15083,7 +15146,7 @@ var la = class {
15083
15146
  await this.canvasEvent.copy(e);
15084
15147
  }
15085
15148
  paste(e) {
15086
- this.draw.isReadonly() || this.draw.isDisabled() || Rn(this.canvasEvent, e);
15149
+ this.draw.isReadonly() || this.draw.isDisabled() || zn(this.canvasEvent, e);
15087
15150
  }
15088
15151
  selectAll() {
15089
15152
  this.canvasEvent.selectAll();
@@ -15420,7 +15483,7 @@ var la = class {
15420
15483
  if (!i || !i.length) return;
15421
15484
  let a = C(), o = this.draw.getOptions().title;
15422
15485
  i.forEach((t) => {
15423
- !t.type && t.value === "​" || (e ? (t.level = e, t.titleId = a, dn(t) && (t.size = o[mt[e]], t.bold = !0)) : t.titleId && (delete t.titleId, delete t.title, delete t.level, delete t.size, delete t.bold));
15486
+ !t.type && t.value === "​" || (e ? (t.level = e, t.titleId = a, fn(t) && (t.size = o[mt[e]], t.bold = !0)) : t.titleId && (delete t.titleId, delete t.title, delete t.level, delete t.size, delete t.bold));
15424
15487
  });
15425
15488
  let s = t === n, c = s ? n : t;
15426
15489
  this.draw.render({
@@ -15678,7 +15741,7 @@ var la = class {
15678
15741
  }
15679
15742
  async print() {
15680
15743
  let { scale: e, printPixelRatio: t, paperDirection: n, width: r, height: i } = this.options;
15681
- e !== 1 && this.draw.setPageScale(1), await sa(await this.draw.getDataURL({
15744
+ e !== 1 && this.draw.setPageScale(1), await la(await this.draw.getDataURL({
15682
15745
  pixelRatio: t,
15683
15746
  mode: G.PRINT
15684
15747
  }), {
@@ -15742,17 +15805,17 @@ var la = class {
15742
15805
  getHTML() {
15743
15806
  let e = this.options, t = this.draw.getHeaderElementList(), n = this.draw.getOriginalMainElementList(), r = this.draw.getFooterElementList();
15744
15807
  return {
15745
- header: vn(t, e).innerHTML,
15746
- main: vn(n, e).innerHTML,
15747
- footer: vn(r, e).innerHTML
15808
+ header: yn(t, e).innerHTML,
15809
+ main: yn(n, e).innerHTML,
15810
+ footer: yn(r, e).innerHTML
15748
15811
  };
15749
15812
  }
15750
15813
  getText() {
15751
15814
  let e = this.draw.getHeaderElementList(), t = this.draw.getOriginalMainElementList(), n = this.draw.getFooterElementList();
15752
15815
  return {
15753
- header: xn(e),
15754
- main: xn(t),
15755
- footer: xn(n)
15816
+ header: Sn(e),
15817
+ main: Sn(t),
15818
+ footer: Sn(n)
15756
15819
  };
15757
15820
  }
15758
15821
  getWordCount() {
@@ -15775,7 +15838,7 @@ var la = class {
15775
15838
  isHandleFirstElement: !1,
15776
15839
  editorOptions: this.options
15777
15840
  });
15778
- let r = Tn(n);
15841
+ let r = En(n);
15779
15842
  return this.draw.computeRowList({
15780
15843
  innerWidth: t,
15781
15844
  elementList: n,
@@ -15791,7 +15854,7 @@ var la = class {
15791
15854
  getRangeContext() {
15792
15855
  let { startIndex: e, endIndex: t } = this.range.getRange();
15793
15856
  if (!~e && !~t) return null;
15794
- let n = e === t, r = this.range.toString(), i = X(this.range.getSelectionElementList() || []), a = this.draw.getElementList(), o = sn(a[n ? e : e + 1], { extraPickAttrs: ["id", "controlComponent"] }), s = sn(a[t], { extraPickAttrs: ["id", "controlComponent"] }), c = this.draw.getRowList(), l = this.position.getPositionList(), u = l[e], d = l[t], f = u.pageNo, p = d.pageNo, m = u.rowIndex, h = d.rowIndex, g = c[m], _ = c[h], v = 0, y = 0;
15857
+ let n = e === t, r = this.range.toString(), i = X(this.range.getSelectionElementList() || []), a = this.draw.getElementList(), o = cn(a[n ? e : e + 1], { extraPickAttrs: ["id", "controlComponent"] }), s = cn(a[t], { extraPickAttrs: ["id", "controlComponent"] }), c = this.draw.getRowList(), l = this.position.getPositionList(), u = l[e], d = l[t], f = u.pageNo, p = d.pageNo, m = u.rowIndex, h = d.rowIndex, g = c[m], _ = c[h], v = 0, y = 0;
15795
15858
  this.draw.getCursor().getHitLineStartIndex() || (v = g.elementList[0]?.value === "​" ? u.index - g.startIndex : u.index - g.startIndex + 1), y = u === d ? v : _.elementList[0]?.value === "​" ? d.index - _.startIndex : d.index - _.startIndex + 1;
15796
15859
  let x = [], S = this.draw.getOriginalHeight(), C = this.draw.getOriginalPageGap(), w = this.position.getSelectionPositionList();
15797
15860
  if (w) {
@@ -15828,7 +15891,7 @@ var la = class {
15828
15891
  }
15829
15892
  M--;
15830
15893
  }
15831
- let te = aa(a, e), N = e === t ? te : aa(a, t);
15894
+ let te = sa(a, e), N = e === t ? te : sa(a, t);
15832
15895
  return b({
15833
15896
  isCollapsed: n,
15834
15897
  startElement: o,
@@ -16164,7 +16227,7 @@ var la = class {
16164
16227
  }
16165
16228
  }
16166
16229
  setHTML(e) {
16167
- let { header: t, main: n, footer: r } = e, i = this.draw.getOriginalInnerWidth(), a = (e) => e === void 0 ? void 0 : bn(e, { innerWidth: i });
16230
+ let { header: t, main: n, footer: r } = e, i = this.draw.getOriginalInnerWidth(), a = (e) => e === void 0 ? void 0 : xn(e, { innerWidth: i });
16168
16231
  this.setValue({
16169
16232
  header: a(t),
16170
16233
  main: a(n),
@@ -16226,7 +16289,7 @@ var la = class {
16226
16289
  this.draw.getControl().setHighlightList(e), this.draw.render({ isSubmitHistory: !1 });
16227
16290
  }
16228
16291
  updateOptions(e) {
16229
- let t = rn(e);
16292
+ let t = an(e);
16230
16293
  Object.entries(t).forEach(([e, t]) => {
16231
16294
  Reflect.set(this.options, e, t);
16232
16295
  }), this.forceUpdate();
@@ -16307,7 +16370,7 @@ var la = class {
16307
16370
  }
16308
16371
  insertControl(e) {
16309
16372
  if (this.draw.isReadonly() || this.draw.isDisabled()) return;
16310
- let t = b(e), { startIndex: n } = this.range.getRange(), r = mn(this.draw.getElementList(), n);
16373
+ let t = b(e), { startIndex: n } = this.range.getRange(), r = hn(this.draw.getElementList(), n);
16311
16374
  r && (N([
16312
16375
  ...Te,
16313
16376
  ...xe,
@@ -16347,7 +16410,7 @@ var la = class {
16347
16410
  }
16348
16411
  n.push({
16349
16412
  ...o.title,
16350
- value: xn(s),
16413
+ value: Sn(s),
16351
16414
  elementList: X(s),
16352
16415
  zone: i
16353
16416
  }), a = c;
@@ -16406,7 +16469,7 @@ var la = class {
16406
16469
  }
16407
16470
  insertTitle(e) {
16408
16471
  if (this.draw.isReadonly() || this.draw.isDisabled()) return;
16409
- let t = b(e), { startIndex: n } = this.range.getRange(), r = mn(this.draw.getElementList(), n);
16472
+ let t = b(e), { startIndex: n } = this.range.getRange(), r = hn(this.draw.getElementList(), n);
16410
16473
  if (!r) return;
16411
16474
  let i = [
16412
16475
  ...Te,
@@ -16467,7 +16530,7 @@ var la = class {
16467
16530
  isSubmitHistory: !1
16468
16531
  });
16469
16532
  }
16470
- }, ua = class {
16533
+ }, fa = class {
16471
16534
  rangeStyleChange;
16472
16535
  visiblePageNoListChange;
16473
16536
  intersectionPageNoChange;
@@ -16482,7 +16545,7 @@ var la = class {
16482
16545
  constructor() {
16483
16546
  this.rangeStyleChange = null, this.visiblePageNoListChange = null, this.intersectionPageNoChange = null, this.pageSizeChange = null, this.pageScaleChange = null, this.saved = null, this.contentChange = null, this.controlChange = null, this.controlContentChange = null, this.pageModeChange = null, this.zoneChange = null;
16484
16547
  }
16485
- }, da = class {
16548
+ }, pa = class {
16486
16549
  contextMenuList;
16487
16550
  getContextMenuList;
16488
16551
  shortcutList;
@@ -16491,7 +16554,7 @@ var la = class {
16491
16554
  let { contextMenu: t, shortcut: n, i18n: r } = e;
16492
16555
  this.contextMenuList = t.registerContextMenuList.bind(t), this.getContextMenuList = t.getContextMenuList.bind(t), this.shortcutList = n.registerShortcutList.bind(n), this.langMap = r.registerLangMap.bind(r);
16493
16556
  }
16494
- }, fa = { SELECTED_TEXT: "%s" }, pa = {
16557
+ }, ma = { SELECTED_TEXT: "%s" }, ha = {
16495
16558
  GLOBAL: {
16496
16559
  CUT: "globalCut",
16497
16560
  COPY: "globalCopy",
@@ -16545,16 +16608,16 @@ var la = class {
16545
16608
  MERGE_CELL: "tableMergeCell",
16546
16609
  CANCEL_MERGE_CELL: "tableCancelMergeCell"
16547
16610
  }
16548
- }, { CONTROL: { DELETE: ma } } = pa, ha = [{
16549
- key: ma,
16611
+ }, { CONTROL: { DELETE: ga } } = ha, _a = [{
16612
+ key: ga,
16550
16613
  i18nPath: "contextmenu.control.delete",
16551
16614
  when: (e) => !e.isReadonly && !e.editorHasSelection && !!e.startElement?.controlId && e.options.mode !== G.FORM,
16552
16615
  callback: (e) => {
16553
16616
  e.executeRemoveControl();
16554
16617
  }
16555
- }], { GLOBAL: { CUT: ga, COPY: _a, PASTE: va, SELECT_ALL: ya, PRINT: ba } } = pa, xa = [
16618
+ }], { GLOBAL: { CUT: va, COPY: ya, PASTE: ba, SELECT_ALL: xa, PRINT: Sa } } = ha, Ca = [
16556
16619
  {
16557
- key: ga,
16620
+ key: va,
16558
16621
  i18nPath: "contextmenu.global.cut",
16559
16622
  shortCut: `${ge ? "⌘" : "Ctrl"} + X`,
16560
16623
  when: (e) => !e.isReadonly,
@@ -16563,7 +16626,7 @@ var la = class {
16563
16626
  }
16564
16627
  },
16565
16628
  {
16566
- key: _a,
16629
+ key: ya,
16567
16630
  i18nPath: "contextmenu.global.copy",
16568
16631
  shortCut: `${ge ? "⌘" : "Ctrl"} + C`,
16569
16632
  when: (e) => e.editorHasSelection || e.isCrossRowCol,
@@ -16572,7 +16635,7 @@ var la = class {
16572
16635
  }
16573
16636
  },
16574
16637
  {
16575
- key: va,
16638
+ key: ba,
16576
16639
  i18nPath: "contextmenu.global.paste",
16577
16640
  shortCut: `${ge ? "⌘" : "Ctrl"} + V`,
16578
16641
  when: (e) => !e.isReadonly && e.editorTextFocus,
@@ -16581,7 +16644,7 @@ var la = class {
16581
16644
  }
16582
16645
  },
16583
16646
  {
16584
- key: ya,
16647
+ key: xa,
16585
16648
  i18nPath: "contextmenu.global.selectAll",
16586
16649
  shortCut: `${ge ? "⌘" : "Ctrl"} + A`,
16587
16650
  when: (e) => e.editorTextFocus,
@@ -16591,7 +16654,7 @@ var la = class {
16591
16654
  },
16592
16655
  { isDivider: !0 },
16593
16656
  {
16594
- key: ba,
16657
+ key: Sa,
16595
16658
  i18nPath: "contextmenu.global.print",
16596
16659
  icon: "print",
16597
16660
  when: () => !0,
@@ -16599,9 +16662,9 @@ var la = class {
16599
16662
  e.executePrint();
16600
16663
  }
16601
16664
  }
16602
- ], { HYPERLINK: { DELETE: Sa, CANCEL: Ca, EDIT: wa } } = pa, Ta = [
16665
+ ], { HYPERLINK: { DELETE: wa, CANCEL: Ta, EDIT: Ea } } = ha, Da = [
16603
16666
  {
16604
- key: Sa,
16667
+ key: wa,
16605
16668
  i18nPath: "contextmenu.hyperlink.delete",
16606
16669
  when: (e) => !e.isReadonly && e.startElement?.type === R.HYPERLINK,
16607
16670
  callback: (e) => {
@@ -16609,7 +16672,7 @@ var la = class {
16609
16672
  }
16610
16673
  },
16611
16674
  {
16612
- key: Ca,
16675
+ key: Ta,
16613
16676
  i18nPath: "contextmenu.hyperlink.cancel",
16614
16677
  when: (e) => !e.isReadonly && e.startElement?.type === R.HYPERLINK,
16615
16678
  callback: (e) => {
@@ -16617,7 +16680,7 @@ var la = class {
16617
16680
  }
16618
16681
  },
16619
16682
  {
16620
- key: wa,
16683
+ key: Ea,
16621
16684
  i18nPath: "contextmenu.hyperlink.edit",
16622
16685
  when: (e) => !e.isReadonly && e.startElement?.type === R.HYPERLINK,
16623
16686
  callback: (e, t) => {
@@ -16625,9 +16688,9 @@ var la = class {
16625
16688
  n && e.executeEditHyperlink(n);
16626
16689
  }
16627
16690
  }
16628
- ], { IMAGE: { CHANGE: Ea, SAVE_AS: Da, TEXT_WRAP: Oa, TEXT_WRAP_EMBED: ka, TEXT_WRAP_UP_DOWN: Aa, TEXT_WRAP_SURROUND: ja, TEXT_WRAP_FLOAT_TOP: Ma, TEXT_WRAP_FLOAT_BOTTOM: Na } } = pa, Pa = [
16691
+ ], { IMAGE: { CHANGE: Oa, SAVE_AS: ka, TEXT_WRAP: Aa, TEXT_WRAP_EMBED: ja, TEXT_WRAP_UP_DOWN: Ma, TEXT_WRAP_SURROUND: Na, TEXT_WRAP_FLOAT_TOP: Pa, TEXT_WRAP_FLOAT_BOTTOM: Fa } } = ha, Ia = [
16629
16692
  {
16630
- key: Ea,
16693
+ key: Oa,
16631
16694
  i18nPath: "contextmenu.image.change",
16632
16695
  icon: "image-change",
16633
16696
  when: (e) => !e.isReadonly && !e.editorHasSelection && e.startElement?.type === R.IMAGE,
@@ -16643,7 +16706,7 @@ var la = class {
16643
16706
  }
16644
16707
  },
16645
16708
  {
16646
- key: Da,
16709
+ key: ka,
16647
16710
  i18nPath: "contextmenu.image.saveAs",
16648
16711
  icon: "image",
16649
16712
  when: (e) => !e.editorHasSelection && e.startElement?.type === R.IMAGE,
@@ -16652,12 +16715,12 @@ var la = class {
16652
16715
  }
16653
16716
  },
16654
16717
  {
16655
- key: Oa,
16718
+ key: Aa,
16656
16719
  i18nPath: "contextmenu.image.textWrap",
16657
16720
  when: (e) => !e.isReadonly && !e.editorHasSelection && e.startElement?.type === R.IMAGE,
16658
16721
  childMenus: [
16659
16722
  {
16660
- key: ka,
16723
+ key: ja,
16661
16724
  i18nPath: "contextmenu.image.textWrapType.embed",
16662
16725
  when: () => !0,
16663
16726
  callback: (e, t) => {
@@ -16665,7 +16728,7 @@ var la = class {
16665
16728
  }
16666
16729
  },
16667
16730
  {
16668
- key: Aa,
16731
+ key: Ma,
16669
16732
  i18nPath: "contextmenu.image.textWrapType.upDown",
16670
16733
  when: () => !0,
16671
16734
  callback: (e, t) => {
@@ -16673,7 +16736,7 @@ var la = class {
16673
16736
  }
16674
16737
  },
16675
16738
  {
16676
- key: ja,
16739
+ key: Na,
16677
16740
  i18nPath: "contextmenu.image.textWrapType.surround",
16678
16741
  when: () => !0,
16679
16742
  callback: (e, t) => {
@@ -16681,7 +16744,7 @@ var la = class {
16681
16744
  }
16682
16745
  },
16683
16746
  {
16684
- key: Ma,
16747
+ key: Pa,
16685
16748
  i18nPath: "contextmenu.image.textWrapType.floatTop",
16686
16749
  when: () => !0,
16687
16750
  callback: (e, t) => {
@@ -16689,7 +16752,7 @@ var la = class {
16689
16752
  }
16690
16753
  },
16691
16754
  {
16692
- key: Na,
16755
+ key: Fa,
16693
16756
  i18nPath: "contextmenu.image.textWrapType.floatBottom",
16694
16757
  when: () => !0,
16695
16758
  callback: (e, t) => {
@@ -16698,16 +16761,16 @@ var la = class {
16698
16761
  }
16699
16762
  ]
16700
16763
  }
16701
- ], { TABLE: { BORDER: Fa, BORDER_ALL: Ia, BORDER_EMPTY: La, BORDER_DASH: Ra, BORDER_EXTERNAL: za, BORDER_INTERNAL: Ba, BORDER_TD: Va, BORDER_TD_TOP: Ha, BORDER_TD_LEFT: Ua, BORDER_TD_BOTTOM: Wa, BORDER_TD_RIGHT: Ga, BORDER_TD_BACK: Ka, BORDER_TD_FORWARD: qa, VERTICAL_ALIGN: Ja, VERTICAL_ALIGN_TOP: Ya, VERTICAL_ALIGN_MIDDLE: Xa, VERTICAL_ALIGN_BOTTOM: Za, INSERT_ROW_COL: Qa, INSERT_TOP_ROW: $a, INSERT_BOTTOM_ROW: eo, INSERT_LEFT_COL: to, INSERT_RIGHT_COL: no, DELETE_ROW_COL: ro, DELETE_ROW: io, DELETE_COL: ao, DELETE_TABLE: oo, MERGE_CELL: so, CANCEL_MERGE_CELL: co } } = pa, lo = [
16764
+ ], { TABLE: { BORDER: La, BORDER_ALL: Ra, BORDER_EMPTY: za, BORDER_DASH: Ba, BORDER_EXTERNAL: Va, BORDER_INTERNAL: Ha, BORDER_TD: Ua, BORDER_TD_TOP: Wa, BORDER_TD_LEFT: Ga, BORDER_TD_BOTTOM: Ka, BORDER_TD_RIGHT: qa, BORDER_TD_BACK: Ja, BORDER_TD_FORWARD: Ya, VERTICAL_ALIGN: Xa, VERTICAL_ALIGN_TOP: Za, VERTICAL_ALIGN_MIDDLE: Qa, VERTICAL_ALIGN_BOTTOM: $a, INSERT_ROW_COL: eo, INSERT_TOP_ROW: to, INSERT_BOTTOM_ROW: no, INSERT_LEFT_COL: ro, INSERT_RIGHT_COL: io, DELETE_ROW_COL: ao, DELETE_ROW: oo, DELETE_COL: so, DELETE_TABLE: co, MERGE_CELL: lo, CANCEL_MERGE_CELL: uo } } = ha, fo = [
16702
16765
  { isDivider: !0 },
16703
16766
  {
16704
- key: Fa,
16767
+ key: La,
16705
16768
  i18nPath: "contextmenu.table.border",
16706
16769
  icon: "border-all",
16707
16770
  when: (e) => !e.isReadonly && e.isInTable && e.options.mode !== G.FORM,
16708
16771
  childMenus: [
16709
16772
  {
16710
- key: Ia,
16773
+ key: Ra,
16711
16774
  i18nPath: "contextmenu.table.borderAll",
16712
16775
  icon: "border-all",
16713
16776
  when: () => !0,
@@ -16716,7 +16779,7 @@ var la = class {
16716
16779
  }
16717
16780
  },
16718
16781
  {
16719
- key: La,
16782
+ key: za,
16720
16783
  i18nPath: "contextmenu.table.borderEmpty",
16721
16784
  icon: "border-empty",
16722
16785
  when: () => !0,
@@ -16725,7 +16788,7 @@ var la = class {
16725
16788
  }
16726
16789
  },
16727
16790
  {
16728
- key: Ra,
16791
+ key: Ba,
16729
16792
  i18nPath: "contextmenu.table.borderDash",
16730
16793
  icon: "border-dash",
16731
16794
  when: () => !0,
@@ -16734,7 +16797,7 @@ var la = class {
16734
16797
  }
16735
16798
  },
16736
16799
  {
16737
- key: za,
16800
+ key: Va,
16738
16801
  i18nPath: "contextmenu.table.borderExternal",
16739
16802
  icon: "border-external",
16740
16803
  when: () => !0,
@@ -16743,7 +16806,7 @@ var la = class {
16743
16806
  }
16744
16807
  },
16745
16808
  {
16746
- key: Ba,
16809
+ key: Ha,
16747
16810
  i18nPath: "contextmenu.table.borderInternal",
16748
16811
  icon: "border-internal",
16749
16812
  when: () => !0,
@@ -16752,13 +16815,13 @@ var la = class {
16752
16815
  }
16753
16816
  },
16754
16817
  {
16755
- key: Va,
16818
+ key: Ua,
16756
16819
  i18nPath: "contextmenu.table.borderTd",
16757
16820
  icon: "border-td",
16758
16821
  when: () => !0,
16759
16822
  childMenus: [
16760
16823
  {
16761
- key: Ha,
16824
+ key: Wa,
16762
16825
  i18nPath: "contextmenu.table.borderTdTop",
16763
16826
  icon: "border-td-top",
16764
16827
  when: () => !0,
@@ -16767,7 +16830,7 @@ var la = class {
16767
16830
  }
16768
16831
  },
16769
16832
  {
16770
- key: Ga,
16833
+ key: qa,
16771
16834
  i18nPath: "contextmenu.table.borderTdRight",
16772
16835
  icon: "border-td-right",
16773
16836
  when: () => !0,
@@ -16776,7 +16839,7 @@ var la = class {
16776
16839
  }
16777
16840
  },
16778
16841
  {
16779
- key: Wa,
16842
+ key: Ka,
16780
16843
  i18nPath: "contextmenu.table.borderTdBottom",
16781
16844
  icon: "border-td-bottom",
16782
16845
  when: () => !0,
@@ -16785,7 +16848,7 @@ var la = class {
16785
16848
  }
16786
16849
  },
16787
16850
  {
16788
- key: Ua,
16851
+ key: Ga,
16789
16852
  i18nPath: "contextmenu.table.borderTdLeft",
16790
16853
  icon: "border-td-left",
16791
16854
  when: () => !0,
@@ -16794,7 +16857,7 @@ var la = class {
16794
16857
  }
16795
16858
  },
16796
16859
  {
16797
- key: qa,
16860
+ key: Ya,
16798
16861
  i18nPath: "contextmenu.table.borderTdForward",
16799
16862
  icon: "border-td-forward",
16800
16863
  when: () => !0,
@@ -16803,7 +16866,7 @@ var la = class {
16803
16866
  }
16804
16867
  },
16805
16868
  {
16806
- key: Ka,
16869
+ key: Ja,
16807
16870
  i18nPath: "contextmenu.table.borderTdBack",
16808
16871
  icon: "border-td-back",
16809
16872
  when: () => !0,
@@ -16816,13 +16879,13 @@ var la = class {
16816
16879
  ]
16817
16880
  },
16818
16881
  {
16819
- key: Ja,
16882
+ key: Xa,
16820
16883
  i18nPath: "contextmenu.table.verticalAlign",
16821
16884
  icon: "vertical-align",
16822
16885
  when: (e) => !e.isReadonly && e.isInTable && e.options.mode !== G.FORM,
16823
16886
  childMenus: [
16824
16887
  {
16825
- key: Ya,
16888
+ key: Za,
16826
16889
  i18nPath: "contextmenu.table.verticalAlignTop",
16827
16890
  icon: "vertical-align-top",
16828
16891
  when: () => !0,
@@ -16831,7 +16894,7 @@ var la = class {
16831
16894
  }
16832
16895
  },
16833
16896
  {
16834
- key: Xa,
16897
+ key: Qa,
16835
16898
  i18nPath: "contextmenu.table.verticalAlignMiddle",
16836
16899
  icon: "vertical-align-middle",
16837
16900
  when: () => !0,
@@ -16840,7 +16903,7 @@ var la = class {
16840
16903
  }
16841
16904
  },
16842
16905
  {
16843
- key: Za,
16906
+ key: $a,
16844
16907
  i18nPath: "contextmenu.table.verticalAlignBottom",
16845
16908
  icon: "vertical-align-bottom",
16846
16909
  when: () => !0,
@@ -16851,13 +16914,13 @@ var la = class {
16851
16914
  ]
16852
16915
  },
16853
16916
  {
16854
- key: Qa,
16917
+ key: eo,
16855
16918
  i18nPath: "contextmenu.table.insertRowCol",
16856
16919
  icon: "insert-row-col",
16857
16920
  when: (e) => !e.isReadonly && e.isInTable && e.options.mode !== G.FORM,
16858
16921
  childMenus: [
16859
16922
  {
16860
- key: $a,
16923
+ key: to,
16861
16924
  i18nPath: "contextmenu.table.insertTopRow",
16862
16925
  icon: "insert-top-row",
16863
16926
  when: () => !0,
@@ -16866,7 +16929,7 @@ var la = class {
16866
16929
  }
16867
16930
  },
16868
16931
  {
16869
- key: eo,
16932
+ key: no,
16870
16933
  i18nPath: "contextmenu.table.insertBottomRow",
16871
16934
  icon: "insert-bottom-row",
16872
16935
  when: () => !0,
@@ -16875,7 +16938,7 @@ var la = class {
16875
16938
  }
16876
16939
  },
16877
16940
  {
16878
- key: to,
16941
+ key: ro,
16879
16942
  i18nPath: "contextmenu.table.insertLeftCol",
16880
16943
  icon: "insert-left-col",
16881
16944
  when: () => !0,
@@ -16884,7 +16947,7 @@ var la = class {
16884
16947
  }
16885
16948
  },
16886
16949
  {
16887
- key: no,
16950
+ key: io,
16888
16951
  i18nPath: "contextmenu.table.insertRightCol",
16889
16952
  icon: "insert-right-col",
16890
16953
  when: () => !0,
@@ -16895,13 +16958,13 @@ var la = class {
16895
16958
  ]
16896
16959
  },
16897
16960
  {
16898
- key: ro,
16961
+ key: ao,
16899
16962
  i18nPath: "contextmenu.table.deleteRowCol",
16900
16963
  icon: "delete-row-col",
16901
16964
  when: (e) => !e.isReadonly && e.isInTable && e.options.mode !== G.FORM,
16902
16965
  childMenus: [
16903
16966
  {
16904
- key: io,
16967
+ key: oo,
16905
16968
  i18nPath: "contextmenu.table.deleteRow",
16906
16969
  icon: "delete-row",
16907
16970
  when: () => !0,
@@ -16910,7 +16973,7 @@ var la = class {
16910
16973
  }
16911
16974
  },
16912
16975
  {
16913
- key: ao,
16976
+ key: so,
16914
16977
  i18nPath: "contextmenu.table.deleteCol",
16915
16978
  icon: "delete-col",
16916
16979
  when: () => !0,
@@ -16919,7 +16982,7 @@ var la = class {
16919
16982
  }
16920
16983
  },
16921
16984
  {
16922
- key: oo,
16985
+ key: co,
16923
16986
  i18nPath: "contextmenu.table.deleteTable",
16924
16987
  icon: "delete-table",
16925
16988
  when: () => !0,
@@ -16930,7 +16993,7 @@ var la = class {
16930
16993
  ]
16931
16994
  },
16932
16995
  {
16933
- key: so,
16996
+ key: lo,
16934
16997
  i18nPath: "contextmenu.table.mergeCell",
16935
16998
  icon: "merge-cell",
16936
16999
  when: (e) => !e.isReadonly && e.isCrossRowCol && e.options.mode !== G.FORM,
@@ -16939,7 +17002,7 @@ var la = class {
16939
17002
  }
16940
17003
  },
16941
17004
  {
16942
- key: co,
17005
+ key: uo,
16943
17006
  i18nPath: "contextmenu.table.mergeCancelCell",
16944
17007
  icon: "merge-cancel-cell",
16945
17008
  when: (e) => !e.isReadonly && e.isInTable && e.options.mode !== G.FORM,
@@ -16947,7 +17010,7 @@ var la = class {
16947
17010
  e.executeCancelMergeTableCell();
16948
17011
  }
16949
17012
  }
16950
- ], uo = class {
17013
+ ], po = class {
16951
17014
  options;
16952
17015
  draw;
16953
17016
  command;
@@ -16961,11 +17024,11 @@ var la = class {
16961
17024
  context;
16962
17025
  constructor(e, t) {
16963
17026
  this.options = e.getOptions(), this.draw = e, this.command = t, this.range = e.getRange(), this.position = e.getPosition(), this.i18n = e.getI18n(), this.container = e.getContainer(), this.context = null, this.contextMenuList = [
16964
- ...xa,
16965
- ...lo,
16966
- ...Pa,
16967
- ...ha,
16968
- ...Ta
17027
+ ...Ca,
17028
+ ...fo,
17029
+ ...Ia,
17030
+ ..._a,
17031
+ ...Da
16969
17032
  ], this.contextMenuContainerList = [], this.contextMenuRelationShip = /* @__PURE__ */ new Map(), this._addEvent();
16970
17033
  }
16971
17034
  getContextMenuList() {
@@ -17082,9 +17145,9 @@ var la = class {
17082
17145
  t ? (e.parentNode?.querySelectorAll("ce-contextmenu-item").forEach((e) => e.classList.remove("hover")), e.classList.add("hover")) : e.classList.remove("hover");
17083
17146
  }
17084
17147
  _formatName(e) {
17085
- let t = Object.values(fa), n = RegExp(`${t.join("|")}`), r = e;
17148
+ let t = Object.values(ma), n = RegExp(`${t.join("|")}`), r = e;
17086
17149
  if (n.test(r)) {
17087
- let e = new RegExp(fa.SELECTED_TEXT, "g");
17150
+ let e = new RegExp(ma.SELECTED_TEXT, "g");
17088
17151
  if (e.test(r)) {
17089
17152
  let t = this.range.toString();
17090
17153
  r = r.replace(e, t);
@@ -17098,7 +17161,7 @@ var la = class {
17098
17161
  dispose() {
17099
17162
  this.contextMenuContainerList.forEach((e) => e.remove()), this.contextMenuContainerList = [], this.contextMenuRelationShip.clear();
17100
17163
  }
17101
- }, fo = [
17164
+ }, mo = [
17102
17165
  {
17103
17166
  key: Q.X,
17104
17167
  ctrl: !0,
@@ -17194,7 +17257,7 @@ var la = class {
17194
17257
  e.executeRowFlex(u.JUSTIFY);
17195
17258
  }
17196
17259
  }
17197
- ], po = [
17260
+ ], ho = [
17198
17261
  {
17199
17262
  key: Q.ZERO,
17200
17263
  alt: !0,
@@ -17251,7 +17314,7 @@ var la = class {
17251
17314
  e.executeTitle(V.SIXTH);
17252
17315
  }
17253
17316
  }
17254
- ], mo = [{
17317
+ ], go = [{
17255
17318
  key: Q.I,
17256
17319
  shift: !0,
17257
17320
  mod: !0,
@@ -17265,15 +17328,15 @@ var la = class {
17265
17328
  callback: (e) => {
17266
17329
  e.executeList(ot.OL);
17267
17330
  }
17268
- }], ho = class {
17331
+ }], _o = class {
17269
17332
  command;
17270
17333
  globalShortcutList;
17271
17334
  agentShortcutList;
17272
17335
  constructor(e, t) {
17273
17336
  this.command = t, this.globalShortcutList = [], this.agentShortcutList = [], this._addShortcutList([
17274
- ...fo,
17275
- ...po,
17276
- ...mo
17337
+ ...mo,
17338
+ ...ho,
17339
+ ...go
17277
17340
  ]), this._addEvent(), e.getCursor().getAgentDom().addEventListener("keydown", this._agentKeydown.bind(this));
17278
17341
  }
17279
17342
  _addEvent() {
@@ -17300,13 +17363,13 @@ var la = class {
17300
17363
  _execute(e, t) {
17301
17364
  for (let n = 0; n < t.length; n++) {
17302
17365
  let r = t[n];
17303
- if ((r.mod ? Hn(e) === !!r.mod : e.ctrlKey === !!r.ctrl && e.metaKey === !!r.meta) && e.shiftKey === !!r.shift && e.altKey === !!r.alt && e.key.toLowerCase() === r.key.toLowerCase()) {
17366
+ if ((r.mod ? Un(e) === !!r.mod : e.ctrlKey === !!r.ctrl && e.metaKey === !!r.meta) && e.shiftKey === !!r.shift && e.altKey === !!r.alt && e.key.toLowerCase() === r.key.toLowerCase()) {
17304
17367
  r.disable || (r?.callback?.(this.command), e.preventDefault());
17305
17368
  break;
17306
17369
  }
17307
17370
  }
17308
17371
  }
17309
- }, go = class {
17372
+ }, vo = class {
17310
17373
  editor;
17311
17374
  constructor(e) {
17312
17375
  this.editor = e;
@@ -17314,7 +17377,7 @@ var la = class {
17314
17377
  use(e, t) {
17315
17378
  e(this.editor, t);
17316
17379
  }
17317
- }, _o = class {
17380
+ }, yo = class {
17318
17381
  eventHub;
17319
17382
  constructor() {
17320
17383
  this.eventHub = /* @__PURE__ */ new Map();
@@ -17344,12 +17407,12 @@ var la = class {
17344
17407
  dangerouslyClearAll() {
17345
17408
  this.eventHub.clear();
17346
17409
  }
17347
- }, vo = class {
17410
+ }, bo = class {
17348
17411
  paste;
17349
17412
  pasteImage;
17350
17413
  copy;
17351
17414
  drop;
17352
- }, yo = class {
17415
+ }, xo = class {
17353
17416
  command;
17354
17417
  version;
17355
17418
  listener;
@@ -17359,7 +17422,7 @@ var la = class {
17359
17422
  destroy;
17360
17423
  use;
17361
17424
  constructor(t, n, r = {}) {
17362
- let i = rn(r);
17425
+ let i = an(r);
17363
17426
  n = b(n);
17364
17427
  let a = [], o = [], s = [], c = [];
17365
17428
  Array.isArray(n) ? o = n : (a = n.header || [], o = n.main, s = n.footer || [], c = n.graffiti || []), [
@@ -17371,27 +17434,27 @@ var la = class {
17371
17434
  editorOptions: i,
17372
17435
  isForceCompensation: !0
17373
17436
  });
17374
- }), this.version = e, this.listener = new ua(), this.eventBus = new _o(), this.override = new vo();
17375
- let l = new ra(t, i, {
17437
+ }), this.version = e, this.listener = new fa(), this.eventBus = new yo(), this.override = new bo();
17438
+ let l = new aa(t, i, {
17376
17439
  header: a,
17377
17440
  main: o,
17378
17441
  footer: s,
17379
17442
  graffiti: c
17380
17443
  }, this.listener, this.eventBus, this.override);
17381
- this.command = new ia(new la(l));
17382
- let u = new uo(l, this.command), d = new ho(l, this.command);
17383
- this.register = new da({
17444
+ this.command = new oa(new da(l));
17445
+ let u = new po(l, this.command), d = new _o(l, this.command);
17446
+ this.register = new pa({
17384
17447
  contextMenu: u,
17385
17448
  shortcut: d,
17386
17449
  i18n: l.getI18n()
17387
17450
  }), this.destroy = () => {
17388
17451
  l.destroy(), d.removeEvent(), u.removeEvent(), this.eventBus.dangerouslyClearAll();
17389
17452
  };
17390
- let f = new go(this);
17453
+ let f = new vo(this);
17391
17454
  this.use = f.use.bind(f);
17392
17455
  }
17393
17456
  };
17394
17457
  //#endregion
17395
- export { Qi as AreaMode, kt as BackgroundRepeat, Ot as BackgroundSize, _t as BlockType, ia as Command, U as ControlComponent, vt as ControlIndentation, yt as ControlState, H as ControlType, me as EDITOR_CLIPBOARD, pe as EDITOR_COMPONENT, yo as Editor, yo as default, bt as EditorComponent, G as EditorMode, K as EditorZone, R as ElementType, a as FlexDirection, pa as INTERNAL_CONTEXT_MENU_KEY, Ar as INTERNAL_SHORTCUT_KEY, r as ImageDisplay, Q as KeyMap, l as LETTER_CLASS, Xt as LineNumberType, B as ListStyle, ot as ListType, i as LocationPosition, t as MaxHeightRatio, n as NumberType, St as PageMode, Ct as PaperDirection, Tt as RenderMode, u as RowFlex, q as TableBorder, Et as TdBorder, Dt as TdSlash, Vr as TextDecorationStyle, V as TitleLevel, J as VerticalAlign, qt as WatermarkLayer, Kt as WatermarkType, wt as WordBreak, vn as createDomFromElementList, bn as getElementListByHTML, xn as getTextFromElementList, w as splitText };
17458
+ export { $i as AreaMode, kt as BackgroundRepeat, Ot as BackgroundSize, _t as BlockType, oa as Command, U as ControlComponent, vt as ControlIndentation, yt as ControlState, H as ControlType, me as EDITOR_CLIPBOARD, pe as EDITOR_COMPONENT, xo as Editor, xo as default, bt as EditorComponent, G as EditorMode, K as EditorZone, R as ElementType, a as FlexDirection, ha as INTERNAL_CONTEXT_MENU_KEY, jr as INTERNAL_SHORTCUT_KEY, r as ImageDisplay, Q as KeyMap, l as LETTER_CLASS, Xt as LineNumberType, B as ListStyle, ot as ListType, i as LocationPosition, t as MaxHeightRatio, n as NumberType, St as PageMode, Ct as PaperDirection, Tt as RenderMode, u as RowFlex, q as TableBorder, Et as TdBorder, Dt as TdSlash, Hr as TextDecorationStyle, V as TitleLevel, J as VerticalAlign, qt as WatermarkLayer, Kt as WatermarkType, wt as WordBreak, yn as createDomFromElementList, xn as getElementListByHTML, Sn as getTextFromElementList, w as splitText };
17396
17459
 
17397
17460
  //# sourceMappingURL=canvas-editor.js.map