ht-emr 0.7.46 → 0.7.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas-editor.js +492 -473
- package/dist/canvas-editor.umd.cjs +22 -22
- package/package.json +1 -1
package/dist/canvas-editor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.id="canvas-editor-style",e.appendChild(document.createTextNode(`.ce-select-control-popup{max-width:160px;min-width:69px;max-height:225px;position:absolute;z-index:1;border:1px solid #e4e7ed;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #0000001a;box-sizing:border-box;margin:5px 0;display:flex;flex-direction:column;overflow:hidden}.ce-select-control-search{display:block;width:calc(100% - 16px);height:28px;margin:8px;padding:0 8px;border:1px solid #dcdfe6;border-radius:3px;outline:none;box-sizing:border-box;color:#606266;font-size:13px;line-height:28px}.ce-select-control-search:focus{border-color:var(--COLOR-HOVER, #5175f4)}.ce-select-control-popup ul{list-style:none;padding:3px 0;margin:0;min-height:0;overflow-y:auto;box-sizing:border-box}.ce-select-control-popup ul li{font-size:13px;padding:0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#666;height:36px;line-height:36px;box-sizing:border-box;cursor:pointer}.ce-select-control-popup ul li:hover,.ce-select-control-popup ul li.keyboard-active{background-color:#eef2fd}.ce-select-control-popup ul li.active{color:var(--COLOR-HOVER, #5175f4);font-weight:700}.ce-select-control-popup ul li.ce-select-control-empty{color:#909399;cursor:default;text-align:center}.ce-select-control-popup ul li.ce-select-control-empty:hover{background-color:transparent}.ce-calculator{position:absolute;z-index:1;border:1px solid #e4e7ed;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #0000001a;box-sizing:border-box;margin:5px 0;padding:8px;width:200px}.ce-calculator-display{width:100%;height:40px;line-height:40px;text-align:right;padding:0 10px;margin-bottom:8px;border:1px solid #e4e7ed;border-radius:4px;background-color:#f5f7fa;font-size:16px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis}.ce-calculator-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.ce-calculator-button{width:100%;height:36px;border:1px solid #e4e7ed;border-radius:4px;background-color:#fff;font-size:14px;cursor:pointer;transition:all .2s;box-sizing:border-box}.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{display:none;width:300px;overflow:hidden;left:0;right:0;position:absolute;z-index:1;color:#606266;background:#fff;border-radius:4px;padding:10px;-webkit-user-select:none;user-select:none;border:1px solid #e4e7ed;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-title{display:flex;justify-content:center;align-items:center;text-align:center;color:#606266;font-size:16px}.ce-date-title>span{display:inline-block}.ce-date-title>span:not(.ce-date-title__now){font-family:cursive;cursor:pointer}.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__next-year,.ce-date-title .ce-date-title__next-month{width:15%}.ce-date-week{width:100%;display:flex;justify-content:center;margin-top:15px;padding-bottom:5px;border-bottom:1px solid #e4e7ed}.ce-date-week>span{list-style:none;width:calc(100%/7);text-align:center;color:#606266;font-size:14px}.ce-date-day{width:100%;display:flex;flex-wrap:wrap;align-items:center;margin-top:5px}.ce-date-day>div{width:calc(100%/7);height:40px;text-align:center;color:#606266;font-size:14px;cursor:pointer;line-height:40px;border-radius:4px}.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-time-wrap{display:none;padding:10px;height:286px}.ce-time-wrap ::-webkit-scrollbar{width:0}.ce-time-wrap.active{display:flex}.ce-time-wrap li{list-style:none}.ce-time-wrap>li{width:33.3%;height:100%;text-align:center}.ce-time-wrap>li>span{transform:translateY(-5px);display:inline-block}.ce-time-wrap>li>ol{height:calc(100% - 20px);overflow-y:auto;border:1px solid #e2e2e2;position:relative}.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{line-height:30px;cursor:pointer;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{width:100%;height:28px;display:flex;justify-content:flex-end;align-items:center;padding-top:10px;position:relative;border-top:1px solid #e4e7ed}.ce-date-menu button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #dcdfe6;color:#606266;appearance:none;text-align:center;box-sizing:border-box;outline:none;transition:.1s;font-weight:500;-webkit-user-select:none;user-select:none;padding:7px 15px;font-size:12px;border-radius:3px;margin:0 0 0 10px}.ce-date-menu button:hover{color:#5175f4;border-color:#5175f4}.ce-date-menu button.ce-date-menu__time{border:1px solid transparent;position:absolute;left:0;margin-left:0}.ce-date-menu button.ce-date-menu__time:hover{color:#5175f4}.ce-block-item{position:absolute;z-index:0;background-color:#fff;border:1px solid rgb(235 236 240)}.ce-block-item .ce-resizer-selection{width:100%;height:100%}.ce-block-item .ce-resizer-mask{position:absolute;inset:0;z-index:1;background-color:transparent}.ce-table-tool__row{position:absolute;width:12px;border-radius:6.5px;overflow:hidden;background-color:#e2e6ed}.ce-table-tool__row .ce-table-tool__row__item{width:100%;position:relative;cursor:pointer;transition:all .3s}.ce-table-tool__row .ce-table-tool__row__item:after{content:"";position:absolute;bottom:0;left:2px;width:8px;height:1px;background-color:#c0c6cf}.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{width:16px;height:16px;position:absolute;border-radius:50%;background-color:#e2e6ed;cursor:pointer}.ce-table-tool__quick__add:after{content:"+";color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-55%)}.ce-table-tool__select{width:16px;height:18px;position:absolute;border-radius:3px;cursor:pointer}.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{position:absolute;height:12px;border-radius:6.5px;overflow:hidden;background-color:#e2e6ed;display:flex}.ce-table-tool__col .ce-table-tool__col__item{height:100%;position:relative;cursor:pointer;transition:all .3s}.ce-table-tool__col .ce-table-tool__col__item:after{content:"";position:absolute;top:2px;left:-1px;width:1px;height:8px;z-index:1;background-color:#c0c6cf}.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{right:-5px;width:10px;height:12px;z-index:9;position:absolute;cursor:col-resize}.ce-table-tool__row .ce-table-tool__anchor{bottom:-5px;left:0;width:12px;height:10px;z-index:9;position:absolute;cursor:row-resize}.ce-table-anchor__line{z-index:9;position:absolute;border:1px dotted #000000}.ce-table-tool__border{position:absolute;z-index:1;background:transparent;pointer-events:none}.ce-table-tool__border__row{position:absolute;cursor:row-resize;pointer-events:auto}.ce-table-tool__border__col{position:absolute;cursor:col-resize;pointer-events:auto}.ce-resizer-selection{position:absolute;border:1px solid;pointer-events:none}.ce-resizer-selection .resizer-handle{position:absolute;z-index:9;width:10px;height:10px;box-shadow:0 1px 4px #0000004d;border-radius:5px;border:2px solid #ffffff;box-sizing:border-box;pointer-events:initial}.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{display:flex;align-items:center;height:20px;white-space:nowrap;position:absolute;z-index:9;top:-30px;left:0;opacity:.9;background-color:#000;padding:0 5px;border-radius:4px}.ce-resizer-size-view span{color:#fff;font-size:12px}.ce-resizer-image{position:absolute;opacity:.5}.ce-image-previewer{position:fixed;left:0;top:0;z-index:1000;width:100%;height:100%;overflow:hidden;background:#f2f4f7;display:flex;align-items:center;justify-content:center;animation:previewerAnimation .3s}@keyframes previewerAnimation{0%{opacity:.1}to{opacity:1}}.ce-image-previewer .image-close{width:24px;height:24px;display:inline-block;position:absolute;right:50px;top:30px;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") no-repeat;background-size:100% 100%;transition:all .3s;border-radius:50%}.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{height:50px;position:absolute;bottom:50px;z-index:99;display:flex;align-items:center;justify-content:center}.ce-image-previewer .ce-image-menu i{width:32px;height:32px;margin:0 8px;cursor:pointer;display:inline-block;background-repeat:no-repeat;background-size:100% 100%;transition:all .3s;border-radius:50%}.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{display:flex;align-items:center;justify-content:center}.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;position:fixed;display:none;padding:4px;overflow-x:hidden;overflow-y:auto;background:#fff;box-shadow:0 2px 12px #38383833;border:1px solid #e2e6ed;border-radius:2px}.ce-contextmenu-content{display:flex;flex-direction:column}.ce-contextmenu-content .ce-contextmenu-sub-item:after{position:absolute;content:"";width:16px;height:16px;right:12px;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")}.ce-contextmenu-content .ce-contextmenu-item{min-width:140px;padding:0 32px 0 16px;height:30px;display:flex;align-items:center;white-space:nowrap;box-sizing:border-box;cursor:pointer}.ce-contextmenu-content .ce-contextmenu-item.hover{background:#1937580a}.ce-contextmenu-content .ce-contextmenu-item span{max-width:300px;font-size:12px;color:#3d4757;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ce-contextmenu-content .ce-contextmenu-item span.ce-shortcut{color:#767c85;height:30px;flex:1;text-align:right;line-height:30px;margin-left:20px}.ce-contextmenu-content .ce-contextmenu-item i{width:16px;height:16px;vertical-align:middle;display:inline-block;background-repeat:no-repeat;background-size:100% 100%;flex-shrink:0;margin-right:8px}.ce-contextmenu-divider{background-color:#e2e6ed;margin:4px 16px;height:1px}.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{background:#fff;box-shadow:0 2px 12px #626b8433;border-radius:2px;color:#3d4757;padding:12px 16px;position:absolute;z-index:1;text-align:center;display:none}.ce-hyperlink-popup a{min-width:100px;max-width:300px;font-size:12px;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;text-decoration:none;border-bottom-width:1px;border-bottom-style:solid;color:#00f}.ce-zone-indicator>div{padding:3px 6px;color:#000;font-size:12px;background:#dae7fc;position:absolute;transform-origin:0 0}.ce-zone-indicator-border__top,.ce-zone-indicator-border__bottom,.ce-zone-indicator-border__left,.ce-zone-indicator-border__right{display:block;position:absolute;z-index:0}.ce-zone-indicator-border__top{border-top:2px dashed rgb(238,238,238)}.ce-zone-indicator-border__bottom{border-top:2px dashed rgb(238,238,238);width:100%}.ce-zone-indicator-border__left{border-left:2px dashed rgb(238,238,238)}.ce-zone-indicator-border__right{border-right:2px dashed rgb(238,238,238)}.ce-zone-tip{display:none;align-items:center;height:30px;white-space:nowrap;position:fixed;opacity:.9;background-color:#000;padding:0 5px;border-radius:4px;z-index:9;transition:all .3s;outline:none;-webkit-user-select:none;user-select:none;pointer-events:none;transform:translate(10px,10px)}.ce-zone-tip.show{display:flex}.ce-zone-tip span{color:#fff;font-size:12px}.ce-inputarea{min-width:60px!important;min-height:0;margin:0;padding:0;left:0;top:0;letter-spacing:0;font-size:12px;position:absolute;z-index:-1;outline:none;resize:none;border:none;overflow:hidden;color:transparent;-webkit-user-select:none;user-select:none;caret-color:transparent;background-color:transparent;white-space:pre}.ce-cursor{width:1px;height:20px;left:0;right:0;position:absolute;outline:none;background-color:#000;pointer-events:none}.ce-cursor.ce-cursor--animation{animation-duration:1s;animation-iteration-count:infinite;animation-name:cursorAnimation}@keyframes cursorAnimation{0%{opacity:1}13%{opacity:0}50%{opacity:0}63%{opacity:1}to{opacity:1}}.ce-float-image{position:absolute;opacity:.5;pointer-events:none}.ce-button-input-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:transparent;display:flex;justify-content:center;align-items:center;z-index:2000}.ce-button-input-modal__content{background:#fff;border-radius:8px;padding:20px;min-width:320px;max-width:480px;box-shadow:0 4px 20px #00000026}.ce-button-input-modal__title{font-size:14px;font-weight:500;color:#333;margin-bottom:12px}.ce-button-input-modal__textarea{width:100%;min-height:100px;padding:10px 12px;border:1px solid #dcdfe6;border-radius:4px;font-size:13px;line-height:1.5;resize:vertical;outline:none;box-sizing:border-box;font-family:inherit}.ce-button-input-modal__textarea:focus{border-color:#5175f4}.ce-button-input-modal__textarea::placeholder{color:#c0c4cc}.ce-button-input-modal__buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.ce-button-input-modal__cancel,.ce-button-input-modal__confirm{padding:8px 16px;font-size:13px;border-radius:4px;cursor:pointer;border:1px solid #dcdfe6;background:#fff;color:#606266;transition:all .2s}.ce-button-input-modal__cancel:hover{color:#5175f4;border-color:#5175f4}.ce-button-input-modal__confirm{background:#5175f4;border-color:#5175f4;color:#fff}.ce-button-input-modal__confirm:hover{background:#409eff;border-color:#409eff}.ce-button-edit-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:transparent;display:flex;justify-content:center;align-items:center;z-index:1000}.ce-button-edit-modal__content{background:#fff;border-radius:8px;padding:20px;min-width:320px;max-width:480px;box-shadow:0 4px 20px #00000026}.ce-button-edit-modal__title{font-size:14px;font-weight:500;color:#333;margin-bottom:16px}.ce-button-edit-modal__form{display:flex;flex-direction:column;gap:12px}.ce-button-edit-modal__field{display:flex;align-items:center;gap:8px}.ce-button-edit-modal__field label{min-width:80px;font-size:13px;color:#606266}.ce-button-edit-modal__field input{flex:1;padding:8px 12px;border:1px solid #dcdfe6;border-radius:4px;font-size:13px;outline:none;box-sizing:border-box}.ce-button-edit-modal__field input:focus{border-color:#5175f4}.ce-button-edit-modal__field input::placeholder{color:#c0c4cc}.ce-button-edit-modal__buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.ce-button-edit-modal__cancel,.ce-button-edit-modal__confirm{padding:8px 16px;font-size:13px;border-radius:4px;cursor:pointer;border:1px solid #dcdfe6;background:#fff;color:#606266;transition:all .2s}.ce-button-edit-modal__cancel:hover{color:#5175f4;border-color:#5175f4}.ce-button-edit-modal__confirm{background:#5175f4;border-color:#5175f4;color:#fff}.ce-button-edit-modal__confirm:hover{background:#409eff;border-color:#409eff}.ce-number-input-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:transparent;display:flex;justify-content:center;align-items:center;z-index:2000}.ce-number-input-modal__content{background:#fff;border-radius:8px;padding:20px;min-width:300px;max-width:400px;box-shadow:0 4px 20px #00000026}.ce-number-input-modal__title{font-size:14px;font-weight:500;color:#333;margin-bottom:12px}.ce-number-input-modal__hint{font-size:12px;color:#909399;margin-bottom:12px}.ce-number-input-modal__input{width:100%;padding:10px 12px;border:1px solid #dcdfe6;border-radius:4px;font-size:13px;outline:none;box-sizing:border-box}.ce-number-input-modal__input:focus{border-color:#5175f4}.ce-number-input-modal__input::placeholder{color:#c0c4cc}.ce-number-input-modal__error{font-size:12px;color:#f56c6c;margin-top:8px}.ce-number-input-modal__buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.ce-number-input-modal__cancel,.ce-number-input-modal__confirm{padding:8px 16px;font-size:13px;border-radius:4px;cursor:pointer;border:1px solid #dcdfe6;background:#fff;color:#606266;transition:all .2s}.ce-number-input-modal__cancel:hover{color:#5175f4;border-color:#5175f4}.ce-number-input-modal__confirm{background:#5175f4;border-color:#5175f4;color:#fff}.ce-number-input-modal__confirm:hover{background:#409eff;border-color:#409eff}.tooth-position-edit-modal,.tooth-position-create-modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000}.tooth-position-modal__container{position:relative;top:auto;left:auto;transform:none;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;min-width:400px;max-width:90vw;max-height:calc(100vh - 48px);display:flex;flex-direction:column;pointer-events:auto}.tooth-position-modal__header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e8e8e8}.tooth-position-modal__header span{font-size:16px;font-weight:500;color:#333}.tooth-position-modal__close{font-size:20px;cursor:pointer;color:#999;line-height:1}.tooth-position-modal__close:hover{color:#333}.tooth-position-modal__content{padding:20px;max-height:60vh;overflow-y:auto}.tooth-section{margin-bottom:20px}.tooth-section:last-child{margin-bottom:0}.tooth-section-title{font-size:14px;font-weight:500;color:#333;margin-bottom:12px;padding-left:8px;border-left:3px solid #1890ff}.tooth-row{display:flex;align-items:center;margin-bottom:8px}.tooth-row:last-child{margin-bottom:0}.tooth-row-label{width:30px;font-size:13px;color:#666}.tooth-buttons{display:flex;gap:8px;flex-wrap:wrap}.letter-buttons{margin-left:30px}.tooth-checkbox{display:flex;align-items:center;cursor:pointer}.tooth-checkbox input{display:none}.tooth-checkbox span{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #d9d9d9;border-radius:4px;background:#f5f5f5;font-size:14px;color:#333;transition:all .2s}.tooth-checkbox input:checked+span{background:#1890ff;border-color:#1890ff;color:#fff}.tooth-checkbox:hover span{border-color:#1890ff}.tooth-position-modal__footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 20px;border-top:1px solid #e8e8e8}.tooth-position-modal__footer .btn-cancel,.tooth-position-modal__footer .btn-confirm{padding:8px 20px;font-size:14px;border-radius:4px;cursor:pointer;border:1px solid #dcdfe6;background:#fff;color:#606266;transition:all .2s}.tooth-position-modal__footer .btn-cancel:hover{color:#1890ff;border-color:#1890ff}.tooth-position-modal__footer .btn-confirm{background:#1890ff;border-color:#1890ff;color:#fff}.tooth-position-modal__footer .btn-confirm:hover{background:#40a9ff;border-color:#40a9ff}.tooth-grid-container{display:flex;flex-direction:column;align-items:center;padding:15px 20px;background:#fafafa;border-radius:8px;margin-bottom:15px;position:relative}.tooth-quick-buttons{display:flex;gap:6px;margin-bottom:16px}.tooth-quick-buttons-left{display:flex;flex-direction:column;gap:6px;flex:1}.tooth-quick-buttons-row{display:flex;gap:6px}.tooth-quick-btn{padding:6px 12px;font-size:12px;border:1px solid #d9d9d9;border-radius:4px;cursor:pointer;background:#fff;color:#333;transition:all .2s;white-space:nowrap}.tooth-quick-btn:hover{border-color:#1890ff;color:#1890ff}.tooth-quick-btn.selected{background:#0ff;border-color:#0ff;color:#fff}.tooth-quick-btn--clear{background:#ff6b6b;border-color:#ff6b6b;color:#fff}.tooth-quick-btn--clear:hover{background:#ff5252;border-color:#ff5252;color:#fff}.tooth-grid-container:before{content:"";position:absolute;left:50%;top:20px;bottom:20px;width:2px;background:#000;transform:translate(-50%);z-index:1}.tooth-grid-container:after{content:"";position:absolute;left:20px;right:20px;top:50%;height:2px;background:#000;transform:translateY(-50%);z-index:1}.tooth-grid-letter-row,.tooth-grid-number-row{display:flex;align-items:center;justify-content:center;position:relative;z-index:2}.tooth-grid-half{display:flex;align-items:center;justify-content:center;gap:4px}.tooth-grid-half.left{justify-content:flex-end;padding-right:15px}.tooth-grid-half.right{justify-content:flex-start;padding-left:15px}.tooth-grid-divider-v,.tooth-grid-divider-h{display:none}.tooth-grid-number-item{width:34px;height:32px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;color:#333;cursor:pointer;background:#fff;transition:all .2s;box-sizing:border-box;border:1px solid #d9d9d9;border-radius:12px}.upper-number-row .tooth-grid-number-item{border-top:none;border-radius:0 0 12px 12px}.lower-number-row .tooth-grid-number-item{border-bottom:none;border-radius:12px 12px 0 0}.tooth-grid-number-item[data-value="1"],.tooth-grid-number-item[data-value="2"],.tooth-grid-number-item[data-value="3"]{border-radius:50px}.upper-number-row .tooth-grid-number-item[data-value="1"],.upper-number-row .tooth-grid-number-item[data-value="2"],.upper-number-row .tooth-grid-number-item[data-value="3"]{border-top:none!important;border-radius:0 0 50px 50px!important}.lower-number-row .tooth-grid-number-item[data-value="1"],.lower-number-row .tooth-grid-number-item[data-value="2"],.lower-number-row .tooth-grid-number-item[data-value="3"]{border-bottom:none!important;border-radius:50px 50px 0 0!important}.tooth-grid-number-item:hover{border-color:#1890ff;color:#1890ff}.tooth-grid-number-item.selected{background:#1890ff;border-color:#1890ff;color:#fff}.tooth-grid-letter-item{width:34px;height:32px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;color:#333;cursor:pointer;background:#fff;border:1px solid #d9d9d9;transition:all .2s;box-sizing:border-box;border-radius:12px}.upper-letter-row .tooth-grid-letter-item{border-top:none;border-radius:0 0 12px 12px}.lower-letter-row .tooth-grid-letter-item{border-bottom:none;border-radius:12px 12px 0 0}.tooth-grid-letter-item[data-value=A],.tooth-grid-letter-item[data-value=B],.tooth-grid-letter-item[data-value=C]{border-radius:50px}.upper-letter-row .tooth-grid-letter-item[data-value=A],.upper-letter-row .tooth-grid-letter-item[data-value=B],.upper-letter-row .tooth-grid-letter-item[data-value=C]{border-top:none!important;border-radius:0 0 50px 50px!important}.lower-letter-row .tooth-grid-letter-item[data-value=A],.lower-letter-row .tooth-grid-letter-item[data-value=B],.lower-letter-row .tooth-grid-letter-item[data-value=C]{border-bottom:none!important;border-radius:50px 50px 0 0!important}.tooth-grid-letter-item:hover{border-color:#1890ff;color:#1890ff}.tooth-grid-letter-item.selected{background:#1890ff;border-color:#1890ff;color:#fff}.tooth-grid-letter-row.hidden,.tooth-grid-number-row.hidden{display:none}.tooth-grid-letter-row{margin-bottom:8px}.tooth-grid-number-row.upper-number-row{margin-bottom:15px}.tooth-grid-number-row.lower-number-row{margin-top:15px}.tooth-grid-letter-row.lower-letter-row{margin-top:8px}.tooth-preview-section{padding-top:10px;border-top:1px solid #e8e8e8}.tooth-preview-title{font-size:14px;font-weight:500;color:#333;margin-bottom:12px}.tooth-preview-wrapper{display:flex;gap:15px}.tooth-preview-container{display:flex;justify-content:center;align-items:center;padding:10px;background:#fafafa;border-radius:8px;flex:1;min-height:60px}.tooth-preview-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:0;width:100%;min-height:70px;position:relative}.tooth-preview-grid:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:#000;transform:translate(-50%)}.tooth-preview-grid:after{content:"";position:absolute;top:50%;left:0;right:0;height:1px;background:#000;transform:translateY(-50%)}.tooth-preview-quadrant{display:flex;align-items:center;padding:5px 10px;font-size:12px;flex-wrap:wrap;gap:4px;justify-content:center}.tooth-preview-upper-left{justify-content:flex-end}.tooth-preview-upper-right{justify-content:flex-start}.tooth-preview-lower-left{justify-content:flex-end}.tooth-preview-lower-right{justify-content:flex-start}.tooth-preview-tooth{position:relative;display:inline;margin:0 4px}.tooth-preview-tooth-value{font-size:12px}.tooth-preview-tooth-value--deciduous{font-size:10px}.tooth-preview-tooth-bracket{font-size:12px}.tooth-preview-supernumerary{font-size:9px;vertical-align:super;margin:0 1px}.tooth-preview-surface{font-size:9px;vertical-align:super;margin-left:1px}.tooth-extra-panel{width:100px;display:flex;flex-direction:column;gap:10px}.tooth-surface-panel{background:#fafafa;border-radius:8px;padding:10px 20px}.tooth-surface-title{font-size:12px;font-weight:500;color:#333;margin-bottom:8px;text-align:center}.tooth-surface-grid{display:flex;flex-direction:column;gap:4px;align-items:center}.tooth-surface-row{display:flex;gap:4px;justify-content:center}.tooth-surface-item{width:30px;height:30px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:500;color:#333;cursor:pointer;background:#fff;border:1px dashed #d9d9d9;border-radius:5px;transition:all .2s;box-sizing:border-box}.tooth-surface-item--indent{margin-left:17px}.tooth-surface-item:hover{border-color:#1890ff;color:#1890ff}.tooth-surface-item.selected{background:#1890ff;border-color:#1890ff;border-style:solid;color:#fff}.tooth-supernumerary-panel{background:#fafafa;border-radius:8px;padding:10px 20px}.tooth-supernumerary-title{font-size:12px;font-weight:500;color:#333;margin-bottom:4px;text-align:center}.tooth-supernumerary-hint{font-size:10px;color:#999;font-weight:400}.tooth-supernumerary-grid{display:flex;gap:8px;justify-content:center;margin-top:8px}.tooth-supernumerary-item{width:30px;height:35px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:500;color:#333;cursor:pointer;background:#fff;border:1px solid #d9d9d9;border-bottom:none;border-radius:50px;transition:all .2s;box-sizing:border-box}.tooth-supernumerary-item:hover{border-color:#1890ff;color:#1890ff}.tooth-supernumerary-item.selected{background:#1890ff;border-color:#1890ff;color:#fff}.ce-button-input-modal,.ce-button-edit-modal,.ce-number-input-modal,.tooth-position-edit-modal,.tooth-position-create-modal{inset:0;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;overflow:auto;background:transparent;pointer-events:none}.ce-button-input-modal__content,.ce-button-edit-modal__content,.ce-number-input-modal__content,.tooth-position-modal__container{pointer-events:auto}.ce-button-input-modal__content,.ce-button-edit-modal__content,.ce-number-input-modal__content{max-height:calc(100vh - 48px);overflow:auto}.tooth-position-modal__mask{display:none}.tooth-position-modal__container{position:relative;top:auto;left:auto;transform:none;display:flex;flex-direction:column;max-height:calc(100vh - 48px)}.ant-modal-mask{display:none!important}.ant-modal-wrap{position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;box-sizing:border-box!important;overflow:auto!important;pointer-events:none!important}.ant-modal{top:auto!important;margin:0!important;padding-bottom:0!important;max-width:calc(100vw - 48px)!important;max-height:calc(100vh - 48px)!important;pointer-events:auto!important}.ant-modal-content{max-height:calc(100vh - 48px)!important;overflow:auto!important}.dialog-mask{display:none}.dialog-container{position:fixed;inset:0;overflow:auto;z-index:999;margin:0;padding:24px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;pointer-events:none}.dialog{position:relative;padding:0 30px 30px;background:#fff;box-shadow:0 2px 12px #38383833;border:1px solid #e2e6ed;border-radius:2px;max-height:calc(100vh - 48px);overflow:auto;pointer-events:auto}.dialog-title{position:relative;border-bottom:1px solid #e2e6ed;margin-bottom:30px;height:60px;display:flex;align-items:center;justify-content:space-between}.dialog-title i{width:16px;height:16px;cursor:pointer;display:inline-block;background: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.9%208.192l4.242%204.243-.707.707L8.192%208.9%203.95%2013.142l-.707-.707%204.242-4.243L3.243%203.95l.707-.707%204.242%204.242%204.243-4.242.707.707L8.9%208.192z'%20fill='%236A6A6A'%20fill-rule='evenodd'/%3e%3c/svg%3e")}.dialog-option__item{margin-bottom:18px;display:flex;align-items:center;justify-content:space-between}.dialog-option__item span{margin-right:12px;font-size:14px;color:#3d4757;position:relative}.dialog-option__item input,.dialog-option__item textarea,.dialog-option__item select{width:276px;height:30px;border-radius:2px;border:1px solid #d3d3d3;min-height:30px;padding:5px;box-sizing:border-box;outline:none;appearance:none;-webkit-user-select:none;user-select:none;font-family:inherit}.dialog-option__item input:focus,.dialog-option__item textarea:focus{border-color:#4991f2}.dialog-option__item--require:before{content:"*";color:#f56c6c;margin-right:4px;position:absolute;left:-8px}.dialog-menu{display:flex;align-items:center;justify-content:flex-end}.dialog-menu button{position:relative;display:inline-block;border:1px solid #e2e6ed;border-radius:2px;background:#fff;line-height:22px;padding:0 16px;white-space:nowrap;cursor:pointer}.dialog-menu button:hover{background:#1937580a}.dialog-menu__cancel{margin-right:16px}.dialog-menu button[type=submit]{color:#fff;background:#4991f2;border-color:#4991f2}.dialog-menu button[type=submit]:hover{background:#5b9cf3;border-color:#5b9cf3}.dialog-radio-group{display:flex;flex-direction:column;gap:8px}.dialog-radio-group--horizontal{flex-direction:row;gap:16px}.dialog-radio-item{display:flex;align-items:center;cursor:pointer;font-size:14px;color:#3d4757}.dialog-radio-item input[type=radio]{width:16px;height:16px;margin:0 6px 0 0;cursor:pointer;appearance:auto}.dialog-radio-item span{margin:0}`)),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
const xs = "0.7.
|
|
2
|
+
const xs = "0.7.48";
|
|
3
3
|
var Jn;
|
|
4
4
|
(function(o) {
|
|
5
5
|
o.HALF = "half", o.ONE_THIRD = "one-third", o.QUARTER = "quarter";
|
|
@@ -57,8 +57,8 @@ var kt;
|
|
|
57
57
|
(function(o) {
|
|
58
58
|
o.LEFT = "left", o.CENTER = "center", o.RIGHT = "right", o.ALIGNMENT = "alignment", o.JUSTIFY = "justify";
|
|
59
59
|
})(kt || (kt = {}));
|
|
60
|
-
const Qi = /[0-9.]/, Ya = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, Ua = /[#*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])?))?)/g, wa = new RegExp(`${Ua.source}|${Ya.source}`, "g"), Za = /[、,。?!;:……「」“”‘’*()【】〔〕〖〗〘〙〚〛《》———﹝﹞–—\\/·.,!?;:`~<>()[\]{}'"|]/, ys = new RegExp(`^[${_}
|
|
61
|
-
]`),
|
|
60
|
+
const Qi = /[0-9.]/, Ya = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, Ua = /[#*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])?))?)/g, wa = new RegExp(`${Ua.source}|${Ya.source}`, "g"), va = /[、,。?!;:……「」“”‘’*()【】〔〕〖〗〘〙〚〛《》———﹝﹞–—\\/·.,!?;:`~<>()[\]{}'"|]/, ys = new RegExp(`^[${_}
|
|
61
|
+
]`), Za = /\s/;
|
|
62
62
|
function Qa(o, t) {
|
|
63
63
|
let e;
|
|
64
64
|
return function(...n) {
|
|
@@ -112,7 +112,7 @@ function Lt() {
|
|
|
112
112
|
}
|
|
113
113
|
return o() + o() + "-" + o() + "-" + o() + "-" + o() + "-" + o() + o() + o();
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function vt(o) {
|
|
116
116
|
const t = [];
|
|
117
117
|
if (Intl.Segmenter) {
|
|
118
118
|
const n = new Intl.Segmenter().segment(o);
|
|
@@ -2549,7 +2549,7 @@ function ni(o, t = "math") {
|
|
|
2549
2549
|
"\\": 804
|
|
2550
2550
|
}[o];
|
|
2551
2551
|
}
|
|
2552
|
-
const
|
|
2552
|
+
const ve = {
|
|
2553
2553
|
SUB_SUP_SCALE: 0.5,
|
|
2554
2554
|
SQRT_MAG_SCALE: 0.5,
|
|
2555
2555
|
FRAC_SCALE: 0.85,
|
|
@@ -2684,12 +2684,12 @@ function gc(o, t = "center") {
|
|
|
2684
2684
|
let u = 0, h = c;
|
|
2685
2685
|
for (; h > 0 && (o[h].text == "^" || o[h].text == "_" || o[h].text == "'"); )
|
|
2686
2686
|
h--;
|
|
2687
|
-
u = o[h].bbox.y, o[c].text == "'" ? o[c].bbox.y = u : (be(o[c],
|
|
2687
|
+
u = o[h].bbox.y, o[c].text == "'" ? o[c].bbox.y = u : (be(o[c], ve.SUB_SUP_SCALE, null, 0, 0), Qt[o[h].text] && Qt[o[h].text].flags.big ? o[c].bbox.y = u - o[c].bbox.h : o[h].text == "\\int" ? o[c].bbox.y = u : o[c].bbox.y = u - o[c].bbox.h / 2);
|
|
2688
2688
|
} else if (o[c].text == "_") {
|
|
2689
2689
|
let u = 1, h = c;
|
|
2690
2690
|
for (; h > 0 && (o[h].text == "^" || o[h].text == "_" || o[h].text == "'"); )
|
|
2691
2691
|
h--;
|
|
2692
|
-
u = o[h].bbox.y + o[h].bbox.h, be(o[c],
|
|
2692
|
+
u = o[h].bbox.y + o[h].bbox.h, be(o[c], ve.SUB_SUP_SCALE, null, 0, 0), Qt[o[h].text] && Qt[o[h].text].flags.big ? o[c].bbox.y = u : o[h].text == "\\int" ? o[c].bbox.y = u - o[c].bbox.h : o[c].bbox.y = u - o[c].bbox.h / 2;
|
|
2693
2693
|
}
|
|
2694
2694
|
function e(c, u, h, d, f) {
|
|
2695
2695
|
let g = c, p = f, I = 1 / 0, m = -1 / 0;
|
|
@@ -2741,7 +2741,7 @@ function gc(o, t = "center") {
|
|
|
2741
2741
|
for (let c = 0; c < a.length; c++)
|
|
2742
2742
|
(a[c][0] == 1 / 0 || a[c][1] == 1 / 0) && (a[c][0] = c == 0 ? 0 : a[c - 1][1], a[c][1] = a[c][0] + 2);
|
|
2743
2743
|
for (let c = 1; c < l.length; c++) {
|
|
2744
|
-
const u = a[c - 1][1] - a[c][0] +
|
|
2744
|
+
const u = a[c - 1][1] - a[c][0] + ve.LINE_SPACING;
|
|
2745
2745
|
for (let h = 0; h < l[c].length; h++)
|
|
2746
2746
|
l[c][h] && (l[c][h].bbox.y += u);
|
|
2747
2747
|
a[c][0] += u, a[c][1] += u;
|
|
@@ -2806,7 +2806,7 @@ function en(o, t = "math") {
|
|
|
2806
2806
|
return;
|
|
2807
2807
|
}
|
|
2808
2808
|
if (o.text == "\\frac") {
|
|
2809
|
-
const n = o.chld[0], i = o.chld[1], r =
|
|
2809
|
+
const n = o.chld[0], i = o.chld[1], r = ve.FRAC_SCALE;
|
|
2810
2810
|
en(n), en(i), n.bbox.x = 0, n.bbox.y = 0, i.bbox.x = 0, i.bbox.y = 0;
|
|
2811
2811
|
const s = Math.max(n.bbox.w, i.bbox.w) * r;
|
|
2812
2812
|
be(n, r, null, (s - n.bbox.w * r) / 2, 0), be(
|
|
@@ -2815,12 +2815,12 @@ function en(o, t = "math") {
|
|
|
2815
2815
|
// @ts-ignore
|
|
2816
2816
|
null,
|
|
2817
2817
|
(s - i.bbox.w * r) / 2,
|
|
2818
|
-
n.bbox.h +
|
|
2818
|
+
n.bbox.h + ve.FRAC_SPACING
|
|
2819
2819
|
), o.bbox = {
|
|
2820
2820
|
x: 0,
|
|
2821
|
-
y: -n.bbox.h + 1 -
|
|
2821
|
+
y: -n.bbox.h + 1 - ve.FRAC_SPACING / 2,
|
|
2822
2822
|
w: s,
|
|
2823
|
-
h: n.bbox.h + i.bbox.h +
|
|
2823
|
+
h: n.bbox.h + i.bbox.h + ve.FRAC_SPACING
|
|
2824
2824
|
};
|
|
2825
2825
|
} else if (o.text == "\\binom") {
|
|
2826
2826
|
const n = o.chld[0], i = o.chld[1];
|
|
@@ -2832,7 +2832,7 @@ function en(o, t = "math") {
|
|
|
2832
2832
|
en(n);
|
|
2833
2833
|
const i = o.chld[1];
|
|
2834
2834
|
let r = 0;
|
|
2835
|
-
i && (en(i), r = Math.max(i.bbox.w *
|
|
2835
|
+
i && (en(i), r = Math.max(i.bbox.w * ve.SQRT_MAG_SCALE - 0.5, 0), be(i, ve.SQRT_MAG_SCALE, null, 0, 0.5)), be(n, 1, null, 1 + r, 0.5), o.bbox = {
|
|
2836
2836
|
x: 0,
|
|
2837
2837
|
y: 2 - n.bbox.h - 0.5,
|
|
2838
2838
|
w: n.bbox.w + 1 + r,
|
|
@@ -2877,10 +2877,10 @@ function en(o, t = "math") {
|
|
|
2877
2877
|
o.chld[I].text == "'" && m++, I++;
|
|
2878
2878
|
d.bbox.x = o.chld[g].bbox.x + o.chld[g].bbox.w + d.bbox.w * m, n = Math.max(n, d.bbox.x + d.bbox.w);
|
|
2879
2879
|
} else if (p) {
|
|
2880
|
-
const I = o.chld[g].bbox.x + (o.chld[g].bbox.w - d.bbox.w *
|
|
2881
|
-
d.bbox.x = I, n = Math.max(n, o.chld[g].bbox.x + o.chld[g].bbox.w + (d.bbox.w *
|
|
2880
|
+
const I = o.chld[g].bbox.x + (o.chld[g].bbox.w - d.bbox.w * ve.SUB_SUP_SCALE) / 2;
|
|
2881
|
+
d.bbox.x = I, n = Math.max(n, o.chld[g].bbox.x + o.chld[g].bbox.w + (d.bbox.w * ve.SUB_SUP_SCALE - o.chld[g].bbox.w) / 2);
|
|
2882
2882
|
} else
|
|
2883
|
-
d.bbox.x = o.chld[g].bbox.x + o.chld[g].bbox.w, n = Math.max(n, d.bbox.x + d.bbox.w *
|
|
2883
|
+
d.bbox.x = o.chld[g].bbox.x + o.chld[g].bbox.w, n = Math.max(n, d.bbox.x + d.bbox.w * ve.SUB_SUP_SCALE);
|
|
2884
2884
|
} else
|
|
2885
2885
|
n += d.bbox.w;
|
|
2886
2886
|
t == "text" && (n += 1), r = Math.max(d.bbox.y + d.bbox.h - i, r);
|
|
@@ -3573,12 +3573,12 @@ const wc = {
|
|
|
3573
3573
|
disabled: !0,
|
|
3574
3574
|
right: 20,
|
|
3575
3575
|
type: gi.CONTINUITY
|
|
3576
|
-
},
|
|
3576
|
+
}, vc = {
|
|
3577
3577
|
color: "#000000",
|
|
3578
3578
|
lineWidth: 1,
|
|
3579
3579
|
padding: [0, 5, 0, 5],
|
|
3580
3580
|
disabled: !0
|
|
3581
|
-
},
|
|
3581
|
+
}, Zc = {
|
|
3582
3582
|
top: 0,
|
|
3583
3583
|
left: 5
|
|
3584
3584
|
}, Qc = {
|
|
@@ -3648,10 +3648,10 @@ function Di(o = {}) {
|
|
|
3648
3648
|
...wc,
|
|
3649
3649
|
...o.lineNumber
|
|
3650
3650
|
}, O = {
|
|
3651
|
-
...
|
|
3651
|
+
...vc,
|
|
3652
3652
|
...o.pageBorder
|
|
3653
3653
|
}, S = {
|
|
3654
|
-
...
|
|
3654
|
+
...Zc,
|
|
3655
3655
|
...o.badge
|
|
3656
3656
|
}, M = {
|
|
3657
3657
|
...Qc,
|
|
@@ -3769,7 +3769,7 @@ const Tl = /* @__PURE__ */ new Map(), Kc = [
|
|
|
3769
3769
|
b.RADIO
|
|
3770
3770
|
];
|
|
3771
3771
|
function Ae(o, t) {
|
|
3772
|
-
return o && Kc.includes(o) ? [""] :
|
|
3772
|
+
return o && Kc.includes(o) ? [""] : vt(t);
|
|
3773
3773
|
}
|
|
3774
3774
|
function Ac(o) {
|
|
3775
3775
|
return Tl.get(o);
|
|
@@ -3780,7 +3780,7 @@ function ko(o, t) {
|
|
|
3780
3780
|
function fs(o) {
|
|
3781
3781
|
const t = [];
|
|
3782
3782
|
for (let e = 0; e < o.length; e++) {
|
|
3783
|
-
const n = o[e], i =
|
|
3783
|
+
const n = o[e], i = vt(n.value);
|
|
3784
3784
|
for (let r = 0; r < i.length; r++)
|
|
3785
3785
|
t.push({ ...n, value: i[r] });
|
|
3786
3786
|
}
|
|
@@ -3820,11 +3820,11 @@ function Ce(o) {
|
|
|
3820
3820
|
return o?.buttonValueLayout === !0;
|
|
3821
3821
|
}
|
|
3822
3822
|
function Gn(o, t) {
|
|
3823
|
-
const e =
|
|
3823
|
+
const e = vt(o), n = fo(t?.valueLayout), i = n.indentChars > 0;
|
|
3824
3824
|
if (!n.newline && !i || !e.length)
|
|
3825
3825
|
return e.map((a) => ({ value: a }));
|
|
3826
3826
|
const r = [], s = (a, c = !1) => {
|
|
3827
|
-
|
|
3827
|
+
vt(a).forEach((u, h) => {
|
|
3828
3828
|
const d = { value: u, buttonValueLayout: !0 };
|
|
3829
3829
|
c && h === 0 && Object.assign(d, {
|
|
3830
3830
|
buttonValueLayoutPrefixOffset: !0
|
|
@@ -3896,7 +3896,7 @@ function Ts(o, t) {
|
|
|
3896
3896
|
"newElEditTime",
|
|
3897
3897
|
"color"
|
|
3898
3898
|
]) : {};
|
|
3899
|
-
return
|
|
3899
|
+
return vt(e).map((i) => ({
|
|
3900
3900
|
...n,
|
|
3901
3901
|
type: P.TEXT,
|
|
3902
3902
|
value: i === `
|
|
@@ -4160,7 +4160,7 @@ function le(o, t) {
|
|
|
4160
4160
|
}, w = {
|
|
4161
4161
|
...F,
|
|
4162
4162
|
color: void 0
|
|
4163
|
-
}, V =
|
|
4163
|
+
}, V = vt(a || L.preTextFix);
|
|
4164
4164
|
for (let y = 0; y < V.length; y++) {
|
|
4165
4165
|
const W = V[y];
|
|
4166
4166
|
o.splice(s, 0, {
|
|
@@ -4174,7 +4174,7 @@ function le(o, t) {
|
|
|
4174
4174
|
}), s++;
|
|
4175
4175
|
}
|
|
4176
4176
|
if (u) {
|
|
4177
|
-
const y =
|
|
4177
|
+
const y = vt(u);
|
|
4178
4178
|
for (let W = 0; W < y.length; W++) {
|
|
4179
4179
|
const X = y[W];
|
|
4180
4180
|
o.splice(s, 0, {
|
|
@@ -4210,16 +4210,16 @@ function le(o, t) {
|
|
|
4210
4210
|
value: W.includes(U.code)
|
|
4211
4211
|
}
|
|
4212
4212
|
}), s++;
|
|
4213
|
-
const x =
|
|
4213
|
+
const x = vt(U.value);
|
|
4214
4214
|
for (let Q = 0; Q < x.length; Q++) {
|
|
4215
|
-
const
|
|
4215
|
+
const v = x[Q], H = Q === x.length - 1;
|
|
4216
4216
|
o.splice(s, 0, {
|
|
4217
4217
|
...M,
|
|
4218
4218
|
...w,
|
|
4219
4219
|
...X[D],
|
|
4220
4220
|
controlId: S,
|
|
4221
|
-
value:
|
|
4222
|
-
` ? _ :
|
|
4221
|
+
value: v === `
|
|
4222
|
+
` ? _ : v,
|
|
4223
4223
|
letterSpacing: H ? T.gap : 0,
|
|
4224
4224
|
control: l.control,
|
|
4225
4225
|
controlComponent: R.VALUE
|
|
@@ -4246,9 +4246,9 @@ function le(o, t) {
|
|
|
4246
4246
|
value: g === E.code
|
|
4247
4247
|
}
|
|
4248
4248
|
}), s++;
|
|
4249
|
-
const U =
|
|
4249
|
+
const U = vt(E.value);
|
|
4250
4250
|
for (let x = 0; x < U.length; x++) {
|
|
4251
|
-
const Q = U[x],
|
|
4251
|
+
const Q = U[x], v = x === U.length - 1;
|
|
4252
4252
|
o.splice(s, 0, {
|
|
4253
4253
|
...M,
|
|
4254
4254
|
...w,
|
|
@@ -4256,7 +4256,7 @@ function le(o, t) {
|
|
|
4256
4256
|
controlId: S,
|
|
4257
4257
|
value: Q === `
|
|
4258
4258
|
` ? _ : Q,
|
|
4259
|
-
letterSpacing:
|
|
4259
|
+
letterSpacing: v ? O.gap : 0,
|
|
4260
4260
|
control: l.control,
|
|
4261
4261
|
controlComponent: R.VALUE
|
|
4262
4262
|
}), X++, s++;
|
|
@@ -4289,12 +4289,12 @@ function le(o, t) {
|
|
|
4289
4289
|
for (let X = 0; X < y.length; X++) {
|
|
4290
4290
|
const D = y[X];
|
|
4291
4291
|
if (D.type === P.CONTROL && D.control) {
|
|
4292
|
-
const E = D, U = E.controlId || Lt(), x = E.control?.value || [], Q = E.control?.placeholder || "",
|
|
4292
|
+
const E = D, U = E.controlId || Lt(), x = E.control?.value || [], Q = E.control?.placeholder || "", v = E.control?.type, H = v === b.TEXTFIELD, Y = v === b.TEXT || v === b.NUMBER, $ = v === b.CHECKBOX, G = v === b.RADIO, A = v === b.BUTTON, B = H ? R.PRETEXTFIX : R.PREFIX, nt = H ? R.POSTTEXTFIX : R.POSTFIX, j = {
|
|
4293
4293
|
...M,
|
|
4294
4294
|
controlId: U,
|
|
4295
4295
|
type: P.CONTROL,
|
|
4296
4296
|
control: E.control
|
|
4297
|
-
}, Yt = H ? i.control.textFixColor : Y ? "#87d068" : A ? to().color : i.control.bracketColor, At = A ? to().highlight : void 0, Ne = H ? E.control?.preTextFix || L.preTextFix : E.control?.prefix || L.prefix, ce = Ae(
|
|
4297
|
+
}, Yt = H ? i.control.textFixColor : Y ? "#87d068" : A ? to().color : i.control.bracketColor, At = A ? to().highlight : void 0, Ne = H ? E.control?.preTextFix || L.preTextFix : E.control?.prefix || L.prefix, ce = Ae(v, Ne);
|
|
4298
4298
|
for (let q = 0; q < ce.length; q++)
|
|
4299
4299
|
o.splice(s, 0, {
|
|
4300
4300
|
...j,
|
|
@@ -4322,7 +4322,7 @@ function le(o, t) {
|
|
|
4322
4322
|
}), s++;
|
|
4323
4323
|
}
|
|
4324
4324
|
} else {
|
|
4325
|
-
const J = Ki(E.control), z =
|
|
4325
|
+
const J = Ki(E.control), z = vt(J);
|
|
4326
4326
|
for (let at = 0; at < z.length; at++) {
|
|
4327
4327
|
const tt = z[at];
|
|
4328
4328
|
o.splice(s, 0, {
|
|
@@ -4349,7 +4349,7 @@ function le(o, t) {
|
|
|
4349
4349
|
value: z.includes(tt.code)
|
|
4350
4350
|
}
|
|
4351
4351
|
}), s++;
|
|
4352
|
-
const Rt =
|
|
4352
|
+
const Rt = vt(tt.value || "");
|
|
4353
4353
|
for (let ft = 0; ft < Rt.length; ft++) {
|
|
4354
4354
|
const xt = Rt[ft], Xt = ft === Rt.length - 1;
|
|
4355
4355
|
o.splice(s, 0, {
|
|
@@ -4377,7 +4377,7 @@ function le(o, t) {
|
|
|
4377
4377
|
value: J === at.code
|
|
4378
4378
|
}
|
|
4379
4379
|
}), s++;
|
|
4380
|
-
const tt =
|
|
4380
|
+
const tt = vt(at.value || "");
|
|
4381
4381
|
for (let Rt = 0; Rt < tt.length; Rt++) {
|
|
4382
4382
|
const ft = tt[Rt], xt = Rt === tt.length - 1;
|
|
4383
4383
|
o.splice(s, 0, {
|
|
@@ -4400,67 +4400,67 @@ function le(o, t) {
|
|
|
4400
4400
|
controlId: at,
|
|
4401
4401
|
control: z.control
|
|
4402
4402
|
}, Vt = ft ? i.control.textFixColor : xt ? "#87d068" : i.control.bracketColor, Ft = ft ? z.control?.preTextFix || L.preTextFix : z.control?.prefix || L.prefix, Ut = Ae(Rt, Ft);
|
|
4403
|
-
for (let
|
|
4403
|
+
for (let mt = 0; mt < Ut.length; mt++)
|
|
4404
4404
|
o.splice(s, 0, {
|
|
4405
4405
|
...Xt,
|
|
4406
4406
|
color: Vt,
|
|
4407
4407
|
originControlId: U,
|
|
4408
|
-
value: Ut[
|
|
4408
|
+
value: Ut[mt],
|
|
4409
4409
|
controlComponent: ft ? R.PRETEXTFIX : R.PREFIX
|
|
4410
4410
|
}), s++;
|
|
4411
|
-
for (let
|
|
4412
|
-
const
|
|
4413
|
-
if (
|
|
4414
|
-
const bt =
|
|
4415
|
-
|
|
4416
|
-
const Nt = z.control?.value?.find((yt) => yt.id === bt || yt.type ===
|
|
4411
|
+
for (let mt = 0; mt < tt.length; mt++) {
|
|
4412
|
+
const Tt = tt[mt];
|
|
4413
|
+
if (Tt.type === P.MENSTRUAL_HISTORY || Tt.type === P.FETAL_HEART_POSITION || Tt.type === P.TOOTH_POSITION || Tt.type === P.IMAGE || Tt.type === P.MACRO || Tt.type === P.CUSTOM_MACRO || Tt.type === P.REUSABLE_ITEM || Tt.type === P.SUB_TEMPLATE || Tt.type === P.LIST || Tt.type === P.SPECIAL_SYMBOLS) {
|
|
4414
|
+
const bt = Tt.id || Lt();
|
|
4415
|
+
Tt.id || (Tt.id = bt);
|
|
4416
|
+
const Nt = z.control?.value?.find((yt) => yt.id === bt || yt.type === Tt.type && yt.value === Tt.value);
|
|
4417
4417
|
Nt && ko(bt, Nt), o.splice(s, 0, {
|
|
4418
4418
|
...Xt,
|
|
4419
|
-
...
|
|
4419
|
+
...Tt,
|
|
4420
4420
|
id: bt,
|
|
4421
4421
|
originControlId: U,
|
|
4422
4422
|
controlComponent: R.VALUE,
|
|
4423
4423
|
// 确保 type 属性不被覆盖,特殊元素必须保留其原始类型
|
|
4424
4424
|
// Ensure type property is not overwritten, special elements must retain their original type
|
|
4425
|
-
type:
|
|
4425
|
+
type: Tt.type
|
|
4426
4426
|
});
|
|
4427
4427
|
} else
|
|
4428
4428
|
o.splice(s, 0, {
|
|
4429
4429
|
...Xt,
|
|
4430
4430
|
...w,
|
|
4431
|
-
...
|
|
4431
|
+
...Tt,
|
|
4432
4432
|
originControlId: U,
|
|
4433
|
-
value:
|
|
4434
|
-
` ? _ :
|
|
4433
|
+
value: Tt.value === `
|
|
4434
|
+
` ? _ : Tt.value,
|
|
4435
4435
|
controlComponent: R.VALUE
|
|
4436
4436
|
});
|
|
4437
4437
|
s++;
|
|
4438
4438
|
}
|
|
4439
4439
|
if (tt.length === 0) {
|
|
4440
|
-
const
|
|
4441
|
-
if (
|
|
4442
|
-
const
|
|
4443
|
-
for (let
|
|
4440
|
+
const mt = z.control?.placeholder || "";
|
|
4441
|
+
if (mt) {
|
|
4442
|
+
const Tt = vt(mt);
|
|
4443
|
+
for (let Zt = 0; Zt < Tt.length; Zt++)
|
|
4444
4444
|
o.splice(s, 0, {
|
|
4445
4445
|
...Xt,
|
|
4446
4446
|
color: i.control.placeholderColor,
|
|
4447
4447
|
originControlId: U,
|
|
4448
|
-
value:
|
|
4448
|
+
value: Tt[Zt],
|
|
4449
4449
|
controlComponent: R.PLACEHOLDER
|
|
4450
4450
|
}), s++;
|
|
4451
4451
|
}
|
|
4452
4452
|
}
|
|
4453
4453
|
const wt = ft ? z.control?.postTextFix || L.postTextFix : z.control?.postfix || L.postfix, se = Ae(Rt, wt);
|
|
4454
|
-
for (let
|
|
4454
|
+
for (let mt = 0; mt < se.length; mt++)
|
|
4455
4455
|
o.splice(s, 0, {
|
|
4456
4456
|
...Xt,
|
|
4457
4457
|
color: Vt,
|
|
4458
4458
|
originControlId: U,
|
|
4459
|
-
value: se[
|
|
4459
|
+
value: se[mt],
|
|
4460
4460
|
controlComponent: ft ? R.POSTTEXTFIX : R.POSTFIX
|
|
4461
4461
|
}), s++;
|
|
4462
4462
|
} else {
|
|
4463
|
-
if (J.type === P.MENSTRUAL_HISTORY || J.type === P.FETAL_HEART_POSITION || J.type === P.TOOTH_POSITION || J.type === P.IMAGE || J.type === P.MACRO || J.type === P.CUSTOM_MACRO || J.type === P.REUSABLE_ITEM || J.type === P.LIST || J.type === P.SPECIAL_SYMBOLS) {
|
|
4463
|
+
if (J.type === P.MENSTRUAL_HISTORY || J.type === P.FETAL_HEART_POSITION || J.type === P.TOOTH_POSITION || J.type === P.IMAGE || J.type === P.MACRO || J.type === P.CUSTOM_MACRO || J.type === P.REUSABLE_ITEM || J.type === P.SUB_TEMPLATE || J.type === P.LIST || J.type === P.SPECIAL_SYMBOLS) {
|
|
4464
4464
|
const at = J.id || Lt();
|
|
4465
4465
|
J.id || (J.id = at);
|
|
4466
4466
|
const tt = E.control?.value?.find((Rt) => Rt.id === at || Rt.type === J.type && Rt.value === J.value);
|
|
@@ -4488,7 +4488,7 @@ function le(o, t) {
|
|
|
4488
4488
|
}
|
|
4489
4489
|
}
|
|
4490
4490
|
else if (Q) {
|
|
4491
|
-
const q =
|
|
4491
|
+
const q = vt(Q);
|
|
4492
4492
|
for (let J = 0; J < q.length; J++)
|
|
4493
4493
|
o.splice(s, 0, {
|
|
4494
4494
|
...j,
|
|
@@ -4497,8 +4497,8 @@ function le(o, t) {
|
|
|
4497
4497
|
value: q[J],
|
|
4498
4498
|
controlComponent: R.PLACEHOLDER
|
|
4499
4499
|
}), s++;
|
|
4500
|
-
} else if ((
|
|
4501
|
-
const J =
|
|
4500
|
+
} else if ((v === b.SELECT || v === b.DATE || v === b.NUMBER) && !E.control?.code && Q) {
|
|
4501
|
+
const J = vt(Q);
|
|
4502
4502
|
for (let z = 0; z < J.length; z++)
|
|
4503
4503
|
o.splice(s, 0, {
|
|
4504
4504
|
...j,
|
|
@@ -4508,7 +4508,7 @@ function le(o, t) {
|
|
|
4508
4508
|
controlComponent: R.PLACEHOLDER
|
|
4509
4509
|
}), s++;
|
|
4510
4510
|
}
|
|
4511
|
-
const Le = H ? E.control?.postTextFix || L.postTextFix : E.control?.postfix || L.postfix, it = Ae(
|
|
4511
|
+
const Le = H ? E.control?.postTextFix || L.postTextFix : E.control?.postfix || L.postfix, it = Ae(v, Le);
|
|
4512
4512
|
for (let q = 0; q < it.length; q++)
|
|
4513
4513
|
o.splice(s, 0, {
|
|
4514
4514
|
...j,
|
|
@@ -4520,7 +4520,7 @@ function le(o, t) {
|
|
|
4520
4520
|
}), s++;
|
|
4521
4521
|
} else if (
|
|
4522
4522
|
// 处理特殊元素类型(月经史、牙位图、胎心位置等)
|
|
4523
|
-
D.type === P.MENSTRUAL_HISTORY || D.type === P.FETAL_HEART_POSITION || D.type === P.TOOTH_POSITION || D.type === P.IMAGE || D.type === P.MACRO || D.type === P.CUSTOM_MACRO || D.type === P.REUSABLE_ITEM || D.type === P.LIST || D.type === P.SPECIAL_SYMBOLS
|
|
4523
|
+
D.type === P.MENSTRUAL_HISTORY || D.type === P.FETAL_HEART_POSITION || D.type === P.TOOTH_POSITION || D.type === P.IMAGE || D.type === P.MACRO || D.type === P.CUSTOM_MACRO || D.type === P.REUSABLE_ITEM || D.type === P.SUB_TEMPLATE || D.type === P.LIST || D.type === P.SPECIAL_SYMBOLS
|
|
4524
4524
|
) {
|
|
4525
4525
|
const E = D.id || Lt();
|
|
4526
4526
|
D.id || (D.id = E);
|
|
@@ -4537,7 +4537,7 @@ function le(o, t) {
|
|
|
4537
4537
|
type: D.type
|
|
4538
4538
|
}), s++;
|
|
4539
4539
|
} else {
|
|
4540
|
-
const E = m === b.BUTTON ? Gn(D.value || "", l.control) :
|
|
4540
|
+
const E = m === b.BUTTON ? Gn(D.value || "", l.control) : vt(D.value || "").map((U) => ({ value: U }));
|
|
4541
4541
|
for (let U = 0; U < E.length; U++) {
|
|
4542
4542
|
const x = E[U];
|
|
4543
4543
|
o.splice(s, 0, {
|
|
@@ -4562,7 +4562,7 @@ function le(o, t) {
|
|
|
4562
4562
|
const y = {
|
|
4563
4563
|
...F,
|
|
4564
4564
|
color: i.control.placeholderColor
|
|
4565
|
-
}, W =
|
|
4565
|
+
}, W = vt(f);
|
|
4566
4566
|
for (let X = 0; X < W.length; X++) {
|
|
4567
4567
|
const D = W[X];
|
|
4568
4568
|
o.splice(s, 0, {
|
|
@@ -4578,7 +4578,7 @@ function le(o, t) {
|
|
|
4578
4578
|
}
|
|
4579
4579
|
}
|
|
4580
4580
|
if (h) {
|
|
4581
|
-
const y =
|
|
4581
|
+
const y = vt(h);
|
|
4582
4582
|
for (let W = 0; W < y.length; W++) {
|
|
4583
4583
|
const X = y[W];
|
|
4584
4584
|
o.splice(s, 0, {
|
|
@@ -4592,7 +4592,7 @@ function le(o, t) {
|
|
|
4592
4592
|
}), s++;
|
|
4593
4593
|
}
|
|
4594
4594
|
}
|
|
4595
|
-
const C =
|
|
4595
|
+
const C = vt(c || L.postTextFix);
|
|
4596
4596
|
for (let y = 0; y < C.length; y++) {
|
|
4597
4597
|
const W = C[y];
|
|
4598
4598
|
o.splice(s, 0, {
|
|
@@ -4634,7 +4634,7 @@ function le(o, t) {
|
|
|
4634
4634
|
}), s++;
|
|
4635
4635
|
}
|
|
4636
4636
|
if (u) {
|
|
4637
|
-
const y =
|
|
4637
|
+
const y = vt(u);
|
|
4638
4638
|
for (let W = 0; W < y.length; W++) {
|
|
4639
4639
|
const X = y[W];
|
|
4640
4640
|
o.splice(s, 0, {
|
|
@@ -4670,16 +4670,16 @@ function le(o, t) {
|
|
|
4670
4670
|
value: W.includes(U.code)
|
|
4671
4671
|
}
|
|
4672
4672
|
}), s++;
|
|
4673
|
-
const x =
|
|
4673
|
+
const x = vt(U.value);
|
|
4674
4674
|
for (let Q = 0; Q < x.length; Q++) {
|
|
4675
|
-
const
|
|
4675
|
+
const v = x[Q], H = Q === x.length - 1;
|
|
4676
4676
|
o.splice(s, 0, {
|
|
4677
4677
|
...S,
|
|
4678
4678
|
...N,
|
|
4679
4679
|
...X[D],
|
|
4680
4680
|
controlId: O,
|
|
4681
|
-
value:
|
|
4682
|
-
` ? _ :
|
|
4681
|
+
value: v === `
|
|
4682
|
+
` ? _ : v,
|
|
4683
4683
|
letterSpacing: H ? L.gap : 0,
|
|
4684
4684
|
control: l.control,
|
|
4685
4685
|
controlComponent: R.VALUE
|
|
@@ -4706,9 +4706,9 @@ function le(o, t) {
|
|
|
4706
4706
|
value: g === E.code
|
|
4707
4707
|
}
|
|
4708
4708
|
}), s++;
|
|
4709
|
-
const U =
|
|
4709
|
+
const U = vt(E.value);
|
|
4710
4710
|
for (let x = 0; x < U.length; x++) {
|
|
4711
|
-
const Q = U[x],
|
|
4711
|
+
const Q = U[x], v = x === U.length - 1;
|
|
4712
4712
|
o.splice(s, 0, {
|
|
4713
4713
|
...S,
|
|
4714
4714
|
...N,
|
|
@@ -4716,7 +4716,7 @@ function le(o, t) {
|
|
|
4716
4716
|
controlId: O,
|
|
4717
4717
|
value: Q === `
|
|
4718
4718
|
` ? _ : Q,
|
|
4719
|
-
letterSpacing:
|
|
4719
|
+
letterSpacing: v ? T.gap : 0,
|
|
4720
4720
|
control: l.control,
|
|
4721
4721
|
controlComponent: R.VALUE
|
|
4722
4722
|
}), X++, s++;
|
|
@@ -4749,12 +4749,12 @@ function le(o, t) {
|
|
|
4749
4749
|
for (let X = 0; X < y.length; X++) {
|
|
4750
4750
|
const D = y[X];
|
|
4751
4751
|
if (D.type === P.CONTROL && D.control) {
|
|
4752
|
-
const E = D, U = E.controlId || Lt(), x = E.control?.value || [], Q = E.control?.placeholder || "",
|
|
4752
|
+
const E = D, U = E.controlId || Lt(), x = E.control?.value || [], Q = E.control?.placeholder || "", v = E.control?.type, H = v === b.TEXTFIELD, Y = v === b.TEXT || v === b.NUMBER, $ = v === b.CHECKBOX, G = v === b.RADIO, A = v === b.BUTTON, B = H ? R.PRETEXTFIX : R.PREFIX, nt = H ? R.POSTTEXTFIX : R.POSTFIX, j = {
|
|
4753
4753
|
...S,
|
|
4754
4754
|
controlId: U,
|
|
4755
4755
|
type: P.CONTROL,
|
|
4756
4756
|
control: E.control
|
|
4757
|
-
}, Yt = H ? i.control.textFixColor : Y ? "#87d068" : A ? to().color : i.control.bracketColor, At = A ? to().highlight : void 0, Ne = H ? E.control?.preTextFix || m.preTextFix : E.control?.prefix || m.prefix, ce = Ae(
|
|
4757
|
+
}, Yt = H ? i.control.textFixColor : Y ? "#87d068" : A ? to().color : i.control.bracketColor, At = A ? to().highlight : void 0, Ne = H ? E.control?.preTextFix || m.preTextFix : E.control?.prefix || m.prefix, ce = Ae(v, Ne);
|
|
4758
4758
|
for (let q = 0; q < ce.length; q++)
|
|
4759
4759
|
o.splice(s, 0, {
|
|
4760
4760
|
...j,
|
|
@@ -4782,7 +4782,7 @@ function le(o, t) {
|
|
|
4782
4782
|
}), s++;
|
|
4783
4783
|
}
|
|
4784
4784
|
} else {
|
|
4785
|
-
const J = Ki(E.control), z =
|
|
4785
|
+
const J = Ki(E.control), z = vt(J);
|
|
4786
4786
|
for (let at = 0; at < z.length; at++) {
|
|
4787
4787
|
const tt = z[at];
|
|
4788
4788
|
o.splice(s, 0, {
|
|
@@ -4810,7 +4810,7 @@ function le(o, t) {
|
|
|
4810
4810
|
value: z.includes(tt.code)
|
|
4811
4811
|
}
|
|
4812
4812
|
}), s++;
|
|
4813
|
-
const Rt =
|
|
4813
|
+
const Rt = vt(tt.value || "");
|
|
4814
4814
|
for (let ft = 0; ft < Rt.length; ft++) {
|
|
4815
4815
|
const xt = Rt[ft], Xt = ft === Rt.length - 1;
|
|
4816
4816
|
o.splice(s, 0, {
|
|
@@ -4839,7 +4839,7 @@ function le(o, t) {
|
|
|
4839
4839
|
value: J === at.code
|
|
4840
4840
|
}
|
|
4841
4841
|
}), s++;
|
|
4842
|
-
const tt =
|
|
4842
|
+
const tt = vt(at.value || "");
|
|
4843
4843
|
for (let Rt = 0; Rt < tt.length; Rt++) {
|
|
4844
4844
|
const ft = tt[Rt], xt = Rt === tt.length - 1;
|
|
4845
4845
|
o.splice(s, 0, {
|
|
@@ -4862,59 +4862,59 @@ function le(o, t) {
|
|
|
4862
4862
|
controlId: at,
|
|
4863
4863
|
control: z.control
|
|
4864
4864
|
}, Vt = ft ? i.control.textFixColor : xt ? "#87d068" : i.control.bracketColor, Ft = ft ? z.control?.preTextFix || m.preTextFix : z.control?.prefix || m.prefix, Ut = Ae(Rt, Ft);
|
|
4865
|
-
for (let
|
|
4865
|
+
for (let mt = 0; mt < Ut.length; mt++)
|
|
4866
4866
|
o.splice(s, 0, {
|
|
4867
4867
|
...Xt,
|
|
4868
4868
|
color: Vt,
|
|
4869
4869
|
originControlId: U,
|
|
4870
|
-
value: Ut[
|
|
4870
|
+
value: Ut[mt],
|
|
4871
4871
|
controlComponent: ft ? R.PRETEXTFIX : R.PREFIX
|
|
4872
4872
|
}), s++;
|
|
4873
|
-
for (let
|
|
4874
|
-
const
|
|
4875
|
-
if (
|
|
4876
|
-
const bt =
|
|
4873
|
+
for (let mt = 0; mt < tt.length; mt++) {
|
|
4874
|
+
const Tt = tt[mt];
|
|
4875
|
+
if (Tt.type === P.MENSTRUAL_HISTORY || Tt.type === P.FETAL_HEART_POSITION || Tt.type === P.TOOTH_POSITION || Tt.type === P.IMAGE || Tt.type === P.MACRO || Tt.type === P.CUSTOM_MACRO || Tt.type === P.REUSABLE_ITEM || Tt.type === P.SUB_TEMPLATE || Tt.type === P.SPECIAL_SYMBOLS) {
|
|
4876
|
+
const bt = Tt.id || Lt();
|
|
4877
4877
|
o.splice(s, 0, {
|
|
4878
4878
|
...Xt,
|
|
4879
|
-
...
|
|
4879
|
+
...Tt,
|
|
4880
4880
|
id: bt,
|
|
4881
4881
|
originControlId: U,
|
|
4882
4882
|
controlComponent: R.VALUE,
|
|
4883
|
-
type:
|
|
4883
|
+
type: Tt.type
|
|
4884
4884
|
});
|
|
4885
4885
|
} else
|
|
4886
4886
|
o.splice(s, 0, {
|
|
4887
4887
|
...Xt,
|
|
4888
4888
|
...N,
|
|
4889
|
-
...
|
|
4889
|
+
...Tt,
|
|
4890
4890
|
originControlId: U,
|
|
4891
|
-
value:
|
|
4892
|
-
` ? _ :
|
|
4891
|
+
value: Tt.value === `
|
|
4892
|
+
` ? _ : Tt.value,
|
|
4893
4893
|
controlComponent: R.VALUE
|
|
4894
4894
|
});
|
|
4895
4895
|
s++;
|
|
4896
4896
|
}
|
|
4897
4897
|
if (tt.length === 0) {
|
|
4898
|
-
const
|
|
4899
|
-
if (
|
|
4900
|
-
const
|
|
4901
|
-
for (let
|
|
4898
|
+
const mt = z.control?.placeholder || "";
|
|
4899
|
+
if (mt) {
|
|
4900
|
+
const Tt = vt(mt);
|
|
4901
|
+
for (let Zt = 0; Zt < Tt.length; Zt++)
|
|
4902
4902
|
o.splice(s, 0, {
|
|
4903
4903
|
...Xt,
|
|
4904
4904
|
color: i.control.placeholderColor,
|
|
4905
4905
|
originControlId: U,
|
|
4906
|
-
value:
|
|
4906
|
+
value: Tt[Zt],
|
|
4907
4907
|
controlComponent: R.PLACEHOLDER
|
|
4908
4908
|
}), s++;
|
|
4909
4909
|
}
|
|
4910
4910
|
}
|
|
4911
4911
|
const wt = ft ? z.control?.postTextFix || m.postTextFix : z.control?.postfix || m.postfix, se = Ae(Rt, wt);
|
|
4912
|
-
for (let
|
|
4912
|
+
for (let mt = 0; mt < se.length; mt++)
|
|
4913
4913
|
o.splice(s, 0, {
|
|
4914
4914
|
...Xt,
|
|
4915
4915
|
color: Vt,
|
|
4916
4916
|
originControlId: U,
|
|
4917
|
-
value: se[
|
|
4917
|
+
value: se[mt],
|
|
4918
4918
|
controlComponent: ft ? R.POSTTEXTFIX : R.POSTFIX
|
|
4919
4919
|
}), s++;
|
|
4920
4920
|
} else
|
|
@@ -4929,7 +4929,7 @@ function le(o, t) {
|
|
|
4929
4929
|
}), s++;
|
|
4930
4930
|
}
|
|
4931
4931
|
else if (Q) {
|
|
4932
|
-
const q =
|
|
4932
|
+
const q = vt(Q);
|
|
4933
4933
|
for (let J = 0; J < q.length; J++)
|
|
4934
4934
|
o.splice(s, 0, {
|
|
4935
4935
|
...j,
|
|
@@ -4938,8 +4938,8 @@ function le(o, t) {
|
|
|
4938
4938
|
value: q[J],
|
|
4939
4939
|
controlComponent: R.PLACEHOLDER
|
|
4940
4940
|
}), s++;
|
|
4941
|
-
} else if ((
|
|
4942
|
-
const J =
|
|
4941
|
+
} else if ((v === b.SELECT || v === b.DATE || v === b.NUMBER) && !E.control?.code && Q) {
|
|
4942
|
+
const J = vt(Q);
|
|
4943
4943
|
for (let z = 0; z < J.length; z++)
|
|
4944
4944
|
o.splice(s, 0, {
|
|
4945
4945
|
...j,
|
|
@@ -4949,7 +4949,7 @@ function le(o, t) {
|
|
|
4949
4949
|
controlComponent: R.PLACEHOLDER
|
|
4950
4950
|
}), s++;
|
|
4951
4951
|
}
|
|
4952
|
-
const Le = H ? E.control?.postTextFix || m.postTextFix : E.control?.postfix || m.postfix, it = Ae(
|
|
4952
|
+
const Le = H ? E.control?.postTextFix || m.postTextFix : E.control?.postfix || m.postfix, it = Ae(v, Le);
|
|
4953
4953
|
for (let q = 0; q < it.length; q++)
|
|
4954
4954
|
o.splice(s, 0, {
|
|
4955
4955
|
...j,
|
|
@@ -4961,7 +4961,7 @@ function le(o, t) {
|
|
|
4961
4961
|
}), s++;
|
|
4962
4962
|
} else if (
|
|
4963
4963
|
// 处理特殊元素类型(月经史、牙位图、胎心位置等)
|
|
4964
|
-
D.type === P.MENSTRUAL_HISTORY || D.type === P.FETAL_HEART_POSITION || D.type === P.TOOTH_POSITION || D.type === P.IMAGE || D.type === P.MACRO || D.type === P.CUSTOM_MACRO || D.type === P.REUSABLE_ITEM || D.type === P.LIST || D.type === P.SPECIAL_SYMBOLS
|
|
4964
|
+
D.type === P.MENSTRUAL_HISTORY || D.type === P.FETAL_HEART_POSITION || D.type === P.TOOTH_POSITION || D.type === P.IMAGE || D.type === P.MACRO || D.type === P.CUSTOM_MACRO || D.type === P.REUSABLE_ITEM || D.type === P.SUB_TEMPLATE || D.type === P.LIST || D.type === P.SPECIAL_SYMBOLS
|
|
4965
4965
|
) {
|
|
4966
4966
|
const E = D.id || Lt();
|
|
4967
4967
|
D.id || (D.id = E);
|
|
@@ -4982,7 +4982,7 @@ function le(o, t) {
|
|
|
4982
4982
|
type: D.type
|
|
4983
4983
|
}), s++;
|
|
4984
4984
|
} else {
|
|
4985
|
-
const E = p === b.BUTTON ? Gn(D.value || "", l.control) :
|
|
4985
|
+
const E = p === b.BUTTON ? Gn(D.value || "", l.control) : vt(D.value || "").map((U) => ({ value: U }));
|
|
4986
4986
|
for (let U = 0; U < E.length; U++) {
|
|
4987
4987
|
const x = E[U];
|
|
4988
4988
|
o.splice(s, 0, {
|
|
@@ -5007,7 +5007,7 @@ function le(o, t) {
|
|
|
5007
5007
|
const y = {
|
|
5008
5008
|
...M,
|
|
5009
5009
|
color: i.control.placeholderColor
|
|
5010
|
-
}, W =
|
|
5010
|
+
}, W = vt(w);
|
|
5011
5011
|
for (let X = 0; X < W.length; X++) {
|
|
5012
5012
|
const D = W[X];
|
|
5013
5013
|
o.splice(s, 0, {
|
|
@@ -5023,7 +5023,7 @@ function le(o, t) {
|
|
|
5023
5023
|
}
|
|
5024
5024
|
}
|
|
5025
5025
|
if (h) {
|
|
5026
|
-
const y =
|
|
5026
|
+
const y = vt(h);
|
|
5027
5027
|
for (let W = 0; W < y.length; W++) {
|
|
5028
5028
|
const X = y[W];
|
|
5029
5029
|
o.splice(s, 0, {
|
|
@@ -5055,7 +5055,7 @@ function le(o, t) {
|
|
|
5055
5055
|
}
|
|
5056
5056
|
} else if ((!l.type || Ue.includes(l.type)) && l.type !== P.SPECIAL_SYMBOLS && l.value?.length > 1) {
|
|
5057
5057
|
o.splice(s, 1);
|
|
5058
|
-
const a =
|
|
5058
|
+
const a = vt(l.value);
|
|
5059
5059
|
for (let c = 0; c < a.length; c++)
|
|
5060
5060
|
o.splice(s + c, 0, { ...l, value: a[c] });
|
|
5061
5061
|
l = o[s];
|
|
@@ -5321,8 +5321,8 @@ function Kt(o, t = {}) {
|
|
|
5321
5321
|
if (D || E && (F.controlComponent === R.CHECKBOX || F.controlComponent === R.RADIO)) {
|
|
5322
5322
|
const U = I(M + 1, F.controlId, W, y);
|
|
5323
5323
|
if (U !== -1) {
|
|
5324
|
-
const x = s.slice(M, U + 1).map((
|
|
5325
|
-
const H = ut(
|
|
5324
|
+
const x = s.slice(M, U + 1).map((v) => {
|
|
5325
|
+
const H = ut(v);
|
|
5326
5326
|
return delete H.originControlId, H;
|
|
5327
5327
|
}), Q = Kt(x, t);
|
|
5328
5328
|
Q.length > 0 && S.push(Q[0]), M = U + 1;
|
|
@@ -5335,7 +5335,7 @@ function Kt(o, t = {}) {
|
|
|
5335
5335
|
M++;
|
|
5336
5336
|
continue;
|
|
5337
5337
|
}
|
|
5338
|
-
if (F.type === P.MENSTRUAL_HISTORY || F.type === P.FETAL_HEART_POSITION || F.type === P.TOOTH_POSITION || F.type === P.IMAGE || F.type === P.MACRO || F.type === P.CUSTOM_MACRO || F.type === P.REUSABLE_ITEM || F.type === P.LIST || F.type === P.SPECIAL_SYMBOLS) {
|
|
5338
|
+
if (F.type === P.MENSTRUAL_HISTORY || F.type === P.FETAL_HEART_POSITION || F.type === P.TOOTH_POSITION || F.type === P.IMAGE || F.type === P.MACRO || F.type === P.CUSTOM_MACRO || F.type === P.REUSABLE_ITEM || F.type === P.SUB_TEMPLATE || F.type === P.LIST || F.type === P.SPECIAL_SYMBOLS) {
|
|
5339
5339
|
const y = ut(F);
|
|
5340
5340
|
delete y.controlId, delete y.control, delete y.controlComponent, delete y.originControlId, S.push(y), M++;
|
|
5341
5341
|
continue;
|
|
@@ -6132,7 +6132,7 @@ function Nl(o, t) {
|
|
|
6132
6132
|
});
|
|
6133
6133
|
ws(o, n);
|
|
6134
6134
|
}
|
|
6135
|
-
function
|
|
6135
|
+
function vs(o, t) {
|
|
6136
6136
|
const e = o.getDraw();
|
|
6137
6137
|
if (e.isReadonly() || e.isDisabled())
|
|
6138
6138
|
return;
|
|
@@ -6193,7 +6193,7 @@ function uu(o, t) {
|
|
|
6193
6193
|
}
|
|
6194
6194
|
} else if (l.kind === "file" && l.type.includes("image")) {
|
|
6195
6195
|
const a = l.getAsFile();
|
|
6196
|
-
a &&
|
|
6196
|
+
a && vs(o, a);
|
|
6197
6197
|
}
|
|
6198
6198
|
}
|
|
6199
6199
|
}
|
|
@@ -6228,7 +6228,7 @@ async function du(o, t) {
|
|
|
6228
6228
|
u && Nl(o, u);
|
|
6229
6229
|
} else if (a.types.some((c) => c.startsWith("image/"))) {
|
|
6230
6230
|
const c = a.types.find((h) => h.startsWith("image/")), u = await a.getType(c);
|
|
6231
|
-
|
|
6231
|
+
vs(o, u);
|
|
6232
6232
|
}
|
|
6233
6233
|
}
|
|
6234
6234
|
}
|
|
@@ -6720,11 +6720,11 @@ function gu(o, t) {
|
|
|
6720
6720
|
const N = e.getElementList(), w = s.getPositionList(), V = S ? M : f;
|
|
6721
6721
|
let C;
|
|
6722
6722
|
S ? C = e.getTd().value[M] : C = N[V];
|
|
6723
|
-
const y = S && e.getTd()?.value || N, W = S && e.getTd()?.positionList || w, X = !!(g && L), D = !!(g && p), E = !!(g && I), U = !!(g && T), x = !!(g && O), Q = (
|
|
6724
|
-
if (!
|
|
6723
|
+
const y = S && e.getTd()?.value || N, W = S && e.getTd()?.positionList || w, X = !!(g && L), D = !!(g && p), E = !!(g && I), U = !!(g && T), x = !!(g && O), Q = (Z) => Z && (Z.type === P.MACRO || Z.type === P.CUSTOM_MACRO || Z.type === P.REUSABLE_ITEM || Z.type === P.SUB_TEMPLATE || Z.type === P.MENSTRUAL_HISTORY || Z.type === P.FETAL_HEART_POSITION || Z.type === P.TOOTH_POSITION || Z.type === P.LIST || Z.type === P.SPECIAL_SYMBOLS), v = (Z) => Z && !!Z.originControlId && !!Z.controlId, H = (Z) => !!(Z && Z.originControlId && Z.controlId && (Z.controlComponent === R.POSTFIX || Z.controlComponent === R.POSTTEXTFIX || Z.controlComponent === R.POST_TEXT || Z.controlComponent === R.PLACEHOLDER)), Y = (Z) => !!(Z && Z.originControlId && Z.controlId && (Z.controlComponent === R.PREFIX || Z.controlComponent === R.PRE_TEXT || Z.controlComponent === R.PRETEXTFIX || Z.controlComponent === R.PRETEXTFIX_TEXT || Z.controlComponent === R.PLACEHOLDER)), $ = (Z) => {
|
|
6724
|
+
if (!Z)
|
|
6725
6725
|
return null;
|
|
6726
6726
|
const k = /* @__PURE__ */ new Set();
|
|
6727
|
-
let st =
|
|
6727
|
+
let st = Z, gt = null;
|
|
6728
6728
|
for (; st && !k.has(st); ) {
|
|
6729
6729
|
k.add(st);
|
|
6730
6730
|
let Dt;
|
|
@@ -6740,96 +6740,96 @@ function gu(o, t) {
|
|
|
6740
6740
|
return gt;
|
|
6741
6741
|
}, G = e.getMode() === K.FORM, A = G && C?.control?.type === b.TEXT, B = G && !A ? e.getControl().getActiveTextControlLimit() : null;
|
|
6742
6742
|
let nt = V;
|
|
6743
|
-
const j = (
|
|
6743
|
+
const j = (Z, k) => !!Z && !!k && Z.controlId === k, Yt = (Z, k, st) => {
|
|
6744
6744
|
if (st) {
|
|
6745
6745
|
for (let gt = k; gt >= 0; gt--) {
|
|
6746
|
-
const Dt =
|
|
6746
|
+
const Dt = Z[gt];
|
|
6747
6747
|
if (j(Dt, st) && !Dt.originControlId && Dt.control?.type)
|
|
6748
6748
|
return Dt.control.type;
|
|
6749
6749
|
if (Dt.controlId && Dt.controlId !== st && Dt.originControlId !== st)
|
|
6750
6750
|
break;
|
|
6751
6751
|
}
|
|
6752
|
-
for (let gt = k + 1; gt <
|
|
6753
|
-
const Dt =
|
|
6752
|
+
for (let gt = k + 1; gt < Z.length; gt++) {
|
|
6753
|
+
const Dt = Z[gt];
|
|
6754
6754
|
if (j(Dt, st) && !Dt.originControlId && Dt.control?.type)
|
|
6755
6755
|
return Dt.control.type;
|
|
6756
6756
|
if (Dt.controlId && Dt.controlId !== st && Dt.originControlId !== st)
|
|
6757
6757
|
break;
|
|
6758
6758
|
}
|
|
6759
6759
|
}
|
|
6760
|
-
}, At = (
|
|
6760
|
+
}, At = (Z, k) => !!(G && Z?.controlId && !Z.originControlId && Yt(y, k, Z.controlId) === b.TEXTFIELD), Ne = (Z, k) => !!(G && Z?.controlId && !Z.originControlId && (Yt(y, k, Z.controlId) === b.TEXT || Yt(y, k, Z.controlId) === b.NUMBER)), ce = W[V], Le = y[V - 1], it = y[V + 1], q = 6, J = [
|
|
6761
6761
|
b.SELECT,
|
|
6762
6762
|
b.DATE,
|
|
6763
6763
|
b.BUTTON
|
|
6764
|
-
], z = (
|
|
6765
|
-
if (
|
|
6766
|
-
return
|
|
6767
|
-
if (
|
|
6764
|
+
], z = (Z, k) => !!(Z?.controlId && Z.controlId === k?.controlId && (Z.originControlId || null) === (k.originControlId || null)), at = (Z, k) => {
|
|
6765
|
+
if (Z?.control?.type)
|
|
6766
|
+
return Z.control.type;
|
|
6767
|
+
if (Z?.controlId) {
|
|
6768
6768
|
for (let st = k; st >= 0; st--) {
|
|
6769
6769
|
const gt = y[st];
|
|
6770
|
-
if (!z(
|
|
6770
|
+
if (!z(Z, gt))
|
|
6771
6771
|
break;
|
|
6772
6772
|
if (gt.control?.type)
|
|
6773
6773
|
return gt.control.type;
|
|
6774
6774
|
}
|
|
6775
6775
|
for (let st = k + 1; st < y.length; st++) {
|
|
6776
6776
|
const gt = y[st];
|
|
6777
|
-
if (!z(
|
|
6777
|
+
if (!z(Z, gt))
|
|
6778
6778
|
break;
|
|
6779
6779
|
if (gt.control?.type)
|
|
6780
6780
|
return gt.control.type;
|
|
6781
6781
|
}
|
|
6782
6782
|
}
|
|
6783
|
-
}, tt = (
|
|
6784
|
-
const st = at(
|
|
6783
|
+
}, tt = (Z, k) => {
|
|
6784
|
+
const st = at(Z, k);
|
|
6785
6785
|
return !!(st && J.includes(st));
|
|
6786
|
-
}, Rt = (
|
|
6787
|
-
if (!
|
|
6786
|
+
}, Rt = (Z) => !!(Z && (Z.controlComponent === R.POSTFIX || Z.controlComponent === R.POST_TEXT || Z.controlComponent === R.POSTTEXTFIX || Z.controlComponent === R.POSTTEXTFIX_TEXT)), ft = (Z) => !!(Z && (Z.controlComponent === R.PREFIX || Z.controlComponent === R.PRE_TEXT || Z.controlComponent === R.PRETEXTFIX || Z.controlComponent === R.PRETEXTFIX_TEXT)), xt = (Z, k) => {
|
|
6787
|
+
if (!Z?.controlId)
|
|
6788
6788
|
return -1;
|
|
6789
6789
|
for (let st = k; st >= 0; st--) {
|
|
6790
6790
|
const gt = y[st];
|
|
6791
|
-
if (!z(
|
|
6791
|
+
if (!z(Z, gt))
|
|
6792
6792
|
break;
|
|
6793
6793
|
if (gt.controlComponent === R.VALUE)
|
|
6794
6794
|
return st;
|
|
6795
6795
|
}
|
|
6796
6796
|
for (let st = k + 1; st < y.length; st++) {
|
|
6797
6797
|
const gt = y[st];
|
|
6798
|
-
if (!z(
|
|
6798
|
+
if (!z(Z, gt))
|
|
6799
6799
|
break;
|
|
6800
6800
|
if (gt.controlComponent === R.VALUE)
|
|
6801
6801
|
return st;
|
|
6802
6802
|
}
|
|
6803
6803
|
return -1;
|
|
6804
|
-
}, Xt = (
|
|
6805
|
-
if (!
|
|
6804
|
+
}, Xt = (Z, k) => {
|
|
6805
|
+
if (!Z)
|
|
6806
6806
|
return !1;
|
|
6807
|
-
if (
|
|
6807
|
+
if (Z.controlComponent === R.VALUE || Z.controlComponent === R.PLACEHOLDER)
|
|
6808
6808
|
return !0;
|
|
6809
|
-
const st = at(
|
|
6810
|
-
return !!(gt && Dt &&
|
|
6811
|
-
}, Vt = (
|
|
6812
|
-
const k = W[
|
|
6809
|
+
const st = at(Z, k), gt = st === b.SELECT || st === b.DATE, Dt = Z.controlComponent === R.PRE_TEXT || Z.controlComponent === R.PRETEXTFIX_TEXT || Z.controlComponent === R.TEXTFIXLABEL;
|
|
6810
|
+
return !!(gt && Dt && Z.value && xt(Z, k) === -1);
|
|
6811
|
+
}, Vt = (Z) => {
|
|
6812
|
+
const k = W[Z];
|
|
6813
6813
|
if (!k)
|
|
6814
6814
|
return !1;
|
|
6815
6815
|
const { coordinate: { leftTop: st, rightTop: gt, leftBottom: Dt } } = k;
|
|
6816
6816
|
return o.offsetX >= st[0] && o.offsetX < gt[0] && o.offsetY >= st[1] && o.offsetY <= Dt[1];
|
|
6817
|
-
}, Ft = (
|
|
6818
|
-
if (e.getMode() !== K.EDIT || !
|
|
6817
|
+
}, Ft = (Z, k) => {
|
|
6818
|
+
if (e.getMode() !== K.EDIT || !Z?.originControlId || Z.controlComponent !== R.VALUE || at(Z, k) !== b.BUTTON || Z.control?.buttonText || Yt(y, k, Z.originControlId) !== b.TEXTFIELD || !Vt(k))
|
|
6819
6819
|
return !1;
|
|
6820
6820
|
let st = -1;
|
|
6821
|
-
for (let
|
|
6822
|
-
const gn = y[
|
|
6823
|
-
if (!z(
|
|
6821
|
+
for (let vn = k; vn < y.length; vn++) {
|
|
6822
|
+
const gn = y[vn];
|
|
6823
|
+
if (!z(Z, gn))
|
|
6824
6824
|
break;
|
|
6825
|
-
const je = W[
|
|
6826
|
-
gn.controlComponent === R.VALUE && je && je.coordinate.rightTop[0] > je.coordinate.leftTop[0] && (st =
|
|
6825
|
+
const je = W[vn];
|
|
6826
|
+
gn.controlComponent === R.VALUE && je && je.coordinate.rightTop[0] > je.coordinate.leftTop[0] && (st = vn);
|
|
6827
6827
|
}
|
|
6828
6828
|
if (st === -1)
|
|
6829
6829
|
return !1;
|
|
6830
6830
|
const gt = W[st], { coordinate: { leftTop: Dt, rightTop: te, leftBottom: Gt } } = gt;
|
|
6831
6831
|
return o.offsetX >= Dt[0] - 2 && o.offsetX <= te[0] && o.offsetY >= Dt[1] && o.offsetY <= Gt[1];
|
|
6832
|
-
}, Ut = (
|
|
6832
|
+
}, Ut = (Z, k) => !(!g || !tt(Z, k) || !Vt(k) || Ft(Z, k) || !Xt(Z, k) || Rt(Z) || ft(Z) && !Z?.value), wt = () => [
|
|
6833
6833
|
h.isTable ? h.tdValueIndex : h.index,
|
|
6834
6834
|
V,
|
|
6835
6835
|
V + 1,
|
|
@@ -6839,59 +6839,59 @@ function gu(o, t) {
|
|
|
6839
6839
|
].filter((k, st, gt) => typeof k == "number" && k >= 0 && k < y.length && gt.indexOf(k) === st), se = () => {
|
|
6840
6840
|
if (!g)
|
|
6841
6841
|
return null;
|
|
6842
|
-
for (const
|
|
6843
|
-
const k = y[
|
|
6844
|
-
if (Ut(k,
|
|
6845
|
-
return { element: k, index:
|
|
6842
|
+
for (const Z of wt()) {
|
|
6843
|
+
const k = y[Z];
|
|
6844
|
+
if (Ut(k, Z))
|
|
6845
|
+
return { element: k, index: Z };
|
|
6846
6846
|
}
|
|
6847
6847
|
return null;
|
|
6848
|
-
},
|
|
6848
|
+
}, mt = () => {
|
|
6849
6849
|
if (!g)
|
|
6850
6850
|
return -1;
|
|
6851
|
-
for (const
|
|
6852
|
-
if (Ft(y[
|
|
6853
|
-
return
|
|
6851
|
+
for (const Z of wt())
|
|
6852
|
+
if (Ft(y[Z], Z))
|
|
6853
|
+
return Z;
|
|
6854
6854
|
return -1;
|
|
6855
|
-
},
|
|
6856
|
-
const k = y[
|
|
6857
|
-
let st =
|
|
6858
|
-
for (let gt =
|
|
6855
|
+
}, Tt = (Z) => {
|
|
6856
|
+
const k = y[Z];
|
|
6857
|
+
let st = Z;
|
|
6858
|
+
for (let gt = Z + 1; gt < y.length && z(k, y[gt]); gt++)
|
|
6859
6859
|
st = gt;
|
|
6860
6860
|
return st;
|
|
6861
|
-
},
|
|
6862
|
-
const k = y[
|
|
6863
|
-
if (!Ce(k) || at(k,
|
|
6864
|
-
return
|
|
6865
|
-
let st =
|
|
6866
|
-
for (let gt =
|
|
6861
|
+
}, Zt = (Z) => {
|
|
6862
|
+
const k = y[Z];
|
|
6863
|
+
if (!Ce(k) || at(k, Z) !== b.BUTTON || k.control?.buttonText || k.control?.editable === !1)
|
|
6864
|
+
return Z;
|
|
6865
|
+
let st = Z;
|
|
6866
|
+
for (let gt = Z + 1; gt < y.length; gt++) {
|
|
6867
6867
|
const Dt = y[gt];
|
|
6868
6868
|
if (!z(k, Dt) || !Ce(Dt))
|
|
6869
6869
|
break;
|
|
6870
6870
|
st = gt;
|
|
6871
6871
|
}
|
|
6872
6872
|
return st;
|
|
6873
|
-
}, bt = wt().some((
|
|
6874
|
-
const k = y[
|
|
6875
|
-
if (!st || !Ne(k,
|
|
6873
|
+
}, bt = wt().some((Z) => tt(y[Z], Z)), Nt = se(), yt = mt(), $t = (Z) => (Z?.control?.type === b.TEXTFIELD || Z?.control?.type === b.TEXT) && (Z.controlComponent === R.POSTFIX || Z.controlComponent === R.POST_TEXT || Z.controlComponent === R.POSTTEXTFIX || Z.controlComponent === R.POSTTEXTFIX_TEXT), Te = (Z) => Z?.type === P.CONTROL && (Z.controlComponent === R.POSTFIX || Z.controlComponent === R.POST_TEXT || Z.controlComponent === R.POSTTEXTFIX || Z.controlComponent === R.POSTTEXTFIX_TEXT), Mt = (Z) => Z?.type === P.CONTROL && (Z.controlComponent === R.PREFIX || Z.controlComponent === R.PRE_TEXT || Z.controlComponent === R.PRETEXTFIX || Z.controlComponent === R.PRETEXTFIX_TEXT), lt = (Z, k) => !!(e.getMode() === K.EDIT && Z?.originControlId && $t(Z) && k?.controlId === Z.originControlId && !k.originControlId && k.control?.type === b.TEXTFIELD && $t(k)), _t = (Z, k) => !!(e.getMode() === K.EDIT && Z?.originControlId && $t(Z) && k?.controlId === Z.originControlId && !k.originControlId && k.control?.type === b.TEXTFIELD && k.controlComponent === R.VALUE), Bt = (Z, k, st) => !!(e.getMode() === K.EDIT && Z?.originControlId && st?.originControlId === Z.originControlId && Z.controlId && st.controlId && Z.controlId !== st.controlId && Te(Z) && Mt(st) && Yt(y, k, Z.originControlId) === b.TEXTFIELD), It = lt(C, it), Ct = _t(C, it), Ot = Bt(C, V, it), rt = Bt(Le, V - 1, C), ot = !!(e.getMode() === K.EDIT && m && g && $t(C) && !It && !Ct && !Ot && Le?.controlId === C.controlId && (Le.originControlId || null) === (C.originControlId || null) && (Le.controlComponent === R.VALUE || Le.controlComponent === R.PLACEHOLDER)), qt = (Z, k, st) => !!(G && H(Z) && Yt(y, k, Z?.originControlId) === st && (st === b.TEXTFIELD ? At(y[k + 1], k + 1) : Ne(y[k + 1], k + 1))), Pe = (Z, k, st) => !!(G && Y(Z) && Yt(y, k, Z?.originControlId) === st && (st === b.TEXTFIELD ? At(y[k - 1], k - 1) : Ne(y[k - 1], k - 1))), De = qt(C, V, b.TEXTFIELD), ne = !!(G && ce && At(C, V) && qt(Le, V - 1, b.TEXTFIELD) && o.offsetX <= ce.coordinate.leftTop[0] + q), re = !!(G && ce && At(C, V) && Pe(it, V + 1, b.TEXTFIELD) && o.offsetX >= ce.coordinate.rightTop[0] - q), qn = !!(G && ce && De && o.offsetX > ce.coordinate.rightTop[0]), Fn = !!(G && ce && Y(C) && Yt(y, V, C.originControlId) === b.TEXTFIELD && At(Le, V - 1) && o.offsetX < ce.coordinate.leftTop[0]), Ve = At(C, V) || De || ne || re || qn || Fn, Ke = qt(C, V, b.TEXT), cr = (Z) => {
|
|
6874
|
+
const k = y[Z], st = w[Z];
|
|
6875
|
+
if (!st || !Ne(k, Z))
|
|
6876
6876
|
return -1;
|
|
6877
|
-
const gt = y[
|
|
6878
|
-
return !qt(gt,
|
|
6879
|
-
},
|
|
6880
|
-
if (
|
|
6881
|
-
nt =
|
|
6882
|
-
const
|
|
6877
|
+
const gt = y[Z - 1];
|
|
6878
|
+
return !qt(gt, Z - 1, b.TEXT) || o.offsetX > st.coordinate.leftTop[0] + q ? -1 : Z - 1;
|
|
6879
|
+
}, vi = cr(V), ur = cr(V - 1), dr = vi !== -1 || ur !== -1, hr = !!(G && ce && Y(C) && Yt(y, V, C.originControlId) === b.TEXT && Ne(Le, V - 1) && o.offsetX < ce.coordinate.leftTop[0]), ba = !!(G && ce && Ne(C, V) && Pe(it, V + 1, b.TEXT) && o.offsetX >= ce.coordinate.rightTop[0] - q), ya = Ke || dr || hr || ba;
|
|
6880
|
+
if (It || Ct || Ot ? nt = V : rt || ot ? nt = Math.max(V - 1, 0) : dr ? nt = vi !== -1 ? vi : ur : hr && (nt = Math.max(V - 1, 0)), Nt) {
|
|
6881
|
+
nt = Zt(Nt.index);
|
|
6882
|
+
const Z = s.getPositionContext();
|
|
6883
6883
|
s.setPositionContext({
|
|
6884
|
-
...
|
|
6884
|
+
...Z,
|
|
6885
6885
|
// 表格上下文的 index 指向顶层表格,单元格内索引只用于 range。
|
|
6886
|
-
index:
|
|
6886
|
+
index: Z.isTable ? Z.index : nt,
|
|
6887
6887
|
isControl: !0,
|
|
6888
6888
|
isDirectHit: !0
|
|
6889
6889
|
});
|
|
6890
|
-
} else yt !== -1 ? nt =
|
|
6890
|
+
} else yt !== -1 ? nt = Tt(yt) : tt(C, V) && ce && !Vt(V) && o.offsetX > ce.coordinate.rightTop[0] && (nt = Tt(V));
|
|
6891
6891
|
let Rr = !1;
|
|
6892
6892
|
if (G && B?.parentControlId && C?.controlId === B.parentControlId && !C?.originControlId)
|
|
6893
|
-
for (let
|
|
6894
|
-
const k = N[
|
|
6893
|
+
for (let Z = V; Z >= 0; Z--) {
|
|
6894
|
+
const k = N[Z];
|
|
6895
6895
|
if (j(k, B.parentControlId)) {
|
|
6896
6896
|
k.control?.type === b.TEXTFIELD && (Rr = !0);
|
|
6897
6897
|
break;
|
|
@@ -6901,21 +6901,21 @@ function gu(o, t) {
|
|
|
6901
6901
|
}
|
|
6902
6902
|
const gr = !!(B && (!C?.controlId || C.controlId === B.controlId && (C.originControlId || null) === B.originControlId || B.parentControlId && C.controlId === B.parentControlId && !C.originControlId && Rr));
|
|
6903
6903
|
if (G && !A && (C?.controlId || C?.originControlId)) {
|
|
6904
|
-
let
|
|
6904
|
+
let Z;
|
|
6905
6905
|
const k = C.originControlId || C.controlId;
|
|
6906
6906
|
for (let st = V; st >= 0; st--) {
|
|
6907
6907
|
const gt = N[st];
|
|
6908
6908
|
if (j(gt, k) && gt.control?.type) {
|
|
6909
|
-
|
|
6909
|
+
Z = gt.control.type;
|
|
6910
6910
|
break;
|
|
6911
6911
|
}
|
|
6912
6912
|
if (gt.controlId !== C.controlId && gt.controlId !== k)
|
|
6913
6913
|
break;
|
|
6914
6914
|
}
|
|
6915
|
-
if (
|
|
6916
|
-
if (
|
|
6915
|
+
if (Z !== b.TEXT) {
|
|
6916
|
+
if (Z === b.TEXTFIELD) {
|
|
6917
6917
|
const st = C.controlComponent;
|
|
6918
|
-
if (!
|
|
6918
|
+
if (!v(C)) {
|
|
6919
6919
|
if (!(C.controlComponent === R.VALUE && Q(C))) {
|
|
6920
6920
|
if (st === R.PRETEXTFIX || st === R.PRETEXTFIX_TEXT || st === R.POSTTEXTFIX || st === R.POSTTEXTFIX_TEXT || st === R.TEXTFIXLABEL || st === R.PREFIX || st === R.POSTFIX || st === R.PRE_TEXT || st === R.POST_TEXT || st === R.PLACEHOLDER)
|
|
6921
6921
|
for (let gt = V + 1; gt < N.length; gt++) {
|
|
@@ -6977,16 +6977,16 @@ function gu(o, t) {
|
|
|
6977
6977
|
});
|
|
6978
6978
|
else if (~f && !i) {
|
|
6979
6979
|
gr && (nt = Math.min(Math.max(nt, B.startIndex), B.endIndex));
|
|
6980
|
-
let
|
|
6980
|
+
let Z = nt, k = nt;
|
|
6981
6981
|
if (o.shiftKey) {
|
|
6982
6982
|
const { startIndex: Dt } = r.getRange();
|
|
6983
|
-
~Dt && s.getPositionContext().tdId === u.tdId && (V > Dt ?
|
|
6983
|
+
~Dt && s.getPositionContext().tdId === u.tdId && (V > Dt ? Z = Dt : k = Dt);
|
|
6984
6984
|
}
|
|
6985
|
-
gr && (
|
|
6985
|
+
gr && (Z = Math.min(Math.max(Z, B.startIndex), B.endIndex), k = Math.min(Math.max(k, B.startIndex), B.endIndex), nt = Math.min(Math.max(nt, B.startIndex), B.endIndex));
|
|
6986
6986
|
const st = e.getControl(), gt = !!Nt;
|
|
6987
6987
|
st.setPopupAwakeDisabled(o.button === Kn.RIGHT || ya && !gt || bt && !gt);
|
|
6988
6988
|
try {
|
|
6989
|
-
r.setRange(
|
|
6989
|
+
r.setRange(Z, k);
|
|
6990
6990
|
} finally {
|
|
6991
6991
|
st.setPopupAwakeDisabled(!1);
|
|
6992
6992
|
}
|
|
@@ -7041,9 +7041,9 @@ function gu(o, t) {
|
|
|
7041
7041
|
}
|
|
7042
7042
|
je && (Gt = !1);
|
|
7043
7043
|
}
|
|
7044
|
-
const _o = Gt && Q(C),
|
|
7044
|
+
const _o = Gt && Q(C), vn = x && !_o ? nt : void 0;
|
|
7045
7045
|
e.render({
|
|
7046
|
-
curIndex: x && !_o ?
|
|
7046
|
+
curIndex: x && !_o ? vn : nt,
|
|
7047
7047
|
isCompute: !1,
|
|
7048
7048
|
isSubmitHistory: !1,
|
|
7049
7049
|
isSetCursor: !X && !D && !E && !(te && G) && !_o
|
|
@@ -7063,13 +7063,13 @@ function gu(o, t) {
|
|
|
7063
7063
|
evt: o,
|
|
7064
7064
|
element: C
|
|
7065
7065
|
}), x && (C.type === P.MACRO || C.type === P.CUSTOM_MACRO || C.type === P.REUSABLE_ITEM)) {
|
|
7066
|
-
const
|
|
7067
|
-
if (
|
|
7066
|
+
const Z = e.getMode();
|
|
7067
|
+
if (Z === K.EDIT && C.type === P.CUSTOM_MACRO)
|
|
7068
7068
|
ze.isSubscribe("macroClick") && ze.emit("macroClick", {
|
|
7069
7069
|
evt: o,
|
|
7070
7070
|
element: C
|
|
7071
7071
|
});
|
|
7072
|
-
else if (
|
|
7072
|
+
else if (Z === K.FORM && o.button === Kn.LEFT) {
|
|
7073
7073
|
let k = !1;
|
|
7074
7074
|
(C.type === P.CUSTOM_MACRO || C.type === P.REUSABLE_ITEM) && (o.preventDefault(), k = e.getMacroParticle().activateInlineEditor(C, V, o.offsetX)), !k && ze.isSubscribe("macroValueChange") && ze.emit("macroValueChange", {
|
|
7075
7075
|
evt: o,
|
|
@@ -7084,11 +7084,11 @@ function gu(o, t) {
|
|
|
7084
7084
|
const fr = e.getPreviewer();
|
|
7085
7085
|
if (fr.clearResizer(), X) {
|
|
7086
7086
|
if (!e.isPrintLikeMode()) {
|
|
7087
|
-
const
|
|
7087
|
+
const Z = {
|
|
7088
7088
|
// 只读或控件外表单模式禁用拖拽
|
|
7089
7089
|
dragDisable: n || !C.controlId && e.getMode() === K.FORM
|
|
7090
7090
|
};
|
|
7091
|
-
C.type === P.LATEX && (
|
|
7091
|
+
C.type === P.LATEX && (Z.mime = "svg", Z.srcKey = "laTexSVG"), fr.drawResizer(C, w[V], Z), e.getCursor().drawCursor({
|
|
7092
7092
|
isShow: !1
|
|
7093
7093
|
}), Fr(t), (C.imgDisplay === Et.SURROUND || C.imgDisplay === Et.FLOAT_TOP || C.imgDisplay === Et.FLOAT_BOTTOM) && e.getImageParticle().createFloatImage(C);
|
|
7094
7094
|
}
|
|
@@ -7099,8 +7099,8 @@ function gu(o, t) {
|
|
|
7099
7099
|
}
|
|
7100
7100
|
const pr = e.getTableTool();
|
|
7101
7101
|
pr.dispose(), S && !n && pr.render();
|
|
7102
|
-
const
|
|
7103
|
-
|
|
7102
|
+
const Zi = e.getHyperlinkParticle();
|
|
7103
|
+
Zi.clearHyperlinkPopup(), C.type === P.HYPERLINK && (sn(o) ? Zi.openHyperlink(C) : Zi.drawHyperlinkPopup(C, w[V]));
|
|
7104
7104
|
const Tr = e.getDateParticle();
|
|
7105
7105
|
Tr.clearDatePicker(), C.type === P.DATE && !n && Tr.renderDatePicker(C, w[V]), e.getMenstrualHistoryParticle().clearMenstrualHistoryEditor(), e.getFetalHeartPositionParticle().clearFetalHeartPositionEditor(), e.getToothPositionParticle().clearToothPositionEditor();
|
|
7106
7106
|
}
|
|
@@ -7211,9 +7211,9 @@ function fu(o, t) {
|
|
|
7211
7211
|
}
|
|
7212
7212
|
A && e.spliceElementList(a, E + 1, U - E);
|
|
7213
7213
|
}
|
|
7214
|
-
const Q = L[h.startIndex],
|
|
7214
|
+
const Q = L[h.startIndex], v = i[h.startIndex];
|
|
7215
7215
|
let H = r.index;
|
|
7216
|
-
H && (Q.tableId && !M.tableId ? F.index < H && (H -= V) : !Q.tableId && M.tableId &&
|
|
7216
|
+
H && (Q.tableId && !M.tableId ? F.index < H && (H -= V) : !Q.tableId && M.tableId && v.index < H && (H += V), n.setPositionContext({
|
|
7217
7217
|
...r,
|
|
7218
7218
|
index: H
|
|
7219
7219
|
}));
|
|
@@ -7258,7 +7258,7 @@ function Tu(o, t) {
|
|
|
7258
7258
|
...a,
|
|
7259
7259
|
isTable: !0,
|
|
7260
7260
|
index: a.index
|
|
7261
|
-
}) : null, E = a.isTable && D?.value || e.getElementList(), U = a.isTable && D?.positionList || l.getPositionList(), x = a.isTable ? a.tdValueIndex : a.index, Q = e.getMode(),
|
|
7261
|
+
}) : null, E = a.isTable && D?.value || e.getElementList(), U = a.isTable && D?.positionList || l.getPositionList(), x = a.isTable ? a.tdValueIndex : a.index, Q = e.getMode(), v = Q === K.EDIT || Q === K.FORM, H = [
|
|
7262
7262
|
x,
|
|
7263
7263
|
x + 1,
|
|
7264
7264
|
x - 1,
|
|
@@ -7270,7 +7270,7 @@ function Tu(o, t) {
|
|
|
7270
7270
|
return !1;
|
|
7271
7271
|
const { coordinate: { leftTop: nt, rightTop: j, leftBottom: Yt } } = B;
|
|
7272
7272
|
return j[0] > nt[0] && o.offsetX >= nt[0] && o.offsetX < j[0] && o.offsetY >= nt[1] && o.offsetY <= Yt[1];
|
|
7273
|
-
}, $ =
|
|
7273
|
+
}, $ = v && H.some((A) => {
|
|
7274
7274
|
const nt = E[A]?.control?.type;
|
|
7275
7275
|
return nt !== b.SELECT && nt !== b.DATE ? !1 : Y(A);
|
|
7276
7276
|
}), G = H.some((A) => {
|
|
@@ -7291,9 +7291,9 @@ function Tu(o, t) {
|
|
|
7291
7291
|
if (D >= Y[0] && D <= $[0] && E >= Y[1] && E <= $[1])
|
|
7292
7292
|
return;
|
|
7293
7293
|
}
|
|
7294
|
-
const
|
|
7295
|
-
if (
|
|
7296
|
-
const H = t.cacheElementList[
|
|
7294
|
+
const v = t.cacheRange?.startIndex;
|
|
7295
|
+
if (v) {
|
|
7296
|
+
const H = t.cacheElementList[v];
|
|
7297
7297
|
H?.type === P.IMAGE && (H.imgDisplay === Et.SURROUND || H.imgDisplay === Et.FLOAT_TOP || H.imgDisplay === Et.FLOAT_BOTTOM) && (e.getPreviewer().clearResizer(), e.getImageParticle().dragFloatImage(o.movementX, o.movementY));
|
|
7298
7298
|
}
|
|
7299
7299
|
t.dragover(o), t.isAllowDrop = !0;
|
|
@@ -7418,16 +7418,16 @@ function Tu(o, t) {
|
|
|
7418
7418
|
}
|
|
7419
7419
|
}
|
|
7420
7420
|
}
|
|
7421
|
-
let
|
|
7421
|
+
let v;
|
|
7422
7422
|
if (X) {
|
|
7423
7423
|
const [H, Y] = X.sort(($, G) => $.index - G.index);
|
|
7424
|
-
|
|
7424
|
+
v = {
|
|
7425
7425
|
originalId: X[0].originalId ?? X[1].originalId,
|
|
7426
7426
|
startIndex: H.index,
|
|
7427
7427
|
endIndex: Y.index
|
|
7428
|
-
}, H.isCurrent ? (E = H.index, D = H.length - 1) : (E = 0, D =
|
|
7428
|
+
}, H.isCurrent ? (E = H.index, D = H.length - 1) : (E = 0, D = v.endIndex - Y.startIndex);
|
|
7429
7429
|
}
|
|
7430
|
-
W.setRange(E, D, void 0, void 0, void 0, void 0, void 0,
|
|
7430
|
+
W.setRange(E, D, void 0, void 0, void 0, void 0, void 0, v);
|
|
7431
7431
|
}
|
|
7432
7432
|
e.render({
|
|
7433
7433
|
isSubmitHistory: !1,
|
|
@@ -8129,10 +8129,10 @@ function Du(o, t) {
|
|
|
8129
8129
|
else {
|
|
8130
8130
|
const x = e.getOriginalElementList()[a.index].trList;
|
|
8131
8131
|
t: for (let Q = 0; Q < x.length; Q++) {
|
|
8132
|
-
const
|
|
8133
|
-
if (
|
|
8132
|
+
const v = x[Q];
|
|
8133
|
+
if (v.id !== W.trId)
|
|
8134
8134
|
continue;
|
|
8135
|
-
const H =
|
|
8135
|
+
const H = v.tdList;
|
|
8136
8136
|
for (let Y = 0; Y < H.length; Y++)
|
|
8137
8137
|
if (H[Y].id === W.tdId) {
|
|
8138
8138
|
if (Q === x.length - 1 && Y === H.length - 1)
|
|
@@ -8367,8 +8367,8 @@ function Fu(o, t) {
|
|
|
8367
8367
|
for (let E = 0; E < D.length; E++) {
|
|
8368
8368
|
const U = D[E], x = U.x * F + N[3], Q = U.width * F;
|
|
8369
8369
|
if (T >= x && T <= x + Q) {
|
|
8370
|
-
const
|
|
8371
|
-
positionList:
|
|
8370
|
+
const v = U.positionList, H = v[v.length - 1], Y = Bi({
|
|
8371
|
+
positionList: v,
|
|
8372
8372
|
index: H.index + 1,
|
|
8373
8373
|
rowNo: H.rowNo - 1,
|
|
8374
8374
|
isUp: u,
|
|
@@ -8385,8 +8385,8 @@ function Fu(o, t) {
|
|
|
8385
8385
|
for (let E = 0; E < D.length; E++) {
|
|
8386
8386
|
const U = D[E], x = U.x * F + N[3], Q = U.width * F;
|
|
8387
8387
|
if (T >= x && T <= x + Q) {
|
|
8388
|
-
const
|
|
8389
|
-
positionList:
|
|
8388
|
+
const v = U.positionList, H = Bi({
|
|
8389
|
+
positionList: v,
|
|
8390
8390
|
index: -1,
|
|
8391
8391
|
rowNo: -1,
|
|
8392
8392
|
isUp: u,
|
|
@@ -8631,13 +8631,13 @@ function Ps(o, t, e = "input") {
|
|
|
8631
8631
|
if (w) {
|
|
8632
8632
|
const Mt = i.getPosition().getPositionContext().isTable && i.isTableEditable() && !L && !r.getIsRangeWithinControl(), lt = g.getRange();
|
|
8633
8633
|
if (!(i.getElementList()[lt.endIndex]?.control?.type === b.TEXT) && !Mt) {
|
|
8634
|
-
const
|
|
8634
|
+
const It = r.getActiveTextControlLimit();
|
|
8635
8635
|
if (!L || !r.getIsRangeWithinControl() && !r.getIsRangeInPostfix())
|
|
8636
8636
|
return;
|
|
8637
|
-
if (
|
|
8637
|
+
if (It) {
|
|
8638
8638
|
const ot = g.getRange();
|
|
8639
|
-
if (ot.startIndex <
|
|
8640
|
-
const qt = Math.min(Math.max(ot.endIndex,
|
|
8639
|
+
if (ot.startIndex < It.startIndex || ot.endIndex > It.endIndex) {
|
|
8640
|
+
const qt = Math.min(Math.max(ot.endIndex, It.startIndex), It.endIndex);
|
|
8641
8641
|
p(() => {
|
|
8642
8642
|
g.setRange(qt, qt), i.render({
|
|
8643
8643
|
curIndex: qt,
|
|
@@ -8669,10 +8669,10 @@ function Ps(o, t, e = "input") {
|
|
|
8669
8669
|
const V = g.getDefaultStyle() || t.compositionInfo?.defaultStyle || null, C = t.compositionInfo?.perfStartTime, y = wu(t, i.getElementList());
|
|
8670
8670
|
f || i.getCursor().clearAgentDomValue();
|
|
8671
8671
|
const { TEXT: W, HYPERLINK: X, SUBSCRIPT: D, SUPERSCRIPT: E, DATE: U, TAB: x } = P, Q = o.replaceAll(`
|
|
8672
|
-
`, _), { startIndex:
|
|
8672
|
+
`, _), { startIndex: v, endIndex: H } = g.getRange(), Y = g.getRangeAnchorStyle(y, v);
|
|
8673
8673
|
if (!Y)
|
|
8674
8674
|
return;
|
|
8675
|
-
const $ =
|
|
8675
|
+
const $ = v > 0 ? y[v - 1] : null, G = !!(Y.controlId || Y.control), B = {
|
|
8676
8676
|
...!G && $ ? $ : Y,
|
|
8677
8677
|
...V
|
|
8678
8678
|
}, nt = i.isDesignMode(), j = y[H + 1], Yt = Xn(y, Y.originControlId, i.getMode()), At = Xn(y, j?.originControlId, i.getMode()), Ne = !Y.originControlId && !j?.originControlId && _e(Y) && mi(j) && !!Y.controlId && !!j.controlId && Y.controlId !== j.controlId, ce = Oo(Y) && Gi(j) && !Yt && !At, Le = i.getMode() === K.EDIT ? Vr(y, Y, j) : void 0, it = !!Y.originControlId && _e(Y) && j?.controlId === Y.originControlId && !j.originControlId && j.control?.type === b.TEXTFIELD && _e(j), q = !!Y.originControlId && _e(Y) && j?.controlId === Y.originControlId && !j.originControlId && j.control?.type === b.TEXTFIELD && j.controlComponent === R.VALUE, z = !!Yt && Yt === At && !!Y.controlId && !!j?.controlId && Y.controlId !== j.controlId && (Oo(Y) || Gi(j)) ? Yt : null;
|
|
@@ -8710,7 +8710,7 @@ function Ps(o, t, e = "input") {
|
|
|
8710
8710
|
for (let Bt = Mt + 1; Bt < y.length && ft(lt, y[Bt]); Bt++)
|
|
8711
8711
|
_t = Bt;
|
|
8712
8712
|
return _t;
|
|
8713
|
-
}, Ft = !!(Xt(Y,
|
|
8713
|
+
}, Ft = !!(Xt(Y, v) && Y.controlComponent === R.VALUE && !Y.originControlId && ft(Y, j) && _e(j) && !j?.value), wt = !!((Xt(Y, v) || xt(Y, v) === b.NUMBER) && Y.controlComponent === R.VALUE && Y.originControlId && ft(Y, j) && _e(j)) ? Xn(y, Y.originControlId, i.getMode()) : null, se = yl(y, wt), mt = at || tt || Ft, Tt = mt ? {
|
|
8714
8714
|
...Y,
|
|
8715
8715
|
type: void 0,
|
|
8716
8716
|
control: void 0,
|
|
@@ -8720,35 +8720,35 @@ function Ps(o, t, e = "input") {
|
|
|
8720
8720
|
// 使用默认颜色而不是继承控件的颜色
|
|
8721
8721
|
color: s.defaultColor,
|
|
8722
8722
|
highlight: void 0
|
|
8723
|
-
} : Y,
|
|
8723
|
+
} : Y, Zt = mt || G ? Tt : B, bt = vt(Q).map((Mt) => {
|
|
8724
8724
|
const lt = {
|
|
8725
8725
|
value: Mt
|
|
8726
8726
|
};
|
|
8727
|
-
if (nt || !
|
|
8727
|
+
if (nt || !Zt.title?.disabled && !Zt.control?.disabled) {
|
|
8728
8728
|
const _t = y[H + 1];
|
|
8729
|
-
(!
|
|
8729
|
+
(!Zt.type || Zt.type === W || Zt.type === X && _t?.type === X || Zt.type === U && _t?.type === U || Zt.type === D && _t?.type === D || Zt.type === E && _t?.type === E) && nc.forEach((Bt) => {
|
|
8730
8730
|
if (Bt === "groupIds" && !_t?.groupIds)
|
|
8731
8731
|
return;
|
|
8732
|
-
const
|
|
8733
|
-
|
|
8734
|
-
}), (V ||
|
|
8735
|
-
const
|
|
8736
|
-
|
|
8732
|
+
const It = Zt[Bt];
|
|
8733
|
+
It !== void 0 && (lt[Bt] = It);
|
|
8734
|
+
}), (V || Zt.type === x) && Ge.forEach((Bt) => {
|
|
8735
|
+
const It = V?.[Bt] || Zt[Bt];
|
|
8736
|
+
It !== void 0 && (lt[Bt] = It);
|
|
8737
8737
|
}), f && (lt.underline = !0);
|
|
8738
8738
|
}
|
|
8739
|
-
if (!
|
|
8739
|
+
if (!mt) {
|
|
8740
8740
|
const _t = Y.originControlId && (Y.controlComponent === R.POSTFIX || Y.controlComponent === R.POSTTEXTFIX || Y.controlComponent === R.POSTTEXTFIX_TEXT || Y.controlComponent === R.POST_TEXT);
|
|
8741
8741
|
if (it || q || Le) {
|
|
8742
8742
|
const Ct = Le || j;
|
|
8743
8743
|
lt.controlId = Ct.controlId, lt.control = Ct.control, lt.controlComponent = R.VALUE, delete lt.originControlId, Ls(lt, Ct.control, s.defaultColor);
|
|
8744
8744
|
}
|
|
8745
|
-
const Bt = !Y.originControlId && Y.controlId && (Y.controlComponent === R.POSTFIX || Y.controlComponent === R.POSTTEXTFIX || Y.controlComponent === R.POSTTEXTFIX_TEXT || Y.controlComponent === R.POST_TEXT) && j?.controlId && j.controlId !== Y.controlId && Yu(Y, j),
|
|
8745
|
+
const Bt = !Y.originControlId && Y.controlId && (Y.controlComponent === R.POSTFIX || Y.controlComponent === R.POSTTEXTFIX || Y.controlComponent === R.POSTTEXTFIX_TEXT || Y.controlComponent === R.POST_TEXT) && j?.controlId && j.controlId !== Y.controlId && Yu(Y, j), It = Y.controlId && Y.originControlId && (Y.controlComponent === R.VALUE || Y.controlComponent === R.PLACEHOLDER);
|
|
8746
8746
|
if (!it && !q && !Le && _t && !lt.controlId) {
|
|
8747
8747
|
const Ct = Xn(y, Y.originControlId, i.getMode());
|
|
8748
8748
|
if (!Ct)
|
|
8749
8749
|
return lt;
|
|
8750
8750
|
let Ot = null;
|
|
8751
|
-
for (let rt =
|
|
8751
|
+
for (let rt = v; rt >= 0; rt--) {
|
|
8752
8752
|
const ot = y[rt];
|
|
8753
8753
|
if (fn(ot, Ct) && ot.control) {
|
|
8754
8754
|
Ot = ot.control;
|
|
@@ -8759,7 +8759,7 @@ function Ps(o, t, e = "input") {
|
|
|
8759
8759
|
} else if (Bt && !lt.controlId) {
|
|
8760
8760
|
if (j?.controlId && j.controlId !== Y.controlId)
|
|
8761
8761
|
if (j.controlComponent === R.PREFIX || j.controlComponent === R.PRETEXTFIX)
|
|
8762
|
-
for (let Ct =
|
|
8762
|
+
for (let Ct = v; Ct >= 0; Ct--) {
|
|
8763
8763
|
const Ot = y[Ct];
|
|
8764
8764
|
if (Ot.controlId === Y.controlId && (Ot.controlComponent === R.PREFIX || Ot.controlComponent === R.PRETEXTFIX)) {
|
|
8765
8765
|
for (let rt = Ct - 1; rt >= 0; rt--) {
|
|
@@ -8776,7 +8776,7 @@ function Ps(o, t, e = "input") {
|
|
|
8776
8776
|
}
|
|
8777
8777
|
else (j.controlComponent === R.POSTFIX || j.controlComponent === R.POSTTEXTFIX) && (lt.controlId = j.controlId, lt.controlComponent = R.VALUE, j.control && (lt.control = j.control));
|
|
8778
8778
|
if (!lt.controlId)
|
|
8779
|
-
for (let Ct =
|
|
8779
|
+
for (let Ct = v; Ct >= 0; Ct--) {
|
|
8780
8780
|
const Ot = y[Ct];
|
|
8781
8781
|
if (Ot.controlId === Y.controlId && (Ot.controlComponent === R.PREFIX || Ot.controlComponent === R.PRETEXTFIX)) {
|
|
8782
8782
|
for (let rt = Ct - 1; rt >= 0; rt--) {
|
|
@@ -8791,11 +8791,11 @@ function Ps(o, t, e = "input") {
|
|
|
8791
8791
|
break;
|
|
8792
8792
|
}
|
|
8793
8793
|
}
|
|
8794
|
-
} else if (
|
|
8794
|
+
} else if (It && !lt.controlId) {
|
|
8795
8795
|
const Ct = Y.controlId;
|
|
8796
8796
|
let Ot = Y.control;
|
|
8797
8797
|
if (!Ot)
|
|
8798
|
-
for (let rt =
|
|
8798
|
+
for (let rt = v; rt >= 0; rt--) {
|
|
8799
8799
|
const ot = y[rt];
|
|
8800
8800
|
if (ot.controlId === Ct && ot.control && (Ot = ot.control, ot.controlComponent === R.PREFIX || ot.controlComponent === R.PRETEXTFIX))
|
|
8801
8801
|
break;
|
|
@@ -8804,7 +8804,7 @@ function Ps(o, t, e = "input") {
|
|
|
8804
8804
|
} else if (Y.controlId) {
|
|
8805
8805
|
let Ct = Y.control;
|
|
8806
8806
|
if (!Ct)
|
|
8807
|
-
for (let Ot =
|
|
8807
|
+
for (let Ot = v; Ot >= 0; Ot--) {
|
|
8808
8808
|
const rt = y[Ot];
|
|
8809
8809
|
if (fn(rt, Y.controlId) && rt.control) {
|
|
8810
8810
|
Ct = rt.control;
|
|
@@ -8836,14 +8836,14 @@ function Ps(o, t, e = "input") {
|
|
|
8836
8836
|
let Nt;
|
|
8837
8837
|
const yt = l[u], $t = l[u + 1], Te = l[u - 1];
|
|
8838
8838
|
if (f)
|
|
8839
|
-
Nt =
|
|
8839
|
+
Nt = v;
|
|
8840
8840
|
else {
|
|
8841
8841
|
const Mt = (rt) => {
|
|
8842
8842
|
if (bt?.length)
|
|
8843
8843
|
for (let ot = 0; ot < bt.length; ot++)
|
|
8844
8844
|
y.splice(rt + ot, 0, bt[ot]);
|
|
8845
8845
|
return rt + bt.length - 1;
|
|
8846
|
-
}, lt =
|
|
8846
|
+
}, lt = v + 1, _t = Ft ? Vt(v) + 1 : lt, Bt = () => {
|
|
8847
8847
|
let rt = null, ot, qt = null;
|
|
8848
8848
|
const Pe = i.getMode() === K.EDIT ? Vr(l, yt, $t) : void 0;
|
|
8849
8849
|
if (Pe?.controlId ? (rt = Pe.controlId, ot = Pe.control?.type) : i.getMode() === K.EDIT && Oo(yt) && $t?.controlId === yt.originControlId && !$t.originControlId && $t.control?.type === b.TEXTFIELD && ($t.controlComponent === R.VALUE || _e($t)) ? (rt = yt.originControlId, ot = b.TEXTFIELD) : Oo(yt) ? rt = Xn(l, yt.originControlId, i.getMode()) : Gi($t) ? rt = Xn(l, $t.originControlId, i.getMode()) : z ? rt = z : yt?.control?.type === b.TEXT && yt.controlId && !yt.originControlId && _e(yt) && Te?.originControlId === yt.controlId && (rt = yt.controlId, qt = {
|
|
@@ -8882,11 +8882,11 @@ function Ps(o, t, e = "input") {
|
|
|
8882
8882
|
})(),
|
|
8883
8883
|
boundaryRange: qt
|
|
8884
8884
|
};
|
|
8885
|
-
},
|
|
8886
|
-
|
|
8885
|
+
}, It = L?.getElement(), Ct = !!(It?.control?.type === b.BUTTON && !It.control?.buttonText && It.control?.editable !== !1 && r.getIsRangeWithinControl());
|
|
8886
|
+
v !== H && !Ct && (i.removeSplitTdOtherRangeElements(), i.spliceElementList(y, lt, H - v));
|
|
8887
8887
|
const Ot = Bt();
|
|
8888
8888
|
if (wt && se?.control) {
|
|
8889
|
-
const rt = Vt(
|
|
8889
|
+
const rt = Vt(v);
|
|
8890
8890
|
bt.forEach((ot) => {
|
|
8891
8891
|
ki(ot, wt, se.control, s.defaultColor);
|
|
8892
8892
|
}), fe(y, bt, rt, {
|
|
@@ -8902,7 +8902,7 @@ function Ps(o, t, e = "input") {
|
|
|
8902
8902
|
startIndex: u,
|
|
8903
8903
|
endIndex: De
|
|
8904
8904
|
} : {
|
|
8905
|
-
startIndex:
|
|
8905
|
+
startIndex: v,
|
|
8906
8906
|
endIndex: H
|
|
8907
8907
|
});
|
|
8908
8908
|
m(re.startIndex, re.endIndex), Pe && Pe.getElement()?.controlId === rt && (Pe.getElement()?.control?.type === b.TEXT || Pe.getElement()?.control?.type === b.TEXTFIELD) ? (bt.forEach((qn) => {
|
|
@@ -8910,8 +8910,8 @@ function Ps(o, t, e = "input") {
|
|
|
8910
8910
|
}), Nt = Pe.setValue(bt, {
|
|
8911
8911
|
range: re,
|
|
8912
8912
|
elementList: y
|
|
8913
|
-
}), r.emitControlContentChange(), m(Nt, Nt), I()) :
|
|
8914
|
-
} else if (
|
|
8913
|
+
}), r.emitControlContentChange(), m(Nt, Nt), I()) : mt ? Nt = Mt(_t) : (Nt = r.setValue(bt), r.emitControlContentChange());
|
|
8914
|
+
} else if (mt)
|
|
8915
8915
|
Nt = Mt(_t);
|
|
8916
8916
|
else if (yt?.originControlId && (yt.controlComponent === R.POSTFIX || yt.controlComponent === R.POST_TEXT || yt.controlComponent === R.POSTTEXTFIX || yt.controlComponent === R.POSTTEXTFIX_TEXT))
|
|
8917
8917
|
if (L?.getElement()?.control?.type === b.TEXT && L.getElement()?.controlId === yt.controlId && (L.getElement()?.originControlId || null) === (yt.originControlId || null))
|
|
@@ -8969,13 +8969,13 @@ function Ps(o, t, e = "input") {
|
|
|
8969
8969
|
}
|
|
8970
8970
|
else if ((yt?.control?.type === b.SELECT || $t?.control?.type === b.SELECT) && L?.getElement()?.control?.type === b.SELECT && r.getIsRangeWithinControl()) {
|
|
8971
8971
|
const rt = r.getActiveControl();
|
|
8972
|
-
rt && typeof rt.awake == "function" && rt.awake(), Nt =
|
|
8972
|
+
rt && typeof rt.awake == "function" && rt.awake(), Nt = v;
|
|
8973
8973
|
} else if (L?.getElement()?.control?.type === b.DATE && r.getIsRangeWithinControl()) {
|
|
8974
8974
|
const rt = r.getActiveControl();
|
|
8975
|
-
rt && typeof rt.awake == "function" && rt.awake(), Nt =
|
|
8976
|
-
} else !
|
|
8975
|
+
rt && typeof rt.awake == "function" && rt.awake(), Nt = v;
|
|
8976
|
+
} else !mt && (yt?.control?.type === b.BUTTON || $t?.control?.type === b.BUTTON) ? L?.getElement()?.control?.type === b.BUTTON && L.getElement()?.control?.editable !== !1 && r.getIsRangeWithinControl() ? (Nt = r.setValue(bt), r.emitControlContentChange()) : Nt = v : L && r.getIsRangeWithinControl() ? (Nt = r.setValue(bt), r.emitControlContentChange()) : (yt?.type === "control" || $t?.type === "control") && !mt ? Nt = Mt(lt) : (fe(y, bt, v, {
|
|
8977
8977
|
editorOptions: s
|
|
8978
|
-
}), i.spliceElementList(y, lt, 0, bt), Nt =
|
|
8978
|
+
}), i.spliceElementList(y, lt, 0, bt), Nt = v + bt.length);
|
|
8979
8979
|
}
|
|
8980
8980
|
if (~Nt && !f) {
|
|
8981
8981
|
const Mt = ge() - n, lt = ge();
|
|
@@ -9017,7 +9017,7 @@ function wu(o, t) {
|
|
|
9017
9017
|
const { startIndex: e, endIndex: n } = o.compositionInfo;
|
|
9018
9018
|
return e !== n && (o.getDraw().removeSplitTdOtherRangeElements(), o.getDraw().spliceElementList(t, e + 1, n - e), o.getDraw().getRange().setRange(e, e)), o.compositionInfo = null, t;
|
|
9019
9019
|
}
|
|
9020
|
-
async function
|
|
9020
|
+
async function vu(o) {
|
|
9021
9021
|
const t = o.getDraw(), e = t.getRange(), { startIndex: n, endIndex: i } = e.getRange();
|
|
9022
9022
|
if (!~n && !~n || t.isReadonly() || !e.getIsCanInput())
|
|
9023
9023
|
return;
|
|
@@ -9040,7 +9040,7 @@ async function Zu(o) {
|
|
|
9040
9040
|
let u;
|
|
9041
9041
|
c.getActiveControl() && c.getIsRangeWithinControl() ? (u = c.cut(), c.emitControlContentChange()) : (t.spliceElementList(r, s + 1, l - s), u = s), e.setRange(u, u), t.render({ curIndex: u });
|
|
9042
9042
|
}
|
|
9043
|
-
function
|
|
9043
|
+
function Zu(o) {
|
|
9044
9044
|
return o.replace(/^(?:\r\n|\r|\n)+|(?:\r\n|\r|\n)+$/g, "");
|
|
9045
9045
|
}
|
|
9046
9046
|
async function Qu(o, t) {
|
|
@@ -9079,7 +9079,7 @@ async function Qu(o, t) {
|
|
|
9079
9079
|
l = s.getIsCollapsed() ? s.getRangeRowElementList() : s.getSelectionElementList();
|
|
9080
9080
|
if (i && l?.length) {
|
|
9081
9081
|
const c = so(l, e.getOptions());
|
|
9082
|
-
await au(n ?
|
|
9082
|
+
await au(n ? Zu(c) : c);
|
|
9083
9083
|
return;
|
|
9084
9084
|
}
|
|
9085
9085
|
l?.length && await Xl(l, e.getOptions());
|
|
@@ -9098,7 +9098,7 @@ function Hu(o, t) {
|
|
|
9098
9098
|
return;
|
|
9099
9099
|
for (let s = 0; s < r.length; s++) {
|
|
9100
9100
|
const l = r[s];
|
|
9101
|
-
l.type.startsWith("image") &&
|
|
9101
|
+
l.type.startsWith("image") && vs(t, l);
|
|
9102
9102
|
}
|
|
9103
9103
|
}
|
|
9104
9104
|
}
|
|
@@ -9539,7 +9539,7 @@ class qu {
|
|
|
9539
9539
|
* 处理剪切操作
|
|
9540
9540
|
*/
|
|
9541
9541
|
async cut() {
|
|
9542
|
-
this.draw.isInteractionSuspended() || await
|
|
9542
|
+
this.draw.isInteractionSuspended() || await vu(this);
|
|
9543
9543
|
}
|
|
9544
9544
|
/**
|
|
9545
9545
|
* 处理复制操作
|
|
@@ -9887,7 +9887,7 @@ class od {
|
|
|
9887
9887
|
zone: u
|
|
9888
9888
|
});
|
|
9889
9889
|
if (U.verticalAlign === ue.MIDDLE || U.verticalAlign === ue.BOTTOM) {
|
|
9890
|
-
const
|
|
9890
|
+
const v = x.reduce(($, G) => $ + G.height, 0), H = (U.height - W) * h - v, Y = U.verticalAlign === ue.MIDDLE ? H / 2 : H;
|
|
9891
9891
|
Math.floor(Y) > 0 && U.positionList.forEach(($) => {
|
|
9892
9892
|
const { coordinate: { leftTop: G, leftBottom: A, rightBottom: B, rightTop: nt } } = $;
|
|
9893
9893
|
G[1] += Y, A[1] += Y, B[1] += Y, nt[1] += Y;
|
|
@@ -10010,7 +10010,14 @@ class od {
|
|
|
10010
10010
|
break;
|
|
10011
10011
|
if (O[0] - L <= e && S[0] >= e && O[1] <= n && M[1] >= n) {
|
|
10012
10012
|
let F = p;
|
|
10013
|
-
const N = r[
|
|
10013
|
+
const N = r[I];
|
|
10014
|
+
if (N?.controlId && L > 0 && e < O[0]) {
|
|
10015
|
+
const V = N.controlComponent === R.POSTFIX || N.controlComponent === R.POST_TEXT || N.controlComponent === R.POSTTEXTFIX || N.controlComponent === R.POSTTEXTFIX_TEXT, C = p > 0 ? r[s[p - 1].index] : void 0, y = C?.controlId === N.controlId && (C.originControlId || null) === (N.originControlId || null);
|
|
10016
|
+
return {
|
|
10017
|
+
index: V && y ? s[p - 1].index : I,
|
|
10018
|
+
isControl: !0
|
|
10019
|
+
};
|
|
10020
|
+
}
|
|
10014
10021
|
if (N.type === P.TABLE)
|
|
10015
10022
|
for (let V = 0; V < N.trList.length; V++) {
|
|
10016
10023
|
const C = N.trList[V];
|
|
@@ -11089,7 +11096,7 @@ class sd {
|
|
|
11089
11096
|
}
|
|
11090
11097
|
}
|
|
11091
11098
|
}
|
|
11092
|
-
class
|
|
11099
|
+
class Zs {
|
|
11093
11100
|
fillRect;
|
|
11094
11101
|
fillColor;
|
|
11095
11102
|
fillDecorationStyle;
|
|
@@ -11113,7 +11120,7 @@ class vs {
|
|
|
11113
11120
|
a && (this.fillRect.x = e, this.fillRect.y = n), r && this.fillRect.height < r && (this.fillRect.height = r), this.fillRect.width += i, this.fillColor = s, this.fillDecorationStyle = l;
|
|
11114
11121
|
}
|
|
11115
11122
|
}
|
|
11116
|
-
class rd extends
|
|
11123
|
+
class rd extends Zs {
|
|
11117
11124
|
options;
|
|
11118
11125
|
constructor(t) {
|
|
11119
11126
|
super(), this.options = t.getOptions();
|
|
@@ -11431,7 +11438,7 @@ class ad {
|
|
|
11431
11438
|
});
|
|
11432
11439
|
}
|
|
11433
11440
|
}
|
|
11434
|
-
class cd extends
|
|
11441
|
+
class cd extends Zs {
|
|
11435
11442
|
options;
|
|
11436
11443
|
constructor(t) {
|
|
11437
11444
|
super(), this.options = t.getOptions();
|
|
@@ -11453,7 +11460,7 @@ var ro;
|
|
|
11453
11460
|
(function(o) {
|
|
11454
11461
|
o.SOLID = "solid", o.DASHED = "dashed", o.DOTTED = "dotted";
|
|
11455
11462
|
})(ro || (ro = {}));
|
|
11456
|
-
class ud extends
|
|
11463
|
+
class ud extends Zs {
|
|
11457
11464
|
options;
|
|
11458
11465
|
constructor(t) {
|
|
11459
11466
|
super(), this.options = t.getOptions();
|
|
@@ -12104,7 +12111,7 @@ class fd {
|
|
|
12104
12111
|
for (let E = 0; E < w.length; E++) {
|
|
12105
12112
|
const U = w[E] * a, x = document.createElement("div");
|
|
12106
12113
|
x.classList.add(`${ct}-table-tool__row__item`), E === O && x.classList.add("active"), x.onclick = () => {
|
|
12107
|
-
const
|
|
12114
|
+
const v = this.draw.getTableParticle().getTdListByRowIndex(d, E), H = v[0], Y = v[v.length - 1];
|
|
12108
12115
|
this.position.setPositionContext({
|
|
12109
12116
|
index: e,
|
|
12110
12117
|
isTable: !0,
|
|
@@ -12118,9 +12125,9 @@ class fd {
|
|
|
12118
12125
|
}), this._setAnchorActive(V, E);
|
|
12119
12126
|
};
|
|
12120
12127
|
const Q = document.createElement("div");
|
|
12121
|
-
Q.classList.add(`${ct}-table-tool__anchor`), Q.onmousedown = (
|
|
12128
|
+
Q.classList.add(`${ct}-table-tool__anchor`), Q.onmousedown = (v) => {
|
|
12122
12129
|
this._mousedown({
|
|
12123
|
-
evt:
|
|
12130
|
+
evt: v,
|
|
12124
12131
|
element: l,
|
|
12125
12132
|
index: E,
|
|
12126
12133
|
order: nn.ROW
|
|
@@ -12143,7 +12150,7 @@ class fd {
|
|
|
12143
12150
|
for (let E = 0; E < y.length; E++) {
|
|
12144
12151
|
const U = y[E] * a, x = document.createElement("div");
|
|
12145
12152
|
x.classList.add(`${ct}-table-tool__col__item`), E === S && x.classList.add("active"), x.onclick = () => {
|
|
12146
|
-
const
|
|
12153
|
+
const v = this.draw.getTableParticle().getTdListByColIndex(d, E), H = v[0], Y = v[v.length - 1];
|
|
12147
12154
|
this.position.setPositionContext({
|
|
12148
12155
|
index: e,
|
|
12149
12156
|
isTable: !0,
|
|
@@ -12157,9 +12164,9 @@ class fd {
|
|
|
12157
12164
|
}), this._setAnchorActive(W, E);
|
|
12158
12165
|
};
|
|
12159
12166
|
const Q = document.createElement("div");
|
|
12160
|
-
Q.classList.add(`${ct}-table-tool__anchor`), Q.onmousedown = (
|
|
12167
|
+
Q.classList.add(`${ct}-table-tool__anchor`), Q.onmousedown = (v) => {
|
|
12161
12168
|
this._mousedown({
|
|
12162
|
-
evt:
|
|
12169
|
+
evt: v,
|
|
12163
12170
|
element: l,
|
|
12164
12171
|
index: E,
|
|
12165
12172
|
order: nn.COL
|
|
@@ -12182,15 +12189,15 @@ class fd {
|
|
|
12182
12189
|
for (let E = 0; E < d.length; E++) {
|
|
12183
12190
|
const U = d[E];
|
|
12184
12191
|
for (let x = 0; x < U.tdList.length; x++) {
|
|
12185
|
-
const Q = U.tdList[x],
|
|
12186
|
-
|
|
12192
|
+
const Q = U.tdList[x], v = document.createElement("div");
|
|
12193
|
+
v.classList.add(`${ct}-table-tool__border__row`), v.style.width = `${Q.width * a}px`, v.style.height = `${this.BORDER_VALUE}px`, v.style.top = `${(Q.y + Q.height) * a - this.BORDER_VALUE / 2}px`, v.style.left = `${Q.x * a}px`, v.onmousedown = (Y) => {
|
|
12187
12194
|
this._mousedown({
|
|
12188
12195
|
evt: Y,
|
|
12189
12196
|
element: l,
|
|
12190
12197
|
index: Q.rowIndex + Q.rowspan - 1,
|
|
12191
12198
|
order: nn.ROW
|
|
12192
12199
|
});
|
|
12193
|
-
}, D.appendChild(
|
|
12200
|
+
}, D.appendChild(v);
|
|
12194
12201
|
const H = document.createElement("div");
|
|
12195
12202
|
if (H.classList.add(`${ct}-table-tool__border__col`), H.style.width = `${this.BORDER_VALUE}px`, H.style.height = `${Q.height * a}px`, H.style.top = `${Q.y * a}px`, H.style.left = `${(Q.x + Q.width) * a - this.BORDER_VALUE / 2}px`, H.onmousedown = (Y) => {
|
|
12196
12203
|
this._mousedown({
|
|
@@ -12254,8 +12261,8 @@ class fd {
|
|
|
12254
12261
|
y < 0 && U * l + y < this.MIN_TD_WIDTH * l && (y = this.MIN_TD_WIDTH * l - U * l);
|
|
12255
12262
|
const x = E[n + 1]?.width;
|
|
12256
12263
|
if (y > 0 && x && x * l - y < this.MIN_TD_WIDTH * l && (y = x * l - this.MIN_TD_WIDTH * l), n === E.length - 1) {
|
|
12257
|
-
const
|
|
12258
|
-
|
|
12264
|
+
const v = I + (r.translateX || 0) * l + r.width * l;
|
|
12265
|
+
v + y > S && (y = S - v);
|
|
12259
12266
|
}
|
|
12260
12267
|
y && (E.length - 1 !== n && (E[n + 1].width -= y / l), E[n].width += y / l, D = !0);
|
|
12261
12268
|
}
|
|
@@ -12321,7 +12328,7 @@ class Td {
|
|
|
12321
12328
|
t.beginPath(), t.moveTo(e + s, n), t.lineTo(e + i - s, n), t.quadraticCurveTo(e + i, n, e + i, n + s), t.lineTo(e + i, n + r - s), t.quadraticCurveTo(e + i, n + r, e + i - s, n + r), t.lineTo(e + s, n + r), t.quadraticCurveTo(e, n + r, e, n + r - s), t.lineTo(e, n + s), t.quadraticCurveTo(e, n, e + s, n), t.closePath();
|
|
12322
12329
|
}
|
|
12323
12330
|
}
|
|
12324
|
-
const
|
|
12331
|
+
const Zn = /[\r\n\u200B]/;
|
|
12325
12332
|
class Id {
|
|
12326
12333
|
options;
|
|
12327
12334
|
draw;
|
|
@@ -12519,7 +12526,7 @@ class Id {
|
|
|
12519
12526
|
_renderPlainText(t, e, n, i, r) {
|
|
12520
12527
|
t.save(), t.font = e.style, t.fillStyle = e.color || "#000000", t.textBaseline = "alphabetic";
|
|
12521
12528
|
const s = this._getMacroLineHeight(e);
|
|
12522
|
-
r.split(
|
|
12529
|
+
r.split(Zn).forEach((l, a) => {
|
|
12523
12530
|
t.fillText(l, n, i + a * s);
|
|
12524
12531
|
}), t.restore();
|
|
12525
12532
|
}
|
|
@@ -12542,7 +12549,7 @@ class Id {
|
|
|
12542
12549
|
_renderTextControl(t, e, n, i, r) {
|
|
12543
12550
|
const { control: s } = this.options, { placeholderColor: l } = s;
|
|
12544
12551
|
t.save(), t.font = e.style;
|
|
12545
|
-
const c = `请输入${e.label || ""}`, h = (r || c).split(
|
|
12552
|
+
const c = `请输入${e.label || ""}`, h = (r || c).split(Zn), d = this._getMacroLineHeight(e), f = h.map((m) => t.measureText(m)), g = f[f.length - 1];
|
|
12546
12553
|
t.fillStyle = this._getControlColor(e), t.textBaseline = "alphabetic", t.fillText("[", n, i);
|
|
12547
12554
|
const p = n + t.measureText("[").width;
|
|
12548
12555
|
this._renderTextSelection(t, e, p, i, r, d), t.fillStyle = r ? this._getValueColor(e) : l, h.forEach((m, L) => {
|
|
@@ -12638,9 +12645,9 @@ class Id {
|
|
|
12638
12645
|
return;
|
|
12639
12646
|
const i = this.draw.getCtx();
|
|
12640
12647
|
i.save(), i.font = this.draw.getElementFont(e);
|
|
12641
|
-
const r = Array.from(this._getInlineEditorValue(e)), s = this._getMacroLineStart(r, t.cursorOffset), l = r.slice(s, t.cursorOffset).join(""), a = r.slice(0, t.cursorOffset).filter((M) =>
|
|
12648
|
+
const r = Array.from(this._getInlineEditorValue(e)), s = this._getMacroLineStart(r, t.cursorOffset), l = r.slice(s, t.cursorOffset).join(""), a = r.slice(0, t.cursorOffset).filter((M) => Zn.test(M)).length, c = n.coordinate.leftTop[0] + i.measureText("[").width + i.measureText(l).width;
|
|
12642
12649
|
i.restore();
|
|
12643
|
-
const u = this.draw.getCursor(), h = u.getCursorDom(), { scale: d } = this.options, f = this._getMacroLineHeight(e), g = ul * d, p = Math.min(f / 4, g), I = f + p * 2, m = r.filter((M) =>
|
|
12650
|
+
const u = this.draw.getCursor(), h = u.getCursorDom(), { scale: d } = this.options, f = this._getMacroLineHeight(e), g = ul * d, p = Math.min(f / 4, g), I = f + p * 2, m = r.filter((M) => Zn.test(M)).length + 1, L = Math.max(n.metrics.boundingBoxDescent - f * (m - 1), 0), T = n.pageNo * (this.draw.getHeight() + this.draw.getPageGap()), O = n.coordinate.leftTop[1] + n.ascent + L - (I - p) + a * f + T, S = u.getAgentDom();
|
|
12644
12651
|
h.style.left = `${c}px`, h.style.top = `${O}px`, h.style.height = `${I}px`, h.style.backgroundColor = this._getControlColor(e), h.style.display = "block", S.style.left = `${c}px`, S.style.top = `${O + I - g}px`;
|
|
12645
12652
|
}
|
|
12646
12653
|
_renderTextSelection(t, e, n, i, r, s) {
|
|
@@ -12653,7 +12660,7 @@ class Id {
|
|
|
12653
12660
|
const u = Array.from(r);
|
|
12654
12661
|
let d = this._getMacroLineStart(u, a);
|
|
12655
12662
|
for (; d <= c; ) {
|
|
12656
|
-
const f = u.findIndex((m, L) => L >= d &&
|
|
12663
|
+
const f = u.findIndex((m, L) => L >= d && Zn.test(m)), g = f === -1 ? u.length : f, p = Math.max(a, d), I = Math.min(c, g);
|
|
12657
12664
|
if (p < I) {
|
|
12658
12665
|
const m = u.slice(d, p).join(""), L = u.slice(p, I).join(""), T = t.measureText(L || m);
|
|
12659
12666
|
t.save(), t.globalAlpha = 0.2, t.fillStyle = this._getControlColor(e), t.fillRect(n + t.measureText(m).width, i + this._getMacroLineIndex(u, d) * s - T.actualBoundingBoxAscent, t.measureText(L).width, T.actualBoundingBoxAscent + T.actualBoundingBoxDescent), t.restore();
|
|
@@ -12669,12 +12676,12 @@ class Id {
|
|
|
12669
12676
|
}
|
|
12670
12677
|
_getMacroLineStart(t, e) {
|
|
12671
12678
|
for (let n = Math.min(e - 1, t.length - 1); n >= 0; n--)
|
|
12672
|
-
if (
|
|
12679
|
+
if (Zn.test(t[n]))
|
|
12673
12680
|
return n + 1;
|
|
12674
12681
|
return 0;
|
|
12675
12682
|
}
|
|
12676
12683
|
_getMacroLineIndex(t, e) {
|
|
12677
|
-
return t.slice(0, e).filter((n) =>
|
|
12684
|
+
return t.slice(0, e).filter((n) => Zn.test(n)).length;
|
|
12678
12685
|
}
|
|
12679
12686
|
_getIsActiveElement(t, e) {
|
|
12680
12687
|
const n = this._getInlineEditorElement(e);
|
|
@@ -13115,12 +13122,12 @@ class Fd {
|
|
|
13115
13122
|
}
|
|
13116
13123
|
if (!M.length)
|
|
13117
13124
|
continue;
|
|
13118
|
-
const F = S.coordinate.leftTop, N = S.coordinate.rightTop, w = S.coordinate.leftBottom, V = S.coordinate.rightBottom, C = Math.min(F[0], w[0]), y = Math.max(N[0], V[0]), W = Math.min(F[1], N[1]), X = Math.max(w[1], V[1]), D = S.metrics.boundingBoxAscent + S.metrics.boundingBoxDescent, E = W + S.ascent - S.metrics.boundingBoxAscent, U = D > 0 ? E : W, x = D > 0 ? E + D : X, Q = this._isButtonElement(T),
|
|
13125
|
+
const F = S.coordinate.leftTop, N = S.coordinate.rightTop, w = S.coordinate.leftBottom, V = S.coordinate.rightBottom, C = Math.min(F[0], w[0]), y = Math.max(N[0], V[0]), W = Math.min(F[1], N[1]), X = Math.max(w[1], V[1]), D = S.metrics.boundingBoxAscent + S.metrics.boundingBoxDescent, E = W + S.ascent - S.metrics.boundingBoxAscent, U = D > 0 ? E : W, x = D > 0 ? E + D : X, Q = this._isButtonElement(T), v = p ? Math.max(C, Math.min(y, m)) : y;
|
|
13119
13126
|
for (let H = 0; H < M.length; H++) {
|
|
13120
13127
|
const { markIndex: Y, controlId: $ } = M[H], G = `${Y}:${$}:${f.startIndex}`, A = g.get(G), B = { x: C, y: U, right: y, bottom: x };
|
|
13121
13128
|
if (A) {
|
|
13122
13129
|
const nt = this._mergeBounds(A, B);
|
|
13123
|
-
A.x = nt.x, A.y = nt.y, A.width = Math.max(1, nt.right - nt.x), A.height = Math.max(1, nt.bottom - nt.y), Q || (A.hasUnderline ? (A.underlineX = Math.min(A.underlineX, C), A.underlineY = Math.max(A.underlineY, x + $i), A.underlineRight = Math.max(A.underlineRight,
|
|
13130
|
+
A.x = nt.x, A.y = nt.y, A.width = Math.max(1, nt.right - nt.x), A.height = Math.max(1, nt.bottom - nt.y), Q || (A.hasUnderline ? (A.underlineX = Math.min(A.underlineX, C), A.underlineY = Math.max(A.underlineY, x + $i), A.underlineRight = Math.max(A.underlineRight, v)) : (A.underlineX = C, A.underlineY = x + $i, A.underlineRight = v), A.hasUnderline = !0);
|
|
13124
13131
|
} else
|
|
13125
13132
|
g.set(G, {
|
|
13126
13133
|
mark: this.marks[Y],
|
|
@@ -13133,7 +13140,7 @@ class Fd {
|
|
|
13133
13140
|
font: T.style || this.draw.getElementFont(T, this.options.scale),
|
|
13134
13141
|
underlineX: C,
|
|
13135
13142
|
underlineY: x + $i,
|
|
13136
|
-
underlineRight:
|
|
13143
|
+
underlineRight: v,
|
|
13137
13144
|
hasUnderline: !Q,
|
|
13138
13145
|
drawLeft: !1,
|
|
13139
13146
|
drawRight: !1,
|
|
@@ -13469,7 +13476,7 @@ class Mo {
|
|
|
13469
13476
|
if (!~p)
|
|
13470
13477
|
return;
|
|
13471
13478
|
a || this.control.removePlaceholder(p, e);
|
|
13472
|
-
const I = Ye(i[p], Ge), m = p + 1, L =
|
|
13479
|
+
const I = Ye(i[p], Ge), m = p + 1, L = vt(d), T = this.control.getDraw();
|
|
13473
13480
|
for (let O = 0; O < L.length; O++) {
|
|
13474
13481
|
const S = {
|
|
13475
13482
|
...g,
|
|
@@ -13596,7 +13603,7 @@ function xe(o) {
|
|
|
13596
13603
|
function Sn(o) {
|
|
13597
13604
|
return typeof o == "number" || Object.prototype.toString.call(o) === "[object Number]";
|
|
13598
13605
|
}
|
|
13599
|
-
function
|
|
13606
|
+
function Zo(o) {
|
|
13600
13607
|
return o instanceof Date || Object.prototype.toString.call(o) === "[object Date]";
|
|
13601
13608
|
}
|
|
13602
13609
|
function Yl(o, t) {
|
|
@@ -13780,9 +13787,9 @@ function Yd(o) {
|
|
|
13780
13787
|
};
|
|
13781
13788
|
}
|
|
13782
13789
|
function ii(o, t) {
|
|
13783
|
-
return o.isValid() ? (t =
|
|
13790
|
+
return o.isValid() ? (t = vl(t, o.localeData()), ji[t] = ji[t] || Yd(t), ji[t](o)) : o.localeData().invalidDate();
|
|
13784
13791
|
}
|
|
13785
|
-
function
|
|
13792
|
+
function vl(o, t) {
|
|
13786
13793
|
var e = 5;
|
|
13787
13794
|
function n(i) {
|
|
13788
13795
|
return t.longDateFormat(i) || i;
|
|
@@ -13808,8 +13815,8 @@ function wd(o) {
|
|
|
13808
13815
|
return n === "MMMM" || n === "MM" || n === "DD" || n === "dddd" ? n.slice(1) : n;
|
|
13809
13816
|
}).join(""), this._longDateFormat[o]);
|
|
13810
13817
|
}
|
|
13811
|
-
var
|
|
13812
|
-
function
|
|
13818
|
+
var vd = "Invalid date";
|
|
13819
|
+
function Zd() {
|
|
13813
13820
|
return this._invalidDate;
|
|
13814
13821
|
}
|
|
13815
13822
|
var Qd = "%d", Hd = /\d{1,2}/;
|
|
@@ -13842,7 +13849,7 @@ function Bd(o, t) {
|
|
|
13842
13849
|
var e = this._relativeTime[o > 0 ? "future" : "past"];
|
|
13843
13850
|
return Rn(e) ? e(t) : e.replace(/%s/i, t);
|
|
13844
13851
|
}
|
|
13845
|
-
var
|
|
13852
|
+
var vr = {
|
|
13846
13853
|
D: "date",
|
|
13847
13854
|
dates: "date",
|
|
13848
13855
|
date: "date",
|
|
@@ -13893,7 +13900,7 @@ var Zr = {
|
|
|
13893
13900
|
year: "year"
|
|
13894
13901
|
};
|
|
13895
13902
|
function He(o) {
|
|
13896
|
-
return typeof o == "string" ?
|
|
13903
|
+
return typeof o == "string" ? vr[o] || vr[o.toLowerCase()] : void 0;
|
|
13897
13904
|
}
|
|
13898
13905
|
function Bs(o) {
|
|
13899
13906
|
var t = {}, e, n;
|
|
@@ -13927,7 +13934,7 @@ function kd(o) {
|
|
|
13927
13934
|
return n.priority - i.priority;
|
|
13928
13935
|
}), t;
|
|
13929
13936
|
}
|
|
13930
|
-
var
|
|
13937
|
+
var Zl = /\d/, we = /\d\d/, Ql = /\d{3}/, Gs = /\d{4}/, Xi = /[+-]?\d{6}/, he = /\d\d?/, Hl = /\d\d\d\d?/, Kl = /\d\d\d\d\d\d?/, Ni = /\d{1,3}/, ks = /\d{1,4}/, xi = /[+-]?\d{1,6}/, Lo = /\d+/, bi = /[+-]?\d+/, Jd = /Z|[+-]\d\d:?\d\d/gi, yi = /Z|[+-]\d\d(?::?\d\d)?/gi, $d = /[+-]?\d+(\.\d{1,3})?/, Ho = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Po = /^[1-9]\d?/, Js = /^([1-9]\d|\d)/, Li;
|
|
13931
13938
|
Li = {};
|
|
13932
13939
|
function ht(o, t, e) {
|
|
13933
13940
|
Li[o] = Rn(t) ? t : function(n, i) {
|
|
@@ -13950,12 +13957,12 @@ function jd(o) {
|
|
|
13950
13957
|
function En(o) {
|
|
13951
13958
|
return o.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
13952
13959
|
}
|
|
13953
|
-
function
|
|
13960
|
+
function Ze(o) {
|
|
13954
13961
|
return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
|
|
13955
13962
|
}
|
|
13956
13963
|
function Ht(o) {
|
|
13957
13964
|
var t = +o, e = 0;
|
|
13958
|
-
return t !== 0 && isFinite(t) && (e =
|
|
13965
|
+
return t !== 0 && isFinite(t) && (e = Ze(t)), e;
|
|
13959
13966
|
}
|
|
13960
13967
|
var Ss = {};
|
|
13961
13968
|
function ee(o, t) {
|
|
@@ -14377,10 +14384,10 @@ function Uh(o) {
|
|
|
14377
14384
|
function wh(o) {
|
|
14378
14385
|
return this._weekdaysParseExact ? (zt(this, "_weekdaysRegex") || js.call(this), o ? this._weekdaysStrictRegex : this._weekdaysRegex) : (zt(this, "_weekdaysRegex") || (this._weekdaysRegex = Ch), this._weekdaysStrictRegex && o ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
14379
14386
|
}
|
|
14380
|
-
function
|
|
14387
|
+
function vh(o) {
|
|
14381
14388
|
return this._weekdaysParseExact ? (zt(this, "_weekdaysRegex") || js.call(this), o ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (zt(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Fh), this._weekdaysShortStrictRegex && o ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
|
|
14382
14389
|
}
|
|
14383
|
-
function
|
|
14390
|
+
function Zh(o) {
|
|
14384
14391
|
return this._weekdaysParseExact ? (zt(this, "_weekdaysRegex") || js.call(this), o ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (zt(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Xh), this._weekdaysMinStrictRegex && o ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
14385
14392
|
}
|
|
14386
14393
|
function js() {
|
|
@@ -14485,7 +14492,7 @@ function _h(o, t, e) {
|
|
|
14485
14492
|
var ea = {
|
|
14486
14493
|
calendar: yd,
|
|
14487
14494
|
longDateFormat: Ud,
|
|
14488
|
-
invalidDate:
|
|
14495
|
+
invalidDate: vd,
|
|
14489
14496
|
ordinal: Qd,
|
|
14490
14497
|
dayOfMonthOrdinalParse: Hd,
|
|
14491
14498
|
relativeTime: Ad,
|
|
@@ -14504,12 +14511,12 @@ function Bh(o, t) {
|
|
|
14504
14511
|
return e;
|
|
14505
14512
|
return n;
|
|
14506
14513
|
}
|
|
14507
|
-
function
|
|
14514
|
+
function Zr(o) {
|
|
14508
14515
|
return o && o.toLowerCase().replace("_", "-");
|
|
14509
14516
|
}
|
|
14510
14517
|
function Gh(o) {
|
|
14511
14518
|
for (var t = 0, e, n, i, r; t < o.length; ) {
|
|
14512
|
-
for (r =
|
|
14519
|
+
for (r = Zr(o[t]).split("-"), e = r.length, n = Zr(o[t + 1]), n = n ? n.split("-") : null; e > 0; ) {
|
|
14513
14520
|
if (i = Wi(r.slice(0, e).join("-")), i)
|
|
14514
14521
|
return i;
|
|
14515
14522
|
if (n && n.length >= e && Bh(r, n) >= e - 1)
|
|
@@ -14785,7 +14792,7 @@ function or(o) {
|
|
|
14785
14792
|
}
|
|
14786
14793
|
o._a = [], Wt(o).empty = !0;
|
|
14787
14794
|
var t = "" + o._i, e, n, i, r, s, l = t.length, a = 0, c, u;
|
|
14788
|
-
for (i =
|
|
14795
|
+
for (i = vl(o._f, o._locale).match(_s) || [], u = i.length, e = 0; e < u; e++)
|
|
14789
14796
|
r = i[e], n = (t.match(zd(r, o)) || [])[0], n && (s = t.substr(0, t.indexOf(n)), s.length > 0 && Wt(o).unusedInput.push(s), t = t.slice(
|
|
14790
14797
|
t.indexOf(n) + n.length
|
|
14791
14798
|
), a += n.length), co[r] ? (n ? Wt(o).empty = !1 : Wt(o).unusedTokens.push(r), qd(r, n, o)) : o._strict && !n && Wt(o).unusedTokens.push(r);
|
|
@@ -14826,11 +14833,11 @@ function gR(o) {
|
|
|
14826
14833
|
}
|
|
14827
14834
|
function ia(o) {
|
|
14828
14835
|
var t = o._i, e = o._f;
|
|
14829
|
-
return o._locale = o._locale || Dn(o._l), t === null || e === void 0 && t === "" ? Fi({ nullInput: !0 }) : (typeof t == "string" && (o._i = t = o._locale.preparse(t)), Je(t) ? new Qo(er(t)) : (
|
|
14836
|
+
return o._locale = o._locale || Dn(o._l), t === null || e === void 0 && t === "" ? Fi({ nullInput: !0 }) : (typeof t == "string" && (o._i = t = o._locale.preparse(t)), Je(t) ? new Qo(er(t)) : (Zo(t) ? o._d = t : ke(e) ? hR(o) : e ? or(o) : fR(o), Hs(o) || (o._d = null), o));
|
|
14830
14837
|
}
|
|
14831
14838
|
function fR(o) {
|
|
14832
14839
|
var t = o._i;
|
|
14833
|
-
xe(t) ? o._d = new Date(dt.now()) :
|
|
14840
|
+
xe(t) ? o._d = new Date(dt.now()) : Zo(t) ? o._d = new Date(t.valueOf()) : typeof t == "string" ? aR(o) : ke(t) ? (o._a = Yl(t.slice(0), function(e) {
|
|
14834
14841
|
return parseInt(e, 10);
|
|
14835
14842
|
}), nr(o)) : $n(t) ? RR(o) : Sn(t) ? o._d = new Date(t) : dt.createFromInputFallback(o);
|
|
14836
14843
|
}
|
|
@@ -14940,7 +14947,7 @@ function ir(o, t) {
|
|
|
14940
14947
|
}
|
|
14941
14948
|
function sr(o, t) {
|
|
14942
14949
|
var e, n;
|
|
14943
|
-
return t._isUTC ? (e = t.clone(), n = (Je(o) ||
|
|
14950
|
+
return t._isUTC ? (e = t.clone(), n = (Je(o) || Zo(o) ? o.valueOf() : de(o).valueOf()) - e.valueOf(), e._d.setTime(e._d.valueOf() + n), dt.updateOffset(e, !1), e) : de(o).local();
|
|
14944
14951
|
}
|
|
14945
14952
|
function Cs(o) {
|
|
14946
14953
|
return -Math.round(o._d.getTimezoneOffset());
|
|
@@ -15059,12 +15066,12 @@ function ua(o, t, e, n) {
|
|
|
15059
15066
|
var i = t._milliseconds, r = Ds(t._days), s = Ds(t._months);
|
|
15060
15067
|
o.isValid() && (n = n ?? !0, s && kl(o, Wo(o, "Month") + s * e), r && _l(o, "Date", Wo(o, "Date") + r * e), i && o._d.setTime(o._d.valueOf() + i * e), n && dt.updateOffset(o, r || s));
|
|
15061
15068
|
}
|
|
15062
|
-
var
|
|
15069
|
+
var vR = ca(1, "add"), ZR = ca(-1, "subtract");
|
|
15063
15070
|
function da(o) {
|
|
15064
15071
|
return typeof o == "string" || o instanceof String;
|
|
15065
15072
|
}
|
|
15066
15073
|
function QR(o) {
|
|
15067
|
-
return Je(o) ||
|
|
15074
|
+
return Je(o) || Zo(o) || da(o) || Sn(o) || KR(o) || HR(o) || o === null || o === void 0;
|
|
15068
15075
|
}
|
|
15069
15076
|
function HR(o) {
|
|
15070
15077
|
var t = $n(o) && !Qs(o), e = !1, n = [
|
|
@@ -15191,7 +15198,7 @@ function tg(o, t, e) {
|
|
|
15191
15198
|
default:
|
|
15192
15199
|
r = this - n;
|
|
15193
15200
|
}
|
|
15194
|
-
return e ? r :
|
|
15201
|
+
return e ? r : Ze(r);
|
|
15195
15202
|
}
|
|
15196
15203
|
function ri(o, t) {
|
|
15197
15204
|
if (o.date() < t.date())
|
|
@@ -15607,20 +15614,20 @@ function wg() {
|
|
|
15607
15614
|
var o = this.localeData()._week;
|
|
15608
15615
|
return On(this.year(), o.dow, o.doy);
|
|
15609
15616
|
}
|
|
15610
|
-
function
|
|
15617
|
+
function vg() {
|
|
15611
15618
|
var o = this.localeData()._week;
|
|
15612
15619
|
return On(this.weekYear(), o.dow, o.doy);
|
|
15613
15620
|
}
|
|
15614
15621
|
function Ia(o, t, e, n, i) {
|
|
15615
15622
|
var r;
|
|
15616
|
-
return o == null ? Uo(this, n, i).year : (r = On(o, n, i), t > r && (t = r),
|
|
15623
|
+
return o == null ? Uo(this, n, i).year : (r = On(o, n, i), t > r && (t = r), Zg.call(this, o, t, e, n, i));
|
|
15617
15624
|
}
|
|
15618
|
-
function
|
|
15625
|
+
function Zg(o, t, e, n, i) {
|
|
15619
15626
|
var r = zl(o, t, e, n, i), s = Yo(r.year, 0, r.dayOfYear);
|
|
15620
15627
|
return this.year(s.getUTCFullYear()), this.month(s.getUTCMonth()), this.date(s.getUTCDate()), this;
|
|
15621
15628
|
}
|
|
15622
15629
|
Pt("Q", 0, "Qo", "quarter");
|
|
15623
|
-
ht("Q",
|
|
15630
|
+
ht("Q", Zl);
|
|
15624
15631
|
ee("Q", function(o, t) {
|
|
15625
15632
|
t[mn] = (Ht(o) - 1) * 3;
|
|
15626
15633
|
});
|
|
@@ -15685,7 +15692,7 @@ Pt(0, ["SSSSSSSS", 8], 0, function() {
|
|
|
15685
15692
|
Pt(0, ["SSSSSSSSS", 9], 0, function() {
|
|
15686
15693
|
return this.millisecond() * 1e6;
|
|
15687
15694
|
});
|
|
15688
|
-
ht("S", Ni,
|
|
15695
|
+
ht("S", Ni, Zl);
|
|
15689
15696
|
ht("SS", Ni, we);
|
|
15690
15697
|
ht("SSS", Ni, Ql);
|
|
15691
15698
|
var Un, La;
|
|
@@ -15706,7 +15713,7 @@ function Gg() {
|
|
|
15706
15713
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
15707
15714
|
}
|
|
15708
15715
|
var et = Qo.prototype;
|
|
15709
|
-
et.add =
|
|
15716
|
+
et.add = vR;
|
|
15710
15717
|
et.calendar = BR;
|
|
15711
15718
|
et.clone = GR;
|
|
15712
15719
|
et.diff = tg;
|
|
@@ -15733,7 +15740,7 @@ et.min = pR;
|
|
|
15733
15740
|
et.parsingFlags = Ig;
|
|
15734
15741
|
et.set = ih;
|
|
15735
15742
|
et.startOf = cg;
|
|
15736
|
-
et.subtract =
|
|
15743
|
+
et.subtract = ZR;
|
|
15737
15744
|
et.toArray = gg;
|
|
15738
15745
|
et.toObject = fg;
|
|
15739
15746
|
et.toDate = Rg;
|
|
@@ -15761,7 +15768,7 @@ et.daysInMonth = Rh;
|
|
|
15761
15768
|
et.week = et.weeks = Ph;
|
|
15762
15769
|
et.isoWeek = et.isoWeeks = Eh;
|
|
15763
15770
|
et.weeksInYear = wg;
|
|
15764
|
-
et.weeksInWeekYear =
|
|
15771
|
+
et.weeksInWeekYear = vg;
|
|
15765
15772
|
et.isoWeeksInYear = Yg;
|
|
15766
15773
|
et.isoWeeksInISOWeekYear = Ug;
|
|
15767
15774
|
et.date = ma;
|
|
@@ -15817,7 +15824,7 @@ function Pa(o) {
|
|
|
15817
15824
|
var jt = As.prototype;
|
|
15818
15825
|
jt.calendar = Vd;
|
|
15819
15826
|
jt.longDateFormat = wd;
|
|
15820
|
-
jt.invalidDate =
|
|
15827
|
+
jt.invalidDate = Zd;
|
|
15821
15828
|
jt.ordinal = Kd;
|
|
15822
15829
|
jt.preparse = Pa;
|
|
15823
15830
|
jt.postformat = Pa;
|
|
@@ -15843,8 +15850,8 @@ jt.weekdaysMin = bh;
|
|
|
15843
15850
|
jt.weekdaysShort = xh;
|
|
15844
15851
|
jt.weekdaysParse = Vh;
|
|
15845
15852
|
jt.weekdaysRegex = wh;
|
|
15846
|
-
jt.weekdaysShortRegex =
|
|
15847
|
-
jt.weekdaysMinRegex =
|
|
15853
|
+
jt.weekdaysShortRegex = vh;
|
|
15854
|
+
jt.weekdaysMinRegex = Zh;
|
|
15848
15855
|
jt.isPM = Hh;
|
|
15849
15856
|
jt.meridiem = _h;
|
|
15850
15857
|
function Mi(o, t, e, n) {
|
|
@@ -15936,7 +15943,7 @@ function Hr(o) {
|
|
|
15936
15943
|
}
|
|
15937
15944
|
function sf() {
|
|
15938
15945
|
var o = this._milliseconds, t = this._days, e = this._months, n = this._data, i, r, s, l, a;
|
|
15939
|
-
return o >= 0 && t >= 0 && e >= 0 || o <= 0 && t <= 0 && e <= 0 || (o += Hr(Fs(e) + t) * 864e5, t = 0, e = 0), n.milliseconds = o % 1e3, i =
|
|
15946
|
+
return o >= 0 && t >= 0 && e >= 0 || o <= 0 && t <= 0 && e <= 0 || (o += Hr(Fs(e) + t) * 864e5, t = 0, e = 0), n.milliseconds = o % 1e3, i = Ze(o / 1e3), n.seconds = i % 60, r = Ze(i / 60), n.minutes = r % 60, s = Ze(r / 60), n.hours = s % 24, t += Ze(s / 24), a = Ze(Ma(t)), e += a, t -= Hr(Fs(a)), l = Ze(e / 12), e %= 12, n.days = t, n.months = e, n.years = l, this;
|
|
15940
15947
|
}
|
|
15941
15948
|
function Ma(o) {
|
|
15942
15949
|
return o * 4800 / 146097;
|
|
@@ -15995,7 +16002,7 @@ function jn(o) {
|
|
|
15995
16002
|
}
|
|
15996
16003
|
var If = jn("milliseconds"), mf = jn("seconds"), Lf = jn("minutes"), Pf = jn("hours"), Ef = jn("days"), Of = jn("months"), Mf = jn("years");
|
|
15997
16004
|
function Sf() {
|
|
15998
|
-
return
|
|
16005
|
+
return Ze(this.days() / 7);
|
|
15999
16006
|
}
|
|
16000
16007
|
var In = Math.round, lo = {
|
|
16001
16008
|
ss: 44,
|
|
@@ -16040,7 +16047,7 @@ function wi() {
|
|
|
16040
16047
|
if (!this.isValid())
|
|
16041
16048
|
return this.localeData().invalidDate();
|
|
16042
16049
|
var o = ts(this._milliseconds) / 1e3, t = ts(this._days), e = ts(this._months), n, i, r, s, l = this.asSeconds(), a, c, u, h;
|
|
16043
|
-
return l ? (n =
|
|
16050
|
+
return l ? (n = Ze(o / 60), i = Ze(n / 60), o %= 60, n %= 60, r = Ze(e / 12), e %= 12, s = o ? o.toFixed(3).replace(/\.?0+$/, "") : "", a = l < 0 ? "-" : "", c = eo(this._months) !== eo(l) ? "-" : "", u = eo(this._days) !== eo(l) ? "-" : "", h = eo(this._milliseconds) !== eo(l) ? "-" : "", a + "P" + (r ? c + r + "Y" : "") + (e ? c + e + "M" : "") + (t ? u + t + "D" : "") + (i || n || o ? "T" : "") + (i ? h + i + "H" : "") + (n ? h + n + "M" : "") + (o ? h + s + "S" : "")) : "P0D";
|
|
16044
16051
|
}
|
|
16045
16052
|
var Jt = Yi.prototype;
|
|
16046
16053
|
Jt.isValid = ER;
|
|
@@ -16099,7 +16106,7 @@ dt.now = LR;
|
|
|
16099
16106
|
dt.utc = hn;
|
|
16100
16107
|
dt.unix = kg;
|
|
16101
16108
|
dt.months = $g;
|
|
16102
|
-
dt.isDate =
|
|
16109
|
+
dt.isDate = Zo;
|
|
16103
16110
|
dt.locale = wn;
|
|
16104
16111
|
dt.invalid = Fi;
|
|
16105
16112
|
dt.duration = $e;
|
|
@@ -16251,13 +16258,13 @@ class Xs {
|
|
|
16251
16258
|
type: P.CONTROL,
|
|
16252
16259
|
control: y.control,
|
|
16253
16260
|
originControlId: u
|
|
16254
|
-
},
|
|
16261
|
+
}, v = E ? R.PRETEXTFIX : R.PREFIX, H = E ? R.POSTTEXTFIX : R.POSTFIX, Y = E ? y.control?.preTextFix || this.options.control.preTextFix : y.control?.prefix || this.options.control.prefix;
|
|
16255
16262
|
for (let G = 0; G < Y.length; G++) {
|
|
16256
16263
|
const A = {
|
|
16257
16264
|
...Q,
|
|
16258
16265
|
color: U,
|
|
16259
16266
|
value: Y[G],
|
|
16260
|
-
controlComponent:
|
|
16267
|
+
controlComponent: v
|
|
16261
16268
|
};
|
|
16262
16269
|
w(A);
|
|
16263
16270
|
}
|
|
@@ -16361,7 +16368,7 @@ class Xs {
|
|
|
16361
16368
|
keydown(t) {
|
|
16362
16369
|
if (this.control.getIsDisabledControl())
|
|
16363
16370
|
return null;
|
|
16364
|
-
const e = this.control.getElementList(), n = this.control.getRange(), i = (Q) => !!(Q?.type === P.IMAGE && Q.controlId && Q.controlComponent === R.VALUE), r = (Q,
|
|
16371
|
+
const e = this.control.getElementList(), n = this.control.getRange(), i = (Q) => !!(Q?.type === P.IMAGE && Q.controlId && Q.controlComponent === R.VALUE), r = (Q, v) => {
|
|
16365
16372
|
const H = e[Q];
|
|
16366
16373
|
if (!i(H))
|
|
16367
16374
|
return null;
|
|
@@ -16370,7 +16377,7 @@ class Xs {
|
|
|
16370
16377
|
const A = e.findIndex((B) => B.controlId === Y && (B.originControlId || null) === $ && (B.controlComponent === R.PREFIX || B.controlComponent === R.PRE_TEXT));
|
|
16371
16378
|
A >= 0 && this.control.addPlaceholder(A);
|
|
16372
16379
|
}
|
|
16373
|
-
return Math.max(0,
|
|
16380
|
+
return Math.max(0, v);
|
|
16374
16381
|
};
|
|
16375
16382
|
this.control.shrinkBoundary();
|
|
16376
16383
|
const { startIndex: s, endIndex: l } = n, a = e[s], c = e[l], u = this.control.getDraw(), h = e[l + 1];
|
|
@@ -16383,18 +16390,18 @@ class Xs {
|
|
|
16383
16390
|
if (t.key === pt.Delete) {
|
|
16384
16391
|
const Q = i(a) ? s : i(h) ? l + 1 : -1;
|
|
16385
16392
|
if (Q >= 0) {
|
|
16386
|
-
const
|
|
16387
|
-
return r(Q,
|
|
16393
|
+
const v = Q === s ? Q : Q - 1;
|
|
16394
|
+
return r(Q, v);
|
|
16388
16395
|
}
|
|
16389
16396
|
}
|
|
16390
16397
|
}
|
|
16391
16398
|
const d = this.options.mode === K.FORM, f = this.element.controlId || a.controlId, g = this.element.originControlId || a.originControlId || null, p = (Q) => {
|
|
16392
16399
|
if (!Q)
|
|
16393
16400
|
return null;
|
|
16394
|
-
const
|
|
16401
|
+
const v = /* @__PURE__ */ new Set();
|
|
16395
16402
|
let H = Q, Y = null;
|
|
16396
|
-
for (; H && !
|
|
16397
|
-
|
|
16403
|
+
for (; H && !v.has(H); ) {
|
|
16404
|
+
v.add(H);
|
|
16398
16405
|
let $;
|
|
16399
16406
|
for (let G = 0; G < e.length; G++) {
|
|
16400
16407
|
const A = e[G];
|
|
@@ -16407,11 +16414,11 @@ class Xs {
|
|
|
16407
16414
|
}
|
|
16408
16415
|
return Y;
|
|
16409
16416
|
}, I = p(g), m = !!I, L = a.controlId === f && (a.originControlId || null) === g, T = a.controlComponent === R.VALUE, O = (Q) => {
|
|
16410
|
-
for (let
|
|
16411
|
-
const H = e[
|
|
16417
|
+
for (let v = s - 1; v >= 0; v--) {
|
|
16418
|
+
const H = e[v];
|
|
16412
16419
|
if (H.controlId === Q && !H.originControlId) {
|
|
16413
16420
|
if (H.controlComponent === R.VALUE || H.controlComponent === R.PLACEHOLDER)
|
|
16414
|
-
return
|
|
16421
|
+
return v;
|
|
16415
16422
|
if (H.controlComponent === R.PREFIX || H.controlComponent === R.PRE_TEXT || H.controlComponent === R.PRETEXTFIX || H.controlComponent === R.PRETEXTFIX_TEXT)
|
|
16416
16423
|
break;
|
|
16417
16424
|
}
|
|
@@ -16419,25 +16426,25 @@ class Xs {
|
|
|
16419
16426
|
break;
|
|
16420
16427
|
}
|
|
16421
16428
|
return -1;
|
|
16422
|
-
}, S = (Q,
|
|
16429
|
+
}, S = (Q, v) => {
|
|
16423
16430
|
for (let H = Q; H >= 0; H--) {
|
|
16424
16431
|
const Y = e[H];
|
|
16425
|
-
if (Y.controlId ===
|
|
16432
|
+
if (Y.controlId === v && !Y.originControlId && (Y.controlComponent === R.VALUE || Y.controlComponent === R.PLACEHOLDER || Y.controlComponent === R.PREFIX || Y.controlComponent === R.PRE_TEXT || Y.controlComponent === R.PRETEXTFIX || Y.controlComponent === R.PRETEXTFIX_TEXT))
|
|
16426
16433
|
return H;
|
|
16427
|
-
if (Y.controlId && Y.controlId !==
|
|
16434
|
+
if (Y.controlId && Y.controlId !== v && Y.originControlId !== v)
|
|
16428
16435
|
break;
|
|
16429
16436
|
}
|
|
16430
16437
|
for (let H = Q + 1; H < e.length; H++) {
|
|
16431
16438
|
const Y = e[H];
|
|
16432
|
-
if (Y.controlId ===
|
|
16439
|
+
if (Y.controlId === v && !Y.originControlId && (Y.controlComponent === R.VALUE || Y.controlComponent === R.PLACEHOLDER || Y.controlComponent === R.POSTFIX || Y.controlComponent === R.POST_TEXT || Y.controlComponent === R.POSTTEXTFIX || Y.controlComponent === R.POSTTEXTFIX_TEXT))
|
|
16433
16440
|
return H;
|
|
16434
|
-
if (Y.controlId && Y.controlId !==
|
|
16441
|
+
if (Y.controlId && Y.controlId !== v && Y.originControlId !== v)
|
|
16435
16442
|
break;
|
|
16436
16443
|
}
|
|
16437
16444
|
return Q;
|
|
16438
16445
|
}, F = m && L && (a.controlComponent === R.PREFIX || a.controlComponent === R.PRE_TEXT || a.controlComponent === R.PRETEXTFIX || a.controlComponent === R.PRETEXTFIX_TEXT || a.controlComponent === R.POSTFIX || a.controlComponent === R.POST_TEXT || a.controlComponent === R.POSTTEXTFIX || a.controlComponent === R.POSTTEXTFIX_TEXT || a.controlComponent === R.PLACEHOLDER || a.controlComponent === R.TEXTFIXLABEL), N = e[l + 1], w = !!N?.originControlId && !!N?.controlId && N.originControlId !== N.controlId && (N.controlComponent === R.PREFIX || N.controlComponent === R.PRE_TEXT || N.controlComponent === R.PRETEXTFIX || N.controlComponent === R.PRETEXTFIX_TEXT || N.controlComponent === R.PLACEHOLDER || N.controlComponent === R.TEXTFIXLABEL), V = !!N?.originControlId && !!N?.controlId && N.originControlId !== N.controlId && (N.controlComponent === R.PREFIX || N.controlComponent === R.PRE_TEXT || N.controlComponent === R.PRETEXTFIX || N.controlComponent === R.PRETEXTFIX_TEXT || N.controlComponent === R.POSTFIX || N.controlComponent === R.POST_TEXT || N.controlComponent === R.POSTTEXTFIX || N.controlComponent === R.POSTTEXTFIX_TEXT || N.controlComponent === R.PLACEHOLDER || N.controlComponent === R.TEXTFIXLABEL), C = (Q) => this.options.mode === K.FORM ? s : this.control.removeControl(Q), y = a.controlComponent === R.VALUE && !a.originControlId && !!N?.originControlId && !!f && p(N.originControlId) === f, W = (Q) => !!Q && Q.controlId === a.controlId && (Q.originControlId || null) === (a.originControlId || null), X = (Q) => Q?.controlComponent === R.POSTFIX || Q?.controlComponent === R.POST_TEXT || Q?.controlComponent === R.POSTTEXTFIX || Q?.controlComponent === R.POSTTEXTFIX_TEXT, D = () => {
|
|
16439
|
-
const Q = a.controlId,
|
|
16440
|
-
return u.spliceElementList(e, s, 1), e.some((Y) => Y.controlId === Q && (Y.originControlId || null) ===
|
|
16446
|
+
const Q = a.controlId, v = a.originControlId || null;
|
|
16447
|
+
return u.spliceElementList(e, s, 1), e.some((Y) => Y.controlId === Q && (Y.originControlId || null) === v && Y.controlComponent === R.VALUE) || this.control.addPlaceholder(s - 1), Math.max(s - 1, 0);
|
|
16441
16448
|
}, E = a.controlComponent === R.VALUE && !!a.originControlId && W(N) && X(N), U = !!f && !this.control.getIsExistValueByElementListIndex(e, s), x = () => {
|
|
16442
16449
|
if (a.controlComponent !== R.VALUE)
|
|
16443
16450
|
return null;
|
|
@@ -16451,14 +16458,14 @@ class Xs {
|
|
|
16451
16458
|
break;
|
|
16452
16459
|
}
|
|
16453
16460
|
}
|
|
16454
|
-
const
|
|
16455
|
-
if (!
|
|
16461
|
+
const v = e[Q];
|
|
16462
|
+
if (!v || v.strikeout)
|
|
16456
16463
|
return null;
|
|
16457
|
-
|
|
16464
|
+
v.strikeout = !0, v.deletePerson = "SWJ", v.deleteTime = dt(/* @__PURE__ */ new Date()).format("YYYY-MM-DD HH:mm:ss");
|
|
16458
16465
|
let H = Math.max(Q - 1, 0);
|
|
16459
16466
|
for (let Y = Q - 1; Y >= 0; Y--) {
|
|
16460
16467
|
const $ = e[Y];
|
|
16461
|
-
if (!($.controlId ===
|
|
16468
|
+
if (!($.controlId === v.controlId && ($.originControlId || null) === (v.originControlId || null))) {
|
|
16462
16469
|
H = Y;
|
|
16463
16470
|
break;
|
|
16464
16471
|
}
|
|
@@ -16487,16 +16494,16 @@ class Xs {
|
|
|
16487
16494
|
if (s === l && U && (a.controlComponent === R.PLACEHOLDER || a.controlComponent === R.POSTFIX || a.controlComponent === R.POST_TEXT || a.controlComponent === R.POSTTEXTFIX || a.controlComponent === R.POSTTEXTFIX_TEXT))
|
|
16488
16495
|
return s;
|
|
16489
16496
|
if (d && s === l && I && !L && (a.controlComponent === R.POSTFIX || a.controlComponent === R.POST_TEXT || a.controlComponent === R.POSTTEXTFIX || a.controlComponent === R.POSTTEXTFIX_TEXT)) {
|
|
16490
|
-
const
|
|
16491
|
-
return
|
|
16497
|
+
const v = O(I);
|
|
16498
|
+
return v >= 0 ? v : s;
|
|
16492
16499
|
}
|
|
16493
16500
|
if (s === l && F && !(d && a.controlComponent === R.VALUE && !a.originControlId))
|
|
16494
16501
|
return C(s);
|
|
16495
16502
|
if (this.options.mode === K.FORM && this.options.modeRule.form.deleteTraceEnabled && (!m || T)) {
|
|
16496
16503
|
if (s === l && a.controlComponent === R.VALUE) {
|
|
16497
|
-
const
|
|
16498
|
-
if (
|
|
16499
|
-
return
|
|
16504
|
+
const v = x();
|
|
16505
|
+
if (v !== null)
|
|
16506
|
+
return v;
|
|
16500
16507
|
}
|
|
16501
16508
|
return a.controlComponent === R.PREFIX || a.controlComponent === R.PRE_TEXT || a.controlComponent === R.PLACEHOLDER ? s : this.strikeout();
|
|
16502
16509
|
} else {
|
|
@@ -16504,11 +16511,11 @@ class Xs {
|
|
|
16504
16511
|
return s;
|
|
16505
16512
|
if (s !== l) {
|
|
16506
16513
|
u.spliceElementList(e, s + 1, l - s);
|
|
16507
|
-
const
|
|
16508
|
-
return (
|
|
16514
|
+
const v = e[s + 1];
|
|
16515
|
+
return (v?.controlComponent === R.POSTFIX || v?.controlComponent === R.POST_TEXT || v?.controlComponent === R.POSTTEXTFIX || v?.controlComponent === R.POSTTEXTFIX_TEXT) && this.control.addPlaceholder(s), s === 0 && e[0].type === P.SPLIT_TAG ? u.fixPosition(!0) ?? s : s;
|
|
16509
16516
|
} else {
|
|
16510
|
-
const
|
|
16511
|
-
return !a.originControlId &&
|
|
16517
|
+
const v = e[s - 1], H = e[s + 1];
|
|
16518
|
+
return !a.originControlId && v?.controlId === a.controlId && v?.originControlId === a.originControlId && v?.controlComponent === R.VALUE && (a.controlComponent === R.POSTFIX || a.controlComponent === R.POST_TEXT || a.controlComponent === R.POSTTEXTFIX || a.controlComponent === R.POSTTEXTFIX_TEXT) && this.options.mode !== K.FORM ? (u.spliceElementList(e, s - 1, 1), this.getValue().length || this.control.addPlaceholder(s - 2), s - 2) : X(H) ? H.originControlId ? E ? D() : y ? (u.spliceElementList(e, s, 1), this.getValue().length || this.control.addPlaceholder(s - 1), S(Math.max(s - 1, 0), a.controlId)) : C(s) : (u.spliceElementList(e, s, 1), this.control.addPlaceholder(s - 1), S(Math.max(s - 1, 0), a.controlId)) : (u.spliceElementList(e, s, 1), s === 1 && e[0].type === P.SPLIT_TAG || s === 0 ? u.fixPosition(!0) ?? s - 1 : S(Math.max(s - 1, 0), a.controlId));
|
|
16512
16519
|
}
|
|
16513
16520
|
}
|
|
16514
16521
|
} else if (t.key === pt.Delete) {
|
|
@@ -16522,8 +16529,8 @@ class Xs {
|
|
|
16522
16529
|
}
|
|
16523
16530
|
return C(l + 1);
|
|
16524
16531
|
}
|
|
16525
|
-
const Q = e[l + 1],
|
|
16526
|
-
if (this.options.mode === K.FORM && this.options.modeRule.form.deleteTraceEnabled && (!
|
|
16532
|
+
const Q = e[l + 1], v = !!a.originControlId;
|
|
16533
|
+
if (this.options.mode === K.FORM && this.options.modeRule.form.deleteTraceEnabled && (!v || a.controlComponent === R.VALUE))
|
|
16527
16534
|
return c.controlComponent === R.POSTFIX || c.controlComponent === R.POST_TEXT || c.controlComponent === R.POSTTEXTFIX || c.controlComponent === R.POSTTEXTFIX_TEXT || a.controlComponent === R.PLACEHOLDER ? l : Q?.controlComponent === R.POSTFIX || Q?.controlComponent === R.POST_TEXT || Q?.controlComponent === R.POSTTEXTFIX || Q?.controlComponent === R.POSTTEXTFIX_TEXT ? Q.originControlId ? y ? (u.spliceElementList(e, s + 1, 1), this.getValue().length || this.control.addPlaceholder(s), s) : C(s + 1) : (u.spliceElementList(e, s + 1, 1), this.control.addPlaceholder(s), s) : this.strikeout();
|
|
16528
16535
|
{
|
|
16529
16536
|
const Y = e[l + 1];
|
|
@@ -16700,9 +16707,9 @@ class Da {
|
|
|
16700
16707
|
const X = document.createElement("li"), D = document.createElement("span");
|
|
16701
16708
|
D.innerText = y, X.append(D);
|
|
16702
16709
|
const E = document.createElement("ol"), U = W === 0, x = W === 1, Q = U ? 24 : 60;
|
|
16703
|
-
for (let
|
|
16710
|
+
for (let v = 0; v < Q; v++) {
|
|
16704
16711
|
const H = document.createElement("li");
|
|
16705
|
-
H.innerText = `${String(
|
|
16712
|
+
H.innerText = `${String(v).padStart(2, "0")}`, H.setAttribute("data-id", `${v}`), E.append(H);
|
|
16706
16713
|
}
|
|
16707
16714
|
U ? O = E : x ? S = E : M = E, X.append(E), T.append(X);
|
|
16708
16715
|
});
|
|
@@ -17560,7 +17567,7 @@ class zn {
|
|
|
17560
17567
|
splitButtonBusinessElements(t) {
|
|
17561
17568
|
const e = [];
|
|
17562
17569
|
return t.forEach((n) => {
|
|
17563
|
-
Ce(n) ||
|
|
17570
|
+
Ce(n) || vt(n.value === _ ? `
|
|
17564
17571
|
` : n.value || "").forEach((i) => {
|
|
17565
17572
|
e.push(this.toButtonBusinessElement({
|
|
17566
17573
|
...n,
|
|
@@ -17822,7 +17829,7 @@ class zn {
|
|
|
17822
17829
|
i.length && i.sort((u, h) => h.index - u.index).forEach((u) => {
|
|
17823
17830
|
n.splice(u.index, 1);
|
|
17824
17831
|
});
|
|
17825
|
-
const c =
|
|
17832
|
+
const c = vt(e);
|
|
17826
17833
|
!c.length || l && !i.length || a < 0 || c.forEach((u, h) => {
|
|
17827
17834
|
const d = {
|
|
17828
17835
|
...ie(r, [
|
|
@@ -19467,7 +19474,7 @@ class Wf {
|
|
|
19467
19474
|
}
|
|
19468
19475
|
if (c)
|
|
19469
19476
|
return;
|
|
19470
|
-
const h =
|
|
19477
|
+
const h = vt(s), d = ie(i, Me), f = l + 1;
|
|
19471
19478
|
for (let g = 0; g < h.length; g++) {
|
|
19472
19479
|
const p = h[g], I = {
|
|
19473
19480
|
...d,
|
|
@@ -20288,10 +20295,10 @@ function _r(o, t) {
|
|
|
20288
20295
|
}
|
|
20289
20296
|
return l.some((c) => r !== "all" && c.source !== r ? !1 : a.test(c.value));
|
|
20290
20297
|
}
|
|
20291
|
-
function
|
|
20298
|
+
function vf(o, t, e = "and") {
|
|
20292
20299
|
return o?.length ? e === "or" ? o.some((n) => _r(n, t)) : o.every((n) => _r(n, t)) : !0;
|
|
20293
20300
|
}
|
|
20294
|
-
class
|
|
20301
|
+
class Zf {
|
|
20295
20302
|
draw;
|
|
20296
20303
|
options;
|
|
20297
20304
|
constructor(t) {
|
|
@@ -20864,8 +20871,8 @@ class Af {
|
|
|
20864
20871
|
} else {
|
|
20865
20872
|
e.font = `${U}px "Microsoft YaHei", sans-serif`;
|
|
20866
20873
|
const Q = e.measureText(D).width;
|
|
20867
|
-
let
|
|
20868
|
-
return W.length > 0 && (e.font = `${u}px "Microsoft YaHei", sans-serif`, H = W.join(","),
|
|
20874
|
+
let v = 0, H = "";
|
|
20875
|
+
return W.length > 0 && (e.font = `${u}px "Microsoft YaHei", sans-serif`, H = W.join(","), v = e.measureText(H).width + g / 2, e.font = `${U}px "Microsoft YaHei", sans-serif`), V === "right" ? (x = N - Q, W.length > 0 && (e.font = `${u}px "Microsoft YaHei", sans-serif`, e.fillText(H, x - v - g / 2, w - U * 0.4), e.font = `${U}px "Microsoft YaHei", sans-serif`), e.textAlign = "left", e.fillStyle = this.options.defaultColor, e.fillText(D, x, w), N - Q - v - h) : (e.textAlign = "left", e.fillStyle = this.options.defaultColor, e.fillText(D, x, w), x += Q, W.length > 0 && (e.font = `${u}px "Microsoft YaHei", sans-serif`, e.fillText(H, x + g / 2, w - U * 0.4), x += v), x + h);
|
|
20869
20876
|
}
|
|
20870
20877
|
}, S = (M, F, N, w, V, C) => {
|
|
20871
20878
|
let y = w;
|
|
@@ -21555,7 +21562,7 @@ function Gf(o) {
|
|
|
21555
21562
|
);
|
|
21556
21563
|
}
|
|
21557
21564
|
}
|
|
21558
|
-
const Na = '(function(){"use strict";var H=(D=>(D.HALF="half",D.ONE_THIRD="one-third",D.QUARTER="quarter",D))(H||{}),K=(D=>(D.ARABIC="arabic",D.CHINESE="chinese",D))(K||{});const y="";H.HALF+"",1/2,H.ONE_THIRD+"",1/3,H.QUARTER+"",1/4;const uD=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/,FD=/[#*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])?))?)/g,tD=new RegExp(`${FD.source}|${uD.source}`,"g");function g(D){if(typeof structuredClone=="function")return structuredClone(D);if(!D||typeof D!="object")return D;let r={};return Array.isArray(D)?r=D.map(i=>g(i)):Object.keys(D).forEach(i=>{r[i]=g(D[i])}),r}function eD(D){const r=[];if(Intl.Segmenter){const T=new Intl.Segmenter().segment(D);for(const{segment:d}of T)r.push(d)}else{const i=new Map;for(const d of D.matchAll(tD))i.set(d.index,d[0]);let T=0;for(;T<D.length;){const d=i.get(T);d?(r.push(d),T+=d.length):(r.push(D[T]),T++)}}return r}function _(D,r){const i={};for(const T in D)r.includes(T)&&(i[T]=D[T]);return i}function ED(D,r){return D.length!==r.length?!1:!D.some(i=>!r.includes(i))}var t=(D=>(D.TEXT="text",D.TEXTFIELD="TextField",D.BUTTON="button",D.IMAGE="image",D.TABLE="table",D.HYPERLINK="hyperlink",D.SUPERSCRIPT="superscript",D.SUBSCRIPT="subscript",D.SEPARATOR="separator",D.PAGE_BREAK="pageBreak",D.CONTROL="control",D.AREA="area",D.CHECKBOX="checkbox",D.RADIO="radio",D.LATEX="latex",D.TAB="tab",D.DATE="date",D.BLOCK="block",D.TITLE="title",D.LIST="list",D.SPLIT_TAG="splitTag",D.LABEL="label",D.MENSTRUAL_HISTORY="menstrualHistory",D.FETAL_HEART_POSITION="fetalHeartPosition",D.TOOTH_POSITION="toothPosition",D.SPECIAL_SYMBOLS="specialSymbols",D.MACRO="macro",D.CUSTOM_MACRO="customMacro",D.REUSABLE_ITEM="reusableItem",D.SUB_TEMPLATE="subTemplate",D))(t||{});const N=["rowFlex","vertical","rowMargin"],CD=["type","font","size","bold","color","italic","highlight","underline","strikeout","rowFlex","vertical","rowMargin","dashArray","trList","tdPadding","tableEditable","tableToolDisabled","borderType","borderColor","borderWidth","borderExternalWidth","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","deletePerson","newElEditPerson","deleteTime","newElEditTime","dictCode","macroConfig","menstrualData","menstrualHistoryId","fetalHeartData","fetalHeartPositionId","toothPositionData","toothPositionId","reusableItemConfig","templateId","subTemplateContent","subTemplateRelation","subTemplateConditions","subTemplateExpanded"],oD=["conceptId","extension","externalId","verticalAlign","backgroundColor","borderTypes","slashTypes","disabled","deletable"],Y=["font","size","bold","highlight","italic","strikeout","deletePerson","newElEditPerson","deleteTime","color","newElEditTime"];t.TEXT,t.HYPERLINK,t.SUBSCRIPT,t.SUPERSCRIPT,t.CONTROL,t.DATE,t.IMAGE,t.LATEX,t.BLOCK,t.PAGE_BREAK,t.SEPARATOR,t.TABLE,t.TITLE,t.LIST;var G=(D=>(D.UL="ul",D.OL="ol",D))(G||{}),k=(D=>(D.DISC="disc",D.CIRCLE="circle",D.SQUARE="square",D.CHECKBOX="checkbox",D))(k||{}),m=(D=>(D.DISC="disc",D.CIRCLE="circle",D.SQUARE="square",D.DECIMAL="decimal",D.CHECKBOX="checkbox",D))(m||{});k.DISC+"",k.CIRCLE+"",k.SQUARE+"",k.CHECKBOX+"",G.OL+"",G.UL+"",m.DISC+"",m.CIRCLE+"",m.SQUARE+"",m.DECIMAL+"",m.CHECKBOX+"";var p=(D=>(D.FIRST="first",D.SECOND="second",D.THIRD="third",D.FOURTH="fourth",D.FIFTH="fifth",D.SIXTH="sixth",D))(p||{});p.FIRST+"",p.SECOND+"",p.THIRD+"",p.FOURTH+"",p.FIFTH+"",p.SIXTH+"",p.FIRST+"",p.SECOND+"",p.THIRD+"",p.FOURTH+"",p.FIFTH+"",p.SIXTH+"",p.FIRST,p.SECOND,p.THIRD,p.FOURTH,p.FIFTH,p.SIXTH;var h=(D=>(D.TEXT="text",D.SELECT="select",D.CHECKBOX="checkbox",D.RADIO="radio",D.DATE="date",D.NUMBER="number",D.TEXTFIELD="TextField",D.BUTTON="button",D.MENSTRUAL_HISTORY="menstrualHistory",D))(h||{}),F=(D=>(D.PREFIX="prefix",D.POSTFIX="postfix",D.PRE_TEXT="preText",D.PRETEXTFIX="preTextFix",D.PRETEXTFIX_TEXT="preTextFixText",D.POSTTEXTFIX="postTextFix",D.POSTTEXTFIX_TEXT="postTextFixText",D.POST_TEXT="postText",D.PLACEHOLDER="placeholder",D.TEXTFIXLABEL="textFixLabel",D.VALUE="value",D.DELETEPERSON="deletePerson",D.CHECKBOX="checkbox",D.RADIO="radio",D.UNDERLINE="underline",D))(F||{}),q=(D=>(D.LEFT="left",D.CENTER="center",D.RIGHT="right",D.ALIGNMENT="alignment",D.JUSTIFY="justify",D))(q||{}),W=(D=>(D.CONTAIN="contain",D.COVER="cover",D))(W||{}),Z=(D=>(D.REPEAT="repeat",D.NO_REPEAT="no-repeat",D.REPEAT_X="repeat-x",D.REPEAT_Y="repeat-y",D))(Z||{});W.COVER,Z.NO_REPEAT;var z=(D=>(D.TOP="top",D.MIDDLE="middle",D.BOTTOM="bottom",D))(z||{});z.BOTTOM,H.HALF,H.HALF,q.CENTER,K.ARABIC,z.BOTTOM;var J=(D=>(D.TEXT="text",D.IMAGE="image",D))(J||{});J.TEXT,K.ARABIC;var $=(D=>(D.PAGE="page",D.CONTINUITY="continuity",D))($||{});$.CONTINUITY;const nD=[h.SELECT,h.DATE,h.CHECKBOX,h.RADIO];function rD(D,r){return D&&nD.includes(D)?[""]:eD(r)}F.PREFIX,F.POSTFIX,F.PRE_TEXT,F.POST_TEXT,F.PRETEXTFIX,F.PRETEXTFIX_TEXT,F.POSTTEXTFIX,F.POSTTEXTFIX_TEXT,F.PLACEHOLDER,F.TEXTFIXLABEL,F.CHECKBOX,F.RADIO,F.UNDERLINE;function lD(D){return D?.buttonValueLayout===!0}function iD(D,r){const i=Object.keys(D),T=Object.keys(r);if(i.length!==T.length)return!1;for(let d=0;d<i.length;d++){const f=i[d];if(f!=="value"&&!(f==="groupIds"&&Array.isArray(D[f])&&Array.isArray(r[f])&&ED(D[f],r[f]))&&D[f]!==r[f])return!1}return!0}function U(D,r={}){const{extraPickAttrs:i}=r,T=[...CD];i&&T.push(...i);const d={value:D?.value===y?`\n`:D?.value};return D&&T.forEach(f=>{const s=D[f];s!==void 0&&(d[f]=s)}),d}function P(D,r={}){const{extraPickAttrs:i,isClassifyArea:T=!1,isClone:d=!0,editorOptions:f}=r,s=(d?g(D):D).filter(u=>u.type!==t.SPLIT_TAG),M=[];let E=0;const sD=u=>u===F.PREFIX||u===F.PRETEXTFIX||u===F.PRETEXTFIX_TEXT||u===F.PRE_TEXT,cD=u=>{const L=f?.control;switch(u.controlComponent){case F.PRETEXTFIX:return u.control?.preTextFix||L?.preTextFix||"";case F.PRETEXTFIX_TEXT:return u.control?.preTextFixText||L?.preTextFixText||"";case F.PRE_TEXT:return u.control?.preText||"";default:return u.control?.prefix||L?.prefix||""}},BD=(u,L)=>{if(u.value!==y||!u.controlId||!sD(u.controlComponent)||!L||L.controlId!==u.controlId||(L.originControlId||null)!==(u.originControlId||null)||L.controlComponent!==u.controlComponent||L.value===y)return!1;const o=u.control?.type;return rD(o,cD(u))[0]!==`\n`};for(;E<s.length;){let u=s[E];if(BD(u,s[E+1])&&(u=g(u),delete u.type,delete u.control,delete u.controlId,delete u.originControlId,delete u.controlComponent),E===0&&u.value===y&&!u.listId&&(!u.type||u.type===t.TEXT)){E++;continue}if(u.areaId){const o=u.areaId,A=u.area,c=[];for(;E<s.length;){const C=s[E];if(o!==C.areaId){E--;break}delete C.area,delete C.areaId,c.push(C),E++}const l=P(c,r);if(T){const C={type:t.AREA,value:"",areaId:o,area:A};C.valueList=l,u=C}else{M.splice(E,0,...l);continue}}else if(u.titleId&&u.level){const o=u.titleId;if(o){const A=u.level,c={type:t.TITLE,title:u.title,titleId:o,value:"",level:A},l=[];for(;E<s.length;){const C=s[E];if(o!==C.titleId){E--;break}delete C.level,delete C.title,l.push(C),E++}c.valueList=P(l,r),u=c}}else if(u.listId&&u.listType){const o=u.listId;if(o){const A=u.listType,c=u.listStyle,l=u?.label,C={type:t.LIST,value:"",label:l||"",listId:o,listType:A,listStyle:c},B=[];for(;E<s.length;){const n=s[E];if(o!==n.listId){E--;break}delete n.listType,delete n.listStyle,B.push(n),E++}C.valueList=P(B,r),u=C}}else if(u.type===t.TABLE){if(u.pagingId){let o=E+1,A=0;for(;o<s.length;){const c=s[o];if(c.pagingId===u.pagingId){u.height+=c.height;const l=c.trList.filter(C=>!C.pagingRepeat).filter(C=>(C.tdList=C.tdList.filter(B=>{if(B.originalId){for(let n=0;n<u.trList.length;n++){const a=u.trList[n].tdList.find(({id:e})=>e===B.originalId);if(a){B.value[0]?.type===t.SPLIT_TAG&&B.value.splice(0,1),a.value.push(...B.value),a.rowspan=a.originalRowspan??a.rowspan;break}}return!1}return!0}),!C.originalId));u.trList.push(...l),u.trList?.forEach(C=>C.minHeight=C.originalMinHeight??C.minHeight),o++,A++}else break}E+=A}if(u.trList)for(let o=0;o<u.trList.length;o++){const A=u.trList[o];delete A.id;for(let c=0;c<A.tdList.length;c++){const l=A.tdList[c],C={colspan:l.colspan,rowspan:l.rowspan,value:P(l.value,{...r,isClassifyArea:!1})};oD.forEach(B=>{const n=l[B];n!==void 0&&(C[B]=n)}),A.tdList[c]=C}}}else if(u.type===t.HYPERLINK){const o=u.hyperlinkId;if(o){const A={type:t.HYPERLINK,value:"",url:u.url},c=[];for(;E<s.length;){const l=s[E];if(o!==l.hyperlinkId){E--;break}delete l.type,delete l.url,c.push(l),E++}A.valueList=P(c,r),u=A}}else if(u.type===t.DATE){const o=u.dateId;if(o){const A={type:t.DATE,value:"",dateFormat:u.dateFormat},c=[];for(;E<s.length;){const l=s[E];if(o!==l.dateId){E--;break}delete l.type,delete l.dateFormat,c.push(l),E++}A.valueList=P(c,r),u=A}}else if(u.type!==t.BUTTON){if(u.controlId){const o=u.controlId;if(!(u.controlComponent===F.PREFIX||u.controlComponent===F.PRETEXTFIX||u.controlComponent===F.PRETEXTFIX_TEXT)&&u.controlComponent===F.VALUE){if(u.type===t.MENSTRUAL_HISTORY||u.type===t.FETAL_HEART_POSITION||u.type===t.TOOTH_POSITION||u.type===t.IMAGE||u.type===t.MACRO||u.type===t.CUSTOM_MACRO||u.type===t.REUSABLE_ITEM||u.type===t.LIST||u.type===t.SPECIAL_SYMBOLS){let B=!1;for(let n=E-1;n>=0;n--){const I=s[n],a=I.controlComponent===F.PREFIX||I.controlComponent===F.PRETEXTFIX||I.controlComponent===F.PRETEXTFIX_TEXT;if(I.controlId===o&&a){B=!0;break}if(I.controlId!==o)break}if(!B){const n=g(u);delete n.controlId,delete n.control,delete n.controlComponent,delete n.originControlId,M.push(n),E++;continue}}E++;continue}if(u.controlComponent===F.PLACEHOLDER||u.controlComponent===F.POSTFIX||u.controlComponent===F.POSTTEXTFIX||u.controlComponent===F.POSTTEXTFIX_TEXT||u.controlComponent===F.POST_TEXT||u.controlComponent===F.PRE_TEXT||u.controlComponent===F.CHECKBOX||u.controlComponent===F.RADIO){E++;continue}const c=(C,B,n,I)=>{if(I===h.CHECKBOX||I===h.RADIO){let e=-1;for(let X=C;X<s.length&&s[X].controlId===B;X++)e=X;return e}const a=n?[F.POSTTEXTFIX,F.POSTTEXTFIX_TEXT]:[F.POSTFIX];for(let e=C;e<s.length;e++){const X=s[e];if(X.controlId===B&&a.includes(X.controlComponent))return e}return-1},l=(C,B,n)=>{const I=[];let a=C;for(;a<=B;){const e=s[a];if(lD(e)){a++;continue}if(e.controlId&&e.controlId!==n&&e.control){const O=e.control?.type,x=O===h.TEXTFIELD,R=x?F.PRETEXTFIX:F.PREFIX,v=e.controlComponent===R,b=O===h.CHECKBOX||O===h.RADIO;if(v||b&&(e.controlComponent===F.CHECKBOX||e.controlComponent===F.RADIO)){const S=c(a+1,e.controlId,x,O);if(S!==-1){const Q=s.slice(a,S+1).map(aD=>{const DD=g(aD);return delete DD.originControlId,DD}),w=P(Q,r);w.length>0&&I.push(w[0]),a=S+1;continue}}}if(!(e.controlId===n&&(e.controlComponent===F.VALUE||!e.controlComponent)&&(!e.originControlId||e.originControlId===n)||e.originControlId===n&&e.controlComponent===F.VALUE||e.controlId===n&&(e.controlComponent===F.CHECKBOX||e.controlComponent===F.RADIO)&&!e.originControlId)){a++;continue}if(e.type===t.MENSTRUAL_HISTORY||e.type===t.FETAL_HEART_POSITION||e.type===t.TOOTH_POSITION||e.type===t.IMAGE||e.type===t.MACRO||e.type===t.CUSTOM_MACRO||e.type===t.REUSABLE_ITEM||e.type===t.LIST||e.type===t.SPECIAL_SYMBOLS){const O=g(e);delete O.controlId,delete O.control,delete O.controlComponent,delete O.originControlId,I.push(O),a++;continue}if(e.controlComponent===F.CHECKBOX||e.controlComponent===F.RADIO){I.push(g(e)),a++;continue}const j=u.control?.type;if(j===h.CHECKBOX||j===h.RADIO){let O=a-1,x=!1;for(;O>=C-1;){const R=s[O];if(R.controlId===n&&!R.originControlId)if(R.controlComponent===F.CHECKBOX){x=R.checkbox?.value===!0;break}else if(R.controlComponent===F.RADIO){x=R.radio?.value===!0;break}else if(R.controlComponent===F.VALUE){O--;continue}else break;O--}if(x){const R={value:e.value||""},v=[...N,"color","bold","italic","underline","strikeout","size","font","highlight","textDecoration"];for(const b of v){const S=e[b];if(S!==void 0){if(b==="color"&&f){const Q=f.control?.bracketColor,w=f.control?.placeholderColor;if(S===Q||S===w)continue}R[b]=S}}I.push(R)}}else{const O={value:e.value||""},x=[...N,"color","bold","italic","underline","strikeout","size","font","highlight","textDecoration"];for(const R of x){const v=e[R];if(v!==void 0){if(R==="color"&&f){const b=f.control?.bracketColor,S=f.control?.placeholderColor;if(v===b||v===S)continue}O[R]=v}}I.push(O)}a++}return I};if(u.controlComponent===F.PREFIX){const C=u.control?.type===h.TEXTFIELD,B=c(E+1,o,C);if(B!==-1){const n=l(E+1,B-1,o),I=_(u,Y),e=u.control?.type===h.BUTTON&&!u.control?.buttonText?n.length?n:null:n,X={...u.control,...I,value:e},V={..._(u,N),type:t.CONTROL,value:"",control:X,controlId:o};u=U(V,{extraPickAttrs:i}),E=B}}if(u.controlComponent===F.PRETEXTFIX){const C=c(E+1,o,!0);if(C!==-1){const B=l(E+1,C-1,o),n=_(u,Y),I={...u.control,...n,value:B},a={..._(u,N),type:t.CONTROL,value:"",control:I,controlId:o};u=U(a,{extraPickAttrs:i}),E=C}}if(u.controlComponent===F.PRETEXTFIX_TEXT){const C=c(E+1,o,!0);if(C!==-1){const B=l(E+1,C-1,o),n=_(u,Y),I={...u.control,...n,value:B},a={..._(u,N),type:t.CONTROL,value:"",control:I,controlId:o};u=U(a,{extraPickAttrs:i}),E=C}}}}const L=U(u,{extraPickAttrs:i});if(!u.type||u.type===t.TEXT||u.type===t.SUBSCRIPT||u.type===t.SUPERSCRIPT)for(;E<s.length;){const o=s[E+1];if(E++,o&&iD(L,U(o,{extraPickAttrs:i}))){const A=o.value===y?`\n`:o.value;L.value+=A}else break}else E++;M.push(L)}return M}onmessage=D=>{const r=D.data,{options:i,data:T}=r,{extraPickAttrs:d=[]}=i||{},f={header:P(T.header,{extraPickAttrs:d,isClone:!1}),main:P(T.main,{extraPickAttrs:d,isClassifyArea:!0,isClone:!1}),footer:P(T.footer,{extraPickAttrs:d,isClone:!1})};postMessage(f)}})();\n', zr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Na], { type: "text/javascript;charset=utf-8" });
|
|
21565
|
+
const Na = '(function(){"use strict";var H=(D=>(D.HALF="half",D.ONE_THIRD="one-third",D.QUARTER="quarter",D))(H||{}),K=(D=>(D.ARABIC="arabic",D.CHINESE="chinese",D))(K||{});const y="";H.HALF+"",1/2,H.ONE_THIRD+"",1/3,H.QUARTER+"",1/4;const uD=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/,FD=/[#*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])?))?)/g,tD=new RegExp(`${FD.source}|${uD.source}`,"g");function g(D){if(typeof structuredClone=="function")return structuredClone(D);if(!D||typeof D!="object")return D;let r={};return Array.isArray(D)?r=D.map(i=>g(i)):Object.keys(D).forEach(i=>{r[i]=g(D[i])}),r}function eD(D){const r=[];if(Intl.Segmenter){const T=new Intl.Segmenter().segment(D);for(const{segment:d}of T)r.push(d)}else{const i=new Map;for(const d of D.matchAll(tD))i.set(d.index,d[0]);let T=0;for(;T<D.length;){const d=i.get(T);d?(r.push(d),T+=d.length):(r.push(D[T]),T++)}}return r}function _(D,r){const i={};for(const T in D)r.includes(T)&&(i[T]=D[T]);return i}function ED(D,r){return D.length!==r.length?!1:!D.some(i=>!r.includes(i))}var t=(D=>(D.TEXT="text",D.TEXTFIELD="TextField",D.BUTTON="button",D.IMAGE="image",D.TABLE="table",D.HYPERLINK="hyperlink",D.SUPERSCRIPT="superscript",D.SUBSCRIPT="subscript",D.SEPARATOR="separator",D.PAGE_BREAK="pageBreak",D.CONTROL="control",D.AREA="area",D.CHECKBOX="checkbox",D.RADIO="radio",D.LATEX="latex",D.TAB="tab",D.DATE="date",D.BLOCK="block",D.TITLE="title",D.LIST="list",D.SPLIT_TAG="splitTag",D.LABEL="label",D.MENSTRUAL_HISTORY="menstrualHistory",D.FETAL_HEART_POSITION="fetalHeartPosition",D.TOOTH_POSITION="toothPosition",D.SPECIAL_SYMBOLS="specialSymbols",D.MACRO="macro",D.CUSTOM_MACRO="customMacro",D.REUSABLE_ITEM="reusableItem",D.SUB_TEMPLATE="subTemplate",D))(t||{});const N=["rowFlex","vertical","rowMargin"],CD=["type","font","size","bold","color","italic","highlight","underline","strikeout","rowFlex","vertical","rowMargin","dashArray","trList","tdPadding","tableEditable","tableToolDisabled","borderType","borderColor","borderWidth","borderExternalWidth","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","deletePerson","newElEditPerson","deleteTime","newElEditTime","dictCode","macroConfig","menstrualData","menstrualHistoryId","fetalHeartData","fetalHeartPositionId","toothPositionData","toothPositionId","reusableItemConfig","templateId","subTemplateContent","subTemplateRelation","subTemplateConditions","subTemplateExpanded"],oD=["conceptId","extension","externalId","verticalAlign","backgroundColor","borderTypes","slashTypes","disabled","deletable"],Y=["font","size","bold","highlight","italic","strikeout","deletePerson","newElEditPerson","deleteTime","color","newElEditTime"];t.TEXT,t.HYPERLINK,t.SUBSCRIPT,t.SUPERSCRIPT,t.CONTROL,t.DATE,t.IMAGE,t.LATEX,t.BLOCK,t.PAGE_BREAK,t.SEPARATOR,t.TABLE,t.TITLE,t.LIST;var G=(D=>(D.UL="ul",D.OL="ol",D))(G||{}),k=(D=>(D.DISC="disc",D.CIRCLE="circle",D.SQUARE="square",D.CHECKBOX="checkbox",D))(k||{}),m=(D=>(D.DISC="disc",D.CIRCLE="circle",D.SQUARE="square",D.DECIMAL="decimal",D.CHECKBOX="checkbox",D))(m||{});k.DISC+"",k.CIRCLE+"",k.SQUARE+"",k.CHECKBOX+"",G.OL+"",G.UL+"",m.DISC+"",m.CIRCLE+"",m.SQUARE+"",m.DECIMAL+"",m.CHECKBOX+"";var p=(D=>(D.FIRST="first",D.SECOND="second",D.THIRD="third",D.FOURTH="fourth",D.FIFTH="fifth",D.SIXTH="sixth",D))(p||{});p.FIRST+"",p.SECOND+"",p.THIRD+"",p.FOURTH+"",p.FIFTH+"",p.SIXTH+"",p.FIRST+"",p.SECOND+"",p.THIRD+"",p.FOURTH+"",p.FIFTH+"",p.SIXTH+"",p.FIRST,p.SECOND,p.THIRD,p.FOURTH,p.FIFTH,p.SIXTH;var h=(D=>(D.TEXT="text",D.SELECT="select",D.CHECKBOX="checkbox",D.RADIO="radio",D.DATE="date",D.NUMBER="number",D.TEXTFIELD="TextField",D.BUTTON="button",D.MENSTRUAL_HISTORY="menstrualHistory",D))(h||{}),F=(D=>(D.PREFIX="prefix",D.POSTFIX="postfix",D.PRE_TEXT="preText",D.PRETEXTFIX="preTextFix",D.PRETEXTFIX_TEXT="preTextFixText",D.POSTTEXTFIX="postTextFix",D.POSTTEXTFIX_TEXT="postTextFixText",D.POST_TEXT="postText",D.PLACEHOLDER="placeholder",D.TEXTFIXLABEL="textFixLabel",D.VALUE="value",D.DELETEPERSON="deletePerson",D.CHECKBOX="checkbox",D.RADIO="radio",D.UNDERLINE="underline",D))(F||{}),q=(D=>(D.LEFT="left",D.CENTER="center",D.RIGHT="right",D.ALIGNMENT="alignment",D.JUSTIFY="justify",D))(q||{}),W=(D=>(D.CONTAIN="contain",D.COVER="cover",D))(W||{}),Z=(D=>(D.REPEAT="repeat",D.NO_REPEAT="no-repeat",D.REPEAT_X="repeat-x",D.REPEAT_Y="repeat-y",D))(Z||{});W.COVER,Z.NO_REPEAT;var z=(D=>(D.TOP="top",D.MIDDLE="middle",D.BOTTOM="bottom",D))(z||{});z.BOTTOM,H.HALF,H.HALF,q.CENTER,K.ARABIC,z.BOTTOM;var J=(D=>(D.TEXT="text",D.IMAGE="image",D))(J||{});J.TEXT,K.ARABIC;var $=(D=>(D.PAGE="page",D.CONTINUITY="continuity",D))($||{});$.CONTINUITY;const nD=[h.SELECT,h.DATE,h.CHECKBOX,h.RADIO];function rD(D,r){return D&&nD.includes(D)?[""]:eD(r)}F.PREFIX,F.POSTFIX,F.PRE_TEXT,F.POST_TEXT,F.PRETEXTFIX,F.PRETEXTFIX_TEXT,F.POSTTEXTFIX,F.POSTTEXTFIX_TEXT,F.PLACEHOLDER,F.TEXTFIXLABEL,F.CHECKBOX,F.RADIO,F.UNDERLINE;function lD(D){return D?.buttonValueLayout===!0}function iD(D,r){const i=Object.keys(D),T=Object.keys(r);if(i.length!==T.length)return!1;for(let d=0;d<i.length;d++){const f=i[d];if(f!=="value"&&!(f==="groupIds"&&Array.isArray(D[f])&&Array.isArray(r[f])&&ED(D[f],r[f]))&&D[f]!==r[f])return!1}return!0}function U(D,r={}){const{extraPickAttrs:i}=r,T=[...CD];i&&T.push(...i);const d={value:D?.value===y?`\n`:D?.value};return D&&T.forEach(f=>{const s=D[f];s!==void 0&&(d[f]=s)}),d}function P(D,r={}){const{extraPickAttrs:i,isClassifyArea:T=!1,isClone:d=!0,editorOptions:f}=r,s=(d?g(D):D).filter(u=>u.type!==t.SPLIT_TAG),M=[];let E=0;const sD=u=>u===F.PREFIX||u===F.PRETEXTFIX||u===F.PRETEXTFIX_TEXT||u===F.PRE_TEXT,cD=u=>{const L=f?.control;switch(u.controlComponent){case F.PRETEXTFIX:return u.control?.preTextFix||L?.preTextFix||"";case F.PRETEXTFIX_TEXT:return u.control?.preTextFixText||L?.preTextFixText||"";case F.PRE_TEXT:return u.control?.preText||"";default:return u.control?.prefix||L?.prefix||""}},BD=(u,L)=>{if(u.value!==y||!u.controlId||!sD(u.controlComponent)||!L||L.controlId!==u.controlId||(L.originControlId||null)!==(u.originControlId||null)||L.controlComponent!==u.controlComponent||L.value===y)return!1;const o=u.control?.type;return rD(o,cD(u))[0]!==`\n`};for(;E<s.length;){let u=s[E];if(BD(u,s[E+1])&&(u=g(u),delete u.type,delete u.control,delete u.controlId,delete u.originControlId,delete u.controlComponent),E===0&&u.value===y&&!u.listId&&(!u.type||u.type===t.TEXT)){E++;continue}if(u.areaId){const o=u.areaId,A=u.area,c=[];for(;E<s.length;){const C=s[E];if(o!==C.areaId){E--;break}delete C.area,delete C.areaId,c.push(C),E++}const l=P(c,r);if(T){const C={type:t.AREA,value:"",areaId:o,area:A};C.valueList=l,u=C}else{M.splice(E,0,...l);continue}}else if(u.titleId&&u.level){const o=u.titleId;if(o){const A=u.level,c={type:t.TITLE,title:u.title,titleId:o,value:"",level:A},l=[];for(;E<s.length;){const C=s[E];if(o!==C.titleId){E--;break}delete C.level,delete C.title,l.push(C),E++}c.valueList=P(l,r),u=c}}else if(u.listId&&u.listType){const o=u.listId;if(o){const A=u.listType,c=u.listStyle,l=u?.label,C={type:t.LIST,value:"",label:l||"",listId:o,listType:A,listStyle:c},B=[];for(;E<s.length;){const n=s[E];if(o!==n.listId){E--;break}delete n.listType,delete n.listStyle,B.push(n),E++}C.valueList=P(B,r),u=C}}else if(u.type===t.TABLE){if(u.pagingId){let o=E+1,A=0;for(;o<s.length;){const c=s[o];if(c.pagingId===u.pagingId){u.height+=c.height;const l=c.trList.filter(C=>!C.pagingRepeat).filter(C=>(C.tdList=C.tdList.filter(B=>{if(B.originalId){for(let n=0;n<u.trList.length;n++){const a=u.trList[n].tdList.find(({id:e})=>e===B.originalId);if(a){B.value[0]?.type===t.SPLIT_TAG&&B.value.splice(0,1),a.value.push(...B.value),a.rowspan=a.originalRowspan??a.rowspan;break}}return!1}return!0}),!C.originalId));u.trList.push(...l),u.trList?.forEach(C=>C.minHeight=C.originalMinHeight??C.minHeight),o++,A++}else break}E+=A}if(u.trList)for(let o=0;o<u.trList.length;o++){const A=u.trList[o];delete A.id;for(let c=0;c<A.tdList.length;c++){const l=A.tdList[c],C={colspan:l.colspan,rowspan:l.rowspan,value:P(l.value,{...r,isClassifyArea:!1})};oD.forEach(B=>{const n=l[B];n!==void 0&&(C[B]=n)}),A.tdList[c]=C}}}else if(u.type===t.HYPERLINK){const o=u.hyperlinkId;if(o){const A={type:t.HYPERLINK,value:"",url:u.url},c=[];for(;E<s.length;){const l=s[E];if(o!==l.hyperlinkId){E--;break}delete l.type,delete l.url,c.push(l),E++}A.valueList=P(c,r),u=A}}else if(u.type===t.DATE){const o=u.dateId;if(o){const A={type:t.DATE,value:"",dateFormat:u.dateFormat},c=[];for(;E<s.length;){const l=s[E];if(o!==l.dateId){E--;break}delete l.type,delete l.dateFormat,c.push(l),E++}A.valueList=P(c,r),u=A}}else if(u.type!==t.BUTTON){if(u.controlId){const o=u.controlId;if(!(u.controlComponent===F.PREFIX||u.controlComponent===F.PRETEXTFIX||u.controlComponent===F.PRETEXTFIX_TEXT)&&u.controlComponent===F.VALUE){if(u.type===t.MENSTRUAL_HISTORY||u.type===t.FETAL_HEART_POSITION||u.type===t.TOOTH_POSITION||u.type===t.IMAGE||u.type===t.MACRO||u.type===t.CUSTOM_MACRO||u.type===t.REUSABLE_ITEM||u.type===t.LIST||u.type===t.SPECIAL_SYMBOLS){let B=!1;for(let n=E-1;n>=0;n--){const I=s[n],a=I.controlComponent===F.PREFIX||I.controlComponent===F.PRETEXTFIX||I.controlComponent===F.PRETEXTFIX_TEXT;if(I.controlId===o&&a){B=!0;break}if(I.controlId!==o)break}if(!B){const n=g(u);delete n.controlId,delete n.control,delete n.controlComponent,delete n.originControlId,M.push(n),E++;continue}}E++;continue}if(u.controlComponent===F.PLACEHOLDER||u.controlComponent===F.POSTFIX||u.controlComponent===F.POSTTEXTFIX||u.controlComponent===F.POSTTEXTFIX_TEXT||u.controlComponent===F.POST_TEXT||u.controlComponent===F.PRE_TEXT||u.controlComponent===F.CHECKBOX||u.controlComponent===F.RADIO){E++;continue}const c=(C,B,n,I)=>{if(I===h.CHECKBOX||I===h.RADIO){let e=-1;for(let X=C;X<s.length&&s[X].controlId===B;X++)e=X;return e}const a=n?[F.POSTTEXTFIX,F.POSTTEXTFIX_TEXT]:[F.POSTFIX];for(let e=C;e<s.length;e++){const X=s[e];if(X.controlId===B&&a.includes(X.controlComponent))return e}return-1},l=(C,B,n)=>{const I=[];let a=C;for(;a<=B;){const e=s[a];if(lD(e)){a++;continue}if(e.controlId&&e.controlId!==n&&e.control){const O=e.control?.type,x=O===h.TEXTFIELD,R=x?F.PRETEXTFIX:F.PREFIX,v=e.controlComponent===R,b=O===h.CHECKBOX||O===h.RADIO;if(v||b&&(e.controlComponent===F.CHECKBOX||e.controlComponent===F.RADIO)){const S=c(a+1,e.controlId,x,O);if(S!==-1){const Q=s.slice(a,S+1).map(aD=>{const DD=g(aD);return delete DD.originControlId,DD}),w=P(Q,r);w.length>0&&I.push(w[0]),a=S+1;continue}}}if(!(e.controlId===n&&(e.controlComponent===F.VALUE||!e.controlComponent)&&(!e.originControlId||e.originControlId===n)||e.originControlId===n&&e.controlComponent===F.VALUE||e.controlId===n&&(e.controlComponent===F.CHECKBOX||e.controlComponent===F.RADIO)&&!e.originControlId)){a++;continue}if(e.type===t.MENSTRUAL_HISTORY||e.type===t.FETAL_HEART_POSITION||e.type===t.TOOTH_POSITION||e.type===t.IMAGE||e.type===t.MACRO||e.type===t.CUSTOM_MACRO||e.type===t.REUSABLE_ITEM||e.type===t.SUB_TEMPLATE||e.type===t.LIST||e.type===t.SPECIAL_SYMBOLS){const O=g(e);delete O.controlId,delete O.control,delete O.controlComponent,delete O.originControlId,I.push(O),a++;continue}if(e.controlComponent===F.CHECKBOX||e.controlComponent===F.RADIO){I.push(g(e)),a++;continue}const j=u.control?.type;if(j===h.CHECKBOX||j===h.RADIO){let O=a-1,x=!1;for(;O>=C-1;){const R=s[O];if(R.controlId===n&&!R.originControlId)if(R.controlComponent===F.CHECKBOX){x=R.checkbox?.value===!0;break}else if(R.controlComponent===F.RADIO){x=R.radio?.value===!0;break}else if(R.controlComponent===F.VALUE){O--;continue}else break;O--}if(x){const R={value:e.value||""},v=[...N,"color","bold","italic","underline","strikeout","size","font","highlight","textDecoration"];for(const b of v){const S=e[b];if(S!==void 0){if(b==="color"&&f){const Q=f.control?.bracketColor,w=f.control?.placeholderColor;if(S===Q||S===w)continue}R[b]=S}}I.push(R)}}else{const O={value:e.value||""},x=[...N,"color","bold","italic","underline","strikeout","size","font","highlight","textDecoration"];for(const R of x){const v=e[R];if(v!==void 0){if(R==="color"&&f){const b=f.control?.bracketColor,S=f.control?.placeholderColor;if(v===b||v===S)continue}O[R]=v}}I.push(O)}a++}return I};if(u.controlComponent===F.PREFIX){const C=u.control?.type===h.TEXTFIELD,B=c(E+1,o,C);if(B!==-1){const n=l(E+1,B-1,o),I=_(u,Y),e=u.control?.type===h.BUTTON&&!u.control?.buttonText?n.length?n:null:n,X={...u.control,...I,value:e},V={..._(u,N),type:t.CONTROL,value:"",control:X,controlId:o};u=U(V,{extraPickAttrs:i}),E=B}}if(u.controlComponent===F.PRETEXTFIX){const C=c(E+1,o,!0);if(C!==-1){const B=l(E+1,C-1,o),n=_(u,Y),I={...u.control,...n,value:B},a={..._(u,N),type:t.CONTROL,value:"",control:I,controlId:o};u=U(a,{extraPickAttrs:i}),E=C}}if(u.controlComponent===F.PRETEXTFIX_TEXT){const C=c(E+1,o,!0);if(C!==-1){const B=l(E+1,C-1,o),n=_(u,Y),I={...u.control,...n,value:B},a={..._(u,N),type:t.CONTROL,value:"",control:I,controlId:o};u=U(a,{extraPickAttrs:i}),E=C}}}}const L=U(u,{extraPickAttrs:i});if(!u.type||u.type===t.TEXT||u.type===t.SUBSCRIPT||u.type===t.SUPERSCRIPT)for(;E<s.length;){const o=s[E+1];if(E++,o&&iD(L,U(o,{extraPickAttrs:i}))){const A=o.value===y?`\n`:o.value;L.value+=A}else break}else E++;M.push(L)}return M}onmessage=D=>{const r=D.data,{options:i,data:T}=r,{extraPickAttrs:d=[]}=i||{},f={header:P(T.header,{extraPickAttrs:d,isClone:!1}),main:P(T.main,{extraPickAttrs:d,isClassifyArea:!0,isClone:!1}),footer:P(T.footer,{extraPickAttrs:d,isClone:!1})};postMessage(f)}})();\n', zr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Na], { type: "text/javascript;charset=utf-8" });
|
|
21559
21566
|
function kf(o) {
|
|
21560
21567
|
let t;
|
|
21561
21568
|
try {
|
|
@@ -22607,7 +22614,7 @@ class Ip {
|
|
|
22607
22614
|
}
|
|
22608
22615
|
}
|
|
22609
22616
|
}
|
|
22610
|
-
class
|
|
22617
|
+
class vo {
|
|
22611
22618
|
options;
|
|
22612
22619
|
static WIDTH = 12;
|
|
22613
22620
|
static HEIGHT = 9;
|
|
@@ -22619,7 +22626,7 @@ class Zo {
|
|
|
22619
22626
|
render(t, e, n, i) {
|
|
22620
22627
|
const { scale: r, lineBreak: { color: s, lineWidth: l } } = this.options;
|
|
22621
22628
|
t.save(), t.beginPath();
|
|
22622
|
-
const a = i -
|
|
22629
|
+
const a = i - vo.HEIGHT * r / 2, c = n + e.metrics.width;
|
|
22623
22630
|
t.translate(c, a), t.scale(r, r), t.strokeStyle = s, t.lineWidth = l, 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();
|
|
22624
22631
|
}
|
|
22625
22632
|
}
|
|
@@ -22649,7 +22656,7 @@ class xa {
|
|
|
22649
22656
|
_computePositionList(t) {
|
|
22650
22657
|
const { lineBreak: e, scale: n } = this.options, i = this.draw.getHeader().getExtraHeight(), r = this.draw.getInnerWidth(), s = this.draw.getMargins();
|
|
22651
22658
|
let l = s[3];
|
|
22652
|
-
e.disabled || (l += (
|
|
22659
|
+
e.disabled || (l += (vo.WIDTH + vo.GAP) * n);
|
|
22653
22660
|
const a = t?.startY || s[0] + i;
|
|
22654
22661
|
this.position.computePageRowPosition({
|
|
22655
22662
|
positionList: this.positionList,
|
|
@@ -23225,8 +23232,8 @@ class Dp {
|
|
|
23225
23232
|
for (let W = 0; W < m.length; W++) {
|
|
23226
23233
|
const X = m[W];
|
|
23227
23234
|
for (let D = 0; D < X.length; D++) {
|
|
23228
|
-
const E = X[D], U = E.x, x = E.y, Q = U + E.width,
|
|
23229
|
-
if (S > U || M > x || F < Q || N <
|
|
23235
|
+
const E = X[D], U = E.x, x = E.y, Q = U + E.width, v = x + E.height;
|
|
23236
|
+
if (S > U || M > x || F < Q || N < v)
|
|
23230
23237
|
return;
|
|
23231
23238
|
}
|
|
23232
23239
|
}
|
|
@@ -23239,8 +23246,8 @@ class Dp {
|
|
|
23239
23246
|
w.push(E.id);
|
|
23240
23247
|
const x = E.value.length > 1 ? 0 : 1;
|
|
23241
23248
|
for (let Q = x; Q < E.value.length; Q++) {
|
|
23242
|
-
const
|
|
23243
|
-
yn(_n, C,
|
|
23249
|
+
const v = E.value[Q];
|
|
23250
|
+
yn(_n, C, v), V.value.push(v);
|
|
23244
23251
|
}
|
|
23245
23252
|
}
|
|
23246
23253
|
W === 0 && D !== 0 && (V.colspan += E.colspan), W !== 0 && V.colIndex === E.colIndex && (V.rowspan += E.rowspan);
|
|
@@ -24075,7 +24082,7 @@ class xp {
|
|
|
24075
24082
|
* @param override - 覆盖器
|
|
24076
24083
|
*/
|
|
24077
24084
|
constructor(t, e, n, i, r, s) {
|
|
24078
|
-
this.container = this._wrapContainer(t), this.pageList = [], this.ctxList = [], this.pageNo = 0, this.renderCount = 0, this.pagePixelRatio = null, this.mode = e.mode, this.options = e, this.elementList = n.main, this.listener = i, this.eventBus = r, this.override = s, this._formatContainer(), this.pageContainer = this._createPageContainer(), this._createPage(0), this.i18n = new Rp(e.locale), this.historyManager = new nd(this), this.position = new od(this), this.zone = new pp(this), this.range = new id(this), this.margin = new ld(this), this.background = new sd(this), this.badge = new Fp(this), this.search = new ad(this), this.group = new mp(this), this.area = new Cp(this), this.underline = new ud(this), this.strikeout = new cd(this), this.highlight = new rd(this), this.previewer = new $f(this), this.imageParticle = new dl(this), this.laTexParticle = new gl(this), this.textParticle = new dd(this), this.tableParticle = new gd(this), this.tableTool = new fd(this), this.tableOperate = new Dp(this), this.pageNumber = new mo(this), this.lineNumber = new Ep(this), this.waterMark = new Md(this), this.placeholder = new xa(this), this.header = new md(this, n.header), this.footer = new Tp(this, n.footer), this.hyperlinkParticle = new pd(this), this.labelParticle = new Td(this), this.macroParticle = new Id(this), this.dateParticle = new zf(this), this.separatorParticle = new Ed(this), this.pageBreakParticle = new Od(this), this.superscriptParticle = new Ld(), this.subscriptParticle = new Pd(), this.checkboxParticle = new
|
|
24085
|
+
this.container = this._wrapContainer(t), this.pageList = [], this.ctxList = [], this.pageNo = 0, this.renderCount = 0, this.pagePixelRatio = null, this.mode = e.mode, this.options = e, this.elementList = n.main, this.listener = i, this.eventBus = r, this.override = s, this._formatContainer(), this.pageContainer = this._createPageContainer(), this._createPage(0), this.i18n = new Rp(e.locale), this.historyManager = new nd(this), this.position = new od(this), this.zone = new pp(this), this.range = new id(this), this.margin = new ld(this), this.background = new sd(this), this.badge = new Fp(this), this.search = new ad(this), this.group = new mp(this), this.area = new Cp(this), this.underline = new ud(this), this.strikeout = new cd(this), this.highlight = new rd(this), this.previewer = new $f(this), this.imageParticle = new dl(this), this.laTexParticle = new gl(this), this.textParticle = new dd(this), this.tableParticle = new gd(this), this.tableTool = new fd(this), this.tableOperate = new Dp(this), this.pageNumber = new mo(this), this.lineNumber = new Ep(this), this.waterMark = new Md(this), this.placeholder = new xa(this), this.header = new md(this, n.header), this.footer = new Tp(this, n.footer), this.hyperlinkParticle = new pd(this), this.labelParticle = new Td(this), this.macroParticle = new Id(this), this.dateParticle = new zf(this), this.separatorParticle = new Ed(this), this.pageBreakParticle = new Od(this), this.superscriptParticle = new Ld(), this.subscriptParticle = new Pd(), this.checkboxParticle = new Zf(this), this.radioParticle = new Qf(this), this.menstrualHistoryParticle = new Hf(this), this.fetalHeartPositionParticle = new Kf(this), this.toothPositionParticle = new Af(this), this.blockParticle = new qf(this), this.listParticle = new Ip(this), this.lineBreakParticle = new vo(this), this.whiteSpaceParticle = new Lp(this), this.control = new Wf(this), this.pageBorder = new Op(this), this.graffiti = new Xp(this, n.graffiti), this.scrollObserver = new hd(this), this.selectionObserver = new Rd(this), this.imageObserver = new gp(), new Pp(this), this.canvasEvent = new qu(this), this.cursor = new Ru(this, this.canvasEvent), this.canvasEvent.register(), this.globalEvent = new ed(this, this.canvasEvent), this.globalEvent.register(), this.workerManager = new Jf(this), new Sp(this);
|
|
24079
24086
|
const { letterClass: l } = e;
|
|
24080
24087
|
this.LETTER_REG = new RegExp(`[${l.join("")}]`), this.WORD_LIKE_REG = new RegExp(`${l.map((a) => `[^${a}][${a}]`).join("|")}`), this.rowList = [], this.pageRowList = [], this.painterStyle = null, this.painterOptions = null, this.visiblePageNoList = [], this.intersectionPageNo = 0, this.lazyRenderIntersectionObserver = null, this.printModeData = null, this.readonlyModeData = null, this.interactionPaused = !1, this.overlayActiveCount = 0, this.globalShortcutSuspended = !1, this.isPrintLikeMode() && this.setPrintData(), this.mode === K.READONLY && this.setReadonlyData(), this.mode, K.FORM, this.render({
|
|
24081
24088
|
isInit: !0,
|
|
@@ -24404,8 +24411,11 @@ class xp {
|
|
|
24404
24411
|
if (this.mode === K.EDIT && a)
|
|
24405
24412
|
r = this.syncSubTemplateExpandedState(i, s, l, !0, !0) || r;
|
|
24406
24413
|
else if ((this.mode === K.FORM || this.isPrintLikeMode()) && a) {
|
|
24407
|
-
const c = e ?
|
|
24414
|
+
const c = e ? vf(l.subTemplateConditions, e, l.subTemplateRelation) : !1;
|
|
24408
24415
|
r = this.syncSubTemplateExpandedState(i, s, l, c, !0) || r;
|
|
24416
|
+
} else if ((this.mode === K.FORM || this.isPrintLikeMode()) && !a) {
|
|
24417
|
+
const c = l.subTemplateExpanded === !0;
|
|
24418
|
+
r = this.syncSubTemplateExpandedState(i, s, l, c, c) || r;
|
|
24409
24419
|
} else this.mode !== K.FORM && !this.isPrintLikeMode() && (r = this.syncSubTemplateExpandedState(i, s, l, !1, !1) || r);
|
|
24410
24420
|
}
|
|
24411
24421
|
if (l.valueList?.length && (r = n(l.valueList) || r), l.control?.value?.length && (r = n(l.control.value) || r), l.type === P.TABLE && l.trList?.length)
|
|
@@ -25617,7 +25627,7 @@ class xp {
|
|
|
25617
25627
|
height: 0,
|
|
25618
25628
|
boundingBoxAscent: 0,
|
|
25619
25629
|
boundingBoxDescent: 0
|
|
25620
|
-
}, Q = D.offsetX || E.listId && O.get(E.listId) || 0,
|
|
25630
|
+
}, Q = D.offsetX || E.listId && O.get(E.listId) || 0, v = e - Q, H = D.elementList.length === 1;
|
|
25621
25631
|
if (N += H ? Q : 0, w += H && D.offsetY || 0, (E.control?.type === b.TEXTFIELD || E.control?.type === b.TEXT) && !this.isDesignMode() && (E.controlComponent === R.PRETEXTFIX || E.controlComponent === R.PRETEXTFIX_TEXT || E.controlComponent === R.POSTTEXTFIX || E.controlComponent === R.POSTTEXTFIX_TEXT || E.controlComponent === R.TEXTFIXLABEL || E.controlComponent === R.PLACEHOLDER || E.controlComponent === R.PREFIX || E.controlComponent === R.POSTFIX)) {
|
|
25622
25632
|
const it = E.control?.type === b.TEXTFIELD, q = E.controlId, J = !!q && !!M?.has(q);
|
|
25623
25633
|
if (it) {
|
|
@@ -25636,9 +25646,9 @@ class xp {
|
|
|
25636
25646
|
x.width = 0, x.height = 0, x.boundingBoxDescent = 0;
|
|
25637
25647
|
else {
|
|
25638
25648
|
const it = E.width * d, q = E.height * d;
|
|
25639
|
-
if (it >
|
|
25640
|
-
const J = q *
|
|
25641
|
-
E.width =
|
|
25649
|
+
if (it > v) {
|
|
25650
|
+
const J = q * v / it;
|
|
25651
|
+
E.width = v / d, E.height = J / d, x.width = v, x.height = J, x.boundingBoxDescent = J;
|
|
25642
25652
|
} else
|
|
25643
25653
|
x.width = it, x.height = q, x.boundingBoxDescent = q;
|
|
25644
25654
|
if (E.imgCaption?.value) {
|
|
@@ -25700,20 +25710,20 @@ class xp {
|
|
|
25700
25710
|
if (at > Vt) {
|
|
25701
25711
|
const Ft = E.trList;
|
|
25702
25712
|
let Ut = 0, wt = 0, se = 0;
|
|
25703
|
-
for (let
|
|
25704
|
-
const
|
|
25705
|
-
if (ft + xt + se +
|
|
25706
|
-
const bt =
|
|
25713
|
+
for (let mt = 0; mt < Ft.length; mt++) {
|
|
25714
|
+
const Tt = Ft[mt], Zt = Tt.height * d;
|
|
25715
|
+
if (ft + xt + se + Zt > tt) {
|
|
25716
|
+
const bt = Tt;
|
|
25707
25717
|
let Nt = 0;
|
|
25708
25718
|
const yt = {
|
|
25709
25719
|
...ut(bt),
|
|
25710
25720
|
id: Lt(),
|
|
25711
25721
|
originalId: bt.originalId ?? bt.id,
|
|
25712
25722
|
minHeight: void 0,
|
|
25713
|
-
tdList: E.colgroup.map((
|
|
25723
|
+
tdList: E.colgroup.map((It, Ct) => {
|
|
25714
25724
|
if (Nt--, Nt > 0)
|
|
25715
25725
|
return;
|
|
25716
|
-
const Ot = bt.tdList.find((qt) => qt.colIndex === Ct), rt = Ot ?? this.tableParticle.findPreRowSpanTd(Ft,
|
|
25726
|
+
const Ot = bt.tdList.find((qt) => qt.colIndex === Ct), rt = Ot ?? this.tableParticle.findPreRowSpanTd(Ft, mt, Ct);
|
|
25717
25727
|
Ot && (Nt = Ot.colspan);
|
|
25718
25728
|
const ot = Lt();
|
|
25719
25729
|
return rt.originalRowspan = rt.rowspan, Ot ? {
|
|
@@ -25735,61 +25745,61 @@ class xp {
|
|
|
25735
25745
|
rowList: [],
|
|
25736
25746
|
original: rt
|
|
25737
25747
|
};
|
|
25738
|
-
}).filter((
|
|
25739
|
-
}, $t = yt.tdList, Te = $t.map((
|
|
25740
|
-
Te.forEach((
|
|
25748
|
+
}).filter((It) => !!It)
|
|
25749
|
+
}, $t = yt.tdList, Te = $t.map((It) => It.original);
|
|
25750
|
+
Te.forEach((It, Ct) => {
|
|
25741
25751
|
const Ot = [];
|
|
25742
25752
|
let rt = Vt;
|
|
25743
|
-
if (
|
|
25744
|
-
const qt = Ft.slice(
|
|
25753
|
+
if (It.rowspan > 1) {
|
|
25754
|
+
const qt = Ft.slice(It.trIndex, It.trIndex + mt - It.trIndex);
|
|
25745
25755
|
rt += qt.reduce((Pe, De) => De.height * d + Pe, 0);
|
|
25746
25756
|
}
|
|
25747
|
-
for (;
|
|
25748
|
-
const qt =
|
|
25749
|
-
|
|
25757
|
+
for (; It.mainHeight * d > rt && It.rowList?.length; ) {
|
|
25758
|
+
const qt = It.rowList.pop();
|
|
25759
|
+
It.value.splice(It.value.length - qt.elementList.length), Ot.unshift(qt), It.mainHeight -= qt.height;
|
|
25750
25760
|
}
|
|
25751
25761
|
const ot = $t[Ct];
|
|
25752
25762
|
ot.rowList = Ot, ot.value = Ot.map((qt) => qt.elementList).flat();
|
|
25753
25763
|
});
|
|
25754
25764
|
let Mt = !0;
|
|
25755
|
-
const lt = bt.tdList.some((
|
|
25765
|
+
const lt = bt.tdList.some((It) => It.rowList?.length), _t = yt.tdList.some((It) => It.rowList?.length), Bt = bt.minHeight > Vt;
|
|
25756
25766
|
if (_t || Bt) {
|
|
25757
|
-
(lt || !_t && Bt) && (Bt && (bt.originalMinHeight = bt.minHeight, bt.minHeight = Vt, yt.minHeight = Math.max(bt.originalMinHeight - Vt, p)), yt.tdList.forEach((
|
|
25758
|
-
|
|
25759
|
-
...
|
|
25767
|
+
(lt || !_t && Bt) && (Bt && (bt.originalMinHeight = bt.minHeight, bt.minHeight = Vt, yt.minHeight = Math.max(bt.originalMinHeight - Vt, p)), yt.tdList.forEach((It) => {
|
|
25768
|
+
It.original.linkTdNextId = It.id, It.value.length && It.value[0].value !== _ && It.value.unshift({
|
|
25769
|
+
...It.original.value.slice(-1).pop(),
|
|
25760
25770
|
value: _,
|
|
25761
25771
|
type: P.SPLIT_TAG
|
|
25762
25772
|
});
|
|
25763
|
-
}), Ft.splice(Ut + 1, 0, yt), Ut += 1, wt = Ft.length - Ut, Mt = !1), Te.forEach((
|
|
25764
|
-
if (
|
|
25765
|
-
const Ct =
|
|
25766
|
-
|
|
25767
|
-
const Ot = yt.tdList.find((rt) => rt.colIndex ===
|
|
25773
|
+
}), Ft.splice(Ut + 1, 0, yt), Ut += 1, wt = Ft.length - Ut, Mt = !1), Te.forEach((It) => {
|
|
25774
|
+
if (It.rowspan > 1) {
|
|
25775
|
+
const Ct = It.rowspan - (mt - It.trIndex);
|
|
25776
|
+
It.rowspan = mt - It.trIndex + (lt ? 1 : 0);
|
|
25777
|
+
const Ot = yt.tdList.find((rt) => rt.colIndex === It.colIndex);
|
|
25768
25778
|
lt ? Ot.rowspan = Ct : (Ot.original.linkTdNextId = Ot.id, bt.tdList.push({
|
|
25769
|
-
...
|
|
25779
|
+
...It,
|
|
25770
25780
|
...Ot,
|
|
25771
25781
|
rowspan: Ct
|
|
25772
25782
|
}), bt.tdList.sort((rt, ot) => rt.colIndex - ot.colIndex), Ot.value = []);
|
|
25773
25783
|
}
|
|
25774
|
-
}), Mt && Te.forEach((
|
|
25775
|
-
|
|
25784
|
+
}), Mt && Te.forEach((It, Ct) => {
|
|
25785
|
+
It.value.push(...$t[Ct].value);
|
|
25776
25786
|
});
|
|
25777
25787
|
break;
|
|
25778
25788
|
}
|
|
25779
25789
|
}
|
|
25780
|
-
Ut =
|
|
25790
|
+
Ut = mt + 1, wt = Ft.length - Ut, se += Zt, Vt -= Zt;
|
|
25781
25791
|
}
|
|
25782
25792
|
if (wt) {
|
|
25783
|
-
const
|
|
25784
|
-
E.pagingId =
|
|
25785
|
-
const
|
|
25786
|
-
|
|
25793
|
+
const mt = Ft.splice(Ut, wt), Tt = E.pagingId || Lt();
|
|
25794
|
+
E.pagingId = Tt;
|
|
25795
|
+
const Zt = ut(E);
|
|
25796
|
+
Zt.originalId = E.originalId ?? E.id, Zt.pagingId = Tt, Zt.pagingIndex = E.pagingIndex + 1;
|
|
25787
25797
|
const bt = Ft.filter(($t) => $t.pagingRepeat);
|
|
25788
25798
|
if (bt.length) {
|
|
25789
25799
|
const $t = ut(bt);
|
|
25790
|
-
$t.forEach((Te) => Te.id = Lt()),
|
|
25800
|
+
$t.forEach((Te) => Te.id = Lt()), mt.unshift(...$t);
|
|
25791
25801
|
}
|
|
25792
|
-
|
|
25802
|
+
Zt.trList = mt, Zt.id = Lt(), Zt.trList?.forEach(($t) => {
|
|
25793
25803
|
$t.tdList.forEach((Te) => {
|
|
25794
25804
|
if (delete Te.valueStartIndex, Te.linkTdPrevId) {
|
|
25795
25805
|
const Mt = this.getTdById(Te.linkTdPrevId);
|
|
@@ -25798,9 +25808,9 @@ class xp {
|
|
|
25798
25808
|
...Te.value
|
|
25799
25809
|
]);
|
|
25800
25810
|
}
|
|
25801
|
-
Te.value.forEach((Mt) => this.updateElementTableInfo(Mt,
|
|
25811
|
+
Te.value.forEach((Mt) => this.updateElementTableInfo(Mt, Zt, $t, Te));
|
|
25802
25812
|
});
|
|
25803
|
-
}), this.spliceElementList(n, X + 1, 0, [
|
|
25813
|
+
}), this.spliceElementList(n, X + 1, 0, [Zt]), this.tableParticle.computeTrHeight(E);
|
|
25804
25814
|
const Nt = this.tableParticle.getTableHeight(E), yt = Nt * d;
|
|
25805
25815
|
E.height = Nt, x.height = yt, x.boundingBoxDescent = yt;
|
|
25806
25816
|
}
|
|
@@ -25810,12 +25820,12 @@ class xp {
|
|
|
25810
25820
|
if (Ft.isTable) {
|
|
25811
25821
|
let Ut = -1, wt = -1, se = X;
|
|
25812
25822
|
for (; se < n.length; ) {
|
|
25813
|
-
const
|
|
25814
|
-
if (
|
|
25823
|
+
const mt = n[se];
|
|
25824
|
+
if (mt.pagingId !== E.pagingId)
|
|
25815
25825
|
break;
|
|
25816
|
-
const
|
|
25817
|
-
if (~
|
|
25818
|
-
Ut = se, wt =
|
|
25826
|
+
const Tt = mt.trList.findIndex((Zt) => Zt.id === Ft.trId);
|
|
25827
|
+
if (~Tt) {
|
|
25828
|
+
Ut = se, wt = Tt;
|
|
25819
25829
|
break;
|
|
25820
25830
|
}
|
|
25821
25831
|
se++;
|
|
@@ -25827,9 +25837,9 @@ class xp {
|
|
|
25827
25837
|
this.initTableElementIndex(E, X);
|
|
25828
25838
|
} else if (E.type === P.SEPARATOR) {
|
|
25829
25839
|
const { separator: { lineWidth: it } } = this.options, q = E.lineWidth || it;
|
|
25830
|
-
E.width =
|
|
25840
|
+
E.width = v / d, x.width = v, x.height = q * d, x.boundingBoxAscent = -U, x.boundingBoxDescent = -U + x.height;
|
|
25831
25841
|
} else if (E.type === P.PAGE_BREAK)
|
|
25832
|
-
E.width =
|
|
25842
|
+
E.width = v / d, x.width = v, x.height = h;
|
|
25833
25843
|
else if (E.type === P.RADIO || E.controlComponent === R.RADIO) {
|
|
25834
25844
|
const { width: it, height: q, gap: J } = this.options.radio, z = it + J * (E.controlComponent ? 1 : 2);
|
|
25835
25845
|
E.width = z, x.width = z * d, x.height = q * d;
|
|
@@ -25849,10 +25859,10 @@ class xp {
|
|
|
25849
25859
|
x.width = I * d, x.height = h * d, x.boundingBoxDescent = 0, x.boundingBoxAscent = this.textParticle.getBasisWordBoundingBoxAscent(T, T.font);
|
|
25850
25860
|
else if (E.type === P.BLOCK) {
|
|
25851
25861
|
if (!E.width)
|
|
25852
|
-
x.width =
|
|
25862
|
+
x.width = v;
|
|
25853
25863
|
else {
|
|
25854
25864
|
const it = E.width * d;
|
|
25855
|
-
x.width = Math.min(it,
|
|
25865
|
+
x.width = Math.min(it, v);
|
|
25856
25866
|
}
|
|
25857
25867
|
x.height = E.height * d, x.boundingBoxDescent = x.height, x.boundingBoxAscent = 0;
|
|
25858
25868
|
} else if (E.type === P.LABEL) {
|
|
@@ -25884,7 +25894,7 @@ class xp {
|
|
|
25884
25894
|
const Xt = tt || `请选择${xt}`, Vt = T.measureText(Xt), Ft = T.measureText("[").width, Ut = 6 * d + 2 * d;
|
|
25885
25895
|
x.width = Ft + Vt.width + Ut + Ft;
|
|
25886
25896
|
} else {
|
|
25887
|
-
const Vt = (tt || `请输入${xt}`).split(Hn), Ft = Vt.reduce((se,
|
|
25897
|
+
const Vt = (tt || `请输入${xt}`).split(Hn), Ft = Vt.reduce((se, mt) => Math.max(se, T.measureText(mt).width), 0), Ut = T.measureText("[").width, wt = (E.size || it) * d;
|
|
25888
25898
|
x.width = Ut + Ft + Ut, x.height = wt * Vt.length, x.boundingBoxAscent = ft.actualBoundingBoxAscent * d, x.boundingBoxDescent = ft.actualBoundingBoxDescent * d + wt * (Vt.length - 1);
|
|
25889
25899
|
}
|
|
25890
25900
|
Rt === "select" && (x.height = (E.size || it) * d, x.boundingBoxDescent = ft.actualBoundingBoxDescent * d, x.boundingBoxAscent = ft.actualBoundingBoxAscent * d);
|
|
@@ -25934,7 +25944,7 @@ class xp {
|
|
|
25934
25944
|
G.control?.minWidth && (G.controlComponent && (W += x.width), G.controlComponent === R.POSTFIX && (this.control.setMinWidthControlInfo({
|
|
25935
25945
|
row: D,
|
|
25936
25946
|
rowElement: G,
|
|
25937
|
-
availableWidth:
|
|
25947
|
+
availableWidth: v,
|
|
25938
25948
|
controlRealWidth: W
|
|
25939
25949
|
}), W = 0));
|
|
25940
25950
|
const B = n[X - 1];
|
|
@@ -25943,7 +25953,7 @@ class xp {
|
|
|
25943
25953
|
const it = `${B?.value || ""}${E.value}`;
|
|
25944
25954
|
if (this.WORD_LIKE_REG.test(it)) {
|
|
25945
25955
|
const { width: J, endElement: z } = this.textParticle.measureWord(T, n, X), at = J * d;
|
|
25946
|
-
z && at <=
|
|
25956
|
+
z && at <= v ? (j += at, nt = z) : B && (j += at);
|
|
25947
25957
|
}
|
|
25948
25958
|
const q = this.textParticle.measurePunctuationWidth(T, nt);
|
|
25949
25959
|
j += q * d;
|
|
@@ -25959,7 +25969,7 @@ class xp {
|
|
|
25959
25969
|
height: $,
|
|
25960
25970
|
width: A
|
|
25961
25971
|
},
|
|
25962
|
-
availableWidth:
|
|
25972
|
+
availableWidth: v,
|
|
25963
25973
|
surroundElementList: u
|
|
25964
25974
|
});
|
|
25965
25975
|
N = Yt.x, j += Yt.rowIncreaseWidth, N += A;
|
|
@@ -25985,10 +25995,10 @@ class xp {
|
|
|
25985
25995
|
J += tt.width * d;
|
|
25986
25996
|
}
|
|
25987
25997
|
}
|
|
25988
|
-
At = D.width + J >
|
|
25998
|
+
At = D.width + J > v;
|
|
25989
25999
|
}
|
|
25990
26000
|
}
|
|
25991
|
-
const Ne = E.type === P.SEPARATOR || E.type === P.TABLE || B?.type === P.TABLE || B?.type === P.CUSTOM_MACRO && Hn.test(B.macroConfig?.value || "") || B?.type === P.REUSABLE_ITEM && Hn.test(B.reusableItemConfig?.value || "") || B?.type === P.BLOCK || E.type === P.BLOCK || B?.imgDisplay === Et.INLINE || E.imgDisplay === Et.INLINE || B?.listId !== E.listId || B?.areaId !== E.areaId && !E.area?.hide || E.control?.flexDirection === ns.COLUMN && (E.controlComponent === R.CHECKBOX || E.controlComponent === R.RADIO) && B?.controlComponent === R.VALUE || X !== 0 && E.value === _ && !E.area?.hide || At, ce = j >
|
|
26001
|
+
const Ne = E.type === P.SEPARATOR || E.type === P.TABLE || B?.type === P.TABLE || B?.type === P.CUSTOM_MACRO && Hn.test(B.macroConfig?.value || "") || B?.type === P.REUSABLE_ITEM && Hn.test(B.reusableItemConfig?.value || "") || B?.type === P.BLOCK || E.type === P.BLOCK || B?.imgDisplay === Et.INLINE || E.imgDisplay === Et.INLINE || B?.listId !== E.listId || B?.areaId !== E.areaId && !E.area?.hide || E.control?.flexDirection === ns.COLUMN && (E.controlComponent === R.CHECKBOX || E.controlComponent === R.RADIO) && B?.controlComponent === R.VALUE || X !== 0 && E.value === _ && !E.area?.hide || At, ce = j > v, Le = Ne || ce;
|
|
25992
26002
|
if (Le) {
|
|
25993
26003
|
const it = {
|
|
25994
26004
|
width: A,
|
|
@@ -26014,12 +26024,12 @@ class xp {
|
|
|
26014
26024
|
} else
|
|
26015
26025
|
D.width += A, X === 0 && (To(n[1]) || n[1]?.areaId) ? (D.height = m, D.ascent = m) : D.height < $ && (D.height = $, D.ascent = Y), D.elementList.push(G);
|
|
26016
26026
|
if ((Le || X === n.length - 1) && (D.isWidthNotEnough = ce && !Ne, !D.isSurround && (B?.rowFlex === kt.JUSTIFY || B?.rowFlex === kt.ALIGNMENT && D.isWidthNotEnough))) {
|
|
26017
|
-
const it = D.elementList[0]?.value === _ ? D.elementList.slice(1) : D.elementList, q = (
|
|
26027
|
+
const it = D.elementList[0]?.value === _ ? D.elementList.slice(1) : D.elementList, q = (v - D.width) / (it.length - 1);
|
|
26018
26028
|
for (let J = 0; J < it.length - 1; J++) {
|
|
26019
26029
|
const z = it[J];
|
|
26020
26030
|
z.metrics.width += q;
|
|
26021
26031
|
}
|
|
26022
|
-
D.width =
|
|
26032
|
+
D.width = v;
|
|
26023
26033
|
}
|
|
26024
26034
|
if (Le) {
|
|
26025
26035
|
N = s, w += D.height, i && !r && a && (w - l + c + $ > a || E.type === P.PAGE_BREAK) && (w = l, iu(u, V), V += 1), G.left = 0;
|
|
@@ -26034,7 +26044,7 @@ class xp {
|
|
|
26034
26044
|
height: $,
|
|
26035
26045
|
width: A
|
|
26036
26046
|
},
|
|
26037
|
-
availableWidth:
|
|
26047
|
+
availableWidth: v,
|
|
26038
26048
|
surroundElementList: u
|
|
26039
26049
|
}).x, N += A;
|
|
26040
26050
|
}
|
|
@@ -26237,9 +26247,9 @@ class xp {
|
|
|
26237
26247
|
this.textParticle.complete(), this.blockParticle.render(t, c, C, X, D + W);
|
|
26238
26248
|
else {
|
|
26239
26249
|
const Y = C.buttonValueLayoutPrefixOffset === !0;
|
|
26240
|
-
(C.left || Y) && this.textParticle.complete(), this.textParticle.record(t, C, X, D + W), (Y || C.width || C.letterSpacing ||
|
|
26250
|
+
(C.left || Y) && this.textParticle.complete(), this.textParticle.record(t, C, X, D + W), (Y || C.width || C.letterSpacing || va.test(C.value)) && this.textParticle.complete();
|
|
26241
26251
|
}
|
|
26242
|
-
if (g && !m && this.mode !== K.CLEAN && !F.isWidthNotEnough && V === F.elementList.length - 1 && this.lineBreakParticle.render(t, C, X, D + F.height / 2), I &&
|
|
26252
|
+
if (g && !m && this.mode !== K.CLEAN && !F.isWidthNotEnough && V === F.elementList.length - 1 && this.lineBreakParticle.render(t, C, X, D + F.height / 2), I && Za.test(C.value) && this.whiteSpaceParticle.render(t, C, X, D + F.height / 2), C.control?.border) {
|
|
26243
26253
|
E?.control?.border && E.controlId !== C.controlId && this.control.drawBorder(t);
|
|
26244
26254
|
const Y = this.getElementRowMargin(C);
|
|
26245
26255
|
this.control.recordBorderInfo(X, D + Y, C.metrics.width, F.height - 2 * Y);
|
|
@@ -26265,8 +26275,8 @@ class xp {
|
|
|
26265
26275
|
}
|
|
26266
26276
|
} else E?.strikeout && this.strikeout.render(t);
|
|
26267
26277
|
const { zone: U, splitTdRange: x } = this.range.getRange();
|
|
26268
|
-
let { startIndex: Q, endIndex:
|
|
26269
|
-
if (p && x && [p.originalId, p.id].includes(x.originalId) && (H = !0, Q = x.startIndex - (p.valueStartIndex ?? 0),
|
|
26278
|
+
let { startIndex: Q, endIndex: v } = this.range.getRange(), H = !1;
|
|
26279
|
+
if (p && x && [p.originalId, p.id].includes(x.originalId) && (H = !0, Q = x.startIndex - (p.valueStartIndex ?? 0), v = x.endIndex - (p.valueStartIndex ?? 0)), U === f && Q !== v && Q <= S && S <= v) {
|
|
26270
26280
|
const Y = this.position.getPositionContext();
|
|
26271
26281
|
if (!Y.isTable && !C.tdId || // positionContext.tdId === element.tdId
|
|
26272
26282
|
Y.tdId === C.tdId || H)
|
|
@@ -26438,7 +26448,7 @@ class xp {
|
|
|
26438
26448
|
this.footer.compute(), i("footer.compute", A);
|
|
26439
26449
|
}
|
|
26440
26450
|
}
|
|
26441
|
-
const X = this.getMargins(), D = this.getHeight(), E = this.header.getExtraHeight(), U = this.getMainOuterHeight(), x = X[3], Q = X[0] + E,
|
|
26451
|
+
const X = this.getMargins(), D = this.getHeight(), E = this.header.getExtraHeight(), U = this.getMainOuterHeight(), x = X[3], Q = X[0] + E, v = Us(this.elementList), H = ge();
|
|
26442
26452
|
this.rowList = this.computeRowList({
|
|
26443
26453
|
startX: x,
|
|
26444
26454
|
startY: Q,
|
|
@@ -26446,7 +26456,7 @@ class xp {
|
|
|
26446
26456
|
mainOuterHeight: U,
|
|
26447
26457
|
isPagingMode: N,
|
|
26448
26458
|
innerWidth: F,
|
|
26449
|
-
surroundElementList:
|
|
26459
|
+
surroundElementList: v,
|
|
26450
26460
|
elementList: this.elementList
|
|
26451
26461
|
}), i("computeRowList", H);
|
|
26452
26462
|
const Y = ge();
|
|
@@ -27072,7 +27082,7 @@ class wp {
|
|
|
27072
27082
|
i.length && i.sort((u, h) => h.index - u.index).forEach((u) => {
|
|
27073
27083
|
t.splice(u.index, 1);
|
|
27074
27084
|
});
|
|
27075
|
-
const c =
|
|
27085
|
+
const c = vt(n);
|
|
27076
27086
|
!c.length || l && !i.length || a < 0 || c.forEach((u, h) => {
|
|
27077
27087
|
const d = {
|
|
27078
27088
|
...ie(r, me),
|
|
@@ -27644,7 +27654,7 @@ class wp {
|
|
|
27644
27654
|
hide: !1
|
|
27645
27655
|
});
|
|
27646
27656
|
for (let L = 0; L < s.length; L++) {
|
|
27647
|
-
const T = s[L], O = s.length > 1 ? `${L + 1}.${T.value}` : T.value, S =
|
|
27657
|
+
const T = s[L], O = s.length > 1 ? `${L + 1}.${T.value}` : T.value, S = vt(O);
|
|
27648
27658
|
for (let M = 0; M < S.length; M++)
|
|
27649
27659
|
f.push({
|
|
27650
27660
|
value: S[M],
|
|
@@ -28404,7 +28414,7 @@ class wp {
|
|
|
28404
28414
|
this.draw.getCursor().getHitLineStartIndex() || (O = L?.elementList[0]?.value === _ ? d?.index - L?.startIndex : d?.index - L?.startIndex + 1), d === f ? S = O : S = T.elementList[0]?.value === _ ? f.index - T.startIndex : f.index - T.startIndex + 1;
|
|
28405
28415
|
const M = [], F = this.draw.getOriginalHeight(), N = this.draw.getOriginalPageGap(), w = this.position.getSelectionPositionList();
|
|
28406
28416
|
if (w) {
|
|
28407
|
-
let Q = null,
|
|
28417
|
+
let Q = null, v = 0, H = null;
|
|
28408
28418
|
for (let Y = 0; Y < w.length; Y++) {
|
|
28409
28419
|
const { rowNo: $, pageNo: G, coordinate: { leftTop: A, rightTop: B }, lineHeight: nt } = w[Y];
|
|
28410
28420
|
Q === null || Q !== $ ? (H && M.push(H), H = {
|
|
@@ -28412,10 +28422,10 @@ class wp {
|
|
|
28412
28422
|
y: A[1] + G * (F + N),
|
|
28413
28423
|
width: B[0] - A[0],
|
|
28414
28424
|
height: nt
|
|
28415
|
-
}, Q = $,
|
|
28425
|
+
}, Q = $, v = A[0]) : H.width = B[0] - v, Y === w.length - 1 && H && M.push(H);
|
|
28416
28426
|
}
|
|
28417
28427
|
} else {
|
|
28418
|
-
const
|
|
28428
|
+
const v = this.position.getPositionList()[n], { coordinate: { rightTop: H }, pageNo: Y, lineHeight: $ } = v;
|
|
28419
28429
|
M.push({
|
|
28420
28430
|
x: H[0],
|
|
28421
28431
|
y: H[1] + Y * (F + N),
|
|
@@ -28426,13 +28436,13 @@ class wp {
|
|
|
28426
28436
|
const V = this.draw.getZone().getZone(), { isTable: C, trIndex: y, tdIndex: W, index: X } = this.position.getPositionContext();
|
|
28427
28437
|
let D = null;
|
|
28428
28438
|
if (C) {
|
|
28429
|
-
const
|
|
28430
|
-
|
|
28439
|
+
const v = this.draw.getOriginalElementList()[X] || null;
|
|
28440
|
+
v && (D = Kt([v])[0]);
|
|
28431
28441
|
}
|
|
28432
28442
|
let E = null, U = null, x = e - 1;
|
|
28433
28443
|
for (; x > 0; ) {
|
|
28434
|
-
const Q = l[x],
|
|
28435
|
-
if (Q.titleId && Q.titleId !==
|
|
28444
|
+
const Q = l[x], v = l[x - 1];
|
|
28445
|
+
if (Q.titleId && Q.titleId !== v?.titleId) {
|
|
28436
28446
|
E = Q.titleId, U = h[x].pageNo;
|
|
28437
28447
|
break;
|
|
28438
28448
|
}
|
|
@@ -28647,29 +28657,38 @@ class wp {
|
|
|
28647
28657
|
const { id: e, conceptId: n } = t, i = [];
|
|
28648
28658
|
if (!e && !n)
|
|
28649
28659
|
return i;
|
|
28650
|
-
const r = (l) => {
|
|
28651
|
-
let
|
|
28652
|
-
for (;
|
|
28653
|
-
const
|
|
28654
|
-
if (
|
|
28655
|
-
|
|
28656
|
-
|
|
28657
|
-
|
|
28658
|
-
|
|
28659
|
-
|
|
28660
|
-
|
|
28660
|
+
const r = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), l = (c) => {
|
|
28661
|
+
let u = 0;
|
|
28662
|
+
for (; u < c.length; ) {
|
|
28663
|
+
const h = c[u];
|
|
28664
|
+
if (u++, !r.has(h)) {
|
|
28665
|
+
if (r.add(h), h.type === P.TABLE) {
|
|
28666
|
+
const d = h.trList;
|
|
28667
|
+
for (let f = 0; f < d.length; f++) {
|
|
28668
|
+
const g = d[f];
|
|
28669
|
+
for (let p = 0; p < g.tdList.length; p++) {
|
|
28670
|
+
const I = g.tdList[p];
|
|
28671
|
+
l(I.value);
|
|
28672
|
+
}
|
|
28673
|
+
}
|
|
28674
|
+
}
|
|
28675
|
+
if (h.valueList?.length && l(h.valueList), h.control?.value?.length && l(h.control.value), !(e && h.id !== e || n && h.conceptId !== n)) {
|
|
28676
|
+
if (e && h.id) {
|
|
28677
|
+
if (s.has(h.id))
|
|
28678
|
+
continue;
|
|
28679
|
+
s.add(h.id);
|
|
28661
28680
|
}
|
|
28681
|
+
i.push(h);
|
|
28662
28682
|
}
|
|
28663
28683
|
}
|
|
28664
|
-
e && c.id !== e || n && c.conceptId !== n || i.push(c);
|
|
28665
28684
|
}
|
|
28666
|
-
},
|
|
28685
|
+
}, a = [
|
|
28667
28686
|
this.draw.getHeaderElementList(),
|
|
28668
28687
|
this.draw.getOriginalMainElementList(),
|
|
28669
28688
|
this.draw.getFooterElementList()
|
|
28670
28689
|
];
|
|
28671
|
-
for (const
|
|
28672
|
-
|
|
28690
|
+
for (const c of a)
|
|
28691
|
+
l(c);
|
|
28673
28692
|
return Kt(i, {
|
|
28674
28693
|
extraPickAttrs: ["id"]
|
|
28675
28694
|
});
|
|
@@ -29509,7 +29528,7 @@ class wp {
|
|
|
29509
29528
|
subTemplateContent: i?.map((c) => ut(c)),
|
|
29510
29529
|
subTemplateRelation: s,
|
|
29511
29530
|
subTemplateConditions: r?.map((c) => ({ ...c })),
|
|
29512
|
-
subTemplateExpanded: !
|
|
29531
|
+
subTemplateExpanded: this.options.mode === K.FORM && !r?.length
|
|
29513
29532
|
};
|
|
29514
29533
|
this.insertElementList([a], { isSubmitHistory: l });
|
|
29515
29534
|
}
|
|
@@ -29609,7 +29628,7 @@ class wp {
|
|
|
29609
29628
|
}
|
|
29610
29629
|
}
|
|
29611
29630
|
}
|
|
29612
|
-
class
|
|
29631
|
+
class vp {
|
|
29613
29632
|
rangeStyleChange;
|
|
29614
29633
|
visiblePageNoListChange;
|
|
29615
29634
|
intersectionPageNoChange;
|
|
@@ -29625,7 +29644,7 @@ class Zp {
|
|
|
29625
29644
|
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;
|
|
29626
29645
|
}
|
|
29627
29646
|
}
|
|
29628
|
-
class
|
|
29647
|
+
class Zp {
|
|
29629
29648
|
contextMenu;
|
|
29630
29649
|
contextMenuList;
|
|
29631
29650
|
getContextMenuList;
|
|
@@ -29908,7 +29927,7 @@ const kp = [
|
|
|
29908
29927
|
}
|
|
29909
29928
|
]
|
|
29910
29929
|
}
|
|
29911
|
-
], { TABLE: { BORDER: gT, BORDER_ALL: fT, BORDER_EMPTY: pT, BORDER_DASH: TT, BORDER_EXTERNAL: IT, BORDER_INTERNAL: mT, BORDER_TD: LT, BORDER_TD_TOP: PT, BORDER_TD_LEFT: ET, BORDER_TD_BOTTOM: OT, BORDER_TD_RIGHT: MT, BORDER_TD_BACK: ST, BORDER_TD_FORWARD: DT, VERTICAL_ALIGN: CT, VERTICAL_ALIGN_TOP: FT, VERTICAL_ALIGN_MIDDLE: XT, VERTICAL_ALIGN_BOTTOM: NT, INSERT_ROW_COL: xT, INSERT_TOP_ROW: bT, INSERT_BOTTOM_ROW: yT, INSERT_LEFT_COL: VT, INSERT_RIGHT_COL: WT, DELETE_ROW_COL: YT, DELETE_ROW: UT, DELETE_COL: wT, DELETE_TABLE:
|
|
29930
|
+
], { TABLE: { BORDER: gT, BORDER_ALL: fT, BORDER_EMPTY: pT, BORDER_DASH: TT, BORDER_EXTERNAL: IT, BORDER_INTERNAL: mT, BORDER_TD: LT, BORDER_TD_TOP: PT, BORDER_TD_LEFT: ET, BORDER_TD_BOTTOM: OT, BORDER_TD_RIGHT: MT, BORDER_TD_BACK: ST, BORDER_TD_FORWARD: DT, VERTICAL_ALIGN: CT, VERTICAL_ALIGN_TOP: FT, VERTICAL_ALIGN_MIDDLE: XT, VERTICAL_ALIGN_BOTTOM: NT, INSERT_ROW_COL: xT, INSERT_TOP_ROW: bT, INSERT_BOTTOM_ROW: yT, INSERT_LEFT_COL: VT, INSERT_RIGHT_COL: WT, DELETE_ROW_COL: YT, DELETE_ROW: UT, DELETE_COL: wT, DELETE_TABLE: vT, MERGE_CELL: ZT, CANCEL_MERGE_CELL: QT } } = Ao, HT = [
|
|
29912
29931
|
{
|
|
29913
29932
|
isDivider: !0
|
|
29914
29933
|
},
|
|
@@ -30131,7 +30150,7 @@ const kp = [
|
|
|
30131
30150
|
}
|
|
30132
30151
|
},
|
|
30133
30152
|
{
|
|
30134
|
-
key:
|
|
30153
|
+
key: vT,
|
|
30135
30154
|
i18nPath: "contextmenu.table.deleteTable",
|
|
30136
30155
|
icon: "delete-table",
|
|
30137
30156
|
when: () => !0,
|
|
@@ -30142,7 +30161,7 @@ const kp = [
|
|
|
30142
30161
|
]
|
|
30143
30162
|
},
|
|
30144
30163
|
{
|
|
30145
|
-
key:
|
|
30164
|
+
key: ZT,
|
|
30146
30165
|
i18nPath: "contextmenu.table.mergeCell",
|
|
30147
30166
|
icon: "merge-cell",
|
|
30148
30167
|
when: (o) => !o.isReadonly && o.isCrossRowCol,
|
|
@@ -30653,7 +30672,7 @@ class eI {
|
|
|
30653
30672
|
editorOptions: i,
|
|
30654
30673
|
isForceCompensation: !0
|
|
30655
30674
|
});
|
|
30656
|
-
}), this.version = xs, this.listener = new
|
|
30675
|
+
}), this.version = xs, this.listener = new vp(), this.eventBus = new JT(), this.override = new $T(), this.draw = new xp(t, i, {
|
|
30657
30676
|
header: r,
|
|
30658
30677
|
main: s,
|
|
30659
30678
|
footer: l,
|
|
@@ -30662,7 +30681,7 @@ class eI {
|
|
|
30662
30681
|
const u = this.draw;
|
|
30663
30682
|
this.command = new bp(new wp(u)), u.setCommand(this.command);
|
|
30664
30683
|
const h = new KT(u, this.command), d = new GT(u, this.command);
|
|
30665
|
-
this.register = new
|
|
30684
|
+
this.register = new Zp({
|
|
30666
30685
|
contextMenu: h,
|
|
30667
30686
|
shortcut: d,
|
|
30668
30687
|
i18n: u.getI18n()
|
|
@@ -30758,5 +30777,5 @@ export {
|
|
|
30758
30777
|
eI as default,
|
|
30759
30778
|
Xo as getElementListByHTML,
|
|
30760
30779
|
so as getTextFromElementList,
|
|
30761
|
-
|
|
30780
|
+
vt as splitText
|
|
30762
30781
|
};
|