ht-emr 0.7.47 → 0.7.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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.47";
2
+ const xs = "0.7.49";
3
3
  var Jn;
4
4
  (function(o) {
5
5
  o.HALF = "half", o.ONE_THIRD = "one-third", o.QUARTER = "quarter";
@@ -21,7 +21,7 @@ var ns;
21
21
  o.ROW = "row", o.COLUMN = "column";
22
22
  })(ns || (ns = {}));
23
23
  const _ = "​", Ir = `
24
- `, bs = " ", mr = " ", Va = [
24
+ `, bs = " ", mr = " ", Wa = [
25
25
  "·",
26
26
  "、",
27
27
  ":",
@@ -52,14 +52,14 @@ const _ = "​", Ir = `
52
52
  DUTCH: "A-Za-zÀàÁáÂâÄäÈèÉéÊêËëÌìÍíÎîÏïÓóÒòÔôÖöÙùÛûÜü",
53
53
  SWEDISH: "A-Za-zÅåÄäÖö",
54
54
  GREEK: "ΑαΒβΓγΔδΕεΖζΗηΘθΙιΚκΛλΜμΝνΞξΟοΠπΡρΣσςΤτΥυΦφΧχΨψΩω"
55
- }, Wa = "中";
55
+ }, Ya = "中";
56
56
  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-\uD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2695\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
- ]`), va = /\s/;
62
- function Qa(o, t) {
60
+ const Qi = /[0-9.]/, Ua = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, wa = /[#*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\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DFFB-\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, Za = new RegExp(`${wa.source}|${Ua.source}`, "g"), va = /[、,。?!;:……「」“”‘’*()【】〔〕〖〗〘〙〚〛《》———﹝﹞–—\\/·.,!?;:`~<>()[\]{}'"|]/, ys = new RegExp(`^[${_}
61
+ ]`), Qa = /\s/;
62
+ function Ha(o, t) {
63
63
  let e;
64
64
  return function(...n) {
65
65
  e && window.clearTimeout(e), e = window.setTimeout(() => {
@@ -67,7 +67,7 @@ function Qa(o, t) {
67
67
  }, t);
68
68
  };
69
69
  }
70
- function Ha(o, t) {
70
+ function Ka(o, t) {
71
71
  let e = 0, n;
72
72
  return function(...i) {
73
73
  const r = Date.now();
@@ -120,7 +120,7 @@ function Zt(o) {
120
120
  t.push(i);
121
121
  } else {
122
122
  const e = /* @__PURE__ */ new Map();
123
- for (const i of o.matchAll(wa))
123
+ for (const i of o.matchAll(Za))
124
124
  e.set(i.index, i[0]);
125
125
  let n = 0;
126
126
  for (; n < o.length; ) {
@@ -134,10 +134,10 @@ function rl(o, t) {
134
134
  const e = document.createElement("a");
135
135
  e.href = o, e.download = t, e.click();
136
136
  }
137
- function Ka(o, t) {
138
- Aa(3, o, t);
137
+ function Aa(o, t) {
138
+ _a(3, o, t);
139
139
  }
140
- function Aa(o, t, e) {
140
+ function _a(o, t, e) {
141
141
  let n = 0, i = 0, r = null, s = null;
142
142
  const l = function(a) {
143
143
  const c = (/* @__PURE__ */ new Date()).getTime(), u = r !== null && s !== null && Math.abs(a.clientX - r) <= 5 && Math.abs(a.clientY - s) <= 5;
@@ -154,7 +154,7 @@ function is(o) {
154
154
  function ss(o) {
155
155
  return Object.prototype.toString.call(o) === "[object Number]";
156
156
  }
157
- function _a(o) {
157
+ function Ba(o) {
158
158
  return Object.prototype.toString.call(o) === "[object String]";
159
159
  }
160
160
  function ll(o, t) {
@@ -182,7 +182,7 @@ function Vs(o) {
182
182
  o();
183
183
  }, 0);
184
184
  }
185
- function Ba(o) {
185
+ function Ga(o) {
186
186
  const t = [
187
187
  "零",
188
188
  "一",
@@ -246,11 +246,11 @@ function Ye(o, t) {
246
246
  t.includes(n) || (e[n] = o[n]);
247
247
  return e;
248
248
  }
249
- function Ga(o) {
249
+ function ka(o) {
250
250
  const e = new TextEncoder().encode(o), n = Array.from(e, (r) => String.fromCharCode(r));
251
251
  return window.btoa(n.join(""));
252
252
  }
253
- function ka(o) {
253
+ function Ja(o) {
254
254
  let t = o.parentElement;
255
255
  for (; t; ) {
256
256
  const n = window.getComputedStyle(t).getPropertyValue("overflow-y");
@@ -263,13 +263,13 @@ function ka(o) {
263
263
  function al(o, t) {
264
264
  return o.length !== t.length ? !1 : !o.some((e) => !t.includes(e));
265
265
  }
266
- function Ja(o, t) {
266
+ function $a(o, t) {
267
267
  if (!ai(o) || !ai(t))
268
268
  return !1;
269
269
  const e = Object.keys(o), n = Object.keys(t);
270
270
  return e.length !== n.length ? !1 : !e.some((i) => t[i] !== o[i]);
271
271
  }
272
- function $a(o, t) {
272
+ function za(o, t) {
273
273
  const e = o.x, n = o.x + o.width, i = o.y, r = o.y + o.height, s = t.x, l = t.x + t.width, a = t.y, c = t.y + t.height;
274
274
  return !(e > l || n < s || i > c || r < a);
275
275
  }
@@ -310,11 +310,11 @@ function rs(o, t) {
310
310
  function ge() {
311
311
  return typeof performance < "u" && performance.now ? performance.now() : Date.now();
312
312
  }
313
- function za(o, t) {
313
+ function ja(o, t) {
314
314
  return o.performance.enabled && t >= o.performance.threshold;
315
315
  }
316
316
  function Ws(o, t, e, n = [], i) {
317
- if (!za(o, e))
317
+ if (!ja(o, e))
318
318
  return;
319
319
  const r = {
320
320
  duration: Number(e.toFixed(2)),
@@ -326,7 +326,7 @@ function Ws(o, t, e, n = [], i) {
326
326
  };
327
327
  console.log(`[canvas-editor perf] ${t}`, r);
328
328
  }
329
- const ul = 12, ja = {
329
+ const ul = 12, qa = {
330
330
  width: 1,
331
331
  color: "#000000",
332
332
  dragWidth: 2,
@@ -354,7 +354,7 @@ var oe;
354
354
  (function(o) {
355
355
  o.UP = "top", o.DOWN = "down", o.LEFT = "left", o.RIGHT = "right";
356
356
  })(oe || (oe = {}));
357
- const An = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), qa = typeof navigator < "u" && /iPad|iPhone/.test(navigator.userAgent), tc = /Mobile|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), ec = typeof navigator < "u" && /Firefox/.test(navigator.userAgent);
357
+ const An = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), tc = typeof navigator < "u" && /iPad|iPhone/.test(navigator.userAgent), ec = /Mobile|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), nc = typeof navigator < "u" && /Firefox/.test(navigator.userAgent);
358
358
  var P;
359
359
  (function(o) {
360
360
  o.TEXT = "text", o.TEXTFIELD = "TextField", o.BUTTON = "button", o.IMAGE = "image", o.TABLE = "table", o.HYPERLINK = "hyperlink", o.SUPERSCRIPT = "superscript", o.SUBSCRIPT = "subscript", o.SEPARATOR = "separator", o.PAGE_BREAK = "pageBreak", o.CONTROL = "control", o.AREA = "area", o.CHECKBOX = "checkbox", o.RADIO = "radio", o.LATEX = "latex", o.TAB = "tab", o.DATE = "date", o.BLOCK = "block", o.TITLE = "title", o.LIST = "list", o.SPLIT_TAG = "splitTag", o.LABEL = "label", o.MENSTRUAL_HISTORY = "menstrualHistory", o.FETAL_HEART_POSITION = "fetalHeartPosition", o.TOOTH_POSITION = "toothPosition", o.SPECIAL_SYMBOLS = "specialSymbols", o.MACRO = "macro", o.CUSTOM_MACRO = "customMacro", o.REUSABLE_ITEM = "reusableItem", o.SUB_TEMPLATE = "subTemplate";
@@ -377,7 +377,7 @@ const Ge = [
377
377
  "rowFlex",
378
378
  "vertical",
379
379
  "rowMargin"
380
- ], nc = [
380
+ ], oc = [
381
381
  "type",
382
382
  "font",
383
383
  "size",
@@ -405,7 +405,7 @@ const Ge = [
405
405
  "newElEditPerson",
406
406
  "deleteTime",
407
407
  "newElEditTime"
408
- ], oc = [
408
+ ], ic = [
409
409
  "type",
410
410
  "font",
411
411
  "size",
@@ -483,7 +483,7 @@ const Ge = [
483
483
  "subTemplateRelation",
484
484
  "subTemplateConditions",
485
485
  "subTemplateExpanded"
486
- ], ic = [
486
+ ], sc = [
487
487
  "conceptId",
488
488
  "extension",
489
489
  "externalId",
@@ -533,15 +533,15 @@ const Ge = [
533
533
  P.SUPERSCRIPT,
534
534
  P.CONTROL,
535
535
  P.DATE
536
- ], sc = [
536
+ ], rc = [
537
537
  P.IMAGE,
538
538
  P.LATEX
539
- ], rc = [
539
+ ], lc = [
540
540
  P.BLOCK,
541
541
  P.PAGE_BREAK,
542
542
  P.SEPARATOR,
543
543
  P.TABLE
544
- ], lc = ["HR", "TABLE", "UL", "OL"], ac = [
544
+ ], ac = ["HR", "TABLE", "UL", "OL"], cc = [
545
545
  P.TITLE,
546
546
  P.LIST
547
547
  ];
@@ -639,7 +639,7 @@ class dl {
639
639
  </pattern>
640
640
  </defs>
641
641
  </svg>`, l = new Image();
642
- return l.src = `data:image/svg+xml;base64,${Ga(s)}`, l;
642
+ return l.src = `data:image/svg+xml;base64,${ka(s)}`, l;
643
643
  }
644
644
  _drawImageWithCrop(t, e, n, i, r, s, l) {
645
645
  if (n.imgCrop) {
@@ -699,10 +699,10 @@ class dl {
699
699
  }
700
700
  const Go = 82;
701
701
  function io(o) {
702
- return cs[o] == null && cc(o), cs[o];
702
+ return cs[o] == null && uc(o), cs[o];
703
703
  }
704
- function cc(o) {
705
- const t = uc[o];
704
+ function uc(o) {
705
+ const t = dc[o];
706
706
  if (t == null)
707
707
  return;
708
708
  const e = t.substring(3, 5), n = 1 * e.charCodeAt(0) - Go, i = 1 * e.charCodeAt(1) - Go, r = t.substring(5), s = [[]];
@@ -726,7 +726,7 @@ function cc(o) {
726
726
  polylines: s
727
727
  };
728
728
  }
729
- const cs = {}, uc = {
729
+ const cs = {}, dc = {
730
730
  1: " 9MWRMNV RRMVV RPSTS",
731
731
  2: " 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",
732
732
  3: " 11MXVNTMRMPNOPOSPURVTVVU",
@@ -2556,7 +2556,7 @@ const Ze = {
2556
2556
  LINE_SPACING: 0.5,
2557
2557
  FRAC_SPACING: 0.4
2558
2558
  };
2559
- function dc(o) {
2559
+ function hc(o) {
2560
2560
  o = o.replace(/\n/g, " ");
2561
2561
  let t = 0;
2562
2562
  const e = [];
@@ -2565,7 +2565,7 @@ function dc(o) {
2565
2565
  o[t] == " " ? n.length && (e.push(n), n = "") : o[t] == "\\" ? n.length == 1 && n[0] == "\\" ? (n += o[t], e.push(n), n = "") : (n.length && e.push(n), n = o[t]) : /[A-Za-z0-9\.]/.test(o[t]) ? n += o[t] : (n.length && n != "\\" && (e.push(n), n = ""), n += o[t], e.push(n), n = ""), t++;
2566
2566
  return n.length && e.push(n), e;
2567
2567
  }
2568
- function hc(o) {
2568
+ function Rc(o) {
2569
2569
  return {
2570
2570
  type: Qt[o] ? "symb" : "char",
2571
2571
  mode: "math",
@@ -2607,7 +2607,7 @@ function us(o) {
2607
2607
  else if (o[s] == "}") {
2608
2608
  if (a--, !a && (u.push(us(o.slice(l + 1, s))), c++, c == r))
2609
2609
  break;
2610
- } else if (a == 0 && (u.push(hc(o[s])), c++, c == r))
2610
+ } else if (a == 0 && (u.push(Rc(o[s])), c++, c == r))
2611
2611
  break;
2612
2612
  s++;
2613
2613
  }
@@ -2664,7 +2664,7 @@ function Rl(o) {
2664
2664
  o[r].bbox && (t = Math.min(t, o[r].bbox.x), n = Math.min(n, o[r].bbox.y), e = Math.max(e, o[r].bbox.x + o[r].bbox.w), i = Math.max(i, o[r].bbox.y + o[r].bbox.h));
2665
2665
  return { x: t, y: n, w: e - t, h: i - n };
2666
2666
  }
2667
- function Rc(o) {
2667
+ function gc(o) {
2668
2668
  if (!o.length)
2669
2669
  return null;
2670
2670
  const t = Rl(o);
@@ -2678,7 +2678,7 @@ function Rc(o) {
2678
2678
  bbox: t
2679
2679
  };
2680
2680
  }
2681
- function gc(o, t = "center") {
2681
+ function fc(o, t = "center") {
2682
2682
  for (let c = 0; c < o.length; c++)
2683
2683
  if (o[c].text == "^" || o[c].text == "'") {
2684
2684
  let u = 0, h = c;
@@ -2726,7 +2726,7 @@ function gc(o, t = "center") {
2726
2726
  for (let c = 0; c < n.length; c++) {
2727
2727
  const u = [];
2728
2728
  for (let h = 0; h < n[c].length; h++) {
2729
- const d = Rc(n[c][h]);
2729
+ const d = gc(n[c][h]);
2730
2730
  d && (s[h] = s[h] || 0, s[h] = Math.max(d.bbox.w + 1, s[h])), u[h] = d;
2731
2731
  }
2732
2732
  l.push(u);
@@ -2901,7 +2901,7 @@ function en(o, t = "math") {
2901
2901
  matrix: "center",
2902
2902
  aligned: "equation"
2903
2903
  }[o.text] ?? "left", a = !!s[o.text], c = !!s[o.text] && s[o.text].length > 1;
2904
- gc(o.chld, l);
2904
+ fc(o.chld, l);
2905
2905
  const u = Rl(o.chld);
2906
2906
  o.text == "\\text" && (u.x -= 1, u.w += 2);
2907
2907
  for (let h = 0; h < o.chld.length; h++)
@@ -2926,7 +2926,7 @@ function en(o, t = "math") {
2926
2926
  }), (a || c || o.text == "matrix") && (o.type = "node", o.text = "", o.bbox.y -= (o.bbox.h - 2) / 2);
2927
2927
  }
2928
2928
  }
2929
- function fc(o) {
2929
+ function pc(o) {
2930
2930
  function t(n, i, r) {
2931
2931
  const s = [];
2932
2932
  if (n.bbox) {
@@ -3047,7 +3047,7 @@ function fc(o) {
3047
3047
  const e = t(o, -o.bbox.x, -o.bbox.y);
3048
3048
  o.type = "node", o.text = "", o.chld = e;
3049
3049
  }
3050
- function pc(o) {
3050
+ function Tc(o) {
3051
3051
  const t = [];
3052
3052
  for (let e = 0; e < o.chld.length; e++) {
3053
3053
  const n = o.chld[e];
@@ -3106,13 +3106,13 @@ function pc(o) {
3106
3106
  function tn(o) {
3107
3107
  return Math.round(o * 100) / 100;
3108
3108
  }
3109
- class Tc {
3109
+ class Ic {
3110
3110
  _latex;
3111
3111
  _tree;
3112
3112
  _tokens;
3113
3113
  _polylines;
3114
3114
  constructor(t) {
3115
- this._latex = t, this._tokens = dc(t), this._tree = us(this._tokens), hl(this._tree.chld), en(this._tree), fc(this._tree), this._polylines = pc(this._tree);
3115
+ this._latex = t, this._tokens = hc(t), this._tree = us(this._tokens), hl(this._tree.chld), en(this._tree), pc(this._tree), this._polylines = Tc(this._tree);
3116
3116
  }
3117
3117
  resolveScale(t) {
3118
3118
  if (t == null)
@@ -3263,7 +3263,7 @@ trailer
3263
3263
  }
3264
3264
  class gl extends dl {
3265
3265
  static convertLaTextToSVG(t) {
3266
- return new Tc(t).svg({
3266
+ return new Ic(t).svg({
3267
3267
  SCALE_X: 10,
3268
3268
  SCALE_Y: 10,
3269
3269
  MARGIN_X: 0,
@@ -3304,17 +3304,17 @@ var Fe;
3304
3304
  (function(o) {
3305
3305
  o.DISC = "disc", o.CIRCLE = "circle", o.SQUARE = "square", o.DECIMAL = "decimal", o.CHECKBOX = "checkbox";
3306
3306
  })(Fe || (Fe = {}));
3307
- const Ic = {
3307
+ const mc = {
3308
3308
  inheritStyle: !1
3309
3309
  }, ds = {
3310
3310
  [Bn.DISC]: "•",
3311
3311
  [Bn.CIRCLE]: "◦",
3312
3312
  [Bn.SQUARE]: "▫︎",
3313
3313
  [Bn.CHECKBOX]: "☑️"
3314
- }, mc = {
3314
+ }, Lc = {
3315
3315
  [cn.OL]: "ol",
3316
3316
  [cn.UL]: "ul"
3317
- }, Lc = {
3317
+ }, Pc = {
3318
3318
  [Fe.DISC]: "disc",
3319
3319
  [Fe.CIRCLE]: "circle",
3320
3320
  [Fe.SQUARE]: "square",
@@ -3325,7 +3325,7 @@ var ae;
3325
3325
  (function(o) {
3326
3326
  o.FIRST = "first", o.SECOND = "second", o.THIRD = "third", o.FOURTH = "fourth", o.FIFTH = "fifth", o.SIXTH = "sixth";
3327
3327
  })(ae || (ae = {}));
3328
- const Pc = {
3328
+ const Ec = {
3329
3329
  defaultFirstSize: 26,
3330
3330
  defaultSecondSize: 24,
3331
3331
  defaultThirdSize: 22,
@@ -3346,7 +3346,7 @@ const Pc = {
3346
3346
  [ae.FOURTH]: 4,
3347
3347
  [ae.FIFTH]: 5,
3348
3348
  [ae.SIXTH]: 6
3349
- }, Ec = {
3349
+ }, Oc = {
3350
3350
  H1: ae.FIRST,
3351
3351
  H2: ae.SECOND,
3352
3352
  H3: ae.THIRD,
@@ -3430,7 +3430,7 @@ var xn;
3430
3430
  (function(o) {
3431
3431
  o.REPEAT = "repeat", o.NO_REPEAT = "no-repeat", o.REPEAT_X = "repeat-x", o.REPEAT_Y = "repeat-y";
3432
3432
  })(xn || (xn = {}));
3433
- const Oc = {
3433
+ const Mc = {
3434
3434
  color: "#FFFFFF",
3435
3435
  image: "",
3436
3436
  size: Ri.COVER,
@@ -3441,7 +3441,7 @@ var ue;
3441
3441
  (function(o) {
3442
3442
  o.TOP = "top", o.MIDDLE = "middle", o.BOTTOM = "bottom";
3443
3443
  })(ue || (ue = {}));
3444
- const Mc = {
3444
+ const Sc = {
3445
3445
  width: 14,
3446
3446
  height: 14,
3447
3447
  gap: 5,
@@ -3449,7 +3449,7 @@ const Mc = {
3449
3449
  fillStyle: "#5175f4",
3450
3450
  strokeStyle: "#ffffff",
3451
3451
  verticalAlign: ue.BOTTOM
3452
- }, Sc = {
3452
+ }, Dc = {
3453
3453
  placeholderColor: "#9c9b9b",
3454
3454
  bracketColor: "#2284FE",
3455
3455
  textFixColor: "blue",
@@ -3467,47 +3467,47 @@ const Mc = {
3467
3467
  existValueBackgroundColor: "",
3468
3468
  noValueBackgroundColor: "",
3469
3469
  inlineControlBackgroundColor: "#BFF7D7"
3470
- }, Dc = {
3470
+ }, Cc = {
3471
3471
  bottom: 30,
3472
3472
  inactiveAlpha: 1,
3473
3473
  maxHeightRadio: Jn.HALF,
3474
3474
  disabled: !1,
3475
3475
  editable: !0
3476
- }, Cc = {
3476
+ }, Fc = {
3477
3477
  opacity: 0.1,
3478
3478
  backgroundColor: "#E99D00",
3479
3479
  activeOpacity: 0.5,
3480
3480
  activeBackgroundColor: "#E99D00",
3481
3481
  disabled: !1,
3482
3482
  deletable: !0
3483
- }, Fc = {
3483
+ }, Xc = {
3484
3484
  top: 30,
3485
3485
  inactiveAlpha: 1,
3486
3486
  maxHeightRadio: Jn.HALF,
3487
3487
  disabled: !1,
3488
3488
  editable: !0
3489
- }, Xc = {
3489
+ }, Nc = {
3490
3490
  defaultColor: "#1976d2",
3491
3491
  defaultBackgroundColor: "#e3f2fd",
3492
3492
  defaultBorderRadius: 4,
3493
3493
  defaultPadding: [4, 4, 4, 4]
3494
- }, Nc = {
3494
+ }, xc = {
3495
3495
  color: "#666666",
3496
3496
  font: "Microsoft YaHei",
3497
3497
  size: 12,
3498
3498
  top: 5
3499
- }, xc = {
3499
+ }, bc = {
3500
3500
  disabled: !0,
3501
3501
  color: "#CCCCCC",
3502
3502
  lineWidth: 1.5
3503
- }, bc = {
3503
+ }, yc = {
3504
3504
  font: "Microsoft YaHei",
3505
3505
  fontSize: 12,
3506
3506
  lineDash: [3, 1]
3507
3507
  }, yo = {
3508
3508
  PAGE_NO: "{pageNo}",
3509
3509
  PAGE_COUNT: "{pageCount}"
3510
- }, yc = {
3510
+ }, Vc = {
3511
3511
  bottom: 60,
3512
3512
  size: 12,
3513
3513
  font: "Microsoft YaHei",
@@ -3525,7 +3525,7 @@ const Mc = {
3525
3525
  opacity: 1,
3526
3526
  size: 16,
3527
3527
  font: "Microsoft YaHei"
3528
- }, Vc = {
3528
+ }, Wc = {
3529
3529
  width: 14,
3530
3530
  height: 14,
3531
3531
  gap: 5,
@@ -3533,10 +3533,10 @@ const Mc = {
3533
3533
  fillStyle: "#5175f4",
3534
3534
  strokeStyle: "#000000",
3535
3535
  verticalAlign: ue.BOTTOM
3536
- }, Wc = {
3536
+ }, Yc = {
3537
3537
  lineWidth: 1,
3538
3538
  strokeStyle: "#000000"
3539
- }, Yc = {
3539
+ }, Uc = {
3540
3540
  tdPadding: [5, 5, 5, 5],
3541
3541
  defaultTrMinHeight: 24,
3542
3542
  defaultColMinWidth: 40,
@@ -3559,111 +3559,111 @@ const gs = {
3559
3559
  repeat: !1,
3560
3560
  gap: [10, 10],
3561
3561
  numberType: bo.ARABIC
3562
- }, Uc = {
3562
+ }, wc = {
3563
3563
  tipDisabled: !0
3564
3564
  };
3565
3565
  var gi;
3566
3566
  (function(o) {
3567
3567
  o.PAGE = "page", o.CONTINUITY = "continuity";
3568
3568
  })(gi || (gi = {}));
3569
- const wc = {
3569
+ const Zc = {
3570
3570
  size: 12,
3571
3571
  font: "Microsoft YaHei",
3572
3572
  color: "#000000",
3573
3573
  disabled: !0,
3574
3574
  right: 20,
3575
3575
  type: gi.CONTINUITY
3576
- }, Zc = {
3576
+ }, vc = {
3577
3577
  color: "#000000",
3578
3578
  lineWidth: 1,
3579
3579
  padding: [0, 5, 0, 5],
3580
3580
  disabled: !0
3581
- }, vc = {
3581
+ }, Qc = {
3582
3582
  top: 0,
3583
3583
  left: 5
3584
- }, Qc = {
3584
+ }, Hc = {
3585
3585
  defaultLineColor: "#000000",
3586
3586
  defaultLineWidth: 2
3587
- }, Hc = {
3587
+ }, Kc = {
3588
3588
  disabled: !0,
3589
3589
  color: "#CCCCCC",
3590
3590
  radius: 1
3591
3591
  };
3592
3592
  function Di(o = {}) {
3593
3593
  const t = {
3594
- ...Yc,
3594
+ ...Uc,
3595
3595
  ...o.table
3596
3596
  }, e = {
3597
- ...Fc,
3597
+ ...Xc,
3598
3598
  ...o.header
3599
3599
  }, n = {
3600
- ...Dc,
3600
+ ...Cc,
3601
3601
  ...o.footer
3602
3602
  }, i = {
3603
- ...yc,
3603
+ ...Vc,
3604
3604
  ...o.pageNumber
3605
3605
  }, r = {
3606
3606
  ...gs,
3607
3607
  ...o.watermark
3608
3608
  }, s = {
3609
- ...Sc,
3609
+ ...Dc,
3610
3610
  ...o.control
3611
3611
  }, l = {
3612
- ...Mc,
3612
+ ...Sc,
3613
3613
  ...o.checkbox
3614
3614
  }, a = {
3615
- ...Vc,
3615
+ ...Wc,
3616
3616
  ...o.radio
3617
3617
  }, c = {
3618
- ...ja,
3618
+ ...qa,
3619
3619
  ...o.cursor
3620
3620
  }, u = {
3621
- ...Pc,
3621
+ ...Ec,
3622
3622
  ...o.title
3623
3623
  }, h = {
3624
3624
  ...pl,
3625
3625
  ...o.placeholder
3626
3626
  }, d = {
3627
- ...Cc,
3627
+ ...Fc,
3628
3628
  ...o.group
3629
3629
  }, f = {
3630
- ...bc,
3630
+ ...yc,
3631
3631
  ...o.pageBreak
3632
3632
  }, g = {
3633
- ...Uc,
3633
+ ...wc,
3634
3634
  ...o.zone
3635
3635
  }, p = {
3636
- ...Oc,
3636
+ ...Mc,
3637
3637
  ...o.background
3638
3638
  }, I = {
3639
- ...xc,
3639
+ ...bc,
3640
3640
  ...o.lineBreak
3641
3641
  }, m = {
3642
- ...Hc,
3642
+ ...Kc,
3643
3643
  ...o.whiteSpace
3644
3644
  }, L = {
3645
- ...Wc,
3645
+ ...Yc,
3646
3646
  ...o.separator
3647
3647
  }, T = {
3648
- ...wc,
3648
+ ...Zc,
3649
3649
  ...o.lineNumber
3650
3650
  }, O = {
3651
- ...Zc,
3651
+ ...vc,
3652
3652
  ...o.pageBorder
3653
3653
  }, S = {
3654
- ...vc,
3654
+ ...Qc,
3655
3655
  ...o.badge
3656
3656
  }, M = {
3657
- ...Qc,
3657
+ ...Hc,
3658
3658
  ...o.graffiti
3659
3659
  }, F = {
3660
- ...Xc,
3660
+ ...Nc,
3661
3661
  ...o.label
3662
3662
  }, N = {
3663
- ...Nc,
3663
+ ...xc,
3664
3664
  ...o.imgCaption
3665
3665
  }, w = {
3666
- ...Ic,
3666
+ ...mc,
3667
3667
  ...o.list
3668
3668
  }, V = {
3669
3669
  print: {
@@ -3762,16 +3762,16 @@ function Di(o = {}) {
3762
3762
  }
3763
3763
  };
3764
3764
  }
3765
- const Tl = /* @__PURE__ */ new Map(), Kc = [
3765
+ const Tl = /* @__PURE__ */ new Map(), Ac = [
3766
3766
  b.SELECT,
3767
3767
  b.DATE,
3768
3768
  b.CHECKBOX,
3769
3769
  b.RADIO
3770
3770
  ];
3771
3771
  function Ae(o, t) {
3772
- return o && Kc.includes(o) ? [""] : Zt(t);
3772
+ return o && Ac.includes(o) ? [""] : Zt(t);
3773
3773
  }
3774
- function Ac(o) {
3774
+ function Il(o) {
3775
3775
  return Tl.get(o);
3776
3776
  }
3777
3777
  function ko(o, t) {
@@ -3786,7 +3786,7 @@ function fs(o) {
3786
3786
  }
3787
3787
  return t;
3788
3788
  }
3789
- const Il = /* @__PURE__ */ new Set([
3789
+ const ml = /* @__PURE__ */ new Set([
3790
3790
  R.PREFIX,
3791
3791
  R.POSTFIX,
3792
3792
  R.PRE_TEXT,
@@ -3856,7 +3856,7 @@ function Jo(o) {
3856
3856
  highlight: void 0
3857
3857
  };
3858
3858
  }
3859
- function ml(o) {
3859
+ function Ll(o) {
3860
3860
  return o === K.READONLY;
3861
3861
  }
3862
3862
  function Gc(o) {
@@ -3910,7 +3910,7 @@ function fi(o) {
3910
3910
  const e = o.multiSelectDelimiter || ",";
3911
3911
  return t.map((n) => o.valueSets?.find((i) => i.code === n)?.value).filter((n) => !!n).join(e);
3912
3912
  }
3913
- function Ll(o) {
3913
+ function Pl(o) {
3914
3914
  return o.type === P.REUSABLE_ITEM ? an(o.reusableItemConfig?.value || "", [
3915
3915
  o.label || ""
3916
3916
  ]) : o.type === P.CUSTOM_MACRO ? an(o.macroConfig?.value || o.value || "", [
@@ -3943,7 +3943,7 @@ function Jc(o) {
3943
3943
  return n || (o.type === b.SELECT ? an(fi(o), t) : "");
3944
3944
  }
3945
3945
  function Ci(o) {
3946
- return pe(o) || o.controlComponent && Il.has(o.controlComponent) ? "" : o.type === P.CONTROL ? Jc(o.control) : o.type === P.MACRO || o.type === P.CUSTOM_MACRO || o.type === P.REUSABLE_ITEM ? Ll(o) : o.type === P.TABLE ? o.trList?.map((t) => t.tdList.map((e) => pi(e.value || [])).join(" ")).join(`
3946
+ return pe(o) || o.controlComponent && ml.has(o.controlComponent) ? "" : o.type === P.CONTROL ? Jc(o.control) : o.type === P.MACRO || o.type === P.CUSTOM_MACRO || o.type === P.REUSABLE_ITEM ? Pl(o) : o.type === P.TABLE ? o.trList?.map((t) => t.tdList.map((e) => pi(e.value || [])).join(" ")).join(`
3947
3947
  `) || "" : o.type === P.TAB ? " " : o.valueList?.length ? pi(o.valueList) : o.value || "";
3948
3948
  }
3949
3949
  function pi(o) {
@@ -3988,7 +3988,7 @@ function Is(o) {
3988
3988
  function po(o = []) {
3989
3989
  const t = [];
3990
3990
  return o.forEach((e) => {
3991
- if (pe(e) || e.controlComponent && Il.has(e.controlComponent))
3991
+ if (pe(e) || e.controlComponent && ml.has(e.controlComponent))
3992
3992
  return;
3993
3993
  if (e.type === P.TABLE) {
3994
3994
  const i = ut(e);
@@ -4004,7 +4004,7 @@ function po(o = []) {
4004
4004
  return;
4005
4005
  }
4006
4006
  if (e.type === P.MACRO || e.type === P.CUSTOM_MACRO || e.type === P.REUSABLE_ITEM) {
4007
- t.push(...Ts(Ll(e), e));
4007
+ t.push(...Ts(Pl(e), e));
4008
4008
  return;
4009
4009
  }
4010
4010
  if (e.valueList?.length) {
@@ -5081,7 +5081,7 @@ function zc(o, t) {
5081
5081
  return !0;
5082
5082
  }
5083
5083
  function bn(o, t = {}) {
5084
- const { extraPickAttrs: e } = t, n = [...oc];
5084
+ const { extraPickAttrs: e } = t, n = [...ic];
5085
5085
  e && n.push(...e);
5086
5086
  const i = {
5087
5087
  value: o?.value === _ ? `
@@ -5223,7 +5223,7 @@ function Kt(o, t = {}) {
5223
5223
  isClassifyArea: !1
5224
5224
  })
5225
5225
  };
5226
- ic.forEach((T) => {
5226
+ sc.forEach((T) => {
5227
5227
  const O = m[T];
5228
5228
  O !== void 0 && (L[T] = O);
5229
5229
  }), p.tdList[I] = L;
@@ -5489,7 +5489,7 @@ function Kt(o, t = {}) {
5489
5489
  }
5490
5490
  return l;
5491
5491
  }
5492
- function Pl(o) {
5492
+ function El(o) {
5493
5493
  switch (window.getComputedStyle(o).textAlign) {
5494
5494
  case "left":
5495
5495
  case "start":
@@ -5507,7 +5507,7 @@ function Pl(o) {
5507
5507
  return kt.LEFT;
5508
5508
  }
5509
5509
  }
5510
- function El(o) {
5510
+ function Ol(o) {
5511
5511
  return o === kt.ALIGNMENT ? "justify" : o;
5512
5512
  }
5513
5513
  function jc(o) {
@@ -5570,10 +5570,10 @@ function tu(o, t) {
5570
5570
  let e = "span";
5571
5571
  o.type === P.SUPERSCRIPT ? e = "sup" : o.type === P.SUBSCRIPT && (e = "sub");
5572
5572
  const n = document.createElement(e);
5573
- return n.style.fontFamily = o.font || t.defaultFont, o.rowFlex && (n.style.textAlign = El(o.rowFlex)), o.color && (n.style.color = o.color), o.bold && (n.style.fontWeight = "600"), o.italic && (n.style.fontStyle = "italic"), n.style.fontSize = `${o.size || t.defaultSize}px`, o.highlight && (n.style.backgroundColor = o.highlight), o.underline && (n.style.textDecoration = "underline", n.style.textDecorationStyle = o.textDecoration?.style || "solid"), o.strikeout && (n.style.textDecoration += " line-through"), o.type && n.setAttribute("data-type", o.type), o.rowMargin && (n.style.lineHeight = (o.rowMargin ?? t.defaultRowMargin).toString()), n.innerText = o.value.replace(new RegExp(`${_}`, "g"), `
5573
+ return n.style.fontFamily = o.font || t.defaultFont, o.rowFlex && (n.style.textAlign = Ol(o.rowFlex)), o.color && (n.style.color = o.color), o.bold && (n.style.fontWeight = "600"), o.italic && (n.style.fontStyle = "italic"), n.style.fontSize = `${o.size || t.defaultSize}px`, o.highlight && (n.style.backgroundColor = o.highlight), o.underline && (n.style.textDecoration = "underline", n.style.textDecorationStyle = o.textDecoration?.style || "solid"), o.strikeout && (n.style.textDecoration += " line-through"), o.type && n.setAttribute("data-type", o.type), o.rowMargin && (n.style.lineHeight = (o.rowMargin ?? t.defaultRowMargin).toString()), n.innerText = o.value.replace(new RegExp(`${_}`, "g"), `
5574
5574
  `), n;
5575
5575
  }
5576
- function Ol(o) {
5576
+ function Ml(o) {
5577
5577
  let t = 0;
5578
5578
  const e = /* @__PURE__ */ new Map();
5579
5579
  for (let n = 0; n < o.length; n++) {
@@ -5624,7 +5624,7 @@ function eu(o) {
5624
5624
  return t;
5625
5625
  }
5626
5626
  function Fo(o, t) {
5627
- const e = Di(t), n = ml(e.mode) ? po(Kt(o, { editorOptions: e })) : o;
5627
+ const e = Di(t), n = Ll(e.mode) ? po(Kt(o, { editorOptions: e })) : o;
5628
5628
  function i(l) {
5629
5629
  const a = document.createElement("div");
5630
5630
  for (let c = 0; c < l.length; c++) {
@@ -5662,10 +5662,10 @@ function Fo(o, t) {
5662
5662
  const h = document.createElement(`h${hs[u.level]}`), d = i(u.valueList);
5663
5663
  h.innerHTML = d.innerHTML, a.append(h);
5664
5664
  } else if (u.type === P.LIST) {
5665
- const h = document.createElement(mc[u.listType]);
5666
- u.listStyle && (h.style.listStyleType = Lc[u.listStyle]);
5665
+ const h = document.createElement(Lc[u.listType]);
5666
+ u.listStyle && (h.style.listStyleType = Pc[u.listStyle]);
5667
5667
  const d = Kt(u.valueList);
5668
- Ol(d).forEach((g) => {
5668
+ Ml(d).forEach((g) => {
5669
5669
  const p = document.createElement("li"), I = i(g);
5670
5670
  p.innerHTML = I.innerHTML, h.append(p);
5671
5671
  }), a.append(h);
@@ -5720,7 +5720,7 @@ function Fo(o, t) {
5720
5720
  const a = s[l], c = !a.rowFlex || a.rowFlex === kt.LEFT, u = document.createElement("div");
5721
5721
  if (!c) {
5722
5722
  const h = a.data[0];
5723
- To(h) ? (u.style.display = "flex", u.style.justifyContent = jc(h.rowFlex)) : (u.style.textAlign = El(a.rowFlex), a.rowFlex === "justify" && (u.style.textAlignLast = "justify"));
5723
+ To(h) ? (u.style.display = "flex", u.style.justifyContent = jc(h.rowFlex)) : (u.style.textAlign = Ol(a.rowFlex), a.rowFlex === "justify" && (u.style.textAlignLast = "justify"));
5724
5724
  }
5725
5725
  u.innerHTML = i(a.data).innerHTML, c ? u.childNodes.forEach((h) => {
5726
5726
  r.append(h.cloneNode(!0));
@@ -5731,7 +5731,7 @@ function Fo(o, t) {
5731
5731
  function nu(o) {
5732
5732
  if (!o || o.nodeType !== 3)
5733
5733
  return null;
5734
- const t = o.parentNode, e = t.nodeName === "FONT" ? t.parentNode : t, n = Pl(e), i = o.textContent, r = window.getComputedStyle(e);
5734
+ const t = o.parentNode, e = t.nodeName === "FONT" ? t.parentNode : t, n = El(e), i = o.textContent, r = window.getComputedStyle(e);
5735
5735
  if (!i || e.nodeName === "STYLE")
5736
5736
  return null;
5737
5737
  const s = {
@@ -5775,9 +5775,9 @@ function Xo(o, t) {
5775
5775
  e.push({
5776
5776
  value: "",
5777
5777
  type: P.TITLE,
5778
- level: Ec[h.nodeName],
5778
+ level: Oc[h.nodeName],
5779
5779
  valueList: f
5780
- }), h.nextSibling && !lc.includes(h.nextSibling.nodeName) && e.push({
5780
+ }), h.nextSibling && !ac.includes(h.nextSibling.nodeName) && e.push({
5781
5781
  value: `
5782
5782
  `
5783
5783
  });
@@ -5810,7 +5810,7 @@ function Xo(o, t) {
5810
5810
  height: g,
5811
5811
  value: d,
5812
5812
  type: P.IMAGE,
5813
- rowFlex: Pl(h.parentElement)
5813
+ rowFlex: El(h.parentElement)
5814
5814
  });
5815
5815
  } else if (h.nodeName === "VIDEO") {
5816
5816
  const { src: d, width: f, height: g } = h;
@@ -5914,7 +5914,7 @@ function so(o, t) {
5914
5914
  const e = t ? Di(t) : void 0;
5915
5915
  if (e?.mode === K.COMPARE)
5916
5916
  return Is(o);
5917
- const n = ml(e?.mode) ? po(Kt(o, { editorOptions: e })) : Kt(o);
5917
+ const n = Ll(e?.mode) ? po(Kt(o, { editorOptions: e })) : Kt(o);
5918
5918
  function i(r) {
5919
5919
  let s = "";
5920
5920
  for (let l = 0; l < r.length; l++) {
@@ -5938,7 +5938,7 @@ function so(o, t) {
5938
5938
  else if (a.type === P.TITLE)
5939
5939
  s += `${i(Kt(a.valueList))}`;
5940
5940
  else if (a.type === P.LIST) {
5941
- const c = Kt(a.valueList), u = Ol(c);
5941
+ const c = Kt(a.valueList), u = Ml(c);
5942
5942
  let h = "";
5943
5943
  a.listType === cn.UL && (h = ds[a.listStyle]), u.forEach((d, f) => {
5944
5944
  const g = u.size - 1 === f;
@@ -5971,7 +5971,7 @@ function Ai(o) {
5971
5971
  ]);
5972
5972
  }
5973
5973
  function To(o) {
5974
- return !!o?.type && (rc.includes(o.type) || o.imgDisplay === Et.INLINE);
5974
+ return !!o?.type && (lc.includes(o.type) || o.imgDisplay === Et.INLINE);
5975
5975
  }
5976
5976
  function ou(o, t) {
5977
5977
  const e = document.createElement(t);
@@ -6014,29 +6014,29 @@ function Io(o, t, e = Ee.BEFORE) {
6014
6014
  }
6015
6015
  return n;
6016
6016
  }
6017
- const Ml = `${Si}-control`;
6018
- function Sl(o) {
6017
+ const Sl = `${Si}-control`;
6018
+ function Dl(o) {
6019
6019
  localStorage.setItem(Si, JSON.stringify({
6020
6020
  text: o.text,
6021
6021
  elementList: o.elementList
6022
6022
  }));
6023
6023
  }
6024
- function Dl() {
6024
+ function Cl() {
6025
6025
  const o = localStorage.getItem(Si);
6026
6026
  return o ? JSON.parse(o) : null;
6027
6027
  }
6028
- function Cl() {
6028
+ function Fl() {
6029
6029
  localStorage.removeItem(Si);
6030
6030
  }
6031
6031
  function su(o) {
6032
- localStorage.setItem(Ml, JSON.stringify(o));
6032
+ localStorage.setItem(Sl, JSON.stringify(o));
6033
6033
  }
6034
- function Fl() {
6035
- const o = localStorage.getItem(Ml);
6034
+ function Xl() {
6035
+ const o = localStorage.getItem(Sl);
6036
6036
  return o ? JSON.parse(o) : null;
6037
6037
  }
6038
6038
  function ru() {
6039
- return !!Fl()?.element;
6039
+ return !!Xl()?.element;
6040
6040
  }
6041
6041
  async function lu(o, t, e) {
6042
6042
  if (!o && !t && !e.length)
@@ -6055,7 +6055,7 @@ async function lu(o, t, e) {
6055
6055
  a.innerText = `
6056
6056
  `, r.append(a), l.selectNodeContents(r), s?.removeAllRanges(), s?.addRange(l), document.execCommand("copy"), r.remove();
6057
6057
  }
6058
- Sl({ text: o, elementList: e });
6058
+ Dl({ text: o, elementList: e });
6059
6059
  }
6060
6060
  async function au(o) {
6061
6061
  if (!o)
@@ -6072,9 +6072,9 @@ async function au(o) {
6072
6072
  }
6073
6073
  else
6074
6074
  e();
6075
- Sl({ text: o, elementList: t });
6075
+ Dl({ text: o, elementList: t });
6076
6076
  }
6077
- async function Xl(o, t) {
6077
+ async function Nl(o, t) {
6078
6078
  const e = Fo(o, t);
6079
6079
  document.body.append(e);
6080
6080
  const n = e.innerText;
@@ -6104,7 +6104,7 @@ function ws(o, t) {
6104
6104
  const a = t[l];
6105
6105
  if (s.titleId && /^\n/.test(a.value))
6106
6106
  break;
6107
- if (ac.includes(a.type)) {
6107
+ if (cc.includes(a.type)) {
6108
6108
  if (t.splice(l, 1), a.valueList)
6109
6109
  for (let c = 0; c < a.valueList.length; c++) {
6110
6110
  const u = a.valueList[c];
@@ -6123,7 +6123,7 @@ function ws(o, t) {
6123
6123
  }
6124
6124
  e.insertElementList(t);
6125
6125
  }
6126
- function Nl(o, t) {
6126
+ function xl(o, t) {
6127
6127
  const e = o.getDraw();
6128
6128
  if (e.isReadonly() || e.isDisabled())
6129
6129
  return;
@@ -6163,13 +6163,13 @@ function uu(o, t) {
6163
6163
  if (i && i(t)?.preventDefault !== !1)
6164
6164
  return;
6165
6165
  if (!cu(n)) {
6166
- const s = n.getData("text"), l = Dl();
6166
+ const s = n.getData("text"), l = Cl();
6167
6167
  if (l && ci(s) === ci(l.text)) {
6168
6168
  ws(o, l.elementList);
6169
6169
  return;
6170
6170
  }
6171
6171
  }
6172
- Cl();
6172
+ Fl();
6173
6173
  let r = !1;
6174
6174
  for (let s = 0; s < n.items.length; s++)
6175
6175
  if (n.items[s].type === "text/html") {
@@ -6187,7 +6187,7 @@ function uu(o, t) {
6187
6187
  }
6188
6188
  if (l.type === "text/html" && r) {
6189
6189
  l.getAsString((a) => {
6190
- Nl(o, a);
6190
+ xl(o, a);
6191
6191
  });
6192
6192
  break;
6193
6193
  }
@@ -6204,12 +6204,12 @@ async function du(o, t) {
6204
6204
  const { paste: n } = e.getOverride();
6205
6205
  if (n && n()?.preventDefault !== !1)
6206
6206
  return;
6207
- const i = await navigator.clipboard.readText(), r = Dl();
6207
+ const i = await navigator.clipboard.readText(), r = Cl();
6208
6208
  if (r && ci(i) === ci(r.text)) {
6209
6209
  ws(o, r.elementList);
6210
6210
  return;
6211
6211
  }
6212
- if (Cl(), t?.isPlainText)
6212
+ if (Fl(), t?.isPlainText)
6213
6213
  i && o.input(i);
6214
6214
  else {
6215
6215
  const s = await navigator.clipboard.read();
@@ -6225,7 +6225,7 @@ async function du(o, t) {
6225
6225
  u && o.input(u);
6226
6226
  } else if (a.types.includes("text/html") && l) {
6227
6227
  const u = await (await a.getType("text/html")).text();
6228
- u && Nl(o, u);
6228
+ u && xl(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
  Zs(o, u);
@@ -6453,7 +6453,7 @@ class Ru {
6453
6453
  * 在web端允许聚焦以确保键盘事件能够被捕获。
6454
6454
  */
6455
6455
  focus() {
6456
- if (tc && this.draw.isReadonly())
6456
+ if (ec && this.draw.isReadonly())
6457
6457
  return;
6458
6458
  const t = this.cursorAgent.getAgentCursorDom();
6459
6459
  document.activeElement !== t && (t.focus(), t.setSelectionRange(0, 0));
@@ -6509,7 +6509,7 @@ class Ru {
6509
6509
  const { cursorPosition: e, direction: n } = t;
6510
6510
  if (!e || !n)
6511
6511
  return;
6512
- const { pageNo: i, coordinate: { leftTop: r, leftBottom: s } } = e, l = ka(this.container), a = {
6512
+ const { pageNo: i, coordinate: { leftTop: r, leftBottom: s } } = e, l = Ja(this.container), a = {
6513
6513
  left: 0,
6514
6514
  right: 0,
6515
6515
  top: 0,
@@ -6876,7 +6876,7 @@ function gu(o, t) {
6876
6876
  return -1;
6877
6877
  const gt = y[v - 1];
6878
6878
  return !qt(gt, v - 1, b.TEXT) || o.offsetX > st.coordinate.leftTop[0] + q ? -1 : v - 1;
6879
- }, Zi = cr(V), ur = cr(V - 1), dr = Zi !== -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;
6879
+ }, Zi = cr(V), ur = cr(V - 1), dr = Zi !== -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]), ya = !!(G && ce && Ne(C, V) && Pe(it, V + 1, b.TEXT) && o.offsetX >= ce.coordinate.rightTop[0] - q), Va = Ke || dr || hr || ya;
6880
6880
  if (It || Ct || Ot ? nt = V : rt || ot ? nt = Math.max(V - 1, 0) : dr ? nt = Zi !== -1 ? Zi : ur : hr && (nt = Math.max(V - 1, 0)), Nt) {
6881
6881
  nt = vt(Nt.index);
6882
6882
  const v = s.getPositionContext();
@@ -6984,7 +6984,7 @@ function gu(o, t) {
6984
6984
  }
6985
6985
  gr && (v = Math.min(Math.max(v, 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
- st.setPopupAwakeDisabled(o.button === Kn.RIGHT || ya && !gt || bt && !gt);
6987
+ st.setPopupAwakeDisabled(o.button === Kn.RIGHT || Va && !gt || bt && !gt);
6988
6988
  try {
6989
6989
  r.setRange(v, k);
6990
6990
  } finally {
@@ -7471,7 +7471,7 @@ function Iu(o, t) {
7471
7471
  }
7472
7472
  return null;
7473
7473
  }
7474
- function xl(o, t, e) {
7474
+ function bl(o, t, e) {
7475
7475
  const n = o[t];
7476
7476
  n.subTemplateExpanded = !1, n.hide = !1;
7477
7477
  let i = t + 1;
@@ -7488,7 +7488,7 @@ function mu(o) {
7488
7488
  for (; s > 0; ) {
7489
7489
  const l = i[s];
7490
7490
  if (l.type === P.SUB_TEMPLATE && l.subTemplateExpanded) {
7491
- const u = xl(i, s, t);
7491
+ const u = bl(i, s, t);
7492
7492
  n.startIndex = u, n.endIndex = u, e.replaceRange(n);
7493
7493
  const h = t.getPosition(), d = h.getPositionList();
7494
7494
  h.setCursorPosition(d[u]);
@@ -7563,7 +7563,7 @@ function Pu(o, t) {
7563
7563
  if (h?.subTemplateParentId) {
7564
7564
  const X = Iu(c, r - 1);
7565
7565
  if (X) {
7566
- const D = xl(c, X.labelIndex, e);
7566
+ const D = bl(c, X.labelIndex, e);
7567
7567
  e.getGlobalEvent().setCanvasEventAbility(), n.setRange(D, D), e.render({
7568
7568
  curIndex: D
7569
7569
  });
@@ -7728,7 +7728,7 @@ function Pu(o, t) {
7728
7728
  curIndex: a
7729
7729
  }));
7730
7730
  }
7731
- function bl(o, t, e) {
7731
+ function yl(o, t, e) {
7732
7732
  const n = o[t];
7733
7733
  n.subTemplateExpanded = !1, n.hide = !1;
7734
7734
  let i = t + 1;
@@ -7745,7 +7745,7 @@ function Eu(o) {
7745
7745
  for (; s < i.length; ) {
7746
7746
  const l = i[s];
7747
7747
  if (l.type === P.SUB_TEMPLATE && l.subTemplateExpanded) {
7748
- bl(i, s, t);
7748
+ yl(i, s, t);
7749
7749
  return;
7750
7750
  }
7751
7751
  let a = null;
@@ -7792,7 +7792,7 @@ function Ou(o, t) {
7792
7792
  break;
7793
7793
  }
7794
7794
  }
7795
- d !== -1 ? u = bl(a, d, e) : u = null;
7795
+ d !== -1 ? u = yl(a, d, e) : u = null;
7796
7796
  } else {
7797
7797
  e.removeSplitTdOtherRangeElements();
7798
7798
  const h = e.getPosition(), d = h.getCursorPosition();
@@ -8569,14 +8569,14 @@ function Xn(o, t, e) {
8569
8569
  function fn(o, t) {
8570
8570
  return !!o && !!t && o.controlId === t;
8571
8571
  }
8572
- function yl(o, t) {
8572
+ function Vl(o, t) {
8573
8573
  if (t)
8574
8574
  return o.find((e) => e.controlId === t && !e.originControlId && !!e.control?.type);
8575
8575
  }
8576
8576
  function Vr(o, t, e) {
8577
8577
  if (!t?.originControlId || e?.originControlId !== t.originControlId || !t.controlId || !e.controlId || t.controlId === e.controlId || !_e(t) || !mi(e))
8578
8578
  return;
8579
- const n = yl(o, t.originControlId);
8579
+ const n = Vl(o, t.originControlId);
8580
8580
  if (n?.control?.type === b.TEXTFIELD)
8581
8581
  return n;
8582
8582
  }
@@ -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, Z) && Y.controlComponent === R.VALUE && !Y.originControlId && ft(Y, j) && _e(j) && !j?.value), wt = !!((Xt(Y, Z) || xt(Y, Z) === 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 ? {
8713
+ }, Ft = !!(Xt(Y, Z) && Y.controlComponent === R.VALUE && !Y.originControlId && ft(Y, j) && _e(j) && !j?.value), wt = !!((Xt(Y, Z) || xt(Y, Z) === b.NUMBER) && Y.controlComponent === R.VALUE && Y.originControlId && ft(Y, j) && _e(j)) ? Xn(y, Y.originControlId, i.getMode()) : null, se = Vl(y, wt), mt = at || tt || Ft, Tt = mt ? {
8714
8714
  ...Y,
8715
8715
  type: void 0,
8716
8716
  control: void 0,
@@ -8726,7 +8726,7 @@ function Ps(o, t, e = "input") {
8726
8726
  };
8727
8727
  if (nt || !vt.title?.disabled && !vt.control?.disabled) {
8728
8728
  const _t = y[H + 1];
8729
- (!vt.type || vt.type === W || vt.type === X && _t?.type === X || vt.type === U && _t?.type === U || vt.type === D && _t?.type === D || vt.type === E && _t?.type === E) && nc.forEach((Bt) => {
8729
+ (!vt.type || vt.type === W || vt.type === X && _t?.type === X || vt.type === U && _t?.type === U || vt.type === D && _t?.type === D || vt.type === E && _t?.type === E) && oc.forEach((Bt) => {
8730
8730
  if (Bt === "groupIds" && !_t?.groupIds)
8731
8731
  return;
8732
8732
  const It = vt[Bt];
@@ -9035,7 +9035,7 @@ async function Zu(o) {
9035
9035
  s = m < 0 ? 0 : m, l = I[I.length - 1];
9036
9036
  }
9037
9037
  const a = t.getOptions();
9038
- await Xl(r.slice(s + 1, l + 1), a);
9038
+ await Nl(r.slice(s + 1, l + 1), a);
9039
9039
  const c = t.getControl();
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 });
@@ -9082,7 +9082,7 @@ async function Qu(o, t) {
9082
9082
  await au(n ? vu(c) : c);
9083
9083
  return;
9084
9084
  }
9085
- l?.length && await Xl(l, e.getOptions());
9085
+ l?.length && await Nl(l, e.getOptions());
9086
9086
  }
9087
9087
  function Hu(o, t) {
9088
9088
  const e = t.getDraw(), { drop: n } = e.getOverride();
@@ -9102,7 +9102,7 @@ function Hu(o, t) {
9102
9102
  }
9103
9103
  }
9104
9104
  }
9105
- function Vl(o) {
9105
+ function Wl(o) {
9106
9106
  if (!Intl.Segmenter)
9107
9107
  return null;
9108
9108
  const t = o.getDraw(), e = t.getPosition().getCursorPosition();
@@ -9208,7 +9208,7 @@ function _u(o, t) {
9208
9208
  }
9209
9209
  if ((i.isCheckbox || i.isRadio) && i.isDirectHit)
9210
9210
  return;
9211
- const s = e.getRange(), l = Vl(o) || Ku(o);
9211
+ const s = e.getRange(), l = Wl(o) || Ku(o);
9212
9212
  l && (s.setRange(l.startIndex, l.endIndex), e.render({
9213
9213
  isSubmitHistory: !1,
9214
9214
  isSetCursor: !1,
@@ -9287,7 +9287,7 @@ function Ju(o, t) {
9287
9287
  return;
9288
9288
  }
9289
9289
  if (t.data)
9290
- o.compositionInfo && (o.compositionInfo.perfStartTime = e), ec ? setTimeout(() => {
9290
+ o.compositionInfo && (o.compositionInfo.perfStartTime = e), nc ? setTimeout(() => {
9291
9291
  o.compositionInfo && Ps(t.data, o, "compositionend");
9292
9292
  }, 1) : o.compositionInfo && Ps(t.data, o, "compositionend");
9293
9293
  else {
@@ -9399,7 +9399,7 @@ class qu {
9399
9399
  * 为页面容器绑定所有必要的事件监听器。
9400
9400
  */
9401
9401
  register() {
9402
- this.pageContainer.addEventListener("click", this.click.bind(this)), this.pageContainer.addEventListener("mousedown", this.mousedown.bind(this)), this.pageContainer.addEventListener("mouseup", this.mouseup.bind(this)), this.pageContainer.addEventListener("mouseleave", this.mouseleave.bind(this)), this.pageContainer.addEventListener("mousemove", this.mousemove.bind(this)), this.pageContainer.addEventListener("dblclick", this.dblclick.bind(this)), this.pageContainer.addEventListener("dragover", this.dragover.bind(this)), this.pageContainer.addEventListener("drop", this.drop.bind(this)), Ka(this.pageContainer, this.threeClick.bind(this));
9402
+ this.pageContainer.addEventListener("click", this.click.bind(this)), this.pageContainer.addEventListener("mousedown", this.mousedown.bind(this)), this.pageContainer.addEventListener("mouseup", this.mouseup.bind(this)), this.pageContainer.addEventListener("mouseleave", this.mouseleave.bind(this)), this.pageContainer.addEventListener("mousemove", this.mousemove.bind(this)), this.pageContainer.addEventListener("dblclick", this.dblclick.bind(this)), this.pageContainer.addEventListener("dragover", this.dragover.bind(this)), this.pageContainer.addEventListener("drop", this.drop.bind(this)), Aa(this.pageContainer, this.threeClick.bind(this));
9403
9403
  }
9404
9404
  /**
9405
9405
  * 设置是否允许选区操作
@@ -9436,7 +9436,7 @@ class qu {
9436
9436
  return;
9437
9437
  let n = this.range.getSelection();
9438
9438
  if (!n) {
9439
- const s = Vl(this);
9439
+ const s = Wl(this);
9440
9440
  s && (n = this.draw.getElementList().slice(s.startIndex + 1, s.endIndex + 1));
9441
9441
  }
9442
9442
  if (!n)
@@ -9489,7 +9489,7 @@ class qu {
9489
9489
  * 在iOS系统上,需要用户主动触发才能弹出键盘。
9490
9490
  */
9491
9491
  click() {
9492
- this.draw.isInteractionSuspended() || qa && !this.draw.isReadonly() && this.draw.getCursor().getAgentDom().focus();
9492
+ this.draw.isInteractionSuspended() || tc && !this.draw.isReadonly() && this.draw.getCursor().getAgentDom().focus();
9493
9493
  }
9494
9494
  /**
9495
9495
  * 处理鼠标释放事件
@@ -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[p];
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];
@@ -10320,7 +10327,7 @@ class od {
10320
10327
  width: d.width * e,
10321
10328
  height: d.height * e
10322
10329
  };
10323
- if ($a(s, g)) {
10330
+ if (za(s, g)) {
10324
10331
  i.isSurround = !0;
10325
10332
  const p = g.width + g.x - s.x;
10326
10333
  if (r.left = p, i.width += p, u += p, c = g.x + g.width, i.width + r.metrics.width > a) {
@@ -11528,7 +11535,7 @@ class dd {
11528
11535
  measureBasisWord(t, e) {
11529
11536
  t.save(), t.font = e;
11530
11537
  const n = this.measureText(t, {
11531
- value: Wa
11538
+ value: Ya
11532
11539
  });
11533
11540
  return t.restore(), n;
11534
11541
  }
@@ -11565,7 +11572,7 @@ class dd {
11565
11572
  };
11566
11573
  }
11567
11574
  measurePunctuationWidth(t, e) {
11568
- return !e || !Va.includes(e.value) ? 0 : (t.font = this.draw.getElementFont(e), this.measureText(t, e).width);
11575
+ return !e || !Wa.includes(e.value) ? 0 : (t.font = this.draw.getElementFont(e), this.measureText(t, e).width);
11569
11576
  }
11570
11577
  measureText(t, e) {
11571
11578
  if (e.width) {
@@ -11613,7 +11620,7 @@ class mo {
11613
11620
  this.draw = t, this.options = t.getOptions();
11614
11621
  }
11615
11622
  static formatNumberPlaceholder(t, e, n, i) {
11616
- const r = i === bo.CHINESE ? Ba(e) : `${e}`;
11623
+ const r = i === bo.CHINESE ? Ga(e) : `${e}`;
11617
11624
  return t.replace(n, r);
11618
11625
  }
11619
11626
  render(t, e) {
@@ -11670,7 +11677,7 @@ class hd {
11670
11677
  visiblePageNoList: e
11671
11678
  };
11672
11679
  }
11673
- _observer = Qa(() => {
11680
+ _observer = Ha(() => {
11674
11681
  const { intersectionPageNo: t, visiblePageNoList: e } = this.getPageVisibleInfo();
11675
11682
  this.draw.setIntersectionPageNo(t), this.draw.setVisiblePageNoList(e);
11676
11683
  }, 150);
@@ -13565,12 +13572,12 @@ class Mo {
13565
13572
  this.isPopup && (this.selectDom?.remove(), this.isPopup = !1);
13566
13573
  }
13567
13574
  }
13568
- var Wl;
13575
+ var Yl;
13569
13576
  function dt() {
13570
- return Wl.apply(null, arguments);
13577
+ return Yl.apply(null, arguments);
13571
13578
  }
13572
13579
  function Nd(o) {
13573
- Wl = o;
13580
+ Yl = o;
13574
13581
  }
13575
13582
  function ke(o) {
13576
13583
  return o instanceof Array || Object.prototype.toString.call(o) === "[object Array]";
@@ -13599,7 +13606,7 @@ function Sn(o) {
13599
13606
  function vo(o) {
13600
13607
  return o instanceof Date || Object.prototype.toString.call(o) === "[object Date]";
13601
13608
  }
13602
- function Yl(o, t) {
13609
+ function Ul(o, t) {
13603
13610
  var e = [], n, i = o.length;
13604
13611
  for (n = 0; n < i; ++n)
13605
13612
  e.push(t(o[n], n));
@@ -13611,7 +13618,7 @@ function Yn(o, t) {
13611
13618
  return zt(t, "toString") && (o.toString = t.toString), zt(t, "valueOf") && (o.valueOf = t.valueOf), o;
13612
13619
  }
13613
13620
  function hn(o, t, e, n) {
13614
- return sa(o, t, e, n, !0).utc();
13621
+ return ra(o, t, e, n, !0).utc();
13615
13622
  }
13616
13623
  function xd() {
13617
13624
  return {
@@ -13672,7 +13679,7 @@ function Qo(o) {
13672
13679
  function Je(o) {
13673
13680
  return o instanceof Qo || o != null && o._isAMomentObject != null;
13674
13681
  }
13675
- function Ul(o) {
13682
+ function wl(o) {
13676
13683
  dt.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + o);
13677
13684
  }
13678
13685
  function Qe(o, t) {
@@ -13691,7 +13698,7 @@ function Qe(o, t) {
13691
13698
  i = arguments[r];
13692
13699
  n.push(i);
13693
13700
  }
13694
- Ul(
13701
+ wl(
13695
13702
  o + `
13696
13703
  Arguments: ` + Array.prototype.slice.call(n).join("") + `
13697
13704
  ` + new Error().stack
@@ -13701,8 +13708,8 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
13701
13708
  }, t);
13702
13709
  }
13703
13710
  var wr = {};
13704
- function wl(o, t) {
13705
- dt.deprecationHandler != null && dt.deprecationHandler(o, t), wr[o] || (Ul(t), wr[o] = !0);
13711
+ function Zl(o, t) {
13712
+ dt.deprecationHandler != null && dt.deprecationHandler(o, t), wr[o] || (wl(t), wr[o] = !0);
13706
13713
  }
13707
13714
  dt.suppressDeprecationWarnings = !1;
13708
13715
  dt.deprecationHandler = null;
@@ -13780,9 +13787,9 @@ function Yd(o) {
13780
13787
  };
13781
13788
  }
13782
13789
  function ii(o, t) {
13783
- return o.isValid() ? (t = Zl(t, o.localeData()), ji[t] = ji[t] || Yd(t), ji[t](o)) : o.localeData().invalidDate();
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 Zl(o, t) {
13792
+ function vl(o, t) {
13786
13793
  var e = 5;
13787
13794
  function n(i) {
13788
13795
  return t.longDateFormat(i) || i;
@@ -13927,7 +13934,7 @@ function kd(o) {
13927
13934
  return n.priority - i.priority;
13928
13935
  }), t;
13929
13936
  }
13930
- var vl = /\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;
13937
+ var Ql = /\d/, we = /\d\d/, Hl = /\d{3}/, Gs = /\d{4}/, Xi = /[+-]?\d{6}/, he = /\d\d?/, Kl = /\d\d\d\d?/, Al = /\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) {
@@ -14008,13 +14015,13 @@ function No(o) {
14008
14015
  dt.parseTwoDigitYear = function(o) {
14009
14016
  return Ht(o) + (Ht(o) > 68 ? 1900 : 2e3);
14010
14017
  };
14011
- var Al = Eo("FullYear", !0);
14018
+ var _l = Eo("FullYear", !0);
14012
14019
  function nh() {
14013
14020
  return Vi(this.year());
14014
14021
  }
14015
14022
  function Eo(o, t) {
14016
14023
  return function(e) {
14017
- return e != null ? (_l(this, o, e), dt.updateOffset(this, t), this) : Wo(this, o);
14024
+ return e != null ? (Bl(this, o, e), dt.updateOffset(this, t), this) : Wo(this, o);
14018
14025
  };
14019
14026
  }
14020
14027
  function Wo(o, t) {
@@ -14042,7 +14049,7 @@ function Wo(o, t) {
14042
14049
  return NaN;
14043
14050
  }
14044
14051
  }
14045
- function _l(o, t, e) {
14052
+ function Bl(o, t, e) {
14046
14053
  var n, i, r, s, l;
14047
14054
  if (!(!o.isValid() || isNaN(e))) {
14048
14055
  switch (n = o._d, i = o._isUTC, t) {
@@ -14125,12 +14132,12 @@ ee(["MMM", "MMMM"], function(o, t, e, n) {
14125
14132
  });
14126
14133
  var rh = "January_February_March_April_May_June_July_August_September_October_November_December".split(
14127
14134
  "_"
14128
- ), Bl = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Gl = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, lh = Ho, ah = Ho;
14135
+ ), Gl = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), kl = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, lh = Ho, ah = Ho;
14129
14136
  function ch(o, t) {
14130
- return o ? ke(this._months) ? this._months[o.month()] : this._months[(this._months.isFormat || Gl).test(t) ? "format" : "standalone"][o.month()] : ke(this._months) ? this._months : this._months.standalone;
14137
+ return o ? ke(this._months) ? this._months[o.month()] : this._months[(this._months.isFormat || kl).test(t) ? "format" : "standalone"][o.month()] : ke(this._months) ? this._months : this._months.standalone;
14131
14138
  }
14132
14139
  function uh(o, t) {
14133
- return o ? ke(this._monthsShort) ? this._monthsShort[o.month()] : this._monthsShort[Gl.test(t) ? "format" : "standalone"][o.month()] : ke(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
14140
+ return o ? ke(this._monthsShort) ? this._monthsShort[o.month()] : this._monthsShort[kl.test(t) ? "format" : "standalone"][o.month()] : ke(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
14134
14141
  }
14135
14142
  function dh(o, t, e) {
14136
14143
  var n, i, r, s = o.toLocaleLowerCase();
@@ -14161,7 +14168,7 @@ function hh(o, t, e) {
14161
14168
  return n;
14162
14169
  }
14163
14170
  }
14164
- function kl(o, t) {
14171
+ function Jl(o, t) {
14165
14172
  if (!o.isValid())
14166
14173
  return o;
14167
14174
  if (typeof t == "string") {
@@ -14173,19 +14180,19 @@ function kl(o, t) {
14173
14180
  var e = t, n = o.date();
14174
14181
  return n = n < 29 ? n : Math.min(n, $s(o.year(), e)), o._isUTC ? o._d.setUTCMonth(e, n) : o._d.setMonth(e, n), o;
14175
14182
  }
14176
- function Jl(o) {
14177
- return o != null ? (kl(this, o), dt.updateOffset(this, !0), this) : Wo(this, "Month");
14183
+ function $l(o) {
14184
+ return o != null ? (Jl(this, o), dt.updateOffset(this, !0), this) : Wo(this, "Month");
14178
14185
  }
14179
14186
  function Rh() {
14180
14187
  return $s(this.year(), this.month());
14181
14188
  }
14182
14189
  function gh(o) {
14183
- return this._monthsParseExact ? (zt(this, "_monthsRegex") || $l.call(this), o ? this._monthsShortStrictRegex : this._monthsShortRegex) : (zt(this, "_monthsShortRegex") || (this._monthsShortRegex = lh), this._monthsShortStrictRegex && o ? this._monthsShortStrictRegex : this._monthsShortRegex);
14190
+ return this._monthsParseExact ? (zt(this, "_monthsRegex") || zl.call(this), o ? this._monthsShortStrictRegex : this._monthsShortRegex) : (zt(this, "_monthsShortRegex") || (this._monthsShortRegex = lh), this._monthsShortStrictRegex && o ? this._monthsShortStrictRegex : this._monthsShortRegex);
14184
14191
  }
14185
14192
  function fh(o) {
14186
- return this._monthsParseExact ? (zt(this, "_monthsRegex") || $l.call(this), o ? this._monthsStrictRegex : this._monthsRegex) : (zt(this, "_monthsRegex") || (this._monthsRegex = ah), this._monthsStrictRegex && o ? this._monthsStrictRegex : this._monthsRegex);
14193
+ return this._monthsParseExact ? (zt(this, "_monthsRegex") || zl.call(this), o ? this._monthsStrictRegex : this._monthsRegex) : (zt(this, "_monthsRegex") || (this._monthsRegex = ah), this._monthsStrictRegex && o ? this._monthsStrictRegex : this._monthsRegex);
14187
14194
  }
14188
- function $l() {
14195
+ function zl() {
14189
14196
  function o(a, c) {
14190
14197
  return c.length - a.length;
14191
14198
  }
@@ -14212,7 +14219,7 @@ function Pi(o, t, e) {
14212
14219
  var n = 7 + t - e, i = (7 + Yo(o, 0, n).getUTCDay() - t) % 7;
14213
14220
  return -i + n - 1;
14214
14221
  }
14215
- function zl(o, t, e, n, i) {
14222
+ function jl(o, t, e, n, i) {
14216
14223
  var r = (7 + e - n) % 7, s = Pi(o, n, i), l = 1 + 7 * (t - 1) + r + s, a, c;
14217
14224
  return l <= 0 ? (a = o - 1, c = No(a) + l) : l > No(o) ? (a = o + 1, c = l - No(o)) : (a = o, c = l), {
14218
14225
  year: a,
@@ -14305,7 +14312,7 @@ function Mh(o, t) {
14305
14312
  function zs(o, t) {
14306
14313
  return o.slice(t, 7).concat(o.slice(0, t));
14307
14314
  }
14308
- var Sh = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), jl = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Dh = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Ch = Ho, Fh = Ho, Xh = Ho;
14315
+ var Sh = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), ql = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Dh = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Ch = Ho, Fh = Ho, Xh = Ho;
14309
14316
  function Nh(o, t) {
14310
14317
  var e = ke(this._weekdays) ? this._weekdays : this._weekdays[o && o !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
14311
14318
  return o === !0 ? zs(e, this._week.dow) : o ? e[o.day()] : e;
@@ -14422,7 +14429,7 @@ Pt("Hmm", 0, 0, function() {
14422
14429
  Pt("Hmmss", 0, 0, function() {
14423
14430
  return "" + this.hours() + dn(this.minutes(), 2) + dn(this.seconds(), 2);
14424
14431
  });
14425
- function ql(o, t) {
14432
+ function ta(o, t) {
14426
14433
  Pt(o, 0, 0, function() {
14427
14434
  return this.localeData().meridiem(
14428
14435
  this.hours(),
@@ -14431,23 +14438,23 @@ function ql(o, t) {
14431
14438
  );
14432
14439
  });
14433
14440
  }
14434
- ql("a", !0);
14435
- ql("A", !1);
14436
- function ta(o, t) {
14441
+ ta("a", !0);
14442
+ ta("A", !1);
14443
+ function ea(o, t) {
14437
14444
  return t._meridiemParse;
14438
14445
  }
14439
- ht("a", ta);
14440
- ht("A", ta);
14446
+ ht("a", ea);
14447
+ ht("A", ea);
14441
14448
  ht("H", he, Js);
14442
14449
  ht("h", he, Po);
14443
14450
  ht("k", he, Po);
14444
14451
  ht("HH", he, we);
14445
14452
  ht("hh", he, we);
14446
14453
  ht("kk", he, we);
14447
- ht("hmm", Hl);
14448
- ht("hmmss", Kl);
14449
- ht("Hmm", Hl);
14450
- ht("Hmmss", Kl);
14454
+ ht("hmm", Kl);
14455
+ ht("hmmss", Al);
14456
+ ht("Hmm", Kl);
14457
+ ht("Hmmss", Al);
14451
14458
  ee(["H", "HH"], Oe);
14452
14459
  ee(["k", "kk"], function(o, t, e) {
14453
14460
  var n = Ht(o);
@@ -14482,7 +14489,7 @@ var Kh = /[ap]\.?m?\.?/i, Ah = Eo("Hours", !0);
14482
14489
  function _h(o, t, e) {
14483
14490
  return o > 11 ? e ? "pm" : "PM" : e ? "am" : "AM";
14484
14491
  }
14485
- var ea = {
14492
+ var na = {
14486
14493
  calendar: yd,
14487
14494
  longDateFormat: Ud,
14488
14495
  invalidDate: Zd,
@@ -14490,11 +14497,11 @@ var ea = {
14490
14497
  dayOfMonthOrdinalParse: Hd,
14491
14498
  relativeTime: Ad,
14492
14499
  months: rh,
14493
- monthsShort: Bl,
14500
+ monthsShort: Gl,
14494
14501
  week: Ih,
14495
14502
  weekdays: Sh,
14496
14503
  weekdaysMin: Dh,
14497
- weekdaysShort: jl,
14504
+ weekdaysShort: ql,
14498
14505
  meridiemParse: Kh
14499
14506
  }, Re = {}, So = {}, wo;
14500
14507
  function Bh(o, t) {
@@ -14541,9 +14548,9 @@ function wn(o, t) {
14541
14548
  }
14542
14549
  function tr(o, t) {
14543
14550
  if (t !== null) {
14544
- var e, n = ea;
14551
+ var e, n = na;
14545
14552
  if (t.abbr = o, Re[o] != null)
14546
- wl(
14553
+ Zl(
14547
14554
  "defineLocaleOverride",
14548
14555
  "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
14549
14556
  ), n = Re[o]._config;
@@ -14565,7 +14572,7 @@ function tr(o, t) {
14565
14572
  }
14566
14573
  function Jh(o, t) {
14567
14574
  if (t != null) {
14568
- var e, n, i = ea;
14575
+ var e, n, i = na;
14569
14576
  Re[o] != null && Re[o].parentLocale != null ? Re[o].set(Os(Re[o]._config, t)) : (n = Wi(o), n != null && (i = n._config), t = Os(i, t), n == null && (t.abbr = o), e = new As(t), e.parentLocale = Re[o], Re[o] = e), wn(o);
14570
14577
  } else
14571
14578
  Re[o] != null && (Re[o].parentLocale != null ? (Re[o] = Re[o].parentLocale, o === wn() && wn(o)) : Re[o] != null && delete Re[o]);
@@ -14625,7 +14632,7 @@ var zh = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
14625
14632
  PDT: -420,
14626
14633
  PST: -480
14627
14634
  };
14628
- function na(o) {
14635
+ function oa(o) {
14629
14636
  var t, e, n = o._i, i = zh.exec(n) || jh.exec(n), r, s, l, a, c = qo.length, u = qi.length;
14630
14637
  if (i) {
14631
14638
  for (Wt(o).iso = !0, t = 0, e = c; t < e; t++)
@@ -14666,7 +14673,7 @@ function na(o) {
14666
14673
  function oR(o, t, e, n, i, r) {
14667
14674
  var s = [
14668
14675
  iR(o),
14669
- Bl.indexOf(t),
14676
+ Gl.indexOf(t),
14670
14677
  parseInt(e, 10),
14671
14678
  parseInt(n, 10),
14672
14679
  parseInt(i, 10)
@@ -14682,7 +14689,7 @@ function sR(o) {
14682
14689
  }
14683
14690
  function rR(o, t, e) {
14684
14691
  if (o) {
14685
- var n = jl.indexOf(o), i = new Date(
14692
+ var n = ql.indexOf(o), i = new Date(
14686
14693
  t[0],
14687
14694
  t[1],
14688
14695
  t[2]
@@ -14700,7 +14707,7 @@ function lR(o, t, e) {
14700
14707
  var n = parseInt(e, 10), i = n % 100, r = (n - i) / 100;
14701
14708
  return r * 60 + i;
14702
14709
  }
14703
- function oa(o) {
14710
+ function ia(o) {
14704
14711
  var t = eR.exec(sR(o._i)), e;
14705
14712
  if (t) {
14706
14713
  if (e = oR(
@@ -14722,11 +14729,11 @@ function aR(o) {
14722
14729
  o._d = /* @__PURE__ */ new Date(+t[1]);
14723
14730
  return;
14724
14731
  }
14725
- if (na(o), o._isValid === !1)
14732
+ if (oa(o), o._isValid === !1)
14726
14733
  delete o._isValid;
14727
14734
  else
14728
14735
  return;
14729
- if (oa(o), o._isValid === !1)
14736
+ if (ia(o), o._isValid === !1)
14730
14737
  delete o._isValid;
14731
14738
  else
14732
14739
  return;
@@ -14768,7 +14775,7 @@ function uR(o) {
14768
14775
  t.GG,
14769
14776
  o._a[Se],
14770
14777
  Uo(de(), 1, 4).year
14771
- ), n = no(t.W, 1), i = no(t.E, 1), (i < 1 || i > 7) && (a = !0)) : (r = o._locale._week.dow, s = o._locale._week.doy, c = Uo(de(), r, s), e = no(t.gg, o._a[Se], c.year), n = no(t.w, c.week), t.d != null ? (i = t.d, (i < 0 || i > 6) && (a = !0)) : t.e != null ? (i = t.e + r, (t.e < 0 || t.e > 6) && (a = !0)) : i = r), n < 1 || n > On(e, r, s) ? Wt(o)._overflowWeeks = !0 : a != null ? Wt(o)._overflowWeekday = !0 : (l = zl(e, n, i, r, s), o._a[Se] = l.year, o._dayOfYear = l.dayOfYear);
14778
+ ), n = no(t.W, 1), i = no(t.E, 1), (i < 1 || i > 7) && (a = !0)) : (r = o._locale._week.dow, s = o._locale._week.doy, c = Uo(de(), r, s), e = no(t.gg, o._a[Se], c.year), n = no(t.w, c.week), t.d != null ? (i = t.d, (i < 0 || i > 6) && (a = !0)) : t.e != null ? (i = t.e + r, (t.e < 0 || t.e > 6) && (a = !0)) : i = r), n < 1 || n > On(e, r, s) ? Wt(o)._overflowWeeks = !0 : a != null ? Wt(o)._overflowWeekday = !0 : (l = jl(e, n, i, r, s), o._a[Se] = l.year, o._dayOfYear = l.dayOfYear);
14772
14779
  }
14773
14780
  dt.ISO_8601 = function() {
14774
14781
  };
@@ -14776,16 +14783,16 @@ dt.RFC_2822 = function() {
14776
14783
  };
14777
14784
  function or(o) {
14778
14785
  if (o._f === dt.ISO_8601) {
14779
- na(o);
14786
+ oa(o);
14780
14787
  return;
14781
14788
  }
14782
14789
  if (o._f === dt.RFC_2822) {
14783
- oa(o);
14790
+ ia(o);
14784
14791
  return;
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 = Zl(o._f, o._locale).match(_s) || [], u = i.length, e = 0; e < u; e++)
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);
@@ -14812,7 +14819,7 @@ function hR(o) {
14812
14819
  function RR(o) {
14813
14820
  if (!o._d) {
14814
14821
  var t = Bs(o._i), e = t.day === void 0 ? t.date : t.day;
14815
- o._a = Yl(
14822
+ o._a = Ul(
14816
14823
  [t.year, t.month, e, t.hour, t.minute, t.second, t.millisecond],
14817
14824
  function(n) {
14818
14825
  return n && parseInt(n, 10);
@@ -14821,25 +14828,25 @@ function RR(o) {
14821
14828
  }
14822
14829
  }
14823
14830
  function gR(o) {
14824
- var t = new Qo(er(ia(o)));
14831
+ var t = new Qo(er(sa(o)));
14825
14832
  return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
14826
14833
  }
14827
- function ia(o) {
14834
+ function sa(o) {
14828
14835
  var t = o._i, e = o._f;
14829
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)) : (vo(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()) : vo(t) ? o._d = new Date(t.valueOf()) : typeof t == "string" ? aR(o) : ke(t) ? (o._a = Yl(t.slice(0), function(e) {
14840
+ xe(t) ? o._d = new Date(dt.now()) : vo(t) ? o._d = new Date(t.valueOf()) : typeof t == "string" ? aR(o) : ke(t) ? (o._a = Ul(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
  }
14837
- function sa(o, t, e, n, i) {
14844
+ function ra(o, t, e, n, i) {
14838
14845
  var r = {};
14839
14846
  return (t === !0 || t === !1) && (n = t, t = void 0), (e === !0 || e === !1) && (n = e, e = void 0), ($n(o) && Qs(o) || ke(o) && o.length === 0) && (o = void 0), r._isAMomentObject = !0, r._useUTC = r._isUTC = i, r._l = e, r._i = o, r._f = t, r._strict = n, gR(r);
14840
14847
  }
14841
14848
  function de(o, t, e, n) {
14842
- return sa(o, t, e, n, !1);
14849
+ return ra(o, t, e, n, !1);
14843
14850
  }
14844
14851
  var pR = Qe(
14845
14852
  "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
@@ -14854,7 +14861,7 @@ var pR = Qe(
14854
14861
  return this.isValid() && o.isValid() ? o > this ? this : o : Fi();
14855
14862
  }
14856
14863
  );
14857
- function ra(o, t) {
14864
+ function la(o, t) {
14858
14865
  var e, n;
14859
14866
  if (t.length === 1 && ke(t[0]) && (t = t[0]), !t.length)
14860
14867
  return de();
@@ -14864,11 +14871,11 @@ function ra(o, t) {
14864
14871
  }
14865
14872
  function IR() {
14866
14873
  var o = [].slice.call(arguments, 0);
14867
- return ra("isBefore", o);
14874
+ return la("isBefore", o);
14868
14875
  }
14869
14876
  function mR() {
14870
14877
  var o = [].slice.call(arguments, 0);
14871
- return ra("isAfter", o);
14878
+ return la("isAfter", o);
14872
14879
  }
14873
14880
  var LR = function() {
14874
14881
  return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
@@ -14920,14 +14927,14 @@ function MR(o, t, e) {
14920
14927
  Ht(o[s]) !== Ht(t[s]) && r++;
14921
14928
  return r + i;
14922
14929
  }
14923
- function la(o, t) {
14930
+ function aa(o, t) {
14924
14931
  Pt(o, 0, 0, function() {
14925
14932
  var e = this.utcOffset(), n = "+";
14926
14933
  return e < 0 && (e = -e, n = "-"), n + dn(~~(e / 60), 2) + t + dn(~~e % 60, 2);
14927
14934
  });
14928
14935
  }
14929
- la("Z", ":");
14930
- la("ZZ", "");
14936
+ aa("Z", ":");
14937
+ aa("ZZ", "");
14931
14938
  ht("Z", yi);
14932
14939
  ht("ZZ", yi);
14933
14940
  ee(["Z", "ZZ"], function(o, t, e) {
@@ -14956,7 +14963,7 @@ function DR(o, t, e) {
14956
14963
  if (o = ir(yi, o), o === null)
14957
14964
  return this;
14958
14965
  } else Math.abs(o) < 16 && !e && (o = o * 60);
14959
- return !this._isUTC && t && (i = Cs(this)), this._offset = o, this._isUTC = !0, i != null && this.add(i, "m"), n !== o && (!t || this._changeInProgress ? ua(
14966
+ return !this._isUTC && t && (i = Cs(this)), this._offset = o, this._isUTC = !0, i != null && this.add(i, "m"), n !== o && (!t || this._changeInProgress ? da(
14960
14967
  this,
14961
14968
  $e(o - n, "m"),
14962
14969
  1,
@@ -14993,7 +15000,7 @@ function yR() {
14993
15000
  if (!xe(this._isDSTShifted))
14994
15001
  return this._isDSTShifted;
14995
15002
  var o = {}, t;
14996
- return Ks(o, this), o = ia(o), o._a ? (t = o._isUTC ? hn(o._a) : de(o._a), this._isDSTShifted = this.isValid() && MR(o._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
15003
+ return Ks(o, this), o = sa(o), o._a ? (t = o._isUTC ? hn(o._a) : de(o._a), this._isDSTShifted = this.isValid() && MR(o._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
14997
15004
  }
14998
15005
  function VR() {
14999
15006
  return this.isValid() ? !this._isUTC : !1;
@@ -15001,7 +15008,7 @@ function VR() {
15001
15008
  function WR() {
15002
15009
  return this.isValid() ? this._isUTC : !1;
15003
15010
  }
15004
- function aa() {
15011
+ function ca() {
15005
15012
  return this.isValid() ? this._isUTC && this._offset === 0 : !1;
15006
15013
  }
15007
15014
  var YR = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, UR = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
@@ -15046,25 +15053,25 @@ function wR(o, t) {
15046
15053
  var e;
15047
15054
  return o.isValid() && t.isValid() ? (t = sr(t, o), o.isBefore(t) ? e = Qr(o, t) : (e = Qr(t, o), e.milliseconds = -e.milliseconds, e.months = -e.months), e) : { milliseconds: 0, months: 0 };
15048
15055
  }
15049
- function ca(o, t) {
15056
+ function ua(o, t) {
15050
15057
  return function(e, n) {
15051
15058
  var i, r;
15052
- return n !== null && !isNaN(+n) && (wl(
15059
+ return n !== null && !isNaN(+n) && (Zl(
15053
15060
  t,
15054
15061
  "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
15055
- ), r = e, e = n, n = r), i = $e(e, n), ua(this, i, o), this;
15062
+ ), r = e, e = n, n = r), i = $e(e, n), da(this, i, o), this;
15056
15063
  };
15057
15064
  }
15058
- function ua(o, t, e, n) {
15065
+ function da(o, t, e, n) {
15059
15066
  var i = t._milliseconds, r = Ds(t._days), s = Ds(t._months);
15060
- 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));
15067
+ o.isValid() && (n = n ?? !0, s && Jl(o, Wo(o, "Month") + s * e), r && Bl(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 ZR = ca(1, "add"), vR = ca(-1, "subtract");
15063
- function da(o) {
15069
+ var ZR = ua(1, "add"), vR = ua(-1, "subtract");
15070
+ function ha(o) {
15064
15071
  return typeof o == "string" || o instanceof String;
15065
15072
  }
15066
15073
  function QR(o) {
15067
- return Je(o) || vo(o) || da(o) || Sn(o) || KR(o) || HR(o) || o === null || o === void 0;
15074
+ return Je(o) || vo(o) || ha(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 = [
@@ -15100,7 +15107,7 @@ function HR(o) {
15100
15107
  function KR(o) {
15101
15108
  var t = ke(o), e = !1;
15102
15109
  return t && (e = o.filter(function(n) {
15103
- return !Sn(n) && da(o);
15110
+ return !Sn(n) && ha(o);
15104
15111
  }).length === 0), t && e;
15105
15112
  }
15106
15113
  function AR(o) {
@@ -15239,34 +15246,34 @@ function lg(o, t) {
15239
15246
  function ag(o) {
15240
15247
  return this.to(de(), o);
15241
15248
  }
15242
- function ha(o) {
15249
+ function Ra(o) {
15243
15250
  var t;
15244
15251
  return o === void 0 ? this._locale._abbr : (t = Dn(o), t != null && (this._locale = t), this);
15245
15252
  }
15246
- var Ra = Qe(
15253
+ var ga = Qe(
15247
15254
  "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
15248
15255
  function(o) {
15249
15256
  return o === void 0 ? this.localeData() : this.locale(o);
15250
15257
  }
15251
15258
  );
15252
- function ga() {
15259
+ function fa() {
15253
15260
  return this._locale;
15254
15261
  }
15255
- var Ei = 1e3, uo = 60 * Ei, Oi = 60 * uo, fa = (365 * 400 + 97) * 24 * Oi;
15262
+ var Ei = 1e3, uo = 60 * Ei, Oi = 60 * uo, pa = (365 * 400 + 97) * 24 * Oi;
15256
15263
  function ho(o, t) {
15257
15264
  return (o % t + t) % t;
15258
15265
  }
15259
- function pa(o, t, e) {
15260
- return o < 100 && o >= 0 ? new Date(o + 400, t, e) - fa : new Date(o, t, e).valueOf();
15261
- }
15262
15266
  function Ta(o, t, e) {
15263
- return o < 100 && o >= 0 ? Date.UTC(o + 400, t, e) - fa : Date.UTC(o, t, e);
15267
+ return o < 100 && o >= 0 ? new Date(o + 400, t, e) - pa : new Date(o, t, e).valueOf();
15268
+ }
15269
+ function Ia(o, t, e) {
15270
+ return o < 100 && o >= 0 ? Date.UTC(o + 400, t, e) - pa : Date.UTC(o, t, e);
15264
15271
  }
15265
15272
  function cg(o) {
15266
15273
  var t, e;
15267
15274
  if (o = He(o), o === void 0 || o === "millisecond" || !this.isValid())
15268
15275
  return this;
15269
- switch (e = this._isUTC ? Ta : pa, o) {
15276
+ switch (e = this._isUTC ? Ia : Ta, o) {
15270
15277
  case "year":
15271
15278
  t = e(this.year(), 0, 1);
15272
15279
  break;
@@ -15317,7 +15324,7 @@ function ug(o) {
15317
15324
  var t, e;
15318
15325
  if (o = He(o), o === void 0 || o === "millisecond" || !this.isValid())
15319
15326
  return this;
15320
- switch (e = this._isUTC ? Ta : pa, o) {
15327
+ switch (e = this._isUTC ? Ia : Ta, o) {
15321
15328
  case "year":
15322
15329
  t = e(this.year() + 1, 0, 1) - 1;
15323
15330
  break;
@@ -15578,7 +15585,7 @@ Ko(["gg", "GG"], function(o, t, e, n) {
15578
15585
  t[n] = dt.parseTwoDigitYear(o);
15579
15586
  });
15580
15587
  function Vg(o) {
15581
- return Ia.call(
15588
+ return ma.call(
15582
15589
  this,
15583
15590
  o,
15584
15591
  this.week(),
@@ -15588,7 +15595,7 @@ function Vg(o) {
15588
15595
  );
15589
15596
  }
15590
15597
  function Wg(o) {
15591
- return Ia.call(
15598
+ return ma.call(
15592
15599
  this,
15593
15600
  o,
15594
15601
  this.isoWeek(),
@@ -15611,16 +15618,16 @@ function Zg() {
15611
15618
  var o = this.localeData()._week;
15612
15619
  return On(this.weekYear(), o.dow, o.doy);
15613
15620
  }
15614
- function Ia(o, t, e, n, i) {
15621
+ function ma(o, t, e, n, i) {
15615
15622
  var r;
15616
15623
  return o == null ? Uo(this, n, i).year : (r = On(o, n, i), t > r && (t = r), vg.call(this, o, t, e, n, i));
15617
15624
  }
15618
15625
  function vg(o, t, e, n, i) {
15619
- var r = zl(o, t, e, n, i), s = Yo(r.year, 0, r.dayOfYear);
15626
+ var r = jl(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", vl);
15630
+ ht("Q", Ql);
15624
15631
  ee("Q", function(o, t) {
15625
15632
  t[mn] = (Ht(o) - 1) * 3;
15626
15633
  });
@@ -15637,10 +15644,10 @@ ee(["D", "DD"], rn);
15637
15644
  ee("Do", function(o, t) {
15638
15645
  t[rn] = Ht(o.match(he)[0]);
15639
15646
  });
15640
- var ma = Eo("Date", !0);
15647
+ var La = Eo("Date", !0);
15641
15648
  Pt("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
15642
15649
  ht("DDD", Ni);
15643
- ht("DDDD", Ql);
15650
+ ht("DDDD", Hl);
15644
15651
  ee(["DDD", "DDDD"], function(o, t, e) {
15645
15652
  e._dayOfYear = Ht(o);
15646
15653
  });
@@ -15685,10 +15692,10 @@ 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, vl);
15695
+ ht("S", Ni, Ql);
15689
15696
  ht("SS", Ni, we);
15690
- ht("SSS", Ni, Ql);
15691
- var Un, La;
15697
+ ht("SSS", Ni, Hl);
15698
+ var Un, Pa;
15692
15699
  for (Un = "SSSS"; Un.length <= 9; Un += "S")
15693
15700
  ht(Un, Lo);
15694
15701
  function _g(o, t) {
@@ -15696,7 +15703,7 @@ function _g(o, t) {
15696
15703
  }
15697
15704
  for (Un = "S"; Un.length <= 9; Un += "S")
15698
15705
  ee(Un, _g);
15699
- La = Eo("Milliseconds", !1);
15706
+ Pa = Eo("Milliseconds", !1);
15700
15707
  Pt("z", 0, 0, "zoneAbbr");
15701
15708
  Pt("zz", 0, 0, "zoneName");
15702
15709
  function Bg() {
@@ -15725,9 +15732,9 @@ et.isSame = zR;
15725
15732
  et.isSameOrAfter = jR;
15726
15733
  et.isSameOrBefore = qR;
15727
15734
  et.isValid = Tg;
15728
- et.lang = Ra;
15729
- et.locale = ha;
15730
- et.localeData = ga;
15735
+ et.lang = ga;
15736
+ et.locale = Ra;
15737
+ et.localeData = fa;
15731
15738
  et.max = TR;
15732
15739
  et.min = pR;
15733
15740
  et.parsingFlags = Ig;
@@ -15751,12 +15758,12 @@ et.eraName = Mg;
15751
15758
  et.eraNarrow = Sg;
15752
15759
  et.eraAbbr = Dg;
15753
15760
  et.eraYear = Cg;
15754
- et.year = Al;
15761
+ et.year = _l;
15755
15762
  et.isLeapYear = nh;
15756
15763
  et.weekYear = Vg;
15757
15764
  et.isoWeekYear = Wg;
15758
15765
  et.quarter = et.quarters = Qg;
15759
- et.month = Jl;
15766
+ et.month = $l;
15760
15767
  et.daysInMonth = Rh;
15761
15768
  et.week = et.weeks = Ph;
15762
15769
  et.isoWeek = et.isoWeeks = Eh;
@@ -15764,7 +15771,7 @@ et.weeksInYear = wg;
15764
15771
  et.weeksInWeekYear = Zg;
15765
15772
  et.isoWeeksInYear = Yg;
15766
15773
  et.isoWeeksInISOWeekYear = Ug;
15767
- et.date = ma;
15774
+ et.date = La;
15768
15775
  et.day = et.days = Wh;
15769
15776
  et.weekday = Yh;
15770
15777
  et.isoWeekday = Uh;
@@ -15772,7 +15779,7 @@ et.dayOfYear = Hg;
15772
15779
  et.hour = et.hours = Ah;
15773
15780
  et.minute = et.minutes = Kg;
15774
15781
  et.second = et.seconds = Ag;
15775
- et.millisecond = et.milliseconds = La;
15782
+ et.millisecond = et.milliseconds = Pa;
15776
15783
  et.utcOffset = DR;
15777
15784
  et.utc = FR;
15778
15785
  et.local = XR;
@@ -15781,21 +15788,21 @@ et.hasAlignedHourOffset = xR;
15781
15788
  et.isDST = bR;
15782
15789
  et.isLocal = VR;
15783
15790
  et.isUtcOffset = WR;
15784
- et.isUtc = aa;
15785
- et.isUTC = aa;
15791
+ et.isUtc = ca;
15792
+ et.isUTC = ca;
15786
15793
  et.zoneAbbr = Bg;
15787
15794
  et.zoneName = Gg;
15788
15795
  et.dates = Qe(
15789
15796
  "dates accessor is deprecated. Use date instead.",
15790
- ma
15797
+ La
15791
15798
  );
15792
15799
  et.months = Qe(
15793
15800
  "months accessor is deprecated. Use month instead",
15794
- Jl
15801
+ $l
15795
15802
  );
15796
15803
  et.years = Qe(
15797
15804
  "years accessor is deprecated. Use year instead",
15798
- Al
15805
+ _l
15799
15806
  );
15800
15807
  et.zone = Qe(
15801
15808
  "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
@@ -15811,7 +15818,7 @@ function kg(o) {
15811
15818
  function Jg() {
15812
15819
  return de.apply(null, arguments).parseZone();
15813
15820
  }
15814
- function Pa(o) {
15821
+ function Ea(o) {
15815
15822
  return o;
15816
15823
  }
15817
15824
  var jt = As.prototype;
@@ -15819,8 +15826,8 @@ jt.calendar = Vd;
15819
15826
  jt.longDateFormat = wd;
15820
15827
  jt.invalidDate = vd;
15821
15828
  jt.ordinal = Kd;
15822
- jt.preparse = Pa;
15823
- jt.postformat = Pa;
15829
+ jt.preparse = Ea;
15830
+ jt.postformat = Ea;
15824
15831
  jt.relativeTime = _d;
15825
15832
  jt.pastFuture = Bd;
15826
15833
  jt.set = bd;
@@ -15851,7 +15858,7 @@ function Mi(o, t, e, n) {
15851
15858
  var i = Dn(), r = hn().set(n, t);
15852
15859
  return i[e](r, o);
15853
15860
  }
15854
- function Ea(o, t, e) {
15861
+ function Oa(o, t, e) {
15855
15862
  if (Sn(o) && (t = o, o = void 0), o = o || "", t != null)
15856
15863
  return Mi(o, t, e, "month");
15857
15864
  var n, i = [];
@@ -15869,10 +15876,10 @@ function ar(o, t, e, n) {
15869
15876
  return l;
15870
15877
  }
15871
15878
  function $g(o, t) {
15872
- return Ea(o, t, "months");
15879
+ return Oa(o, t, "months");
15873
15880
  }
15874
15881
  function zg(o, t) {
15875
- return Ea(o, t, "monthsShort");
15882
+ return Oa(o, t, "monthsShort");
15876
15883
  }
15877
15884
  function jg(o, t, e) {
15878
15885
  return ar(o, t, e, "weekdays");
@@ -15921,24 +15928,24 @@ function ef() {
15921
15928
  var o = this._data;
15922
15929
  return this._milliseconds = pn(this._milliseconds), this._days = pn(this._days), this._months = pn(this._months), o.milliseconds = pn(o.milliseconds), o.seconds = pn(o.seconds), o.minutes = pn(o.minutes), o.hours = pn(o.hours), o.months = pn(o.months), o.years = pn(o.years), this;
15923
15930
  }
15924
- function Oa(o, t, e, n) {
15931
+ function Ma(o, t, e, n) {
15925
15932
  var i = $e(t, e);
15926
15933
  return o._milliseconds += n * i._milliseconds, o._days += n * i._days, o._months += n * i._months, o._bubble();
15927
15934
  }
15928
15935
  function nf(o, t) {
15929
- return Oa(this, o, t, 1);
15936
+ return Ma(this, o, t, 1);
15930
15937
  }
15931
15938
  function of(o, t) {
15932
- return Oa(this, o, t, -1);
15939
+ return Ma(this, o, t, -1);
15933
15940
  }
15934
15941
  function Hr(o) {
15935
15942
  return o < 0 ? Math.floor(o) : Math.ceil(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 = ve(o / 1e3), n.seconds = i % 60, r = ve(i / 60), n.minutes = r % 60, s = ve(r / 60), n.hours = s % 24, t += ve(s / 24), a = ve(Ma(t)), e += a, t -= Hr(Fs(a)), l = ve(e / 12), e %= 12, n.days = t, n.months = e, n.years = l, this;
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 = ve(o / 1e3), n.seconds = i % 60, r = ve(i / 60), n.minutes = r % 60, s = ve(r / 60), n.hours = s % 24, t += ve(s / 24), a = ve(Sa(t)), e += a, t -= Hr(Fs(a)), l = ve(e / 12), e %= 12, n.days = t, n.months = e, n.years = l, this;
15940
15947
  }
15941
- function Ma(o) {
15948
+ function Sa(o) {
15942
15949
  return o * 4800 / 146097;
15943
15950
  }
15944
15951
  function Fs(o) {
@@ -15949,7 +15956,7 @@ function rf(o) {
15949
15956
  return NaN;
15950
15957
  var t, e, n = this._milliseconds;
15951
15958
  if (o = He(o), o === "month" || o === "quarter" || o === "year")
15952
- switch (t = this._days + n / 864e5, e = this._months + Ma(t), o) {
15959
+ switch (t = this._days + n / 864e5, e = this._months + Sa(t), o) {
15953
15960
  case "month":
15954
15961
  return e;
15955
15962
  case "quarter":
@@ -15981,7 +15988,7 @@ function Cn(o) {
15981
15988
  return this.as(o);
15982
15989
  };
15983
15990
  }
15984
- var Sa = Cn("ms"), lf = Cn("s"), af = Cn("m"), cf = Cn("h"), uf = Cn("d"), df = Cn("w"), hf = Cn("M"), Rf = Cn("Q"), gf = Cn("y"), ff = Sa;
15991
+ var Da = Cn("ms"), lf = Cn("s"), af = Cn("m"), cf = Cn("h"), uf = Cn("d"), df = Cn("w"), hf = Cn("M"), Rf = Cn("Q"), gf = Cn("y"), ff = Da;
15985
15992
  function pf() {
15986
15993
  return $e(this);
15987
15994
  }
@@ -16048,7 +16055,7 @@ Jt.abs = ef;
16048
16055
  Jt.add = nf;
16049
16056
  Jt.subtract = of;
16050
16057
  Jt.as = rf;
16051
- Jt.asMilliseconds = Sa;
16058
+ Jt.asMilliseconds = Da;
16052
16059
  Jt.asSeconds = lf;
16053
16060
  Jt.asMinutes = af;
16054
16061
  Jt.asHours = cf;
@@ -16073,13 +16080,13 @@ Jt.humanize = Nf;
16073
16080
  Jt.toISOString = wi;
16074
16081
  Jt.toString = wi;
16075
16082
  Jt.toJSON = wi;
16076
- Jt.locale = ha;
16077
- Jt.localeData = ga;
16083
+ Jt.locale = Ra;
16084
+ Jt.localeData = fa;
16078
16085
  Jt.toIsoString = Qe(
16079
16086
  "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
16080
16087
  wi
16081
16088
  );
16082
- Jt.lang = Ra;
16089
+ Jt.lang = ga;
16083
16090
  Pt("X", 0, 0, "unix");
16084
16091
  Pt("x", 0, 0, "valueOf");
16085
16092
  ht("x", bi);
@@ -16655,7 +16662,7 @@ class Xs {
16655
16662
  }
16656
16663
  }
16657
16664
  }
16658
- class Da {
16665
+ class Ca {
16659
16666
  draw;
16660
16667
  options;
16661
16668
  now;
@@ -17070,7 +17077,7 @@ class Co {
17070
17077
  const e = this.draw.getElementList(), { startIndex: n } = this.control.getRange();
17071
17078
  if (e[n + 1]?.controlId !== this.element.controlId)
17072
17079
  return;
17073
- this.datePicker = new Da(this.draw, {
17080
+ this.datePicker = new Ca(this.draw, {
17074
17081
  onSubmit: this._setDate.bind(this)
17075
17082
  });
17076
17083
  const i = this.getValue().map((s) => s.value).join("") || "", r = this.element.control?.dateFormat;
@@ -19670,7 +19677,7 @@ class Wf {
19670
19677
  this.activeControl = T, is(h) ? (h.length && le(h, {
19671
19678
  isHandleFirstElement: !1,
19672
19679
  editorOptions: this.options
19673
- }), T.setValue(h, I, m)) : _a(h) ? T.setSelect(h, I, m) : T.clearSelect(I, m);
19680
+ }), T.setValue(h, I, m)) : Ba(h) ? T.setSelect(h, I, m) : T.clearSelect(I, m);
19674
19681
  } else if (f === b.NUMBER) {
19675
19682
  const T = Array.isArray(h) ? h : h ? [{ value: h }] : [];
19676
19683
  T.length && le(T, {
@@ -20606,14 +20613,12 @@ class Hf {
20606
20613
  cycleMin: g.querySelector("#mh-edit-cycleMin")?.value || "",
20607
20614
  cycleMax: g.querySelector("#mh-edit-cycleMax")?.value || ""
20608
20615
  }, this.clearMenstrualHistoryEditor();
20609
- const m = this.draw.getElementList(), L = e.index;
20610
- this.draw.spliceElementList(m, L, 1);
20611
- const T = {
20612
- type: "menstrualHistory",
20613
- value: "",
20614
- menstrualData: I
20615
- };
20616
- this.draw.spliceElementList(m, L, 0, [T]), this.draw.getControl().destroyControl(), this.draw.getRange().clearRange(), this.draw.render({
20616
+ const L = this.draw.getElementList()[e.index], T = L?.type === P.MENSTRUAL_HISTORY ? L : t;
20617
+ if (T.menstrualData = I, T.id) {
20618
+ const O = Il(T.id);
20619
+ O && (O.menstrualData = I);
20620
+ }
20621
+ this.draw.getControl().destroyControl(), this.draw.getRange().clearRange(), this.draw.render({
20617
20622
  isSetCursor: !1,
20618
20623
  isCompute: !0
20619
20624
  });
@@ -21493,7 +21498,7 @@ class Af {
21493
21498
  });
21494
21499
  }
21495
21500
  }
21496
- const Ca = '(function(){"use strict";function f(i){let s="",n=0;for(;n<i.length;){const t=i[n];if(t.type==="table"){if(t.trList)for(let l=0;l<t.trList.length;l++){const o=t.trList[l];for(let e=0;e<o.tdList.length;e++){const r=o.tdList[e];s+=f(r.value)}}}else if(t.type==="hyperlink"){const l=t.hyperlinkId,o=[];for(;n<i.length;){const e=i[n];if(l!==e.hyperlinkId){n--;break}delete e.type,o.push(e),n++}s+=f(o)}else if(t.controlId){if(!t.control?.hide){const l=t.controlId,o=[];for(;n<i.length;){const e=i[n];if(l!==e.controlId){n--;break}e.controlComponent==="value"&&(delete e.controlId,o.push(e)),n++}s+=f(o)}}else(!t.type||t.type==="text")&&!t.area?.hide&&(s+=t.value);n++}return s}function p(i){const s=[],n=/[0-9]/,t=/[A-Za-z]/,l=/\\s/;let o=!1,e=!1,r="";function a(){r&&(s.push(r),r="")}for(const c of i)t.test(c)?(o||a(),r+=c,o=!0,e=!1):n.test(c)?(e||a(),r+=c,o=!1,e=!0):(a(),o=!1,e=!1,l.test(c)||s.push(c));return a(),s}onmessage=i=>{const s=i.data,t=f(s).replace(new RegExp("^​"),"").replace(new RegExp("​","g"),`\n`),l=p(t);postMessage(l.length)}})();\n', kr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Ca], { type: "text/javascript;charset=utf-8" });
21501
+ const Fa = '(function(){"use strict";function f(i){let s="",n=0;for(;n<i.length;){const t=i[n];if(t.type==="table"){if(t.trList)for(let l=0;l<t.trList.length;l++){const o=t.trList[l];for(let e=0;e<o.tdList.length;e++){const r=o.tdList[e];s+=f(r.value)}}}else if(t.type==="hyperlink"){const l=t.hyperlinkId,o=[];for(;n<i.length;){const e=i[n];if(l!==e.hyperlinkId){n--;break}delete e.type,o.push(e),n++}s+=f(o)}else if(t.controlId){if(!t.control?.hide){const l=t.controlId,o=[];for(;n<i.length;){const e=i[n];if(l!==e.controlId){n--;break}e.controlComponent==="value"&&(delete e.controlId,o.push(e)),n++}s+=f(o)}}else(!t.type||t.type==="text")&&!t.area?.hide&&(s+=t.value);n++}return s}function p(i){const s=[],n=/[0-9]/,t=/[A-Za-z]/,l=/\\s/;let o=!1,e=!1,r="";function a(){r&&(s.push(r),r="")}for(const c of i)t.test(c)?(o||a(),r+=c,o=!0,e=!1):n.test(c)?(e||a(),r+=c,o=!1,e=!0):(a(),o=!1,e=!1,l.test(c)||s.push(c));return a(),s}onmessage=i=>{const s=i.data,t=f(s).replace(new RegExp("^​"),"").replace(new RegExp("​","g"),`\n`),l=p(t);postMessage(l.length)}})();\n', kr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Fa], { type: "text/javascript;charset=utf-8" });
21497
21502
  function _f(o) {
21498
21503
  let t;
21499
21504
  try {
@@ -21506,15 +21511,15 @@ function _f(o) {
21506
21511
  }), e;
21507
21512
  } catch {
21508
21513
  return new Worker(
21509
- "data:text/javascript;charset=utf-8," + encodeURIComponent(Ca),
21514
+ "data:text/javascript;charset=utf-8," + encodeURIComponent(Fa),
21510
21515
  {
21511
21516
  name: o?.name
21512
21517
  }
21513
21518
  );
21514
21519
  }
21515
21520
  }
21516
- const Fa = `(function(){"use strict";const v={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6},E=["text","hyperlink","subscript","superscript","control","date","label"],L="​";function m(c){return!c.type||E.includes(c.type)}function I(c){const{elementList:r,positionList:d}=c,p=[];let u=0;for(;u<r.length;){const t=r[u],l=(e,n,s)=>{const g=e.titleId,a={type:"title",value:"",level:e.level,titleId:g,pageNo:d[u].pageNo},o=[];for(;s<n.length;){const i=n[s];if(g!==i.titleId){s--;break}o.push(i),s++}return a.value=o.filter(i=>m(i)).map(i=>i.value).join("").replace(new RegExp(L,"g"),""),{position:s,titleElement:a}};if(t.titleId){const{position:e,titleElement:n}=l(t,r,u);u=e,p.push(n)}if(t.type==="table"){const e=t.trList;for(let n=0;n<e.length;n++){const s=e[n];for(let g=0;g<s.tdList.length;g++){const a=s.tdList[g].value;if(a.length>1){let o=1;for(;o<a.length;){if(a[o]?.titleId){const{titleElement:i,position:N}=l(a[o],a,o);p.push(i),o=N}o++}}}}}u++}if(!p.length)return null;const f=(t,l)=>{const e=l.subCatalog[l.subCatalog.length-1],n=v[e?.level],s=v[t.level];e&&s>n?f(t,e):l.subCatalog.push({id:t.titleId,name:t.value,level:t.level,pageNo:t.pageNo,subCatalog:[]})},h=[];for(let t=0;t<p.length;t++){const l=p[t],e=h[h.length-1],n=v[e?.level],s=v[l.level];e&&s>n?f(l,e):h.push({id:l.titleId,name:l.value,level:l.level,pageNo:l.pageNo,subCatalog:[]})}return h}onmessage=c=>{const r=c.data,d=I(r);postMessage(d)}})();
21517
- `, Jr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Fa], { type: "text/javascript;charset=utf-8" });
21521
+ const Xa = `(function(){"use strict";const v={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6},E=["text","hyperlink","subscript","superscript","control","date","label"],L="​";function m(c){return!c.type||E.includes(c.type)}function I(c){const{elementList:r,positionList:d}=c,p=[];let u=0;for(;u<r.length;){const t=r[u],l=(e,n,s)=>{const g=e.titleId,a={type:"title",value:"",level:e.level,titleId:g,pageNo:d[u].pageNo},o=[];for(;s<n.length;){const i=n[s];if(g!==i.titleId){s--;break}o.push(i),s++}return a.value=o.filter(i=>m(i)).map(i=>i.value).join("").replace(new RegExp(L,"g"),""),{position:s,titleElement:a}};if(t.titleId){const{position:e,titleElement:n}=l(t,r,u);u=e,p.push(n)}if(t.type==="table"){const e=t.trList;for(let n=0;n<e.length;n++){const s=e[n];for(let g=0;g<s.tdList.length;g++){const a=s.tdList[g].value;if(a.length>1){let o=1;for(;o<a.length;){if(a[o]?.titleId){const{titleElement:i,position:N}=l(a[o],a,o);p.push(i),o=N}o++}}}}}u++}if(!p.length)return null;const f=(t,l)=>{const e=l.subCatalog[l.subCatalog.length-1],n=v[e?.level],s=v[t.level];e&&s>n?f(t,e):l.subCatalog.push({id:t.titleId,name:t.value,level:t.level,pageNo:t.pageNo,subCatalog:[]})},h=[];for(let t=0;t<p.length;t++){const l=p[t],e=h[h.length-1],n=v[e?.level],s=v[l.level];e&&s>n?f(l,e):h.push({id:l.titleId,name:l.value,level:l.level,pageNo:l.pageNo,subCatalog:[]})}return h}onmessage=c=>{const r=c.data,d=I(r);postMessage(d)}})();
21522
+ `, Jr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Xa], { type: "text/javascript;charset=utf-8" });
21518
21523
  function Bf(o) {
21519
21524
  let t;
21520
21525
  try {
@@ -21527,15 +21532,15 @@ function Bf(o) {
21527
21532
  }), e;
21528
21533
  } catch {
21529
21534
  return new Worker(
21530
- "data:text/javascript;charset=utf-8," + encodeURIComponent(Fa),
21535
+ "data:text/javascript;charset=utf-8," + encodeURIComponent(Xa),
21531
21536
  {
21532
21537
  name: o?.name
21533
21538
  }
21534
21539
  );
21535
21540
  }
21536
21541
  }
21537
- const Xa = `(function(){"use strict";function u(e){const t=[];for(const s of e){if(s.type==="table"){const o=s.trList;for(let n=0;n<o.length;n++){const c=o[n];for(let r=0;r<c.tdList.length;r++){const i=c.tdList[r];t.push(...u(i.value))}}}if(s.groupIds)for(const o of s.groupIds)t.includes(o)||t.push(o)}return t}onmessage=e=>{const t=e.data,s=u(t);postMessage(s)}})();
21538
- `, $r = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Xa], { type: "text/javascript;charset=utf-8" });
21542
+ const Na = `(function(){"use strict";function u(e){const t=[];for(const s of e){if(s.type==="table"){const o=s.trList;for(let n=0;n<o.length;n++){const c=o[n];for(let r=0;r<c.tdList.length;r++){const i=c.tdList[r];t.push(...u(i.value))}}}if(s.groupIds)for(const o of s.groupIds)t.includes(o)||t.push(o)}return t}onmessage=e=>{const t=e.data,s=u(t);postMessage(s)}})();
21543
+ `, $r = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Na], { type: "text/javascript;charset=utf-8" });
21539
21544
  function Gf(o) {
21540
21545
  let t;
21541
21546
  try {
@@ -21548,14 +21553,14 @@ function Gf(o) {
21548
21553
  }), e;
21549
21554
  } catch {
21550
21555
  return new Worker(
21551
- "data:text/javascript;charset=utf-8," + encodeURIComponent(Xa),
21556
+ "data:text/javascript;charset=utf-8," + encodeURIComponent(Na),
21552
21557
  {
21553
21558
  name: o?.name
21554
21559
  }
21555
21560
  );
21556
21561
  }
21557
21562
  }
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\\u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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\\uFE0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FD\\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\\u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200D\\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]|\\u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83C[\\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" });
21563
+ const xa = '(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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DC41\\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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D2(?:\\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]|\\uD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\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);", xa], { type: "text/javascript;charset=utf-8" });
21559
21564
  function kf(o) {
21560
21565
  let t;
21561
21566
  try {
@@ -21568,7 +21573,7 @@ function kf(o) {
21568
21573
  }), e;
21569
21574
  } catch {
21570
21575
  return new Worker(
21571
- "data:text/javascript;charset=utf-8," + encodeURIComponent(Na),
21576
+ "data:text/javascript;charset=utf-8," + encodeURIComponent(xa),
21572
21577
  {
21573
21578
  name: o?.name
21574
21579
  }
@@ -21896,7 +21901,7 @@ class zf {
21896
21901
  datePicker;
21897
21902
  options;
21898
21903
  constructor(t) {
21899
- this.draw = t, this.options = t.getOptions(), this.range = t.getRange(), this.datePicker = new Da(t, {
21904
+ this.draw = t, this.options = t.getOptions(), this.range = t.getRange(), this.datePicker = new Ca(t, {
21900
21905
  onSubmit: this._setValue.bind(this)
21901
21906
  });
21902
21907
  }
@@ -22257,7 +22262,7 @@ class fp {
22257
22262
  s.disabled || r.push(St.HEADER), l.disabled || r.push(St.FOOTER), r.length && this._watchMouseMoveZoneChange(r);
22258
22263
  }
22259
22264
  _watchMouseMoveZoneChange(t) {
22260
- this.pageContainer.addEventListener("mousemove", Ha((e) => {
22265
+ this.pageContainer.addEventListener("mousemove", Ka((e) => {
22261
22266
  if (!(this.isDisableMouseMove || !this.draw.getIsPagingMode())) {
22262
22267
  if (this.draw.getMode() !== K.EDIT) {
22263
22268
  this._updateZoneTip(!1);
@@ -22623,7 +22628,7 @@ class Zo {
22623
22628
  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
22629
  }
22625
22630
  }
22626
- class xa {
22631
+ class ba {
22627
22632
  draw;
22628
22633
  position;
22629
22634
  options;
@@ -23637,7 +23642,7 @@ class Cp {
23637
23642
  continue;
23638
23643
  t.translate(0.5, 0.5);
23639
23644
  const c = a[0], u = a[a.length - 1], h = n[3], d = Math.ceil(c.coordinate.leftTop[1]), f = Math.ceil(u.coordinate.rightBottom[1] - d);
23640
- t.textBaseline = "middle", s.backgroundColor && (t.fillStyle = s.backgroundColor, t.fillRect(h, d, i, f)), s.borderColor && (t.strokeStyle = s.borderColor, t.strokeRect(h, d, i, f)), s.placeholder && l.length <= 1 && new xa(this.draw).render(t, {
23645
+ t.textBaseline = "middle", s.backgroundColor && (t.fillStyle = s.backgroundColor, t.fillRect(h, d, i, f)), s.borderColor && (t.strokeStyle = s.borderColor, t.strokeRect(h, d, i, f)), s.placeholder && l.length <= 1 && new ba(this.draw).render(t, {
23641
23646
  placeholder: {
23642
23647
  ...pl,
23643
23648
  ...s.placeholder
@@ -24075,7 +24080,7 @@ class xp {
24075
24080
  * @param override - 覆盖器
24076
24081
  */
24077
24082
  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 vf(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 Zo(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);
24083
+ 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 ba(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 vf(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 Zo(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
24084
  const { letterClass: l } = e;
24080
24085
  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
24086
  isInit: !0,
@@ -24406,6 +24411,9 @@ class xp {
24406
24411
  else if ((this.mode === K.FORM || this.isPrintLikeMode()) && a) {
24407
24412
  const c = e ? Zf(l.subTemplateConditions, e, l.subTemplateRelation) : !1;
24408
24413
  r = this.syncSubTemplateExpandedState(i, s, l, c, !0) || r;
24414
+ } else if ((this.mode === K.FORM || this.isPrintLikeMode()) && !a) {
24415
+ const c = l.subTemplateExpanded === !0;
24416
+ r = this.syncSubTemplateExpandedState(i, s, l, c, c) || r;
24409
24417
  } else this.mode !== K.FORM && !this.isPrintLikeMode() && (r = this.syncSubTemplateExpandedState(i, s, l, !1, !1) || r);
24410
24418
  }
24411
24419
  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)
@@ -26237,9 +26245,9 @@ class xp {
26237
26245
  this.textParticle.complete(), this.blockParticle.render(t, c, C, X, D + W);
26238
26246
  else {
26239
26247
  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 || Za.test(C.value)) && this.textParticle.complete();
26248
+ (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
26249
  }
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 && va.test(C.value) && this.whiteSpaceParticle.render(t, C, X, D + F.height / 2), C.control?.border) {
26250
+ 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 && Qa.test(C.value) && this.whiteSpaceParticle.render(t, C, X, D + F.height / 2), C.control?.border) {
26243
26251
  E?.control?.border && E.controlId !== C.controlId && this.control.drawBorder(t);
26244
26252
  const Y = this.getElementRowMargin(C);
26245
26253
  this.control.recordBorderInfo(X, D + Y, C.metrics.width, F.height - 2 * Y);
@@ -26570,7 +26578,7 @@ class xp {
26570
26578
  let r = !0;
26571
26579
  if (t !== void 0 && e.isImage && e.isDirectHit) {
26572
26580
  const s = i[t];
26573
- if (s && sc.includes(s.type)) {
26581
+ if (s && rc.includes(s.type)) {
26574
26582
  r = !1;
26575
26583
  const l = this.position.getCursorPosition();
26576
26584
  this.previewer.updateResizer(s, l);
@@ -27302,7 +27310,7 @@ class wp {
27302
27310
  pasteControl() {
27303
27311
  if (this.draw.isReadonly() || this.draw.isDisabled())
27304
27312
  return;
27305
- const e = Fl();
27313
+ const e = Xl();
27306
27314
  if (!e?.element)
27307
27315
  return;
27308
27316
  const { startIndex: n, endIndex: i } = this.range.getRange();
@@ -27828,7 +27836,7 @@ class wp {
27828
27836
  return;
27829
27837
  const r = this.range.getSelectionElementList();
27830
27838
  if (r?.length) {
27831
- const s = r.some((l) => !l.underline || !t && l.textDecoration || t && !l.textDecoration || t && l.textDecoration && !Ja(l.textDecoration, t));
27839
+ const s = r.some((l) => !l.underline || !t && l.textDecoration || t && !l.textDecoration || t && l.textDecoration && !$a(l.textDecoration, t));
27832
27840
  r.forEach((l) => {
27833
27841
  l.underline = s, s && t ? l.textDecoration = t : delete l.textDecoration;
27834
27842
  }), this.draw.render({
@@ -28587,7 +28595,7 @@ class wp {
28587
28595
  const { elementList: a, index: c, isInsideControl: u } = i[l], h = a[c], d = h.controlId && h.controlComponent === R.VALUE;
28588
28596
  if (u || d) {
28589
28597
  if (Object.assign(h, t.properties), h.id) {
28590
- const f = Ac(h.id);
28598
+ const f = Il(h.id);
28591
28599
  f && Object.assign(f, t.properties);
28592
28600
  }
28593
28601
  } else {
@@ -28647,29 +28655,38 @@ class wp {
28647
28655
  const { id: e, conceptId: n } = t, i = [];
28648
28656
  if (!e && !n)
28649
28657
  return i;
28650
- const r = (l) => {
28651
- let a = 0;
28652
- for (; a < l.length; ) {
28653
- const c = l[a];
28654
- if (a++, c.type === P.TABLE) {
28655
- const u = c.trList;
28656
- for (let h = 0; h < u.length; h++) {
28657
- const d = u[h];
28658
- for (let f = 0; f < d.tdList.length; f++) {
28659
- const g = d.tdList[f];
28660
- r(g.value);
28658
+ const r = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), l = (c) => {
28659
+ let u = 0;
28660
+ for (; u < c.length; ) {
28661
+ const h = c[u];
28662
+ if (u++, !r.has(h)) {
28663
+ if (r.add(h), h.type === P.TABLE) {
28664
+ const d = h.trList;
28665
+ for (let f = 0; f < d.length; f++) {
28666
+ const g = d[f];
28667
+ for (let p = 0; p < g.tdList.length; p++) {
28668
+ const I = g.tdList[p];
28669
+ l(I.value);
28670
+ }
28671
+ }
28672
+ }
28673
+ if (h.valueList?.length && l(h.valueList), h.control?.value?.length && l(h.control.value), !(e && h.id !== e || n && h.conceptId !== n)) {
28674
+ if (e && h.id) {
28675
+ if (s.has(h.id))
28676
+ continue;
28677
+ s.add(h.id);
28661
28678
  }
28679
+ i.push(h);
28662
28680
  }
28663
28681
  }
28664
- e && c.id !== e || n && c.conceptId !== n || i.push(c);
28665
28682
  }
28666
- }, s = [
28683
+ }, a = [
28667
28684
  this.draw.getHeaderElementList(),
28668
28685
  this.draw.getOriginalMainElementList(),
28669
28686
  this.draw.getFooterElementList()
28670
28687
  ];
28671
- for (const l of s)
28672
- r(l);
28688
+ for (const c of a)
28689
+ l(c);
28673
28690
  return Kt(i, {
28674
28691
  extraPickAttrs: ["id"]
28675
28692
  });
@@ -29509,7 +29526,7 @@ class wp {
29509
29526
  subTemplateContent: i?.map((c) => ut(c)),
29510
29527
  subTemplateRelation: s,
29511
29528
  subTemplateConditions: r?.map((c) => ({ ...c })),
29512
- subTemplateExpanded: !1
29529
+ subTemplateExpanded: this.options.mode === K.FORM && !r?.length
29513
29530
  };
29514
29531
  this.insertElementList([a], { isSubmitHistory: l });
29515
29532
  }